/* 好前途 官方网站 —— 纯静态样式表
   · 无任何外部依赖（不引 CDN、不引 Web 字体），只用系统字体栈
   · 移动优先，断点 720px / 960px
   · 颜色取自学生端设计 token（frontend/packages/student/src/styles/tokens.scss） */

:root {
  --ink:        #191b27; /* 主色/深 */
  --accent:     #846ffd; /* 强调紫 */
  --text:       #465069;
  --text-weak:  #999fb5;
  --text-sub:   #5e677e;
  --bg:         #f7f8fb;
  --border:     #e7eaf0;
  --white:      #ffffff;
  --link:       #2979ff;

  --maxw: 1080px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.35; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: 30px; }
h2 { font-size: 24px; }
h3 { font-size: 18px; }
p  { margin: 0 0 1em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ── 顶栏 ───────────────────────────────────────────── */
.site-head {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 19px;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700;
  flex: 0 0 auto;
}
.brand .sub {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-weak);
  margin-left: 2px;
}

.nav-toggle {
  display: block;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 6px 10px;
  font-size: 14px;
  color: var(--text-sub);
  cursor: pointer;
  line-height: 1.4;
}
.site-nav {
  display: none;
  width: 100%;
  padding-bottom: 10px;
}
.site-nav.open { display: block; }
.site-nav a {
  display: block;
  padding: 10px 2px;
  color: var(--text-sub);
  border-top: 1px solid var(--border);
  font-size: 15px;
}
.site-nav a:hover { color: var(--ink); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

@media (min-width: 720px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex !important;
    width: auto;
    padding-bottom: 0;
    gap: 26px;
  }
  .site-nav a { border-top: 0; padding: 0; }
}

/* ── 首屏 ───────────────────────────────────────────── */
.hero {
  background: var(--ink);
  color: #fff;
  padding: 48px 0 52px;
}
.hero h1 { color: #fff; font-size: 28px; margin-bottom: .35em; }
.hero .tagline {
  color: #cfd3e4;
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 1.1em;
}
.hero .lede { color: #a9afc7; max-width: 46em; margin-bottom: 0; }
.hero .pills { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.hero .pills span {
  border: 1px solid #3a3d4f;
  color: #cfd3e4;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px;
}

@media (min-width: 720px) {
  .hero { padding: 76px 0 80px; }
  .hero h1 { font-size: 40px; }
  .hero .tagline { font-size: 20px; }
}

/* ── 版块 ───────────────────────────────────────────── */
section.band { padding: 44px 0; }
section.band.alt { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
section.band > .wrap > h2 { margin-bottom: .2em; }
.band-lede { color: var(--text-sub); max-width: 46em; margin-bottom: 1.6em; }

@media (min-width: 720px) {
  section.band { padding: 64px 0; }
}

/* ── 卡片栅格 ───────────────────────────────────────── */
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid.cols-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) {
  .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px 20px;
}
section.band.alt .card { background: var(--bg); }
.card h3 { margin-bottom: .45em; }
.card p:last-child { margin-bottom: 0; }
.card .kicker {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}

/* 功能条目清单 */
.feature-list { list-style: none; margin: 0; padding: 0; }
.feature-list li {
  padding: 12px 0 12px 22px;
  border-top: 1px solid var(--border);
  position: relative;
}
.feature-list li:first-child { border-top: 0; padding-top: 2px; }
.feature-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 21px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.feature-list li:first-child::before { top: 11px; }
.feature-list b { color: var(--ink); font-weight: 600; }

/* 定义式表格（关于我们 / 联系方式） */
.dl { margin: 0; }
.dl > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}
.dl > div:first-child { border-top: 0; padding-top: 0; }
.dl dt { color: var(--text-weak); font-size: 14px; }
.dl dd { margin: 0; color: var(--ink); font-weight: 500; word-break: break-all; }
@media (min-width: 720px) {
  .dl > div { flex-direction: row; gap: 20px; align-items: baseline; }
  .dl dt { flex: 0 0 130px; }
}

/* 待填占位符 —— 上线前必须由需方替换 */
.todo {
  display: inline-block;
  background: #fff5e6;
  border: 1px dashed #e6a23c;
  border-radius: 6px;
  padding: 0 8px;
  color: #a15c00;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.9;
}

.note {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md);
  padding: 16px 18px;
  color: var(--text-sub);
  font-size: 15px;
}
.note p:last-child { margin-bottom: 0; }

.btn {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 10px 24px;
  font-weight: 600;
  font-size: 15px;
}
.btn:hover { text-decoration: none; opacity: .88; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }

/* 首屏是深色底：主按钮要反过来，ghost 要用白描边 —— 否则深色字压深色底，看不见 */
.hero .btn { background: var(--white); color: var(--ink); }
.hero .btn.ghost { background: transparent; color: #fff; border-color: #5a5d70; }

.cta { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }

/* 步骤条 */
.steps { counter-reset: s; list-style: none; margin: 0; padding: 0; }
.steps li {
  counter-increment: s;
  position: relative;
  padding: 0 0 20px 40px;
  border-left: 1px solid var(--border);
  margin-left: 13px;
}
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before {
  content: counter(s);
  position: absolute;
  left: -13px; top: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.steps b { color: var(--ink); }

/* ── 页脚 ───────────────────────────────────────────── */
.site-foot {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 30px 0 36px;
  font-size: 14px;
  color: var(--text-weak);
}
.site-foot .foot-nav { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 14px; }
.site-foot .foot-nav a { color: var(--text-sub); }
.site-foot .beian { margin: 0; }
.site-foot .beian a { color: var(--text-weak); }
.site-foot .copyright { margin: 6px 0 0; }

/* 跳过导航（无障碍） */
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 8px; top: 8px;
  z-index: 50;
  background: #fff;
  padding: 8px 14px;
  border-radius: var(--r-sm);
}
