/* 屏卫PRO 官网 — 全站样式
   部署位置：gamequ.com/pingwei-pro/
   ⚠️ 所有资源相对引用（assets/…），勿改为根路径。
   配色与字体**刻意对齐 gamequ.com 总馆**（暖纸底 + 楷体标题 + 白卡细线），
   强调色改用屏卫自己的品牌色（墨绿为主 + 朱砂为印，与 App 的 Pingwei/Design/Palette.swift
   同值）—— 让这一页看起来是「同一个馆里的一间店」，而这间店有自己的落款。 */

:root {
  /* 馆内统一色板（与 gamequ.com:root 同值） */
  --bg: #f5f5e6;
  --bg-alt: #edebd9;
  --ink: #38290f;
  --ink-2: #6d5f4c;
  --ink-3: #8a7a68;
  --card: #ffffff;
  --line: #e4dcc8;
  --gate: #1c2a22;

  /* 屏卫品牌色（与 App 设计层同值）
     墨绿 = 主色，铺场子，随便用；朱砂 = 限量色，只标"家长此刻的动作"，
     一页最多一处 —— 一旦到处都用，它就只剩装饰红。 */
  --accent: #26382e;
  --accent-2: #3f5a49;
  --grad: linear-gradient(135deg, #26382e 0%, #3f5a49 100%);
  /* 深底上的品牌字（hero 大标题那半句）：墨绿压在墨绿上看不见，得反过来。 */
  --grad-dark: linear-gradient(135deg, #d8e6da 0%, #8fc7a8 100%);
  --seal: #b0452f;
  --seal-wash: #f7e6e0;
  --ok: #3f6b4a;
  --warn: #9a6b25;

  --radius: 16px;
  --shadow: 0 8px 24px rgba(56, 41, 15, .07);
  --shadow-lg: 0 20px 50px rgba(56, 41, 15, .14);
  --serif: "Kaiti SC", "STKaiti", "KaiTi", "Songti SC", "STSong", "PingFang SC", sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
          "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
}
h1, h2, h3, .kai { font-family: var(--serif); letter-spacing: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: min(1120px, 92%); margin: 0 auto; }
/* 网格子项默认 min-width:auto，会让「手机示意」把整列撑宽 —— 统一压成 0 */
.hero-grid > *, .grid > *, .steps > *, .bounds > * { min-width: 0; }

/* ===== 顶部导航（与总馆一致：纸色半透明 + 细线） ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 245, 230, .93);
  backdrop-filter: saturate(1.3) blur(10px);
  -webkit-backdrop-filter: saturate(1.3) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 28px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand img { width: 30px; height: 30px; }
.brand .name { font-family: var(--serif); font-size: 20px; font-weight: 700; }
.brand .pro {
  font-family: var(--sans); font-size: 10.5px; font-weight: 700; letter-spacing: 1px;
  background: var(--grad); color: #fff; padding: 2px 8px; border-radius: 999px;
  vertical-align: 2px;
}
.nav-links { display: flex; align-items: center; gap: 24px; margin-left: auto; font-size: 15px; }
.nav-links a { color: var(--ink-2); transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  background: var(--grad); color: #fff !important;
  padding: 7px 18px; border-radius: 999px; font-weight: 600; font-size: 14.5px;
}
@media (max-width: 640px) { .nav-links a:not(.nav-cta) { display: none; } }

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(900px 460px at 78% -12%, rgba(63, 90, 73, .40), transparent 62%),
    radial-gradient(820px 500px at 10% 112%, rgba(176, 69, 47, .16), transparent 62%),
    var(--gate);
  color: #fff;
  padding: 78px 0 88px;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 56px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: #d3e2d6;
  border: 1px solid rgba(143, 199, 168, .36);
  background: rgba(143, 199, 168, .1);
  padding: 5px 15px; border-radius: 999px; margin-bottom: 20px;
}
.hero-badge::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: #8fc7a8; box-shadow: 0 0 8px rgba(143, 199, 168, .8);
}
.hero h1 { font-size: clamp(30px, 4.6vw, 46px); line-height: 1.3; font-weight: 700; }
.hero h1 .grad {
  background: var(--grad-dark); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .sub { margin-top: 18px; font-size: 17.5px; color: rgba(255, 255, 255, .8); max-width: 34em; }
.hero .facts { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero .facts span {
  font-size: 13.5px; color: rgba(255, 255, 255, .87);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  padding: 6px 14px; border-radius: 999px;
}
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 30px; border-radius: 999px;
  font-size: 16px; font-weight: 600; cursor: pointer;
  border: 1px solid transparent; transition: transform .12s, box-shadow .12s, background .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 24px rgba(38, 56, 46, .26); }
.btn-primary:hover { box-shadow: 0 10px 30px rgba(63, 90, 73, .42); }
.btn-ghost { border-color: rgba(255, 255, 255, .3); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ink:hover { background: #4a3818; }
.btn[aria-disabled="true"] { opacity: .6; cursor: default; }

/* ===== Hero 手机示意（纯 CSS 画，不塞系统截图） ===== */
.stage { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; perspective: 1200px; }
.phone {
  width: 210px; border-radius: 38px; padding: 10px;
  background: linear-gradient(160deg, #34463c, #171f1b);
  box-shadow: 0 26px 60px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .09);
}
.phone .screen {
  border-radius: 30px; overflow: hidden; background: #fbfaf3;
  aspect-ratio: 9 / 19.2; position: relative; padding: 40px 13px 46px;
}
.phone.small { transform: scale(.88) translateY(14px); }
.phone .notch {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 78px; height: 18px; border-radius: 999px; background: #171f1b;
}
.mini-card {
  background: #fff; border: 1px solid #eae4d4; border-radius: 12px;
  padding: 10px 11px; margin-bottom: 9px;
  box-shadow: 0 2px 6px rgba(56, 41, 15, .05);
}
.mini-card .t { font-size: 11.5px; font-weight: 700; color: #2f2410; }
.mini-card .d { font-size: 10px; color: #6d5f4c; margin-top: 2px; line-height: 1.5; }
.mini-pill {
  display: inline-block; font-size: 9px; font-weight: 600;
  padding: 2px 8px; border-radius: 999px; margin-top: 6px;
}
.pill-ok { background: #e3f5ea; color: var(--ok); }
.pill-grad { background: var(--grad); color: #fff; }
.pill-warn { background: #fbeadc; color: var(--warn); }
.phone .shieldbar {
  margin-top: 4px; border-radius: 12px; padding: 12px 11px; text-align: center;
  background: linear-gradient(135deg, rgba(38, 56, 46, .05), rgba(38, 56, 46, .11));
  border: 1px solid rgba(38, 56, 46, .22);
}
.phone .shieldbar .t { font-size: 12px; font-weight: 800; color: var(--accent); }
.phone .shieldbar .d { font-size: 10px; color: #55603f; margin-top: 3px; }

/* 手机示意里那条「一天刻度尺」—— 与 App 是同一个母题：
   墨绿实心 = 不能玩的那几小时（跨午夜是两段），朱砂针 = 此刻，朱砂圈 = 恢复时刻。
   时刻按 24 小时铺满整条：21:00 → 87.5%，7:00 → 29.17%。 */
.ruler { position: relative; height: 16px; margin: 8px 0 4px; }
.ruler .track {
  position: absolute; left: 0; right: 0; top: 3px; height: 10px;
  border-radius: 3px; background: #efecdd;
}
.ruler .seg { position: absolute; top: 3px; height: 10px; border-radius: 3px; background: var(--accent); }
.ruler .seg.eve { left: 87.5%; width: 12.5%; }
.ruler .seg.morn { left: 0; width: 29.17%; }
.ruler .needle { position: absolute; top: 0; left: 91.67%; width: 1.5px; height: 16px; background: var(--seal); }
.ruler .recover {
  position: absolute; top: 4px; left: 29.17%; width: 8px; height: 8px; margin-left: -4px;
  border: 1.5px solid var(--seal); border-radius: 50%;
}
.phone .tab {
  position: absolute; bottom: 10px; left: 18px; right: 18px; height: 30px;
  border-radius: 999px; background: rgba(28, 42, 34, .055);
  border: 1px solid #eae4d4;
  display: flex; align-items: center; justify-content: space-around;
  font-size: 13px; color: #a9a08c;
}

/* ===== 区块 ===== */
section.block { padding: 76px 0; }
section.block.alt { background: var(--bg-alt); }
.sec-head { max-width: 660px; margin-bottom: 42px; }
.sec-head .kicker {
  font-family: var(--sans); font-size: 12.5px; font-weight: 700; letter-spacing: 3px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-transform: uppercase;
}
.sec-head h2 { font-size: clamp(24px, 3.2vw, 33px); line-height: 1.45; margin-top: 10px; font-weight: 700; }
.sec-head p { margin-top: 12px; color: var(--ink-2); font-size: 16px; }

.grid { display: grid; gap: 18px; }
.grid.feat { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid.feat { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid.feat { grid-template-columns: 1fr; } }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px; transition: box-shadow .18s, transform .18s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card .ico {
  width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(38, 56, 46, .05), rgba(38, 56, 46, .10));
}
.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--ink-2); line-height: 1.72; }
.card.wide { grid-column: span 2; }
/* 收尾那张铺满整行，避免 4 列网格末尾留半行空白 */
.card.full { grid-column: 1 / -1; }
@media (max-width: 560px) { .card.wide, .card.full { grid-column: span 1; } }

/* 三步 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; }
.step .num {
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 18px; margin-bottom: 16px;
}
.step h3 { font-size: 17.5px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--ink-2); }

/* 诚实的边界 */
.bounds { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 860px) { .bounds { grid-template-columns: 1fr; } }
.bound { border-radius: var(--radius); padding: 24px 22px; font-size: 14.5px; }
.bound.yes { background: #eef7ef; border: 1px solid #cbe4d0; }
.bound.no { background: #fbf1e6; border: 1px solid #ecd9bf; }
.bound h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 12px; }
.bound ul { list-style: none; }
.bound li { padding: 5px 0 5px 26px; position: relative; color: #4a3c24; line-height: 1.66; }
.bound.yes li::before { content: "✓"; position: absolute; left: 2px; color: var(--ok); font-weight: 800; }
.bound.no li::before { content: "—"; position: absolute; left: 2px; color: var(--warn); font-weight: 800; }

/* FAQ */
details.faq {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 0 22px; margin-bottom: 12px;
}
details.faq summary {
  cursor: pointer; list-style: none;
  font-family: var(--serif); font-weight: 700; font-size: 16.5px; padding: 18px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; font-family: var(--sans); font-size: 22px; font-weight: 400;
  color: var(--accent); transition: transform .2s;
}
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq .body { padding: 0 0 20px; color: var(--ink-2); font-size: 14.5px; }
details.faq .body a { color: #2f5a45; text-decoration: underline; }
details.faq[open] { box-shadow: var(--shadow); }

/* 下载 / 收尾带 */
.cta-band {
  background:
    radial-gradient(700px 380px at 84% 18%, rgba(63, 90, 73, .40), transparent 62%),
    radial-gradient(700px 380px at 8% 92%, rgba(176, 69, 47, .14), transparent 62%),
    var(--gate);
  color: #fff; text-align: center; padding: 78px 0;
}
.cta-band h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 700; }
.cta-band p { margin-top: 14px; color: rgba(255, 255, 255, .75); font-size: 16px; }
.cta-band .actions { margin-top: 32px; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.cta-band .note { margin-top: 12px; color: rgba(255, 255, 255, .55); font-size: 13.5px; }

/* ===== 页脚（与总馆 /pingwei/ 同一套写法） ===== */
footer { background: var(--bg); border-top: 1px solid var(--line); padding: 34px 0 40px; font-size: 13.5px; color: var(--ink-3); }
.foot-lead { font-size: 15px; color: var(--ink); margin-bottom: 10px; }
.foot-owner a, .foot-contact a, .foot-links a { text-decoration: underline; text-underline-offset: 3px; }
.foot-owner a:hover, .foot-contact a:hover, .foot-links a:hover { color: var(--ink); }
.foot-contact { margin-top: 4px; }
.foot-links { margin-top: 10px; }
.foot-links span { opacity: .4; margin: 0 4px; }

/* ===== 帮助页 ===== */
.page-hero { background: var(--gate); color: #fff; padding: 56px 0 52px; }
.page-hero h1 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 700; }
.page-hero p { margin-top: 12px; color: rgba(255, 255, 255, .75); max-width: 44em; }
.guide { counter-reset: gstep; }
.gstep { display: grid; grid-template-columns: 52px 1fr; gap: 20px; padding: 28px 0; border-bottom: 1px dashed var(--line); }
.gstep .gnum {
  counter-increment: gstep;
  width: 46px; height: 46px; border-radius: 13px;
  background: var(--grad); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 19px; font-weight: 800;
}
.gstep .gnum::before { content: counter(gstep); }
.gstep h3 { font-size: 18.5px; font-weight: 700; margin-bottom: 8px; }
.gstep .desc { font-size: 15px; color: var(--ink-2); }
.gstep .desc ul { margin: 10px 0 0 1.2em; }
.gstep .desc li { margin: 4px 0; }
.tip { margin-top: 14px; background: #eef7ef; border: 1px solid #cbe4d0; border-radius: 12px; padding: 12px 16px; font-size: 13.5px; color: #3f5a45; }
.tip b { color: #24462f; }
.tip.warn { background: #fbf1e6; border-color: #ecd9bf; color: #7d4a15; }
.tip.warn b { color: #63380c; }

table.trouble { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.trouble th, table.trouble td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.trouble th { background: var(--bg-alt); font-weight: 700; white-space: nowrap; }
table.trouble td:first-child { font-weight: 600; white-space: nowrap; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }

/* ===== 法务页 ===== */
.legal { max-width: 820px; }
.legal h2 { font-size: 21px; font-weight: 700; margin: 38px 0 14px; }
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { font-size: 16.5px; font-weight: 700; margin: 20px 0 8px; }
.legal p, .legal li { font-size: 15px; color: var(--ink-2); line-height: 1.9; }
.legal ul { margin: 10px 0 10px 1.3em; }
.legal li { margin: 3px 0; }
.legal strong { color: var(--ink); }
.legal .meta { color: var(--ink-3); font-size: 13.5px; margin-top: 34px; }
.legal .contact-box {
  margin-top: 14px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px;
}
.legal .contact-box div { font-size: 14.5px; color: var(--ink-2); padding: 3px 0; }
.legal .contact-box b { color: var(--ink); font-weight: 700; font-family: var(--sans); }
.legal .contact-box .wechat-qr { margin: 10px 0 4px; text-align: center; }
.legal .contact-box .wechat-qr img {
  width: 200px; height: auto; margin: 0 auto;
}
.legal .contact-box .wechat-qr figcaption {
  font-size: 13px; color: var(--ink-3); padding-top: 6px;
}

::selection { background: rgba(143, 199, 168, .45); }

/* ==========================================================================
   响应式（一律放在文件末尾）
   ⚠️ 媒体查询不加权重 —— 写在基础规则之前会被同选择器的后续基础规则盖掉。
   ========================================================================== */

/* 平板 / 窄窗口：hero 塌成单列
   （阈值取 1100 而非 900 —— 两栏时右列只有约 0.44 宽，扛不住两部手机并排） */
@media (max-width: 1100px) {
  .hero { padding: 54px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 42px; }
  .stage { gap: 16px; }
}

/* 手机：示意同步缩小，避免顶出横向滚动 */
@media (max-width: 560px) {
  .phone { width: 152px; border-radius: 30px; padding: 8px; }
  .phone.small { transform: none; }
  .phone .screen { border-radius: 24px; padding: 32px 9px 42px; }
  .phone .notch { width: 56px; height: 13px; top: 9px; }
  .mini-card { padding: 8px 9px; margin-bottom: 7px; }
  .mini-card .t { font-size: 10.5px; }
  .mini-card .d { font-size: 8.8px; }
  .mini-pill { font-size: 8.2px; padding: 1px 6px; }
  .phone .shieldbar { padding: 9px 8px; }
  .phone .shieldbar .t { font-size: 10.5px; }
  .phone .shieldbar .d { font-size: 8.8px; }
  .phone .tab { left: 12px; right: 12px; height: 24px; font-size: 11px; }
}
