/* ============================================================
 * landing.css — 门户首页（编辑式排版 / 少装饰）
 * ============================================================ */

/* ---------------- 导航 ---------------- */
.site-nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-nav .nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 20px; }
section[id] { scroll-margin-top: 84px; }

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand .logo {
  width: 32px; height: 32px; border-radius: var(--r-sm); flex-shrink: 0;
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 700; line-height: 1;
}
.brand .name { font-size: 16px; font-weight: 700; line-height: 1.25; white-space: nowrap; }
.brand .en { font-family: var(--mono); font-size: 9px; letter-spacing: 1.4px; color: var(--faint); white-space: nowrap; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { font-size: 14px; color: var(--ink-2); padding: 7px 12px; border-radius: var(--r-sm); transition: background .15s, color .15s; }
.nav-links a:hover { color: var(--brand); background: var(--paper-2); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* ---------------- Hero ---------------- */
.hero { background: var(--paper); padding: 68px 0 56px; border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: 1.08fr .92fr; gap: 64px; align-items: center; }

.hero-facts { display: flex; align-items: center; flex-wrap: wrap; row-gap: 4px; gap: 10px; font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .3px; }
.hero-facts > span { white-space: nowrap; }
.hero-facts b { color: var(--brand); font-weight: 600; }
.hero-facts i { font-style: normal; color: var(--line-2); }

.hero h1 { font-size: 46px; line-height: 1.28; font-weight: 700; letter-spacing: -.5px; margin: 20px 0 18px; }
.hero h1 .mark { color: var(--brand); }
.hero .lead { font-size: 15.5px; color: var(--muted); line-height: 1.95; max-width: 520px; }
.hero-actions { display: flex; align-items: center; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero-note { display: flex; align-items: center; gap: 16px; margin-top: 24px; font-size: 12px; color: var(--faint); flex-wrap: wrap; }

/* Hero 右侧：白底目录卡 */
.hero-card { border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--paper); }
.hero-card .hc-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.hero-card .hc-head .t { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.hero-card .hc-head .sample { font-family: var(--mono); font-size: 9px; letter-spacing: .5px; font-weight: 500; color: var(--faint); border: 1px solid var(--line-2); border-radius: var(--r-xs); padding: 1px 5px; }
.hero-card .hc-head .s { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.hero-card .hc-prog { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.hero-card .hc-prog .row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.hero-card .hc-prog .n { font-family: var(--mono); font-size: 26px; font-weight: 600; color: var(--ink); }
.hero-card .hc-prog .n small { font-size: 12px; color: var(--faint); font-weight: 400; }
.hero-card .hc-prog .s { font-size: 12px; color: var(--muted); }
.hero-card .hc-item { display: flex; align-items: center; gap: 12px; padding: 13px 20px; border-bottom: 1px solid var(--paper-2); font-size: 13px; }
.hero-card .hc-item:last-child { border-bottom: none; }
.hero-card .hc-item .no { font-family: var(--mono); font-size: 11px; color: var(--faint); width: 40px; flex-shrink: 0; }
.hero-card .hc-item .nm { color: var(--ink-2); }
.hero-card .hc-item .st { margin-left: auto; font-size: 11px; color: var(--muted); }
.hero-card .hc-item .st.done { color: var(--ok); }
.hero-card .hc-item .st.go { color: var(--brand); }

/* ---------------- 数据条 ---------------- */
.stat-strip { border-bottom: 1px solid var(--line); }
.stat-strip .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item { padding: 24px 20px; border-right: 1px solid var(--line); }
.stat-item:first-child { padding-left: 0; }
.stat-item:last-child { border-right: none; }
.stat-item .v { font-family: var(--mono); font-size: 28px; font-weight: 600; line-height: 1.2; }
.stat-item .l { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ---------------- 区块 ---------------- */
.section { padding: 72px 0; }
.section.tint { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 34px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head .eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 1px;
  color: var(--faint); margin-bottom: 10px; display: block;
}
.section-title { font-size: 27px; font-weight: 700; letter-spacing: -.3px; line-height: 1.4; }
.section-sub { color: var(--muted); font-size: 14px; margin-top: 8px; max-width: 600px; line-height: 1.85; }
.section-head.center { flex-direction: column; align-items: flex-start; }

/* ---------------- 分类 ---------------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cat-card {
  padding: 20px 22px; display: flex; flex-direction: column; gap: 8px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color .16s, background .16s;
}
.cat-card:hover { border-color: var(--brand); }
.cat-card .ct-top { display: flex; align-items: center; gap: 9px; }
.cat-card .ct-top .no { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.cat-card h3 { font-size: 16px; font-weight: 700; }
.cat-card p { font-size: 13px; color: var(--muted); line-height: 1.8; }
.cat-card .ct-foot { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--faint); margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--paper-2); }
.cat-card .arrow { margin-left: auto; color: var(--brand); font-family: var(--mono); }

/* ---------------- 课程卡（门户与工作台共用结构） ---------------- */
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.course-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  display: flex; flex-direction: column; padding: 18px 20px 16px;
  border-top: 2px solid var(--line-2);
  transition: border-color .16s, background .16s;
}
.course-card:hover { border-color: var(--brand); border-top-color: var(--brand); }
.cc-top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.cc-top .no { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.cc-top .cat { font-size: 11px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.cc-top .lvl { margin-left: auto; font-size: 11px; color: var(--faint); }
.cc-body { display: flex; flex-direction: column; flex: 1; }
.cc-body h3 { font-size: 16px; font-weight: 700; line-height: 1.5; }
.cc-body .sub { font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.8; flex: 1; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.cc-meta { display: flex; align-items: center; gap: 12px; margin-top: 14px; font-size: 11.5px; color: var(--faint); font-family: var(--mono); }
.cc-prog { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--paper-2); }
.cc-prog .pl { display: flex; justify-content: space-between; font-size: 11px; color: var(--faint); margin-bottom: 7px; }
.cc-prog .pl b { font-family: var(--mono); font-weight: 500; color: var(--muted); }
.cc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--paper-2); }
.cc-foot .go { font-size: 12px; font-weight: 600; color: var(--brand); }

/* ---------------- 学习闭环 ---------------- */
.loop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.loop-card { padding-top: 16px; border-top: 1px solid var(--line-2); }
.loop-card .no { font-family: var(--mono); font-size: 11px; color: var(--brand); }
.loop-card h3 { font-size: 15px; font-weight: 700; margin: 10px 0 8px; }
.loop-card p { font-size: 13px; color: var(--muted); line-height: 1.85; }

/* ---------------- 路径 ---------------- */
.path-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.path-card { padding: 22px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; gap: 12px; }
.path-card .pc-top { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.path-card h3 { font-size: 16px; font-weight: 700; display: flex; align-items: baseline; gap: 10px; }
.path-card h3 .no { font-family: var(--mono); font-size: 11px; color: var(--faint); font-weight: 400; }
.path-card .pc-weeks { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.path-card .pc-desc { font-size: 13px; color: var(--muted); line-height: 1.85; }
.path-card .pc-steps { display: flex; flex-wrap: wrap; gap: 6px; }
.path-card .pc-steps span { font-size: 11px; color: var(--ink-2); background: var(--paper-2); border: 1px solid var(--line); padding: 3px 8px; border-radius: var(--r-xs); }
.path-card .pc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--paper-2); font-size: 12px; }
.path-card .pc-foot .aud { color: var(--faint); }
.path-card .pc-foot a { color: var(--brand); font-weight: 600; }

/* ---------------- CTA ---------------- */
.cta-wrap { padding: 24px 0 80px; }
.cta { background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: 48px 40px; }
.cta .c-in { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { font-size: 26px; font-weight: 700; letter-spacing: -.2px; }
.cta p { color: #a6aeb8; margin-top: 10px; font-size: 14px; max-width: 520px; line-height: 1.85; }
.cta .btn-primary { background: #fff; color: var(--ink); }
.cta .btn-primary:hover { background: #e9edee; }
.cta .c-no { font-family: var(--mono); font-size: 11px; color: #6f7883; letter-spacing: 1px; margin-bottom: 14px; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { font-size: 38px; }
  .hero-card { max-width: 560px; }
  .cat-grid, .course-grid { grid-template-columns: repeat(2, 1fr); }
  .loop-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
}
@media (max-width: 720px) {
  .hero { padding: 36px 0 40px; }
  .hero h1 { font-size: 30px; letter-spacing: -.3px; margin: 16px 0 14px; }
  .hero .lead { font-size: 14px; }
  .hero-card { display: none; }
  .nav-inner { gap: 10px; }
  .brand .logo { width: 30px; height: 30px; font-size: 16px; }
  .brand .name { font-size: 15px; }
  .brand .en { display: none; }
  .nav-actions .btn-soft { display: none; }
  .nav-actions .btn { padding: 8px 14px; font-size: 13px; }
  .section { padding: 48px 0; }
  .section-title { font-size: 22px; }
  .cat-grid, .course-grid, .path-grid { grid-template-columns: 1fr; }
  .loop-grid { grid-template-columns: 1fr; gap: 20px; }
  .stat-strip .container { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-bottom: 1px solid var(--line); padding: 18px 12px; }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3), .stat-item:nth-child(4) { border-bottom: none; }
  .stat-item:first-child { padding-left: 12px; }
  .stat-item .v { font-size: 24px; }
  .cta { padding: 32px 24px; }
  .cta h2 { font-size: 22px; }
  .container { padding: 0 18px; }
}
@media (max-width: 360px) {
  .hero-facts { gap: 8px; }
  .hero-facts i { display: none; }
  .section-title { font-size: 20px; }
  .hero h1 { font-size: 27px; }
}
