/* 汽水音乐 帮助中心 · App 拟真风
 * 复用同一套数据，仅换皮肤与交互。浅色原生 App 观感 + 手机边框。
 */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
:root {
  --brand: #ff2d55; --brand2: #ff5f7e; --ink: #14151a; --sub: #6b7078;
  --line: #eceef1; --bg: #f5f5f7; --card: #fff; --ok: #16a34a; --warn: #e88b12;
}
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: radial-gradient(1200px 800px at 20% -10%, #ffe3ea 0%, #f0eefc 40%, #e8ecf5 100%);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
/* 舞台：手机 + 旁注并排 */
.stage {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  gap: 56px; padding: 32px; flex-wrap: wrap;
}
/* ── 手机外壳 ── */
.phone {
  position: relative; width: 390px; height: 844px; background: #fff;
  border-radius: 54px; box-shadow: 0 0 0 12px #1c1d22, 0 0 0 15px #2c2d33,
    0 40px 90px rgba(30, 20, 50, .38);
  overflow: hidden; display: flex; flex-direction: column;
}
.notch {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 148px; height: 30px; background: #1c1d22; border-radius: 0 0 18px 18px; z-index: 30;
}
.statusbar {
  height: 50px; flex: none; display: flex; align-items: flex-end; justify-content: space-between;
  padding: 0 30px 6px; font-size: 14px; font-weight: 600; z-index: 20; background: var(--bg);
}
.sb-time { letter-spacing: .5px; }
.sb-right { display: inline-flex; align-items: center; gap: 5px; }
.sb-batt { width: 24px; height: 12px; border: 1px solid rgba(0,0,0,.35); border-radius: 3px; padding: 1.5px; position: relative; }
.sb-batt::after { content: ''; position: absolute; right: -3px; top: 3.5px; width: 2px; height: 5px; background: rgba(0,0,0,.35); border-radius: 0 1px 1px 0; }
.sb-batt-fill { display: block; width: 70%; height: 100%; background: #111; border-radius: 1.5px; }
/* ── App 顶栏 ── */
.appbar {
  flex: none; background: var(--bg); padding: 4px 16px 10px; z-index: 15;
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.appbar.scrolled { border-bottom-color: var(--line); }
.ab-big { font-size: 30px; font-weight: 800; letter-spacing: -.5px; padding: 6px 4px 2px; }
.ab-row { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.ab-back {
  width: 34px; height: 34px; border-radius: 50%; background: rgba(120,120,130,.12);
  display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none;
  font-size: 20px; color: var(--brand);
}
.ab-back:active { background: rgba(120,120,130,.24); }
.ab-title { font-size: 17px; font-weight: 700; flex: 1; text-align: center; padding-right: 34px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* ── 屏幕滚动区 ── */
.screen { flex: 1; overflow-y: auto; overflow-x: hidden; background: var(--bg); position: relative;
  -webkit-overflow-scrolling: touch; }
.screen::-webkit-scrollbar { width: 0; }
.view { padding: 4px 16px 24px; animation: slideIn .26s cubic-bezier(.3,.7,.3,1); }
.view.pop { animation: slideBack .26s cubic-bezier(.3,.7,.3,1); }
@keyframes slideIn { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes slideBack { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
/* 搜索框 */
.searchbar { display: flex; align-items: center; gap: 8px; background: rgba(120,120,130,.1);
  border-radius: 12px; padding: 10px 12px; margin: 6px 0 14px; }
.searchbar input { border: 0; background: transparent; outline: none; flex: 1; font-size: 16px; color: var(--ink); }
.searchbar .si { opacity: .45; }
/* 分区标题 */
.sec-title { font-size: 13px; font-weight: 700; color: var(--sub); letter-spacing: .04em;
  margin: 20px 4px 8px; text-transform: uppercase; }
/* 卡片组（iOS 分组表风格） */
.group { background: var(--card); border-radius: 14px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer;
  border-bottom: 1px solid var(--line); position: relative; }
.row:last-child { border-bottom: 0; }
.row:active { background: rgba(120,120,130,.08); }
.row .r-ic { width: 34px; height: 34px; border-radius: 10px; flex: none; display: flex;
  align-items: center; justify-content: center; font-size: 18px; color: #fff; }
.row .r-main { flex: 1; min-width: 0; }
.row .r-q { font-size: 15px; line-height: 1.4; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row .r-sub { font-size: 12px; color: var(--sub); margin-top: 3px; }
.row .r-chev { color: #c4c7cc; font-size: 18px; flex: none; }
.row .r-badge { font-size: 10px; font-weight: 700; color: var(--brand); background: var(--brand-lite,#ffe8ee);
  padding: 2px 6px; border-radius: 6px; flex: none; }
/* 首页 hero */
.hero { background: linear-gradient(135deg, var(--brand), var(--brand2)); border-radius: 20px;
  padding: 22px 20px; color: #fff; margin: 8px 0 4px; box-shadow: 0 10px 24px rgba(255,45,85,.28); }
.hero h2 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.hero p { font-size: 13px; opacity: .92; line-height: 1.5; }
.hero .h-stat { margin-top: 14px; font-size: 12px; opacity: .9; display: flex; gap: 16px; }
.hero .h-stat b { font-size: 18px; display: block; }
/* 分类宫格 */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cat-cell { background: var(--card); border-radius: 14px; padding: 16px 8px; text-align: center;
  cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.cat-cell:active { transform: scale(.96); }
.cat-cell .cc-ic { width: 42px; height: 42px; border-radius: 12px; margin: 0 auto 8px; display: flex;
  align-items: center; justify-content: center; font-size: 22px; color: #fff; }
.cat-cell .cc-name { font-size: 12.5px; font-weight: 600; }
.cat-cell .cc-n { font-size: 11px; color: var(--sub); margin-top: 2px; }
/* ── 文章视图 ── */
.art { padding-top: 6px; }
.art .a-kicker { font-size: 12px; font-weight: 700; color: var(--brand); letter-spacing: .05em; }
.art h1 { font-size: 23px; line-height: 1.35; font-weight: 800; margin: 8px 0 10px; letter-spacing: -.3px; }
.art .a-lede { font-size: 15px; line-height: 1.7; color: var(--sub); margin-bottom: 12px; }
.art .a-meta { font-size: 12px; color: #a2a6ad; margin-bottom: 16px; display: flex; gap: 12px; }
.art .a-content { font-size: 15.5px; line-height: 1.78; color: #2a2c33; }
.art .a-content h2 { font-size: 18px; font-weight: 800; margin: 22px 0 10px; letter-spacing: -.2px; }
.art .a-content p { margin: 10px 0; }
.art .a-content ul, .art .a-content ol { margin: 10px 0; padding-left: 22px; }
.art .a-content li { margin: 6px 0; }
.art .a-content code { background: rgba(120,120,130,.12); padding: 1px 6px; border-radius: 5px;
  font-family: 'SF Mono', Consolas, monospace; font-size: 13px; }
.art .a-content strong { font-weight: 700; }
.table-wrap { overflow-x: auto; margin: 12px 0; border-radius: 10px; border: 1px solid var(--line); }
.art table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.art th, .art td { padding: 9px 11px; text-align: left; border-bottom: 1px solid var(--line); }
.art th { background: #fafafb; font-weight: 700; }
.art tr:last-child td { border-bottom: 0; }
.callout { border-radius: 12px; padding: 13px 15px; margin: 14px 0; font-size: 14px; line-height: 1.65; }
.callout .callout-title { display: block; font-weight: 700; margin-bottom: 4px; }
.callout.info { background: #eef4ff; color: #234; } .callout.info .callout-title { color: #2563eb; }
.callout.warn { background: #fff5e8; color: #4a3312; } .callout.warn .callout-title { color: var(--warn); }
.callout.note { background: #f2fbf4; color: #14351f; } .callout.note .callout-title { color: var(--ok); }
.unverified { background: #f4f4f6; border-left: 3px solid #c4c7cc; border-radius: 0 10px 10px 0;
  padding: 12px 14px; margin: 14px 0; font-size: 13.5px; line-height: 1.65; color: #55585f; }
.unverified .flag { display: inline-block; font-weight: 700; color: #8a8f98; margin-right: 6px; }
.figure { margin: 16px 0; background: #fff; border-radius: 14px; padding: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06); border: 1px solid var(--line); }
.figure svg { display: block; width: 100%; height: auto; border-radius: 8px; }
.figure figcaption { margin-top: 9px; font-size: 12.5px; line-height: 1.55; color: #8a8f98; padding: 0 4px; }
/* 变体快速解答块 */
.quick-ans { background: linear-gradient(135deg, #fff0f4, #fff7f9); border: 1px solid #ffd4de;
  border-radius: 16px; padding: 16px 18px; margin: 6px 0 16px; }
.quick-ans .qa-label { font-size: 11px; font-weight: 800; color: var(--brand); letter-spacing: .08em; }
.quick-ans p { font-size: 16px; line-height: 1.7; color: var(--ink); margin: 8px 0 0; }
.hub-jump { display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: 14px;
  padding: 14px 16px; margin: 8px 0; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.hub-jump:active { background: rgba(120,120,130,.06); }
.hub-jump .hj-main { flex: 1; }
.hub-jump .hj-k { font-size: 11px; color: var(--sub); }
.hub-jump .hj-q { font-size: 14px; font-weight: 600; color: var(--brand); margin-top: 2px; }
.src { margin: 18px 0; font-size: 12.5px; color: var(--sub); }
.src h4 { font-size: 13px; color: var(--ink); margin-bottom: 6px; }
.src a { color: var(--brand); word-break: break-all; }
.rel { margin-top: 18px; }
.rel h4 { font-size: 13px; font-weight: 700; color: var(--sub); margin: 0 4px 8px; text-transform: uppercase; letter-spacing: .04em; }
/* ── 底部 Tab 栏 ── */
.tabbar { flex: none; display: flex; background: rgba(250,250,252,.94); backdrop-filter: blur(20px);
  border-top: 1px solid var(--line); padding: 6px 0 22px; z-index: 20; }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer;
  color: #9297a0; font-size: 10px; font-weight: 500; padding: 4px 0; }
.tab svg { width: 24px; height: 24px; }
.tab.active { color: var(--brand); }
/* 空状态 */
.empty { text-align: center; padding: 60px 20px; color: var(--sub); }
.empty .e-ic { font-size: 44px; margin-bottom: 12px; }
.load-more { text-align: center; padding: 16px; color: var(--brand); font-size: 14px; font-weight: 600; cursor: pointer; }
/* ── 舞台旁注（桌面） ── */
.stage-note { max-width: 340px; }
.stage-note .sn-logo { height: 34px; margin-bottom: 18px; }
.stage-note h1 { font-size: 30px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 14px; color: #1c1d29; }
.stage-note p { font-size: 15px; line-height: 1.75; color: #4b4f5a; margin-bottom: 12px; }
.stage-note .sn-sub a { color: var(--brand); font-weight: 600; text-decoration: none; }
.stage-note .sn-stat { margin-top: 20px; display: flex; gap: 22px; }
.stage-note .sn-stat .s-item b { font-size: 26px; font-weight: 800; color: var(--brand); display: block; }
.stage-note .sn-stat .s-item span { font-size: 12px; color: #6b7078; }
@media (max-width: 900px) {
  .stage { gap: 24px; padding: 16px; }
  .stage-note { max-width: 390px; text-align: center; }
  .stage-note .sn-stat { justify-content: center; }
  .phone { transform: scale(.92); }
}
