/* ============================================================
   pages.css — 子页面共享组件（秋招助手 / 博客 / 简历 / 首页入口）
   复用 design-tokens.css 的变量，与首页视觉/动效一致
   ============================================================ */

/* ---------- 容器 ---------- */
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.wrap-narrow { max-width: 48rem; margin: 0 auto; padding: 0 1.25rem; }
.section-py { padding-top: var(--section-py); padding-bottom: var(--section-py); }
@media (min-width: 1024px) { .section-py { padding-top: var(--section-py-lg); padding-bottom: var(--section-py-lg); } }
.lead { font-size: var(--text-body-lg); color: var(--text-secondary); line-height: 1.8; }
.callout {
  border-left: 3px solid var(--accent);
  background: var(--glass-bg-subtle);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--text-secondary);
  font-size: var(--text-body);
  margin: 1.25rem 0;
}
.pill-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.muted { color: var(--text-secondary); }
.center { text-align: center; }

/* ---------- 子页导航 ---------- */
.subnav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--nav-border);
}
.subnav-inner {
  max-width: 72rem; margin: 0 auto; padding: 0 1rem;
  height: 4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.subnav-brand {
  font-family: var(--font-display); font-weight: 700; font-size: 1.125rem;
  letter-spacing: -0.02em; color: var(--text-primary);
  display: flex; align-items: center; gap: .4rem; text-decoration: none;
}
.subnav-links { display: flex; align-items: center; gap: .15rem; }
.subnav-links a {
  padding: .5rem .9rem; border-radius: 9999px;
  font-size: var(--text-body-sm); font-weight: 600; color: var(--text-secondary);
  text-decoration: none; transition: all .4s cubic-bezier(.32,.72,0,1);
}
.subnav-links a:hover { background: var(--glass-bg); color: var(--text-primary); }
.subnav-links a.active { color: #6366f1; background: rgba(99,102,241,.08); }
.subnav-actions { display: flex; align-items: center; gap: .5rem; }
.subnav-toggle {
  display: none; width: 2.25rem; height: 2.25rem; border-radius: 9999px;
  align-items: center; justify-content: center;
  background: var(--glass-bg); color: var(--text-tertiary); border: none; cursor: pointer;
}
.subnav-menu {
  display: none; position: absolute; top: 4rem; left: 0; right: 0;
  background: var(--nav-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--nav-border); padding: .5rem 1rem; flex-direction: column; gap: .25rem;
}
.subnav-menu.open { display: flex; }
.subnav-menu a { padding: .75rem 1rem; border-radius: 12px; font-weight: 600; color: var(--text-secondary); text-decoration: none; }
.subnav-menu a:hover { background: var(--glass-bg); }
@media (max-width: 760px) {
  .subnav-links { display: none; }
  .subnav-toggle { display: flex; }
}

/* ---------- 滚动揭示（与首页一致） ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.32,.72,0,1), transform .8s cubic-bezier(.32,.72,0,1); }
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Hero（子页） ---------- */
.page-hero { padding: 5rem 0 3rem; position: relative; overflow: hidden; }
.page-hero .eyebrow { margin-bottom: 1rem; }
.page-hero h1 {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em;
  font-size: clamp(2.25rem, 6vw, 3.5rem); color: var(--text-primary); line-height: 1.1; margin-bottom: 1.1rem;
}
.page-hero .lead { max-width: 42rem; }

/* ---------- 通用区块标题 ---------- */
.block-title { font-family: var(--font-display); font-size: var(--text-h1); font-weight: 700; letter-spacing: -0.03em; color: var(--text-primary); display: flex; align-items: center; gap: .6rem; margin-bottom: 1.25rem; }
.block-sub { color: var(--text-secondary); font-size: var(--text-body-lg); margin-bottom: 2rem; max-width: 44rem; }

/* ---------- 统计数字条 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; }
.stat {
  background: var(--card-inner-bg); border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); padding: 1.25rem 1rem; text-align: center; box-shadow: var(--card-shadow);
  transition: all .5s cubic-bezier(.32,.72,0,1);
}
.stat:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-3px); }
.stat .num { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: #6366f1; line-height: 1.1; }
.stat .lbl { font-size: var(--text-caption); color: var(--text-secondary); margin-top: .4rem; }

/* ---------- PRD 时间线 ---------- */
.prd-step { display: grid; grid-template-columns: 2.6rem 1fr; gap: 1rem; position: relative; padding-bottom: 1.75rem; }
.prd-step:last-child { padding-bottom: 0; }
.prd-dot {
  width: 2.6rem; height: 2.6rem; border-radius: 50%; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff;
  font-weight: 700; font-family: var(--font-display); font-size: 1rem;
  box-shadow: 0 4px 16px rgba(99,102,241,.3);
}
.prd-line { position: absolute; left: 1.3rem; top: 2.6rem; bottom: -.25rem; width: 2px; background: linear-gradient(var(--accent), transparent); }
.prd-step:last-child .prd-line { display: none; }
.prd-body { background: var(--card-inner-bg); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); padding: 1.1rem 1.25rem; box-shadow: var(--card-shadow); }
.prd-body h4 { font-family: var(--font-display); font-size: var(--text-h4); font-weight: 700; color: var(--text-primary); margin-bottom: .35rem; }
.prd-body p { color: var(--text-secondary); font-size: var(--text-body); line-height: 1.7; margin: 0; }
.prd-tag { display: inline-block; font-size: var(--text-eyebrow); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #6366f1; margin-bottom: .35rem; }

/* ---------- 架构图 ---------- */
.arch { display: flex; flex-wrap: wrap; align-items: stretch; gap: .75rem; justify-content: center; }
.arch-box {
  flex: 1 1 200px; min-width: 170px;
  background: var(--card-inner-bg); border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); padding: 1.1rem 1.25rem; box-shadow: var(--card-shadow);
}
.arch-box .t { font-family: var(--font-display); font-weight: 700; color: var(--text-primary); font-size: var(--text-body-lg); display: flex; align-items: center; gap: .5rem; }
.arch-box .t i { color: #6366f1; }
.arch-box .d { color: var(--text-secondary); font-size: var(--text-body-sm); margin-top: .4rem; line-height: 1.6; }
.arch-arrow { display: flex; align-items: center; color: var(--accent); font-size: 1.5rem; }
.arch-flow { display: flex; flex-direction: column; gap: .75rem; }

/* ---------- 对比表 ---------- */
.cmp-table { width: 100%; border-collapse: collapse; font-size: var(--text-body); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--glass-border); }
.cmp-table th, .cmp-table td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--divider-color); vertical-align: top; }
.cmp-table th { background: var(--glass-bg-strong); font-weight: 700; color: var(--text-primary); font-family: var(--font-display); font-size: var(--text-body); }
.cmp-table tr:last-child td { border-bottom: none; }
.cmp-table td:first-child { font-weight: 600; color: var(--text-primary); white-space: nowrap; }
.win { color: #22c55e; font-weight: 700; }
.lose { color: var(--text-tertiary); }

/* ---------- 博客卡片 ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.25rem; }
.blog-card-link { text-decoration: none; color: inherit; display: block; }
.blog-card-link .card-inner { padding: 1.4rem; height: 100%; transition: box-shadow .6s cubic-bezier(.32,.72,0,1); }
.blog-card-link:hover .card-inner { box-shadow: var(--card-shadow-hover); }
.blog-card .tag { color: #6366f1; font-size: var(--text-eyebrow); font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.blog-card h3 { font-family: var(--font-display); font-size: var(--text-h3); font-weight: 700; color: var(--text-primary); margin: .6rem 0 .5rem; line-height: 1.3; }
.blog-card p { color: var(--text-secondary); font-size: var(--text-body); line-height: 1.65; }
.blog-card .meta { margin-top: 1rem; font-size: var(--text-caption); color: var(--text-tertiary); }

/* ---------- 下载 CTA ---------- */
.dl-cta {
  display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, rgba(99,102,241,.1), rgba(139,92,246,.07));
  border: 1px solid rgba(99,102,241,.2); border-radius: var(--radius-2xl); padding: 2rem;
}
.dl-cta .txt { max-width: 32rem; }
.dl-cta .txt h3 { font-family: var(--font-display); font-size: var(--text-h3); font-weight: 700; color: var(--text-primary); margin-bottom: .4rem; }
.dl-cta .txt p { color: var(--text-secondary); font-size: var(--text-body); }

/* ---------- 特性栅格 ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.feat {
  background: var(--card-inner-bg); border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); padding: 1.25rem; box-shadow: var(--card-shadow);
  transition: all .5s cubic-bezier(.32,.72,0,1);
}
.feat:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-3px); }
.feat .ic { width: 2.75rem; height: 2.75rem; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: rgba(99,102,241,.1); color: #6366f1; font-size: 1.4rem; margin-bottom: .75rem; }
.feat h4 { font-family: var(--font-display); font-size: var(--text-h4); font-weight: 700; color: var(--text-primary); margin-bottom: .35rem; }
.feat p { color: var(--text-secondary); font-size: var(--text-body-sm); line-height: 1.65; }

/* ---------- 页脚 ---------- */
.site-footer { border-top: 1px solid var(--divider-color); padding: 2.5rem 1rem; text-align: center; color: var(--text-tertiary); font-size: var(--text-caption); margin-top: 3rem; }
.site-footer a { color: var(--text-secondary); text-decoration: none; }
.site-footer a:hover { color: #6366f1; }

/* ---------- 首页新增"作品"入口卡 ---------- */
.work-card { text-decoration: none; color: inherit; display: block; }
.work-card .card-inner { padding: 1.6rem; height: 100%; transition: box-shadow .6s cubic-bezier(.32,.72,0,1), transform .6s; }
.work-card:hover .card-inner { box-shadow: var(--card-shadow-hover); transform: translateY(-4px); }
.work-card .ic { width: 3rem; height: 3rem; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg,#6366f1,#8b5cf6); color: #fff; font-size: 1.5rem; margin-bottom: 1rem; }
.work-card h3 { font-family: var(--font-display); font-size: var(--text-h3); font-weight: 700; color: var(--text-primary); margin-bottom: .4rem; }
.work-card p { color: var(--text-secondary); font-size: var(--text-body); line-height: 1.65; }
.work-card .go { margin-top: 1rem; display: inline-flex; align-items: center; gap: .35rem; color: #6366f1; font-weight: 600; font-size: var(--text-body-sm); }
