:root {
  color-scheme: light;
  --blue: #174e8c;
  --blue-dark: #0b2d54;
  --blue-deep: #071f3b;
  --green: #087a55;
  --amber: #a7660a;
  --red: #a5323a;
  --ink: #17201d;
  --muted: #68736e;
  --line: #d7dedb;
  --canvas: #eef2f0;
  --surface: #ffffff;
  --header-height: 68px;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  letter-spacing: 0;
}

* { box-sizing: border-box; letter-spacing: 0; }
html { min-width: 320px; scroll-behavior: smooth; background: var(--canvas); }
body { min-width: 320px; min-height: 100vh; margin: 0; background: var(--canvas); color: var(--ink); }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd { margin: 0; }
svg { width: 19px; height: 19px; stroke-width: 1.9; }
a:focus-visible { outline: 3px solid rgba(71, 147, 225, .42); outline-offset: 3px; }

.site-header { height: var(--header-height); position: relative; z-index: 20; border-bottom: 1px solid #0668be; background: #087fe8; color: #fff; }
.header-inner { width: min(1240px, 100%); height: 100%; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 340px 1fr; align-items: center; gap: 28px; }
.brand { min-width: 0; display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { width: 42px; height: 42px; flex: 0 0 auto; position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.62); border-radius: 5px; background: rgba(255,255,255,.14); }
.brand-mark img { width: auto; max-width: none; height: 34px; position: absolute; top: 3px; left: 3px; display: block; }
.brand-copy { min-width: 0; display: grid; gap: 2px; }
.brand-copy strong { font: 600 16px/1.2 Consolas, "Microsoft YaHei UI", sans-serif; }
.brand-copy small { overflow: hidden; color: #fff; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.primary-nav { justify-self: end; display: flex; align-items: center; gap: 36px; font-size: 17px; }
.primary-nav a { color: #fff; }
.primary-nav a:hover { color: #fff; }

.hero { height: min(400px, calc(100svh - 270px)); min-height: 340px; position: relative; overflow: hidden; background: #178fe5; color: #fff; }
.hero-image { width: 100%; height: 100%; position: absolute; inset: 0; display: block; object-fit: cover; object-position: center; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 31, 94, .16) 0%, rgba(6, 55, 125, .08) 48%, rgba(9, 126, 219, .02) 100%); }
.hero-inner { width: min(1240px, 100%); height: 100%; position: relative; margin: 0 auto; padding: 30px 24px 26px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.hero h1 { max-width: 600px; font-size: 48px; line-height: 1.14; font-weight: 700; }
.hero-facts { width: min(520px, 100%); margin-top: 28px; padding-top: 17px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; border-top: 1px solid rgba(255,255,255,.25); }
.hero-facts div { min-width: 0; display: grid; gap: 5px; }
.hero-facts dt { color: rgba(255,255,255,.84); font-size: 15px; }
.hero-facts dd { overflow-wrap: anywhere; font-size: 17px; }

.services-band { padding: 36px 0 40px; border-bottom: 1px solid var(--line); background: var(--surface); }
.section-inner { width: min(1240px, 100%); margin: 0 auto; padding: 0 24px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.section-heading > div > span { color: var(--blue); font: 600 12px/1.2 Consolas, sans-serif; }
.event-heading > span { color: var(--blue); font: 600 14px/1.2 Consolas, sans-serif; }
.section-heading h2, .event-heading h2 { margin-top: 7px; font-size: 31px; line-height: 1.25; font-weight: 600; }
.section-heading > p { color: var(--muted); font-size: 14px; }
.section-heading > p strong { color: #34413b; font-family: Consolas, monospace; font-weight: 400; }
.service-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.service-card { min-width: 0; min-height: 294px; padding: 22px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.service-card:hover { border-color: #aab9b2; box-shadow: 0 10px 28px rgba(29, 47, 40, .08); transform: translateY(-2px); }
.service-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.service-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 5px; }
.service-icon svg { width: 23px; height: 23px; }
.score-service .service-icon { background: #e7f0fb; color: var(--blue); }
.draw-service .service-icon { background: #e3f2eb; color: var(--green); }
.forum-service .service-icon { background: #f5ead9; color: var(--amber); }
.service-status { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.service-status i { width: 7px; height: 7px; border-radius: 50%; background: #9aa49f; }
.service-status.online { color: var(--green); }
.service-status.online i { background: #20a36f; }
.service-status.offline { color: var(--red); }
.service-status.offline i { background: var(--red); }
.service-status.planned { color: var(--amber); }
.service-status.planned i { background: #d28b25; }
.service-copy { margin-top: 25px; }
.service-copy > span { color: #78847e; font: 12px/1.4 Consolas, monospace; overflow-wrap: anywhere; }
.service-copy h3 { margin-top: 8px; font-size: 24px; font-weight: 600; }
.service-copy p { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.service-link { min-height: 41px; margin-top: auto; padding-top: 17px; display: flex; align-items: end; justify-content: space-between; gap: 10px; border-top: 1px solid #e5eae8; color: var(--blue); font-size: 14px; }
.service-link svg { width: 17px; height: 17px; }
.service-link.disabled { color: #8a938f; cursor: not-allowed; }

.event-band { padding: 36px 0 40px; background: #e9efec; }
.event-layout { display: grid; grid-template-columns: minmax(230px, .8fr) minmax(500px, 1.2fr); align-items: center; gap: 70px; }
.event-heading p { margin-top: 13px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.event-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.event-links > a { min-height: 86px; padding: 17px; display: grid; grid-template-columns: 36px 1fr 18px; align-items: center; gap: 12px; border: 1px solid #cbd5d0; border-radius: 6px; background: rgba(255,255,255,.65); }
.event-links > a:hover { border-color: #95aaa0; background: #fff; }
.event-links > a > svg:first-child { width: 28px; height: 28px; color: var(--blue); }
.event-links > a:nth-child(2) > svg:first-child { color: var(--green); }
.event-links span { min-width: 0; display: grid; gap: 3px; }
.event-links small { color: var(--muted); font-size: 12px; }
.event-links strong { font-size: 17px; font-weight: 600; }
.event-links > a > svg:last-child { width: 16px; height: 16px; color: #76817c; }

.site-footer { border-top: 1px solid #1b3043; background: #10283e; color: rgba(255,255,255,.68); }
.footer-inner { width: min(1240px, 100%); min-height: 70px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 13px; }

@media (prefers-reduced-motion: no-preference) {
  .service-card, .event-links > a { transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease; }
}

@media (max-width: 900px) {
  .header-inner { grid-template-columns: 1fr; }
  .primary-nav { display: none; }
  .hero h1 { font-size: 42px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .forum-service { grid-column: 1 / -1; min-height: 250px; }
  .event-layout { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 620px) {
  :root { --header-height: 62px; }
  .header-inner { padding: 0 16px; gap: 10px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-mark img { height: 30px; top: 2px; left: 2px; }
  .brand-copy strong { font-size: 13px; }
  .brand-copy small { max-width: 220px; font-size: 11px; }
  .hero { height: auto; min-height: 360px; }
  .hero-image { object-position: 54% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(4, 31, 94, .24) 0%, rgba(6, 55, 125, .1) 68%, rgba(9, 126, 219, .02) 100%); }
  .hero-inner { min-height: 360px; padding: 28px 16px 24px; justify-content: center; }
  .hero h1 { font-size: 34px; line-height: 1.18; }
  .hero-facts { margin-top: 24px; padding-top: 16px; grid-template-columns: 1fr 1fr; gap: 15px; }
  .services-band { padding: 34px 0 38px; }
  .section-inner { padding: 0 16px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 12px; line-height: 1.7; }
  .section-heading h2, .event-heading h2 { font-size: 27px; }
  .service-grid { grid-template-columns: 1fr; gap: 12px; }
  .forum-service { grid-column: auto; }
  .service-card { min-height: 260px; padding: 19px; }
  .event-band { padding: 34px 0 38px; }
  .event-links { grid-template-columns: 1fr; }
  .footer-inner { min-height: 84px; padding: 18px 16px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 5px; }
}

@media (max-width: 370px) {
  .brand-copy small { max-width: 150px; }
  .hero h1 { font-size: 34px; }
}
