/* style.css — 港校指南 设计系统
   气质：编辑感·可信·温暖·大留白。字体：Newsreader标题+Roboto正文。 */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:opsz,wght@6..72,400;6..72,500;6..72,600;6..72,700;6..72,800&family=Roboto:wght@300;400;500;700&display=swap');

:root {
  --ink: #22302b;          /* 主文字：深绿灰 */
  --muted: #6b7770;        /* 次要文字 */
  --bg: #fbfaf6;           /* 页面底：暖白 */
  --surface: #ffffff;      /* 卡片白 */
  --soft: #f2f0e9;         /* 柔色块 */
  --primary: #1f6f5c;      /* 主色：沉稳蓝绿（信任感） */
  --primary-dark: #175547;
  --primary-soft: #e6f0ec;
  --accent: #a0522d;       /* 点缀：暖砖红（温度/行动）· WCAG AA 白字对比度 5.7:1 */
  --accent-soft: #f5e6d8;
  --border: #e7e3d9;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(34,48,43,.04), 0 8px 24px rgba(34,48,43,.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); background: var(--bg);
  font-family: "Roboto", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.7; font-size: 16px; -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--primary-dark); }
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* 顶栏 */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(251,250,246,.85);
  backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { font-family: "Newsreader", serif; font-weight: 700; font-size: 21px; letter-spacing: 0; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); display: inline-block; }
.nav-links { display: flex; gap: 22px; font-size: 15px; }
.nav-links a { color: var(--muted); font-weight: 600; }
.nav-links a:hover { color: var(--primary); }

/* 按钮 */
.btn { display: inline-block; padding: 14px 24px; border-radius: 10px; font-weight: 700; font-size: 15px;
  border: 0; cursor: pointer; transition: transform .1s ease, background .2s ease, box-shadow .2s ease; }
.btn:hover { box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--primary); border: 1px solid var(--border); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* 英雄区 */
.hero { padding: 64px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-family: "Newsreader", serif; font-size: 44px; font-weight: 700; line-height: 1.15; margin: 0 0 16px; letter-spacing: -.02em; }
.hero h1 .hl { color: var(--primary); }
.hero p.sub { font-size: 18px; color: var(--muted); margin: 0 0 28px; max-width: 30em; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-preview { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); }
.hero-preview .pv-title { font-size: 13px; color: var(--muted); margin-bottom: 10px; }

/* 信任条 */
.trust { display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 18px 0 8px; color: var(--muted); font-size: 14px; }
.trust b { color: var(--ink); }

/* 入口卡 */
.section { padding: 40px 0; }
.section-title { font-family: "Newsreader", serif; font-size: 26px; font-weight: 600; margin: 0 0 6px; }
.section-sub { color: var(--muted); margin: 0 0 24px; }
.entry-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.entry-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; display: block; }
.entry-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(34,48,43,.1); border-color: var(--primary); }
.entry-card .ec-tag { display: inline-block; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 20px; background: var(--primary-soft); color: var(--primary-dark); }
.entry-card h3 { font-family: "Newsreader", serif; font-size: 22px; font-weight: 600; margin: 14px 0 6px; color: var(--ink); }
.entry-card p { color: var(--muted); margin: 0 0 14px; font-size: 15px; }
.entry-card .ec-go { color: var(--accent); font-weight: 700; }

/* 表单/向导 */
.wizard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.wz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; font-size: 14px; }
.field .hint { font-size: 13px; color: var(--muted); font-weight: 400; }
select, input[type=number] { padding: 13px 14px; font-size: 16px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--ink); }
select:focus, input:focus { outline: 2px solid var(--primary-soft); border-color: var(--primary); }
.wz-actions { margin-top: 18px; }

/* 结果卡 */
.results { margin-top: 28px; display: grid; gap: 14px; }
.results h3 { margin: 0 0 4px; }
.school-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); position: relative; transition: transform .15s ease, box-shadow .15s ease; }
.school-card:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(34,48,43,.1); }
.sc-rank { color: var(--primary); font-weight: 800; margin-right: 6px; }
.sc-name { font-weight: 700; font-size: 17px; }
.sc-meta { color: var(--muted); font-size: 14px; margin-left: 4px; }
.score-pill { position: absolute; top: 16px; right: 18px; background: var(--primary); color: #fff; border-radius: 20px; padding: 3px 12px; font-size: 13px; font-weight: 700; }
.badges { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.badge { font-size: 13px; padding: 4px 10px; border-radius: 20px; background: var(--soft); color: var(--muted); }
.badge.free { background: var(--primary-soft); color: var(--primary-dark); }
.reasons { margin: 10px 0 0; padding: 0; list-style: none; }
.reasons li { font-size: 13.5px; color: #4b564f; margin: 3px 0; }
.sc-foot { margin-top: 12px; }
.sc-foot .btn { padding: 7px 14px; font-size: 13px; }

/* 提示条 */
.note { background: var(--accent-soft); border: 1px solid #f2d7bf; color: #8a5626; padding: 10px 14px; border-radius: 10px; font-size: 13.5px; }
.note.info { background: var(--primary-soft); border-color: #cfe4dd; color: var(--primary-dark); }

/* 页脚 */
.footer { border-top: 1px solid var(--border); margin-top: 48px; padding: 28px 0; color: var(--muted); font-size: 13px; }

/* 学校等级徽章（S=金 / A+=紫 / A=蓝 / B=绿 / 无=灰） */
.tier-row { margin: 8px 0 2px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tier-badge { font-weight: 700; font-size: 13px; padding: 3px 11px; border-radius: 20px; }
.tier-badge.s { background: #fbe9d0; color: #9a5b00; border: 1px solid #f0c98a; }
.tier-badge.aplus { background: #ece3f8; color: #5b3fa0; border: 1px solid #d6c9ef; }
.tier-badge.a { background: #e2eef6; color: #2b6a8f; border: 1px solid #c5dced; }
.tier-badge.b { background: #e7f1ea; color: #3a7a55; border: 1px solid #cfe4d6; }
.tier-badge.none { background: #f0efe9; color: #8a8a80; border: 1px solid #e5e2d8; }
.tier-blurb { font-size: 13px; color: var(--muted); }

@media (max-width: 768px) {
  /* 导航：缩小间距 */
  .flex.gap-6.text-\[15px\] { gap: 12px; font-size: 13px; }
  /* 品牌名缩小 */
  .font-serif.text-xl { font-size: 17px; }
}

@media (max-width: 640px) {
  /* 导航：只显示图标+主要链接，隐藏次要链接 */
  .flex.gap-6.text-\[15px\] { gap: 8px; font-size: 12px; overflow-x: auto; white-space: nowrap; flex-wrap: nowrap; }
  .flex.gap-6.text-\[15px\] a { padding: 4px 6px; }
  /* Hero */
  .hero h1, .text-4xl, .md\\:text-5xl { font-size: 28px !important; }
  .hero .text-lg, .text-muted { font-size: 15px; }
  /* 卡片 grid 全变单列 */
  .grid { grid-template-columns: 1fr !important; }
  .grid.md\\:grid-cols-2 { grid-template-columns: 1fr !important; }
  .grid.md\\:grid-cols-\\[1\\.1fr_0\\.9fr\\] { grid-template-columns: 1fr !important; }
  /* 表单 */
  .grid.md\\:grid-cols-2 { grid-template-columns: 1fr !important; }
  /* 统计数字 */
  .stat-item .num { font-size: 26px; }
  /* 报告卡片 */
  .report-grid { grid-template-columns: 1fr !important; }
  /* 间距缩小 */
  .pt-16 { padding-top: 24px; }
  .pb-10 { padding-bottom: 16px; }
  .py-10 { padding-top: 24px; padding-bottom: 24px; }
  .py-12 { padding-top: 24px; padding-bottom: 24px; }
  /* 报告hero */
  .report-hero h1, .hero-title-row h1 { font-size: 24px !important; }
  /* 按钮 */
  .btn, .pw-btn { padding: 12px 18px; font-size: 14px; }
  .paywall-buttons { flex-direction: column; }
  .paywall-buttons .pw-btn { width: 100%; }
}
