:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-alt: #eef3fb;
  --text: #162033;
  --muted: #5d6a82;
  --line: #d9e1ef;
  --primary: #004B34;
  --primary-dark: #067956;
  --accent: #14a38b;
  --danger: #b04c4c;
  --warning: #a06b00;
  --shadow: 0 16px 40px rgba(22, 32, 51, 0.08);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f8fbff 0%, #f4f7fb 100%);
  line-height: 1.6;
}

a {
  color: #0066cc;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

code {
  padding: 0.16rem 0.34rem;
  border-radius: 8px;
  background: rgba(37, 88, 217, 0.08);
  color: var(--primary-dark);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.92em;
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

.narrow {
  max-width: 760px;
}

.section,
.section-sm {
  padding: 4.5rem 0;
}

.section-sm {
  padding: 3.2rem 0;
}

.section-alt {
  background: var(--surface-alt);
  border-top: 1px solid rgba(217, 225, 239, 0.7);
  border-bottom: 1px solid rgba(217, 225, 239, 0.7);
}

.hero-notice-section {
  padding: 0.8rem 0 0.4rem;
}

.hero-notice {
  background: #fff8d8 !important;
  border: 1px solid rgba(255, 205, 100, 0.35);
  padding-left: 0;
  padding-right: 0;
}

.hero-notice .lead {
  max-width: none;
}

.hero-notice a {
  color: #2658d9;
  text-decoration: underline;
  font-weight: 600;
}

.hero-notice a:hover {
  color: #1a3fa0;
}

.hero-notice-section + .hero.section {
  padding-top: 1.5rem;
}

.page-hero.section-sm + .section {
  margin-top: -5rem;
}

.site-header {
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(247, 249, 252, 0.84);
  border-bottom: 1px solid rgba(217, 225, 239, 0.75);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.brand strong {
  display: block;
  font-size: 1rem;
}

.brand small {
  color: var(--muted);
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), #4f7af0);
  color: #fff;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-nav a {
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
}

.site-nav a.active,
.site-nav a:hover {
  color: var(--primary);
  background: rgba(37, 88, 217, 0.08);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
}

.hero {
  padding-top: 5.4rem;
}

.hero-grid,
.two-column,
.signup-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.signup-form {
  max-width: 100%;
}

.signup-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: start;
}

.signup-option {
  padding: 1rem;
}

.signup-option.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(20, 163, 139, 0.18);
}

.hero h1,
.page-hero h1 {
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  line-height: 1.05;
  margin: 0 0 1rem;
}

.lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 62ch;
}

.eyebrow {
  margin: 0 0 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
}

.hero-actions,
.button-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.6rem 0;
}

.hero-points,
.check-list,
.detail-list,
.step-list {
  padding-left: 1.2rem;
  margin: 1rem 0 0;
}

.hero-points li,
.check-list li,
.detail-list li,
.step-list li {
  margin-bottom: 0.65rem;
}

.card {
  background: var(--surface);
  border: 1px solid rgba(217, 225, 239, 0.9);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 1.6rem;
}

.panel-head,
.activity-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(20, 163, 139, 0.15);
}

.key-value-list {
  display: grid;
  gap: 0.75rem;
  margin: 1.2rem 0;
}

.key-value-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}

.key-value-list.compact div {
  align-items: flex-start;
}

.key-value-list dt {
  color: var(--muted);
  font-weight: 600;
}

.key-value-list dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
}

.muted {
  color: var(--muted);
}

.section-heading {
  text-align: center;
  margin-bottom: 2rem;
}

.section-heading-left {
  text-align: left;
  margin-bottom: 1rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.cards-grid {
  display: grid;
  gap: 1.4rem;
}

.cards-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card,
.activity-card,
.faq-card,
.result-card,
.fixture-card,
.meta-card {
  height: 100%;
}

.feature-card h3,
.activity-card h2,
.spotlight-card h3,
.hero-panel h2,
.card h2,
.card h3 {
  margin-top: 0;
}

.text-link {
  color: var(--primary);
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 46px;
  padding: 0.72rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: rgba(37, 88, 217, 0.08);
  color: var(--primary);
  border-color: rgba(37, 88, 217, 0.12);
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.34rem 0.72rem;
  border-radius: 999px;
  background: rgba(37, 88, 217, 0.1);
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 700;
}

.pill-accent {
  background: rgba(20, 163, 139, 0.12);
  color: #0c7f6d;
}

.activity-meta {
  color: var(--muted);
  font-weight: 600;
}

.site-footer {
  padding: 2rem 0 3rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.notice {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  margin-bottom: 1rem;
  font-weight: 600;
}

.notice.info {
  background: rgba(37, 88, 217, 0.08);
  border-color: rgba(37, 88, 217, 0.14);
  color: var(--primary-dark);
}

.notice.warning {
  background: rgba(160, 107, 0, 0.1);
  border-color: rgba(160, 107, 0, 0.16);
  color: var(--warning);
}

.notice.success {
  background: rgba(56, 161, 105, 0.12);
  border-color: rgba(56, 161, 105, 0.2);
  color: #1f6e4b;
}

.notice.danger {
  background: rgba(176, 76, 76, 0.1);
  border-color: rgba(176, 76, 76, 0.16);
  color: var(--danger);
}

.fixtures-meta-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 1.2rem;
}

.fixture-group {
  margin-bottom: 1.4rem;
}

.fixture-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fixture-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.fixture-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.fixture-side {
  font-weight: 700;
}

.fixture-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.waiting-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.waiting-chip {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(37, 88, 217, 0.08);
  color: var(--primary);
  font-weight: 600;
}

.result-list {
  display: grid;
  gap: 1rem;
}

.result-entry {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.embed-card iframe,
.embed-shell {
  width: 100%;
}

.embed-shell {
  min-height: 460px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fafcff;
}

.embed-shell iframe {
  width: 100%;
  min-height: 460px;
  border: 0;
}

@media (max-width: 960px) {
  .hero-grid,
  .two-column,
  .signup-layout,
  .cards-grid-3,
  .cards-grid-2,
  .fixtures-meta-grid,
  .fixture-grid {
    grid-template-columns: 1fr;
  }

  .site-nav {
    position: absolute;
    inset: calc(100% + 0.5rem) 1rem auto 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.98);
    padding: 0.85rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .nav-toggle {
    display: inline-block;
  }

  .footer-grid {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .section,
  .section-sm {
    padding: 3.2rem 0;
  }

  .container {
    width: min(var(--container), calc(100% - 1.2rem));
  }

  .card {
    padding: 1.15rem;
    border-radius: 18px;
  }

  .hero-actions,
  .button-stack {
    flex-direction: column;
    align-items: stretch;
  }

  .key-value-list div,
  .fixture-row {
    flex-direction: column;
  }

  .key-value-list dd {
    text-align: left;
  }
}


.nav-wrap {
  justify-content: flex-start;
}

.site-nav {
  margin-left: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: 0.75rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.lang-switch:hover,
.lang-switch:focus-visible {
  transform: translateY(-1px);
  background: var(--primary-dark);
  color: #fff;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.26rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  padding: 0.44rem 0.76rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.lang-btn:hover {
  color: var(--primary);
}

.lang-btn.is-active {
  background: rgba(37, 88, 217, 0.12);
  color: var(--primary);
}

@media (max-width: 960px) {
  .site-nav {
    margin-left: 0;
  }

  .header-actions {
    margin-left: auto;
  }
}

@media (max-width: 640px) {
  .lang-switcher {
    padding: 0.18rem;
  }

  .lang-btn {
    padding: 0.38rem 0.62rem;
    font-size: 0.92rem;
  }
}


.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo {
  width: 84px;
  height: 84px;
  object-fit: contain;
  display: block;
}

.brand-text {
  font-weight: 700;
  line-height: 1;
}

/* Home news card */
#home-news-section .card {
  background: #fff4bf;
  border-color: #f1df8a;
}

#home-news-title,
#home-news-time,
#home-news-content {
  width: 100%;
}

#home-news-content {
  max-width: none;
  color: var(--text);
  white-space: pre-line;
}


/* Reduce vertical spacing around the home news card */
#home-news-section {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

#home-news-section .card {
  padding: 1rem 1.25rem;
}

#home-news-title {
  margin-bottom: 0.35rem;
}

#home-news-time {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

#home-news-content {
  margin-top: 0;
  margin-bottom: 0;
  line-height: 1.5;
}

#home-news-section + .section,
.section + #home-news-section {
  padding-top: 0.7rem;
}

/* Reduce footer height */
.site-footer {
  padding-top: 1rem;
  padding-bottom: 0.5rem;
}

.site-footer .container {
  padding-top: 0.5rem;
  padding-bottom: 0.25rem;
}

.site-footer p,
.site-footer li,
.site-footer ul {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.site-footer p:last-child,
.site-footer ul:last-child {
  margin-bottom: 0.5rem;
}

.site-footer {
  line-height: 2;
}
.form-input {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 14px;
  background: #fff;
  color: inherit;
  font: inherit;
}

textarea.form-input {
  resize: vertical;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  font-size: 0.85rem;
  font-weight: 700;
}

.badge-accent {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.card-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.site-nav.is-open {
  display: flex;
}

.required {
  color: var(--danger);
  margin-left: 0.25rem;
}
