/* ============================================================
   奥艺训练助手 · 官网样式
   纯静态原型（后续将转为 apis 的 Go 模板）
   ============================================================ */

:root {
  --navy: #0f2340;
  --navy-2: #16365f;
  --primary: #1d5fd6;
  --primary-2: #4f8cff;
  --accent: #ff6b2c;
  --accent-2: #ffa13d;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --ink: #17233b;
  --ink-2: #4b5876;
  --ink-3: #7a869f;
  --line: #e6ecf5;
  --radius: 16px;
  --shadow-sm: 0 2px 8px rgba(15, 35, 64, 0.06);
  --shadow: 0 10px 30px rgba(15, 35, 64, 0.10);
  --shadow-lg: 0 20px 50px rgba(15, 35, 64, 0.16);
  --maxw: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); }

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--navy);
}
.brand .logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 10px;
  color: var(--ink-2);
  font-weight: 500;
  font-size: 15px;
  transition: all 0.18s ease;
}
.nav-links a:hover { color: var(--primary); background: var(--bg-soft); }
.nav-links a.active { color: var(--primary); background: #eaf2ff; }

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 8px 20px rgba(29, 95, 214, 0.28);
}
.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 107, 44, 0.26);
}
.btn-ghost {
  background: #fff;
  color: var(--primary);
  border-color: var(--line);
}
.btn-lg { padding: 15px 30px; font-size: 16px; border-radius: 14px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 96px;
  background:
    radial-gradient(circle at 12% 18%, rgba(79, 140, 255, 0.16), transparent 42%),
    radial-gradient(circle at 88% 20%, rgba(255, 107, 44, 0.14), transparent 40%),
    linear-gradient(180deg, #f2f7ff, #fff);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #eaf2ff;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
}
.hero-kicker svg { width: 14px; height: 14px; }
.hero h1 {
  margin: 18px 0 16px;
  font-size: 46px;
  line-height: 1.18;
  color: var(--navy);
  letter-spacing: -0.5px;
}
.hero h1 .hl {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: 18px;
  color: var(--ink-2);
  max-width: 540px;
  margin: 0 0 28px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-figure {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.hero-figure img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
}

/* ---------- 软件截图 ---------- */
.screenshot {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.screenshot:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.screenshot img { width: 100%; height: 210px; object-fit: cover; display: block; }
.screenshot figcaption {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--ink-2);
  text-align: center;
}

/* ---------- 通用区块 ---------- */
.section { padding: 80px 0; }
.section-soft { background: var(--bg-soft); }

.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head h2 {
  font-size: 32px;
  color: var(--navy);
  margin: 0 0 12px;
}
.section-head p { color: var(--ink-2); margin: 0; }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: #eaf2ff;
  color: var(--primary);
}
.card .icon svg {
  width: 24px;
  height: 24px;
}
.card h3 { margin: 0 0 10px; font-size: 19px; color: var(--navy); }
.card p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* ---------- 特性列表 ---------- */
.feature-list { list-style: none; margin: 0; padding: 0; }
.feature-list li {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}
.feature-list li:last-child { border-bottom: 0; }
.feature-list .mark {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #eaf2ff;
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
}
.feature-list .mark svg { width: 14px; height: 14px; }

/* ---------- 比赛记录时间线 ---------- */
.records {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 780px;
}
.record-item {
  position: relative;
  padding: 0 0 26px 28px;
  border-left: 2px solid var(--line);
}
.record-item:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}
.record-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--primary);
  box-sizing: border-box;
}
.record-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.6;
}
.record-time {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}
.records-cta {
  text-align: center;
  margin-top: 40px;
}

/* ---------- 发展历程时间线 ---------- */
.milestones {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 780px;
}
.milestone-item {
  position: relative;
  padding: 0 0 26px 28px;
  border-left: 2px solid var(--line);
}
.milestone-item:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}
.milestone-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--primary);
  box-sizing: border-box;
}
.milestone-time {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}
.milestone-body {
  margin-top: 2px;
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.6;
}
/* 后续规划节点：虚线 + 强调色 */
.milestone-future {
  border-left-style: dashed;
}
.milestone-future::before {
  border-color: var(--accent);
  background: #fff7f0;
}
.milestone-future .milestone-time {
  color: var(--accent);
}

/* ---------- 资讯列表 ---------- */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.article-item {
  display: flex;
  gap: 24px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: inherit;
}
.article-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  color: inherit;
}
.article-thumb {
  flex: none;
  width: 220px;
  height: 150px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-soft);
}
.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.article-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: #eaf2ff;
  padding: 2px 10px;
  border-radius: 999px;
}
.article-date {
  font-size: 13px;
  color: var(--ink-3);
}
.article-title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
}
.article-summary {
  margin: 0;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.7;
}

/* ---------- 资讯详情 ---------- */
.article-detail {
  max-width: 780px;
  margin: 0 auto;
}
.article-detail-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
  margin-bottom: 28px;
}
.article-detail-head h1 {
  margin: 16px 0 16px;
  font-size: 30px;
  line-height: 1.35;
  color: var(--navy);
}
.article-body {
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink);
}
.article-body p {
  margin: 0 0 18px;
}
.article-body h2 {
  margin: 28px 0 14px;
  font-size: 21px;
  color: var(--navy);
}
.article-back {
  margin-top: 36px;
}

/* ---------- 获奖荣誉墙 ---------- */
.honor {
  max-width: 820px;
  margin: 0 auto;
  max-height: 640px;
  overflow-y: auto;
  padding-right: 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.honor::-webkit-scrollbar {
  width: 6px;
}
.honor::-webkit-scrollbar-thumb {
  background: #c9d4e4;
  border-radius: 3px;
}
.honor::-webkit-scrollbar-track {
  background: transparent;
}
.honor-year {
  position: relative;
  padding: 0 0 36px 32px;
  border-left: 2px solid var(--line);
}
.honor-year:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}
.honor-year::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 9px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 4px rgba(255, 107, 44, 0.12);
  box-sizing: border-box;
}
.honor-year-title {
  margin: 0 0 12px;
  font-size: 21px;
  font-weight: 800;
  color: var(--navy);
}
.honor-items {
  list-style: none;
  margin: 0;
  padding: 0;
}
.honor-item {
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-2);
}
.honor-item:last-child {
  border-bottom: 0;
}
.honor-event {
  font-weight: 600;
  color: var(--ink);
}
.honor-rank {
  color: var(--accent);
  font-weight: 700;
}

/* ---------- 俱乐部档案 ---------- */
.club-profile {
  margin-top: 20px;
  padding: 16px 20px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.club-profile h3 {
  margin: 0 0 10px;
  font-size: 16px;
  color: var(--navy);
}
.club-profile ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.club-profile li {
  padding: 5px 0;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.6;
}
.club-profile li span {
  font-weight: 600;
  color: var(--ink);
}
.club-profile .club-campus {
  margin-top: 4px;
}
.club-profile .club-campus li {
  padding: 3px 0;
  font-size: 14px;
  color: var(--ink-2);
}

@media (max-width: 640px) {
  .article-item {
    flex-direction: column;
  }
  .article-thumb {
    width: 100%;
    height: 180px;
  }
  .article-detail-head h1 {
    font-size: 24px;
  }
}

/* ---------- 介绍页 hero（内页小 hero） ---------- */
.page-hero {
  padding: 60px 0 56px;
  background:
    radial-gradient(circle at 15% 0%, rgba(79, 140, 255, 0.14), transparent 45%),
    linear-gradient(180deg, #f2f7ff, #fff);
}
.page-hero h1 { margin: 14px 0 12px; font-size: 38px; color: var(--navy); }
.page-hero .lead { font-size: 17px; color: var(--ink-2); max-width: 720px; }

.breadcrumb {
  font-size: 14px;
  color: var(--ink-3);
}
.breadcrumb a { color: var(--ink-3); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { margin: 0 6px; }

/* ---------- 下载卡片 ---------- */
.download-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.download-card {
  text-align: center;
  padding: 34px 24px;
}
.download-card .os {
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  color: var(--primary);
}
.download-card .os svg {
  width: 40px;
  height: 40px;
}
.download-card h3 { font-size: 18px; color: var(--navy); margin: 0 0 8px; }
.download-card .ver { font-size: 13px; color: var(--ink-3); margin-bottom: 18px; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 14px;
  background: #fff;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; color: var(--primary); }
.faq-item[open] summary::after { content: "–"; }
.faq-item .answer { padding: 0 22px 20px; color: var(--ink-2); }

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--navy);
  color: #c6d2e6;
  padding: 56px 0 32px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
}
.site-footer h4 { color: #fff; margin: 0 0 14px; font-size: 15px; }
.site-footer .brand { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { margin: 8px 0; }
.site-footer a { color: #c6d2e6; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  color: #8fa0bd;
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .download-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 10px 16px 16px;
  }
  .nav-links.open { display: flex; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 64px; }
  .hero h1 { font-size: 30px; }
  .section { padding: 56px 0; }
  .page-hero h1 { font-size: 30px; }
}
