/* ============================================================
   星辰杯赛事官网 · 设计系统（与画布严格对齐）
   ============================================================ */

:root {
  /* —— 深空底色 —— */
  --ink-950: #0A0C18;   /* 页脚底色 */
  --ink-900: #0B0E1C;   /* 页面底色 */
  --ink-880: #0E1226;   /* 数据带底色 */
  --ink-860: #101430;   /* Hero 基色 */
  --ink-840: #121633;   /* 报名区底色 */
  --ink-820: #131735;   /* 底部行动区底色（深端） */
  --ink-800: #191D42;   /* 报名详情卡底色 */
  --ink-750: #1E2340;   /* 深色分隔线 */
  --ink-720: #2E3358;   /* 时间轴未激活节点 */

  /* —— 浅色 —— */
  --bg-page: #F7F8FC;
  --surface: #FFFFFF;
  --border-soft: #E0E3ED;   /* 资讯卡描边 0.88,0.89,0.93 */
  --border-line: #E6E8F0;   /* 列表分隔线 */
  --border-card: #E8EBF2;   /* 角色卡描边 0.91,0.92,0.95 */

  /* —— 文字（浅色区）—— */
  --text-primary: #14162B;
  --text-strong: #1E2038;
  --text-body:    #5A6180;
  --text-meta:    #8A90A8;
  --text-mute:    #9AA0B8;

  /* —— 文字（深色区）—— */
  --on-dark:           #FFFFFF;
  --on-dark-soft:      #C9CEE0;
  --on-dark-soft2:     #DCE0F0;
  --on-dark-mute:      #A8B0CC;
  --on-dark-mute2:     #8E97B8;
  --on-dark-mute3:     #9AA2C4;
  --on-dark-mute4:     #7A83A6;
  --on-dark-mute5:     #5A6285;

  /* —— 主色 / 紫蓝渐变 —— */
  --brand-1: #667EEA;
  --brand-2: #764BA2;
  --brand-glow: #A78BFA;   /* 发光紫 */
  --brand-soft: #C4B5FD;   /* 浅紫 */
  --brand-en:   #8B9DFF;   /* 英文副字 */
  --brand-tag-bg: #EEF0FF; /* 标签浅底 */

  /* —— 奖杯金（仅荣誉相关）—— */
  --gold: #F5C86B;

  /* —— 半径 —— */
  --r-pill: 9999px;
  --r-card: 18px;
  --r-img:  20px;
  --r-img2: 22px;
  --r-tag:  6px;

  /* —— 字体 —— */
  --font-sans: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont,
               "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

/* ============================================================
   Reset & base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--ink-900);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* 渐变按钮 — 与设计稿左上→右下（90deg）一致 */
.btn-gradient {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 32px;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, #667EEA 0%, #764BA2 100%);
  color: #fff;
  font-weight: 600;
  font-size: 17px;
  box-shadow: 0 10px 28px -6px rgba(102, 110, 234, 0.40),
              0 12px 32px -8px rgba(102, 110, 234, 0.40);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-gradient:hover { transform: translateY(-1px); }
.btn-gradient:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 28px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #DCE0F0;
  font-weight: 400;
  font-size: 17px;
}

/* ============================================================
   顶部导航
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink-900);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 120px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-mark { width: 32px; height: 32px; }
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.brand-cn {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  line-height: 22px;
}
.brand-en {
  font-size: 10px;
  font-weight: 600;
  color: var(--brand-en);
  line-height: 12px;
  letter-spacing: 2.4px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav a {
  font-size: 15px;
  color: var(--on-dark-mute);
  transition: color .15s ease;
}
.nav a:hover { color: #fff; }
.nav a.active { color: #fff; font-weight: 600; }

.actions {
  display: flex;
  align-items: center;
  gap: 22px;
}
.actions .login {
  font-size: 15px;
  color: var(--on-dark-mute);
}
.actions .signup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 24px;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, #667EEA 0%, #764BA2 100%);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  background: linear-gradient(to top, #17213D 0%, #0A0D1C 100%);
}
.hero-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 88px 120px 76px;
  display: flex;
  gap: 72px;
  align-items: center;
}
.hero-text { flex: 0 0 600px; max-width: 600px; }
.hero-image {
  flex: 0 0 560px;
  width: 560px;
  height: 400px;
  border-radius: var(--r-img2);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10);
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px 7px 15px;
  border-radius: var(--r-pill);
  background: rgba(102, 126, 234, 0.12);
  color: var(--brand-soft);
  font-size: 13px;
  font-weight: 500;
}
.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-glow);
  display: inline-block;
}

.hero h1 {
  margin: 26px 0 0;
  font-size: 60px;
  font-weight: 700;
  line-height: 68px;
  letter-spacing: -1.6px;
  color: #fff;
}
.hero .lead {
  margin: 26px 0 0;
  font-size: 22px;
  line-height: 32px;
  color: var(--on-dark-soft);
}
.hero .desc {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 27px;
  color: var(--on-dark-mute2);
}
.hero .cta-row {
  margin-top: 32px;
  display: flex;
  gap: 14px;
}
.trust-row {
  margin-top: 32px;
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--on-dark-mute2);
}
.trust-item svg { color: var(--brand-glow); flex-shrink: 0; }

/* ============================================================
   数据带
   ============================================================ */
.stats {
  background: var(--ink-880);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.stats-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 44px 120px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-num {
  font-family: "Inter", var(--font-sans);
  font-size: 34px;
  font-weight: 700;
  line-height: 38px;
  letter-spacing: -0.8px;
  color: #fff;
}
.stat-num.gold { color: var(--gold); }
.stat-label {
  font-size: 13px;
  color: var(--on-dark-mute2);
}

/* ============================================================
   公告资讯
   ============================================================ */
.news { background: var(--bg-page); }
.news-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 96px 120px;
  display: flex;
  flex-direction: column;
  gap: 44px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.section-head .title-block { display: flex; flex-direction: column; gap: 12px; }
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--brand-1);
}
.section-title {
  font-size: 38px;
  font-weight: 700;
  line-height: 46px;
  letter-spacing: -0.8px;
  color: var(--text-primary);
}
.news-more {
  font-size: 15px;
  font-weight: 500;
  color: var(--brand-1);
}

.news-body {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}
.news-feature {
  flex: 0 0 600px;
  width: 600px;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-img);
  overflow: hidden;
  box-shadow: 0 14px 36px -10px rgba(20, 22, 43, 0.08);
}
.news-feature .cover { width: 100%; height: 264px; }
.news-feature .cover img { width: 100%; height: 100%; object-fit: cover; }
.news-feature .body {
  padding: 26px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tag-pill {
  display: inline-flex;
  padding: 5px 11px;
  border-radius: var(--r-tag);
  background: var(--brand-tag-bg);
  color: var(--brand-1);
  font-size: 12px;
  font-weight: 600;
}
.meta-row .date {
  font-family: "Inter", var(--font-sans);
  font-size: 13px;
  color: var(--text-meta);
}
.news-feature h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 32px;
  color: var(--text-primary);
}
.news-feature .summary {
  font-size: 15px;
  line-height: 26px;
  color: var(--text-body);
}

.news-list {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.news-item {
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.news-item + .news-item { border-top: 1px solid var(--border-line); }
.news-item .meta-row { gap: 14px; }
.news-item .meta-row .tag-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-1);
}
.news-item .meta-row .date {
  font-size: 13px;
  color: var(--text-mute);
}
.news-item h4 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 26px;
  color: var(--text-strong);
}

/* ============================================================
   赛事报名
   ============================================================ */
.signup { background: var(--ink-840); }
.signup-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 96px 120px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.signup .section-head { flex-direction: column; align-items: stretch; gap: 14px; }
.signup .eyebrow { color: var(--brand-glow); }
.signup .section-title { color: #fff; }
.signup .desc {
  font-size: 16px;
  line-height: 27px;
  color: var(--on-dark-mute2);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: flex-start;
}
.t-step {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.t-line {
  display: flex;
  align-items: center;
  height: 14px;
}
.t-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--brand-1);
}
.t-dot.current {
  background: var(--brand-glow);
  box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.18), 0 0 12px rgba(167, 139, 250, 0.9);
}
.t-dot.idle { background: var(--ink-720); }
.t-bar {
  flex: 1;
  height: 2px;
  background: var(--brand-1);
}
.t-bar.idle { background: var(--ink-720); }
.t-bar.last { background: transparent; }
.t-date {
  font-family: "Inter", var(--font-sans);
  font-size: 13px;
}
.t-date.current { font-weight: 500; color: var(--brand-soft); }
.t-date.idle   { color: var(--on-dark-mute2); }
.t-name {
  font-size: 17px;
  font-weight: 600;
}
.t-name.current { color: #fff; }
.t-name.upcoming { color: var(--on-dark-soft2); }
.t-name.idle { color: var(--on-dark-mute3); }

.cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.detail-card {
  background: var(--ink-800);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--r-card);
  padding: 30px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.detail-card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.check-row .icon { flex-shrink: 0; margin-top: 4px; }
.check-row .icon.violet { color: var(--brand-glow); }
.check-row .icon.gold   { color: var(--gold); }
.check-row p {
  margin: 0;
  font-size: 15px;
  line-height: 24px;
  color: var(--on-dark-soft);
}

.cta-band {
  display: flex;
  align-items: center;
  gap: 20px;
}
.cta-band .note {
  font-size: 14px;
  color: var(--on-dark-mute2);
}

/* ============================================================
   往届回顾
   ============================================================ */
.past { background: var(--ink-900); }
.past-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 96px 120px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.past .eyebrow { color: var(--gold); }
.past .section-title { color: #fff; }

.past-body {
  display: flex;
  gap: 48px;
  align-items: center;
}
.past-image {
  flex: 0 0 560px;
  width: 560px;
  height: 400px;
  border-radius: var(--r-img);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10);
}
.past-image img { width: 100%; height: 100%; object-fit: cover; }

.champion-list {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.champion-list .divider {
  height: 1px;
  background: var(--ink-750);
}
.champion-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
}
.champion-row .year {
  flex: 0 0 76px;
  width: 76px;
  font-family: "Inter", var(--font-sans);
  font-size: 20px;
  font-weight: 600;
  color: var(--gold);
  line-height: 24px;
}
.champion-row .info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.champion-row .team {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}
.champion-row .mvp {
  font-size: 13px;
  color: var(--on-dark-mute2);
}

/* ============================================================
   加入我们
   ============================================================ */
.join { background: #fff; }
.join-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 96px 120px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.join .eyebrow { color: var(--brand-1); }
.join .section-title { color: var(--text-primary); }

.join-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.join-card {
  background: var(--bg-page);
  border: 1px solid var(--border-card);
  border-radius: var(--r-card);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.join-card .icon { color: var(--brand-1); }
.join-card h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}
.join-card p {
  margin: 0;
  font-size: 15px;
  line-height: 26px;
  color: var(--text-body);
}
.join-card .link {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-1);
  margin-top: auto;
}

/* ============================================================
   常见问题
   ============================================================ */
.faq { background: var(--bg-page); }
.faq-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 96px 120px;
}
.faq-body {
  display: flex;
  gap: 72px;
  align-items: flex-start;
}
.faq-left {
  flex: 0 0 340px;
  width: 340px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-left .section-title {
  font-size: 34px;
  line-height: 44px;
  letter-spacing: -0.6px;
}
.faq-left .desc {
  font-size: 15px;
  line-height: 26px;
  color: var(--text-body);
}

.faq-list {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.qa-item {
  padding: 26px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.qa-item + .qa-item { border-top: 1px solid var(--border-line); }
.qa-q {
  font-size: 17px;
  font-weight: 600;
  line-height: 26px;
  color: var(--text-strong);
}
.qa-a {
  font-size: 15px;
  line-height: 26px;
  color: var(--text-body);
}

/* ============================================================
   最终行动区
   ============================================================ */
.final-cta {
  background: linear-gradient(to top, #1C214D 0%, #0A0D17 100%);
}
.final-cta-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 92px 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  text-align: center;
}
.final-cta h2 {
  margin: 0;
  font-size: 40px;
  font-weight: 700;
  line-height: 50px;
  letter-spacing: -0.9px;
  color: #fff;
}
.final-cta .lead {
  margin: 0;
  width: 760px;
  max-width: 100%;
  font-size: 17px;
  line-height: 28px;
  color: var(--on-dark-mute);
}
.final-cta .note {
  font-size: 13px;
  color: var(--on-dark-mute4);
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer { background: var(--ink-950); }
.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 64px 120px 36px;
  display: flex;
  flex-direction: column;
  gap: 44px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  align-items: flex-start;
}
.footer-brand {
  flex: 0 0 300px;
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-brand .brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-brand .brand-name {
  font-size: 19px;
  font-weight: 700;
  color: #fff;
}
.footer-brand .slogan {
  margin: 0;
  font-size: 14px;
  line-height: 24px;
  color: var(--on-dark-mute4);
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-col .col-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}
.footer-col a {
  font-size: 14px;
  line-height: 30px;
  color: var(--on-dark-mute4);
  transition: color .15s ease;
}
.footer-col a:hover { color: #fff; }

.footer-divider {
  height: 1px;
  background: var(--ink-750);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.copyright {
  font-size: 13px;
  color: var(--on-dark-mute5);
}
.legal-links {
  display: flex;
  gap: 24px;
  align-items: center;
}
.legal-links a {
  font-size: 13px;
  color: var(--on-dark-mute5);
}

/* ============================================================
   Responsive（>=1024 保持原版，<1024 折叠为单列）
   ============================================================ */
@media (max-width: 1280px) {
  .header-inner,
  .hero-inner,
  .stats-inner,
  .news-inner,
  .signup-inner,
  .past-inner,
  .join-inner,
  .faq-inner,
  .final-cta-inner,
  .footer-inner {
    padding-left: 60px;
    padding-right: 60px;
  }
  .hero-inner { flex-wrap: wrap; }
  .hero-text { flex: 1 1 100%; max-width: 100%; }
  .hero-image { flex: 1 1 100%; width: 100%; }
  .news-body, .past-body, .faq-body, .footer-top {
    flex-wrap: wrap;
  }
  .news-feature, .past-image, .faq-left { flex: 1 1 100%; width: 100%; }
  .champion-list, .faq-list, .news-list { width: 100%; }
  .join-cards { grid-template-columns: 1fr; }
  .cards-row { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .hero h1 { font-size: 40px; line-height: 48px; }
  .section-title { font-size: 28px; line-height: 36px; }
  .final-cta h2 { font-size: 28px; line-height: 38px; }
  .final-cta .lead { width: auto; }
  .stats-inner { flex-wrap: wrap; gap: 28px; }
}