/* ============================================================
   防沉迷学习解锁 · 官网样式
   设计原则：简洁、可信、移动端优先
   ============================================================ */

:root {
  --blue: #1e88e5;
  --blue-dark: #1565c0;
  --blue-light: #e3f2fd;
  --green: #2e7d32;
  --text: #212121;
  --text-sub: #5f6368;
  --text-light: #80868b;
  --bg: #ffffff;
  --bg-alt: #f8f9fa;
  --border: #e8eaed;
  --radius: 14px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--blue); text-decoration: none; }
a:hover { opacity: 0.85; }

/* ==================== 按钮 ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 14px rgba(30, 136, 229, 0.32);
}
.btn-primary:hover { background: var(--blue-dark); color: #fff; opacity: 1; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--text-sub);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-alt); opacity: 1; }
.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: 12px; }
.btn-sm { padding: 8px 18px; font-size: 14px; background: var(--blue); color: #fff; }
.btn-sm:hover { color: #fff; }

/* ==================== 导航 ==================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}
.brand:hover { opacity: 1; }
.brand-icon { width: 32px; height: 32px; border-radius: 8px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 15px;
}
.nav-links a { color: var(--text-sub); }
.nav-links a:hover { color: var(--blue); opacity: 1; }

/* ==================== Hero ==================== */
.hero {
  padding: 72px 0 64px;
  background: linear-gradient(170deg, #f5faff 0%, #ffffff 60%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--blue-light);
  color: var(--blue-dark);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 46px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}
.accent { color: var(--blue); }
.lead {
  font-size: 17px;
  color: var(--text-sub);
  line-height: 1.85;
  margin-bottom: 30px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.hero-note { font-size: 14px; color: var(--text-light); }

/* 手机模型 */
.hero-visual { display: flex; justify-content: center; }
.phone-mockup {
  width: 268px;
  background: #1a1a1a;
  border-radius: 32px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
}
.phone-screen {
  background: #fff;
  border-radius: 22px;
  padding: 18px 14px;
  min-height: 420px;
}
.mock-header {
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}
.mock-progress {
  font-size: 11px;
  color: var(--text-light);
  background: var(--bg-alt);
  padding: 8px 10px;
  border-radius: 8px;
  margin-bottom: 14px;
}
.mock-question {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 12px;
  line-height: 1.6;
}
.mock-option {
  font-size: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 11px;
  margin-bottom: 8px;
  color: var(--text-sub);
}
.mock-btn {
  margin-top: 14px;
  background: var(--blue);
  color: #fff;
  text-align: center;
  font-size: 12px;
  padding: 11px;
  border-radius: 999px;
}

/* ==================== 数据条 ==================== */
.stats {
  background: var(--blue-dark);
  padding: 32px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat strong {
  display: block;
  font-size: 34px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.stat span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
}

/* ==================== 通用 section ==================== */
.section { padding: 76px 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
  font-size: 30px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}
.section-sub {
  text-align: center;
  color: var(--text-sub);
  font-size: 16px;
  margin-bottom: 44px;
}

/* ==================== 卡片 ==================== */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card-icon { font-size: 28px; margin-bottom: 14px; }
.card h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.card p { font-size: 15px; color: var(--text-sub); line-height: 1.8; }

/* ==================== 步骤 ==================== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 26px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
}
.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.step h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--text-sub); }

/* ==================== 下载区 ==================== */
.section-download {
  background: linear-gradient(160deg, #e8f3fe 0%, #f7fbff 100%);
}
.download-box {
  text-align: center;
  max-width: 640px;
}
.download-icon {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 22px;
}
.download-box h2 { font-size: 30px; font-weight: 700; margin-bottom: 8px; }
.download-sub { color: var(--text-sub); margin-bottom: 26px; }
.download-note {
  margin-top: 22px;
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
}
.download-meta {
  display: flex;
  justify-content: center;
  gap: 26px;
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--text-sub);
  flex-wrap: wrap;
}
.download-meta span::before {
  content: "·";
  margin-right: 8px;
  color: var(--border);
}
.download-meta span:first-child::before { content: none; margin: 0; }

/* ==================== FAQ ==================== */
.faq {
  max-width: 820px;
  margin: 0 auto;
}
.faq details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.faq summary {
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: -2px;
  font-size: 22px;
  color: var(--text-light);
  font-weight: 300;
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  margin-top: 12px;
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.85;
}

/* ==================== 页脚 ==================== */
.footer {
  background: #1a1a1a;
  color: rgba(255, 255, 255, 0.72);
  padding: 48px 0 32px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-name { color: #fff; font-size: 16px; font-weight: 600; }
.footer-desc { font-size: 13.5px; color: rgba(255, 255, 255, 0.55); }
.footer-links {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  font-size: 14px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-links a { color: rgba(255, 255, 255, 0.72); }
.footer-links a:hover { color: #fff; opacity: 1; }
.footer-legal {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.9;
}
.footer-legal a { color: rgba(255, 255, 255, 0.62); }
.copyright { margin-top: 4px; }

/* ==================== 政策页面 ==================== */
.doc-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}
.doc-page h1 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 8px;
}
.doc-meta {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.doc-page h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 34px 0 12px;
}
.doc-page h3 {
  font-size: 16.5px;
  font-weight: 600;
  margin: 22px 0 8px;
}
.doc-page p, .doc-page li {
  font-size: 15.5px;
  color: var(--text-sub);
  line-height: 1.95;
}
.doc-page ul, .doc-page ol { padding-left: 24px; margin: 10px 0; }
.doc-page li { margin-bottom: 6px; }
.doc-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14.5px;
}
.doc-page th, .doc-page td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
  color: var(--text-sub);
}
.doc-page th { background: var(--bg-alt); font-weight: 600; color: var(--text); }
.doc-page strong { color: var(--text); }
.doc-back {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 14.5px;
}
.doc-toc {
  background: var(--bg-alt);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 20px;
}
.doc-toc ol { margin: 0; }

/* ==================== 响应式 ==================== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .phone-mockup { width: 240px; }
  .hero h1 { font-size: 36px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .nav-links { gap: 16px; font-size: 14px; }
  .nav-links a:not(.btn) { display: none; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .section { padding: 54px 0; }
  .hero { padding: 44px 0 48px; }
  .hero h1 { font-size: 30px; }
  .lead { font-size: 15.5px; }
  .section-title { font-size: 24px; }
  .card { padding: 22px; }
  .btn-lg { padding: 13px 24px; font-size: 15px; width: 100%; }
  .hero-actions { flex-direction: column; }
  .phone-mockup { width: 220px; }
}
