/* ==========================================================================
   「AI 学伴」官网 www.studyinai.com —— 全局样式
   设计语言：教育科技 + 温暖可信；品牌主色 indigo→purple 渐变，家长 CTA 金色
   ========================================================================== */

:root {
  --brand: #4f46e5;
  --brand-dark: #4338ca;
  --brand-light: #eef2ff;
  --accent: #7c3aed;
  --gold: #f59e0b;
  --gold-dark: #d97706;
  --gold-light: #fef3c7;
  --ink: #1e293b;
  --muted: #64748b;
  --bg: #f8fafc;
  --line: #e2e8f0;
  --white: #ffffff;
  /* 五模块主题色 */
  --c-blue: #2563eb;
  --c-emerald: #059669;
  --c-purple: #7c3aed;
  --c-amber: #d97706;
  --c-cyan: #0891b2;
  --radius: 14px;
  --shadow: 0 4px 16px rgba(15, 23, 42, .06);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, .12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: none; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ---------------------------------------------------------------- 顶部导航 */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner { display: flex; align-items: center; height: 64px; gap: 24px; }

.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 19px; color: var(--ink); }
.logo-mark {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800;
}

.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 8px 9px; border-radius: 8px; color: #475569;
  font-size: 13.5px; font-weight: 500; white-space: nowrap;
}
.nav-links a:hover { color: var(--brand); background: var(--brand-light); }
.nav-links a.active { color: var(--brand); background: var(--brand-light); }

.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none; margin-left: auto; border: 1px solid var(--line);
  background: #fff; border-radius: 8px; padding: 8px 10px; cursor: pointer; font-size: 18px;
}

/* ---------------------------------------------------------------- 按钮 */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 10px; font-size: 15px; font-weight: 600;
  border: none; cursor: pointer; transition: all .18s ease; line-height: 1.4;
}
.btn-lg { padding: 14px 30px; font-size: 16px; }
.btn-sm { padding: 7px 14px; font-size: 13.5px; border-radius: 8px; }

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(79, 70, 229, .35); }

.btn-gold { background: linear-gradient(135deg, #fbbf24, var(--gold-dark)); color: #fff; }
.btn-gold:hover { filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(245, 158, 11, .4); }

.btn-outline { background: #fff; color: var(--brand); border: 1.5px solid var(--brand); }
.btn-outline:hover { background: var(--brand-light); }

.btn-light { background: rgba(255, 255, 255, .16); color: #fff; border: 1.5px solid rgba(255, 255, 255, .55); }
.btn-light:hover { background: rgba(255, 255, 255, .28); }

.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.btn-ghost:hover { color: var(--ink); border-color: #cbd5e1; }

.btn-danger { background: #fee2e2; color: #b91c1c; }
.btn-danger:hover { background: #fecaca; }

/* ---------------------------------------------------------------- Hero */

.hero {
  background:
    radial-gradient(1000px 480px at 85% -10%, rgba(139, 92, 246, .45), transparent 60%),
    radial-gradient(800px 420px at 10% 110%, rgba(59, 130, 246, .35), transparent 60%),
    linear-gradient(135deg, #312e81 0%, #4f46e5 55%, #6d28d9 100%);
  color: #fff;
  padding: 76px 0 84px;
  position: relative; overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3);
  padding: 6px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; margin-bottom: 20px;
}
.hero h1 { font-size: 42px; line-height: 1.28; font-weight: 800; letter-spacing: .5px; }
.hero h1 .hl { color: #fcd34d; }
.hero-sub { margin-top: 18px; font-size: 17px; color: rgba(255, 255, 255, .88); max-width: 560px; }
.hero-actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 13px; color: rgba(255, 255, 255, .65); }

.hero-shot {
  background: #fff; border-radius: 16px; padding: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  transform: rotate(1.5deg);
}
.hero-shot img { border-radius: 9px; }

/* ---------------------------------------------------------------- 区块 */

.section { padding: 68px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-tint { background: linear-gradient(180deg, #f5f3ff, #eef2ff); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-tag {
  display: inline-block; background: var(--brand-light); color: var(--brand);
  font-size: 13px; font-weight: 700; padding: 5px 14px; border-radius: 999px; margin-bottom: 14px;
}
.section-head h2 { font-size: 30px; font-weight: 800; line-height: 1.35; }
.section-head p { margin-top: 12px; color: var(--muted); font-size: 15.5px; }

/* ---------------------------------------------------------------- 网格与卡片 */

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}

/* 三角色入口卡 */
.role-card { position: relative; overflow: hidden; display: flex; flex-direction: column; }
.role-card .role-icon {
  width: 52px; height: 52px; border-radius: 13px; display: flex; align-items: center;
  justify-content: center; font-size: 26px; margin-bottom: 16px;
}
.role-card h3 { font-size: 20px; font-weight: 800; }
.role-card .role-pain { margin-top: 10px; color: var(--muted); font-size: 14.5px; }
.role-card .role-solve { margin-top: 8px; font-size: 14.5px; color: var(--ink); font-weight: 600; }
.role-card .role-link { margin-top: 18px; font-weight: 700; font-size: 14.5px; }
.role-parent {
  border: 2px solid #fcd34d;
  background: linear-gradient(180deg, #fffbeb, #fff);
  box-shadow: 0 10px 28px rgba(245, 158, 11, .18);
}
.role-corner {
  position: absolute; top: 14px; right: -34px; transform: rotate(45deg);
  background: linear-gradient(135deg, #fbbf24, var(--gold-dark)); color: #fff;
  font-size: 12px; font-weight: 700; padding: 5px 42px;
}

/* 五模块速览卡 */
.module-card { text-align: left; transition: all .18s ease; }
.module-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.module-icon {
  width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center;
  justify-content: center; font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 14px;
}
.module-card h4 { font-size: 16.5px; font-weight: 800; margin-bottom: 6px; }
.module-card p { font-size: 13.5px; color: var(--muted); }

/* 图标块配色 */
.tone-blue    { background: var(--c-blue); }
.tone-emerald { background: var(--c-emerald); }
.tone-purple  { background: var(--c-purple); }
.tone-amber   { background: var(--c-amber); }
.tone-cyan    { background: var(--c-cyan); }
.tone-gold    { background: linear-gradient(135deg, #fbbf24, var(--gold-dark)); }

/* ---------------------------------------------------------------- 数据带 */

.stat-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.stat-item { text-align: center; }
.stat-num {
  font-size: 38px; font-weight: 800; color: var(--brand);
  background: linear-gradient(135deg, var(--brand), var(--accent));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label { margin-top: 4px; color: var(--muted); font-size: 14.5px; }

/* ---------------------------------------------------------------- 产品演示（图文左右） */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split .text h3 { font-size: 24px; font-weight: 800; margin-bottom: 12px; }
.split .text p { color: var(--muted); font-size: 15px; margin-bottom: 10px; }
.shot {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px; box-shadow: var(--shadow-lg);
}
.shot img { border-radius: 8px; }
.shot-cap { text-align: center; font-size: 12.5px; color: var(--muted); padding: 8px 4px 4px; }

.check-list { list-style: none; margin-top: 12px; }
.check-list li {
  padding: 8px 0 8px 32px; position: relative; font-size: 15px; color: var(--ink);
}
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 7px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #dcfce7; color: #16a34a; font-size: 12.5px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

/* 痛点卡 */
.pain-card { display: flex; gap: 14px; align-items: flex-start; }
.pain-emoji { font-size: 26px; flex: none; line-height: 1.4; }
.pain-card h4 { font-size: 16px; font-weight: 800; }
.pain-card p { margin-top: 4px; font-size: 13.5px; color: var(--muted); }

/* 步骤流程 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step-card { position: relative; text-align: center; padding-top: 8px; }
.step-num {
  width: 44px; height: 44px; margin: 0 auto 14px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 800;
}
.step-card h4 { font-size: 17px; font-weight: 800; }
.step-card p { margin-top: 6px; font-size: 14px; color: var(--muted); }
.step-arrow { position: absolute; top: 26px; right: -26px; color: #c7d2fe; font-size: 22px; font-weight: 800; }

/* ---------------------------------------------------------------- 价格卡 */

.price-card { text-align: center; display: flex; flex-direction: column; }
.price-card .price-name { font-size: 18px; font-weight: 800; }
.price-card .price-amount { margin: 14px 0 4px; font-size: 40px; font-weight: 800; color: var(--brand); }
.price-card .price-amount small { font-size: 15px; color: var(--muted); font-weight: 600; }
.price-card .price-desc { color: var(--muted); font-size: 13.5px; min-height: 40px; }
.price-card ul { list-style: none; text-align: left; margin: 18px 0 22px; flex: 1; }
.price-card ul li {
  padding: 7px 0 7px 30px; position: relative; font-size: 14.5px; border-bottom: 1px dashed var(--line);
}
.price-card ul li::before {
  content: "✓"; position: absolute; left: 0; top: 7px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand-light); color: var(--brand); font-size: 12.5px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.price-featured {
  border: 2px solid #fcd34d; position: relative;
  background: linear-gradient(180deg, #fffbeb, #fff);
  box-shadow: 0 14px 36px rgba(245, 158, 11, .2);
}
.price-featured .price-amount { color: var(--gold-dark); }
.price-featured .price-flag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, #fbbf24, var(--gold-dark)); color: #fff;
  font-size: 12.5px; font-weight: 700; padding: 4px 16px; border-radius: 999px; white-space: nowrap;
}

/* ---------------------------------------------------------------- 评价 */

.review-card { display: flex; flex-direction: column; gap: 12px; }
.review-stars { color: #f59e0b; font-size: 15px; letter-spacing: 2px; }
.review-text { font-size: 14.5px; color: #334155; flex: 1; }
.review-meta { display: flex; align-items: center; gap: 10px; }
.review-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px;
}
.review-name { font-weight: 700; font-size: 14px; }
.review-role { font-size: 12.5px; color: var(--muted); }

/* ---------------------------------------------------------------- FAQ / 问答 */

.faq-group { margin-bottom: 30px; }
.faq-group-title { font-size: 18px; font-weight: 800; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.faq-group-title::before { content: ""; width: 5px; height: 20px; border-radius: 3px; background: var(--brand); }

.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.faq-q { padding: 15px 20px; font-weight: 700; font-size: 15px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-q::after { content: "+"; font-size: 20px; color: var(--brand); font-weight: 800; flex: none; }
.faq-item.open .faq-q::after { content: "−"; }
.faq-a { display: none; padding: 0 20px 16px; color: var(--muted); font-size: 14.5px; }
.faq-item.open .faq-a { display: block; }

.qa-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin-bottom: 14px; }
.qa-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.qa-nick { font-weight: 700; font-size: 14.5px; }
.qa-cat { font-size: 12px; color: var(--brand); background: var(--brand-light); padding: 2px 10px; border-radius: 999px; font-weight: 600; }
.qa-time { font-size: 12.5px; color: #94a3b8; margin-left: auto; }
.qa-q-text { font-size: 15px; font-weight: 600; }
.qa-reply {
  margin-top: 12px; background: #f0f9ff; border-left: 3px solid var(--brand);
  padding: 12px 16px; border-radius: 0 10px 10px 0; font-size: 14.5px; color: #334155;
}
.qa-reply .qa-official { display: block; font-size: 12.5px; font-weight: 700; color: var(--brand); margin-bottom: 4px; }
.qa-pending-tag { font-size: 12px; color: var(--gold-dark); background: var(--gold-light); padding: 2px 10px; border-radius: 999px; font-weight: 600; }

/* ---------------------------------------------------------------- 表单 */

.form-card { max-width: 640px; margin: 0 auto; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.form-field label .req { color: #ef4444; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 14.5px; font-family: inherit; background: #fff; color: var(--ink);
  transition: border-color .15s ease;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79, 70, 229, .12);
}
.form-hint { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------------------------------------------------------------- 提示消息 */

.flash-wrap { max-width: 1160px; margin: 14px auto 0; padding: 0 20px; }
.flash {
  padding: 12px 18px; border-radius: 10px; font-size: 14.5px; font-weight: 600; margin-bottom: 10px;
}
.flash.success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.flash.error { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }

/* ---------------------------------------------------------------- 微信二维码 */

.qr-card {
  background: #fff; border: 2px solid #e5e7eb; border-radius: 18px; padding: 26px;
  text-align: center; max-width: 320px; box-shadow: var(--shadow-lg);
}
.qr-card img { width: 200px; height: 200px; margin: 0 auto 14px; border-radius: 10px; }
.qr-card .qr-title { font-weight: 800; font-size: 16.5px; }
.qr-card .qr-sub { margin-top: 6px; font-size: 13px; color: var(--muted); }

.floating-qr {
  position: fixed; right: 20px; bottom: 20px; z-index: 200;
  background: #fff; border-radius: 14px; box-shadow: 0 10px 30px rgba(15, 23, 42, .18);
  padding: 12px; text-align: center; border: 1px solid var(--line); cursor: pointer;
}
.floating-qr img { width: 96px; height: 96px; border-radius: 8px; }
.floating-qr .fq-text { font-size: 12px; color: #475569; font-weight: 700; margin-top: 6px; }

/* CTA 大区块 */
.cta-band {
  background: linear-gradient(135deg, #312e81, #4f46e5 55%, #6d28d9);
  border-radius: 20px; color: #fff; padding: 44px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta-band h3 { font-size: 25px; font-weight: 800; }
.cta-band p { margin-top: 8px; color: rgba(255, 255, 255, .85); font-size: 15px; }
.cta-band .btn-gold { flex: none; }

/* ---------------------------------------------------------------- 页脚 */

.site-footer { background: #0f172a; color: #94a3b8; padding: 52px 0 30px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer-brand .logo { color: #fff; margin-bottom: 12px; }
.footer-brand p { font-size: 13.5px; max-width: 280px; }
.footer-col h4 { color: #e2e8f0; font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.footer-col a { display: block; color: #94a3b8; font-size: 13.5px; padding: 4px 0; }
.footer-col a:hover { color: #fff; }
.footer-qr img { width: 108px; height: 108px; border-radius: 8px; margin-bottom: 8px; }
.footer-qr span { font-size: 12.5px; display: block; }
.footer-bottom {
  margin-top: 36px; padding-top: 20px; border-top: 1px solid #1e293b;
  font-size: 12.5px; text-align: center;
}

/* ---------------------------------------------------------------- 后台 */

.admin-body { background: #f1f5f9; }
.admin-header { background: #0f172a; color: #fff; }
.admin-header .header-inner { height: 56px; }
.admin-nav { display: flex; gap: 6px; margin-left: auto; }
.admin-nav a { color: #cbd5e1; padding: 7px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; }
.admin-nav a:hover, .admin-nav a.active { background: #1e293b; color: #fff; }

.admin-wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 24px auto 0; }
.admin-stat { background: #fff; border-radius: 12px; padding: 18px; border: 1px solid var(--line); }
.admin-stat .num { font-size: 30px; font-weight: 800; color: var(--brand); }
.admin-stat .label { font-size: 13px; color: var(--muted); margin-top: 2px; }

.admin-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin-bottom: 16px; }
.admin-card h3 { font-size: 15.5px; font-weight: 800; margin-bottom: 10px; }

.admin-table { width: 100%; border-collapse: collapse; font-size: 13.5px; background: #fff; }
.admin-table th, .admin-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table th { background: #f8fafc; font-weight: 700; white-space: nowrap; }
.admin-table .row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-table .row-actions form { display: inline; }

.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge-pending { background: var(--gold-light); color: #92400e; }
.badge-done { background: #dcfce7; color: #166534; }
.badge-approved { background: #dbeafe; color: #1d4ed8; }
.badge-answered { background: #dcfce7; color: #166534; }
.badge-hidden { background: #f1f5f9; color: #64748b; }
.badge-public { background: #ede9fe; color: #6d28d9; }

.admin-login {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #312e81, #4f46e5 55%, #6d28d9);
}
.login-card { background: #fff; border-radius: 16px; padding: 36px; width: 360px; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); }
.login-card h2 { font-size: 21px; font-weight: 800; text-align: center; margin-bottom: 22px; }

.admin-inline-reply { margin-top: 8px; padding: 12px; background: #f8fafc; border-radius: 10px; border: 1px dashed var(--line); }

/* ---------------------------------------------------------------- 响应式 */

@media (max-width: 980px) {
  .hero-inner, .split, .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 52px 0 60px; }
  .hero h1 { font-size: 32px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .step-arrow { display: none; }
  .stat-band { grid-template-columns: 1fr; gap: 18px; }
  .cta-band { flex-direction: column; text-align: center; }
  /* 导航链接多，提前到 980px 折叠汉堡菜单 */
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 10px 16px 18px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 12px; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .manual-layout { grid-template-columns: 1fr; }
  .manual-toc { position: static; }
}

@media (max-width: 760px) {
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 10px 16px 18px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 12px; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 27px; }
  .section { padding: 48px 0; }
  .section-head h2 { font-size: 24px; }
  .floating-qr img { width: 76px; height: 76px; }
  .admin-wrap { grid-template-columns: repeat(2, 1fr); }
  .admin-table { font-size: 12px; }
  .admin-table th, .admin-table td { padding: 8px 6px; }
}

/* ---------------------------------------------------------------- 手册 */

.manual-nav { background: var(--brand-light); border-bottom: 1px solid var(--line); }
.manual-nav .container { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 20px; }
.manual-nav a { padding: 7px 14px; border-radius: 8px; font-size: 14px; font-weight: 600; color: #475569; }
.manual-nav a.active { background: var(--brand); color: #fff; }
.manual-nav a:not(.active):hover { background: #e0e7ff; }

.manual-layout { display: grid; grid-template-columns: 220px 1fr; gap: 36px; padding: 36px 20px 60px; }
.manual-toc {
  position: sticky; top: 88px; align-self: start;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px;
}
.manual-toc h4 { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.manual-toc a { display: block; padding: 6px 8px; font-size: 13.5px; color: #475569; border-radius: 6px; line-height: 1.5; }
.manual-toc a:hover { background: var(--brand-light); color: var(--brand); }

.manual-body { min-width: 0; }
.manual-body section { margin-bottom: 40px; scroll-margin-top: 96px; }
.manual-body h2 {
  font-size: 24px; margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 2px solid var(--brand-light);
}
.manual-body p { line-height: 1.85; margin-bottom: 12px; }

.manual-steps { list-style: none; counter-reset: step; margin: 14px 0; }
.manual-steps li {
  counter-increment: step; position: relative;
  padding: 14px 14px 14px 52px; background: #f8fafc;
  border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; line-height: 1.8;
}
.manual-steps li::before {
  content: counter(step); position: absolute; left: 14px; top: 14px;
  width: 26px; height: 26px; border-radius: 50%; background: var(--brand);
  color: #fff; font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}

.tip-box { border-radius: 10px; padding: 12px 16px; margin: 14px 0; font-size: 14.5px; line-height: 1.8; border: 1px solid; }
.tip-ok { background: #f0fdf4; border-color: #bbf7d0; color: #14532d; }
.tip-warn { background: #fffbeb; border-color: #fde68a; color: #78350f; }
