/* =============================================================
 * 不背口诀 官网 - 样式
 * 设计基准：浅蓝底 / 品牌蓝 #1D72F0 / 深藏青 #101F3C
 * 响应式断点：1280 / 1024 / 768 / 390 / 360
 * ============================================================= */

:root {
  --brand: #1d72f0;
  --brand-dark: #1456c4;
  --brand-soft: #eaf2fe;
  --ink: #101f3c;
  --ink-2: #44546b;
  --gray: #7c8ca8;
  --line: #e0e6f0;
  --bg: #ffffff;
  --bg-soft: #f5f8fe;
  --dark: #081226;
  --dark-2: #0d1c33;
  --radius: 16px;
  --shadow-sm: 0 8px 22px rgba(16, 31, 60, .06);
  --shadow-md: 0 18px 44px rgba(16, 31, 60, .1);
  --container: 1200px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans CN", system-ui, -apple-system, "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 { color: var(--brand-dark); }
h1, h2, h3 { line-height: 1.35; margin: 0; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 18px; }
.brand img { height: 46px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: var(--ink-2); font-size: 15px; }
.nav a:hover { color: var(--brand); }
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 14px;
  color: var(--ink-2);
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, #ffffff 0%, #f0f5ff 55%, #e4edfd 100%);
  padding: 76px 0 72px;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 56px;
  align-items: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-soft);
  border: 1px solid #c9defd;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
}
.hero h1 {
  margin-top: 22px;
  font-size: clamp(32px, 4.4vw, 56px);
  letter-spacing: -.5px;
}
.hero-desc {
  margin-top: 20px;
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--ink-2);
  max-width: 34em;
}
.hero-actions { margin-top: 30px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-meta { font-size: 14px; color: var(--gray); }
.hero-visual { display: flex; justify-content: center; }
.hero-banner { width: 100%; max-width: 520px; }
.hero-banner img { width: 100%; height: auto; display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 28px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 12px 26px rgba(29, 114, 240, .32); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); }
.btn[disabled], .btn.is-disabled {
  background: #dde4f2;
  color: #7a89a6;
  box-shadow: none;
  cursor: not-allowed;
}
.btn-light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost { background: rgba(255,255,255,.75); color: var(--brand-dark); border-color: #b9d3fb; }
.btn-ghost:hover { background: #fff; border-color: var(--brand); transform: translateY(-1px); }
.btn-lg { height: 56px; padding: 0 34px; font-size: 17px; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section.alt { background: var(--bg-soft); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.eyebrow { color: var(--brand); font-size: 13px; font-weight: 600; }
.section-head h2 { margin-top: 12px; font-size: clamp(26px, 3vw, 38px); }
.section-head p { margin-top: 14px; color: var(--ink-2); font-size: 16px; }

/* ---------- 截图卡片 ---------- */
.shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.shot-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 22px;
  box-shadow: var(--shadow-sm);
}
.shot-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 17.5;
  border-radius: 22px;
  background: #f2f6fe;
  overflow: hidden;
  border: 1px solid var(--line);
}
.shot-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.shot-fallback {
  display: none;
  position: absolute;
  inset: 0;
  padding: 18px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  background: repeating-linear-gradient(45deg, #eef3fb 0 12px, #e7eef9 12px 24px);
  border: 2px dashed #b9c9e6;
  border-radius: 22px;
  color: #5d7091;
  font-size: 13px;
}
.shot-fallback strong { color: var(--ink); font-size: 14px; }
.shot-fallback code {
  font-size: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 6px;
  word-break: break-all;
}
.shot-frame.is-missing img { display: none; }
.shot-frame.is-missing .shot-fallback { display: flex; }
.shot-card h3 { margin-top: 16px; font-size: 17px; }
.shot-card p { margin-top: 8px; color: var(--ink-2); font-size: 14px; }

/* ---------- 功能网格 ---------- */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}
.feature h3 { font-size: 16px; }
.feature p { margin-top: 8px; color: var(--ink-2); font-size: 14px; }

/* ---------- 免费 / 公益激活 ---------- */
.license { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.license-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px 32px;
  box-shadow: var(--shadow-sm);
}
.license-card.highlight { border-color: #c9defd; background: linear-gradient(180deg, #f4f8ff 0%, #ffffff 100%); }
.license-card h3 { font-size: 21px; }
.license-tag {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-radius: 999px;
  padding: 4px 12px;
}
.license-card ul { margin-top: 18px; display: grid; gap: 10px; }
.license-card li { position: relative; padding-left: 20px; color: var(--ink-2); font-size: 15px; }
.license-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}
.license-note { margin-top: 20px; font-size: 13px; color: var(--gray); }
.license-extra { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line); }
.license-extra h4 { margin: 0 0 8px; font-size: 15px; color: var(--ink); }
.license-extra p { color: var(--ink-2); font-size: 14px; }

/* ---------- 数量条 ---------- */
.counts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: 32px; }
.count {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 14px;
  text-align: center;
}
.count b { display: block; font-size: 24px; }
.count span { font-size: 13px; color: var(--gray); }

/* ---------- 纠错反馈 ---------- */
.feedback-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.feedback-box h3 { font-size: 20px; }
.feedback-box p { margin-top: 10px; color: var(--ink-2); font-size: 15px; }
.feedback-steps { display: grid; gap: 8px; }
.feedback-steps span {
  font-size: 14px;
  color: var(--ink-2);
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 8px 14px;
}

/* ---------- 下载区 ---------- */
.download {
  background: linear-gradient(160deg, #081226 0%, #0d1c33 100%);
  color: #fff;
  padding: 88px 0;
}
.download .eyebrow { color: #6fa8f5; }
.download h2 { font-size: clamp(26px, 3vw, 38px); margin-top: 12px; color: #fff; }
.download p { color: #9fb3d1; margin-top: 14px; max-width: 40em; }
.download-row { margin-top: 34px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.qr-box {
  width: 148px;
  padding: 14px;
  background: #10233f;
  border: 1px solid #1d3457;
  border-radius: 16px;
  text-align: center;
}
.qr-box .qr-img, .qr-box .qr-placeholder {
  width: 120px;
  height: 120px;
  margin: 0 auto;
  border-radius: 8px;
}
.qr-box .qr-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  color: #8ea6c8;
  border: 2px dashed #2a4468;
  background: repeating-linear-gradient(45deg, #0f2039 0 10px, #12263f 10px 20px);
}
.qr-box span { display: block; margin-top: 10px; font-size: 13px; color: #8ea6c8; }
.download-note { margin-top: 22px; font-size: 13px; color: #7c90b0; }
.download-note code { color: #9fb3d1; }

/* ---------- 内测公益码 ---------- */
.beta-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 22px; align-items: stretch; }

/* ---------- 双平台区别 ---------- */
.platform-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.platform-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px 32px;
  box-shadow: var(--shadow-sm);
}
.platform-card h3 { font-size: 20px; }
.platform-card ul { margin-top: 18px; display: grid; gap: 10px; }
.platform-card li { position: relative; padding-left: 20px; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.platform-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  opacity: .55;
}
.platform-note {
  margin-top: 22px;
  padding: 18px 22px;
  background: var(--brand-soft);
  border: 1px solid #c9defd;
  border-radius: var(--radius);
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.8;
}
.mp-qr-box { display: flex; justify-content: center; }
.beta-note, .code-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px 32px;
  box-shadow: var(--shadow-sm);
}
.beta-note h3 { font-size: 19px; }
.beta-note ul { margin-top: 16px; display: grid; gap: 10px; }
.beta-note li { position: relative; padding-left: 20px; color: var(--ink-2); font-size: 15px; }
.beta-note li::before {
  content: "";
  position: absolute;
  left: 0; top: 10px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand);
}
.code-card { border-color: #c9defd; background: linear-gradient(180deg, #f4f8ff 0%, #ffffff 100%); }
.code-hint { margin-top: 14px; color: var(--ink-2); font-size: 14px; }
.code-text {
  margin-top: 10px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border: 1px dashed #9dc2fb;
  border-radius: 12px;
  padding: 14px 16px;
  text-align: center;
  user-select: all;
  word-break: break-all;
}
.btn-copy { margin-top: 16px; width: 100%; }
.btn-copy.is-copied { border-color: #9fe0bd; color: #157a4e; background: #effaf4; }
.code-note { margin-top: 14px; font-size: 13px; color: var(--gray); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; display: grid; gap: 12px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: 18px 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  font-family: inherit;
}
.faq-icon { color: var(--brand); font-size: 18px; flex-shrink: 0; transition: transform .2s ease; }
.faq-item.is-open .faq-icon { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 20px 18px; color: var(--ink-2); font-size: 15px; }
.faq-item.is-open .faq-a { display: block; }

/* ---------- SHA-256 ---------- */
.sha-line {
  margin-top: 18px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #7c90b0;
}
.sha-line span { color: #9fb3d1; font-weight: 600; }
.sha-line code { word-break: break-all; color: #9fb3d1; }

/* ---------- 网盘提取码行 ---------- */
.pwd-line {
  margin-top: 14px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
}
.pwd-line span { color: #9fb3d1; font-weight: 600; }
.pwd-line code {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px dashed rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  padding: 2px 10px;
  font-size: 14px;
  letter-spacing: 1px;
}

/* ---------- 二维码放大层 ---------- */
.qr-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 18, 38, .82);
  padding: 24px;
  cursor: zoom-out;
}
.qr-overlay.is-open { display: flex; }
.qr-overlay img {
  width: min(420px, 80vw);
  max-height: 80vh;
  background: #fff;
  border-radius: 16px;
  padding: 14px;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #8499b0; padding: 60px 0 32px; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); gap: 40px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 18px; }
.footer-brand img { width: 30px; height: 30px; border-radius: 8px; }
.footer-slogan { margin-top: 12px; font-size: 14px; max-width: 24em; }
.footer-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.footer-links h4 { margin: 0 0 12px; color: #fff; font-size: 14px; }
.footer-links a { display: block; color: #8499b0; font-size: 13px; padding: 4px 0; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #16294a;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #6e82a0;
}

/* ---------- 内页 ---------- */
.page-hero { background: var(--bg-soft); padding: 56px 0 48px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(24px, 3vw, 34px); }
.page-hero p { margin-top: 12px; color: var(--ink-2); }
.page-body { padding: 56px 0 80px; }
.page-body h2 { margin-top: 34px; font-size: 20px; }
.page-body h2:first-child { margin-top: 0; }
.page-body p, .page-body li { margin-top: 10px; color: var(--ink-2); }
.page-body ul { display: grid; gap: 8px; margin-top: 12px; }
.page-body li { padding-left: 18px; position: relative; }
.page-body li::before { content: ""; position: absolute; left: 0; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.notice {
  margin-top: 24px;
  background: var(--brand-soft);
  border: 1px solid #c9defd;
  color: var(--brand-dark);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 14px;
}

/* =============================================================
 * 响应式
 * ============================================================= */
@media (max-width: 1280px) {
  :root { --container: 1120px; }
  .features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero { padding: 60px 0 56px; }
  .hero-visual { order: -1; }
  .hero-banner { max-width: 100%; }
  .hero-visual .shot-frame { max-width: 300px; }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .license { grid-template-columns: 1fr; }
  .beta-grid { grid-template-columns: 1fr; }
  .platform-grid { grid-template-columns: 1fr; }
  .counts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feedback-box { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 768px) {
  .nav {
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 10px 0; width: 100%; border-bottom: 1px solid #f0f3f9; }
  .nav-toggle { display: inline-flex; }
  .brand img { height: 40px; }
  .section { padding: 60px 0; }
  .container { padding: 0 20px; }
}

@media (max-width: 560px) {
  .shots { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .download-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 390px) {
  .container { padding: 0 16px; }
  .brand img { height: 36px; }
  .hero h1 { font-size: 30px; }
  .shot-frame { aspect-ratio: 9 / 16; }
  .btn { padding: 0 20px; font-size: 15px; }
}

@media (max-width: 360px) {
  .container { padding: 0 14px; }
  .hero h1 { font-size: 27px; }
  .hero-desc { font-size: 15px; }
  .counts { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr; }
}
