/* ============================================================
   自媒体工作台 · 样式
   设计基调：干净的暖白底 + 靛蓝主色 + 琥珀强调（成长感）
   目标用户是刚起步的创作者，所以不做得冷冰冰，也不做得花哨
   ============================================================ */

:root {
  /* —— 主色：靛蓝 —— */
  --brand: #5451E8;
  --brand-600: #4644D4;
  --brand-700: #3A38B8;
  --brand-soft: #EDEDFF;
  --brand-glow: rgba(84, 81, 232, .18);

  /* —— 强调：琥珀（成就 / 成长 / 高亮） —— */
  --amber: #FF9F1C;
  --amber-soft: #FFF4E4;

  /* —— 中性 —— */
  --bg: #F6F7FB;
  --bg-sunk: #EFF1F7;
  --card: #FFFFFF;
  --ink: #14161F;
  --ink2: #565C6E;
  --ink3: #8E94A6;
  --ink4: #B4B9C7;
  --line: #EBEDF4;
  --line-2: #F3F4F9;

  /* —— 平台色 —— */
  --dy: #FE2C55;
  --xhs: #FF2442;
  --sph: #07C160;

  /* —— 语义色 —— */
  --warn: #F5A524;
  --danger: #F0375B;
  --ok: #10A37F;
  --info: #4D7CFE;

  /* —— 圆角 —— */
  --r-xs: 8px;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 18px;
  --r-xl: 22px;

  /* —— 阴影（分层，越往上越"浮起"）—— */
  --sh-1: 0 1px 2px rgba(20, 22, 31, .04), 0 1px 3px rgba(20, 22, 31, .03);
  --sh-2: 0 1px 2px rgba(20, 22, 31, .04), 0 4px 14px rgba(20, 22, 31, .05);
  --sh-3: 0 4px 12px rgba(20, 22, 31, .07), 0 12px 32px rgba(20, 22, 31, .07);
  --sh-brand: 0 4px 14px rgba(84, 81, 232, .28);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  padding-bottom: calc(80px + env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#app { max-width: 720px; margin: 0 auto; min-height: 100vh; }

/* 数字统一等宽，统计不会跳动 */
b, .grow-stats b, .kv .v, .tag { font-variant-numeric: tabular-nums; }

/* ============ 顶部栏 ============ */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 247, 251, .86);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  padding: calc(12px + env(safe-area-inset-top)) 16px 10px;
  border-bottom: 1px solid var(--line);
}
.topbar h1 {
  margin: 0; font-size: 21px; font-weight: 800;
  letter-spacing: -.4px; line-height: 1.25;
}
.topbar .sub { font-size: 12.5px; color: var(--ink3); margin-top: 3px; letter-spacing: .1px; }

.page { padding: 14px 14px 24px; }

/* ============ 卡片 ============ */
.card {
  background: var(--card); border-radius: var(--r-lg);
  padding: 15px; box-shadow: var(--sh-2); margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, .8);
}
.sec-title {
  font-size: 12.5px; font-weight: 800; color: var(--ink3);
  margin: 20px 4px 9px; letter-spacing: .6px; text-transform: uppercase;
  display: flex; align-items: center; gap: 6px;
}
.sec-title:first-child { margin-top: 4px; }
.sec-title::before {
  content: ''; width: 3px; height: 12px; border-radius: 2px;
  background: var(--brand); opacity: .55;
}
.muted { color: var(--ink3); font-size: 13px; }

/* ============ 按钮 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--brand); color: #fff; border: 0; border-radius: var(--r);
  padding: 12px 16px; font-size: 14.5px; font-weight: 700; cursor: pointer;
  font-family: inherit; letter-spacing: .1px;
  min-height: 46px; line-height: 1.35; white-space: nowrap;
  box-shadow: var(--sh-brand);
  transition: transform .12s var(--ease), box-shadow .12s var(--ease), opacity .12s;
}
.btn:active { transform: scale(.975); box-shadow: 0 2px 8px rgba(84, 81, 232, .22); }
.btn.block { display: flex; width: 100%; min-height: 48px; }
.btn.ghost {
  background: var(--brand-soft); color: var(--brand-700);
  box-shadow: none; border: 1px solid rgba(84, 81, 232, .14);
}
.btn.ghost:active { background: #E4E3FF; }
.btn.gray {
  background: #fff; color: var(--ink2); box-shadow: var(--sh-1);
  border: 1px solid var(--line);
}
.btn.gray:active { background: var(--bg-sunk); }
.btn.sm { padding: 7px 13px; font-size: 13px; border-radius: var(--r-sm); box-shadow: none; min-height: 34px; }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }

/* ============ 表单 ============ */
.field { margin-bottom: 13px; }
.field label {
  display: block; font-size: 12.5px; font-weight: 700;
  color: var(--ink2); margin-bottom: 6px; letter-spacing: .2px;
}
.field .hint { font-weight: 500; color: var(--ink4); font-size: 12px; }
input, textarea, select {
  width: 100%; border: 1.5px solid var(--line); background: #FBFCFE;
  border-radius: var(--r); padding: 11px 13px; font-size: 15px; color: var(--ink);
  font-family: inherit; outline: none;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: var(--ink4); }
input:focus, textarea:focus, select:focus {
  border-color: var(--brand); background: #fff;
  box-shadow: 0 0 0 3.5px var(--brand-glow);
}
textarea { min-height: 78px; resize: vertical; line-height: 1.6; }
select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238E94A6' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px;
}
/* align-items 必须是 center：button 作为 flex item 时若被 stretch，
   Chrome 会算出诡异的 padding（实测同一行两个按钮能一个 61px 一个 48px），
   不拉伸 + 给按钮兜底 min-height，两个按钮才会一样高。 */
.row { display: flex; gap: 10px; align-items: center; }
.row > * { flex: 1; min-width: 0; }

/* ============ 平台选择 ============ */
.plat-pick { display: flex; gap: 8px; margin-bottom: 4px; }
.plat-pick button {
  flex: 1; padding: 11px 6px; border-radius: var(--r);
  border: 1.5px solid var(--line); background: #fff;
  font-size: 13.5px; font-weight: 700; color: var(--ink2);
  cursor: pointer; font-family: inherit;
  transition: all .16s var(--ease);
}
.plat-pick button.on {
  color: #fff; border-color: transparent; transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .13);
}
.plat-pick button.on[data-p="douyin"] { background: var(--dy); }
.plat-pick button.on[data-p="xiaohongshu"] { background: var(--xhs); }
.plat-pick button.on[data-p="shipinhao"] { background: var(--sph); }

/* ============ 标签 ============ */
.tag {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px;
  border-radius: var(--r-xs); font-size: 11.5px; font-weight: 700;
  background: var(--bg-sunk); color: var(--ink2); letter-spacing: .1px;
  white-space: nowrap;
}
.tag.dy { background: rgba(254, 44, 85, .1); color: #E01E45; }
.tag.xhs { background: rgba(255, 36, 66, .1); color: #E01236; }
.tag.sph { background: rgba(7, 193, 96, .13); color: #059B4D; }
.tag.brand { background: var(--brand-soft); color: var(--brand-700); }
.tag.warn { background: #FFF3DF; color: #B76E00; }
.tag.danger { background: rgba(240, 55, 91, .1); color: var(--danger); }
.tag.ok { background: rgba(16, 163, 127, .11); color: #0A8567; }

/* ============ 列表项 ============ */
.item {
  background: var(--card); border-radius: var(--r-lg);
  padding: 14px 15px; box-shadow: var(--sh-2); margin-bottom: 10px;
  cursor: pointer; position: relative; overflow: hidden;
  transition: transform .14s var(--ease), box-shadow .14s var(--ease);
}
.item:active { transform: scale(.988); box-shadow: var(--sh-1); }
.item .t { font-weight: 700; font-size: 15px; margin-bottom: 4px; line-height: 1.45; letter-spacing: -.1px; }
.item .d { font-size: 13px; color: var(--ink3); line-height: 1.55; }
.item .foot { display: flex; align-items: center; gap: 7px; margin-top: 9px; flex-wrap: wrap; }

/* 平台速览卡：左侧用各自品牌色点题 */
.plat-card { padding-left: 17px; }
.plat-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
}
.plat-card[data-p="douyin"]::before { background: linear-gradient(180deg, #FE2C55, #FF6B8A); }
.plat-card[data-p="xiaohongshu"]::before { background: linear-gradient(180deg, #FF2442, #FF6B7F); }
.plat-card[data-p="shipinhao"]::before { background: linear-gradient(180deg, #07C160, #3FD98A); }

/* ============ 成长卡（首页视觉锚点） ============ */
.grow-card {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #1E2145 0%, #2E2A6B 48%, #4A3A93 100%);
  color: #fff; border-radius: var(--r-xl);
  padding: 19px 18px 18px;
  box-shadow: 0 8px 28px rgba(30, 33, 69, .28);
}
/* 右上角琥珀光晕 */
.grow-card::after {
  content: ''; position: absolute; right: -46px; top: -70px;
  width: 190px; height: 190px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 159, 28, .32) 0%, rgba(255, 159, 28, 0) 68%);
  pointer-events: none;
}
.grow-card > * { position: relative; z-index: 1; }
.grow-card .lv {
  display: inline-block; font-size: 11px; font-weight: 800;
  letter-spacing: 1.4px; padding: 3px 9px; border-radius: 20px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .18);
}
.grow-card .name { font-size: 23px; font-weight: 800; margin: 9px 0 6px; letter-spacing: -.4px; }
.grow-card .next { font-size: 13px; opacity: .88; line-height: 1.6; max-width: 92%; }
/* 升级进度 */
.lv-prog { margin-top: 14px; }
.lv-prog .bar { background: rgba(255, 255, 255, .18); height: 7px; }
.lv-prog .bar i { box-shadow: 0 0 10px rgba(255, 159, 28, .6); }
.lv-prog-tx { font-size: 11.5px; opacity: .82; margin-top: 7px; letter-spacing: .1px; }

.grow-stats { display: flex; gap: 7px; margin-top: 15px; }
.grow-stats div {
  flex: 1; background: rgba(255, 255, 255, .13); border-radius: var(--r);
  padding: 10px 4px; text-align: center;
  border: 1px solid rgba(255, 255, 255, .1);
}
.grow-stats b { display: block; font-size: 19px; font-weight: 800; line-height: 1.2; }
.grow-stats span { font-size: 11px; opacity: .8; }
/* 「我的」页里的浅色版统计 */
.grow-stats.lite div { background: var(--brand-soft); border: 0; }
.grow-stats.lite b { color: var(--brand-700); }
.grow-stats.lite span { color: var(--brand-700); opacity: .75; }

/* ============ 技巧卡 ============ */
.skill {
  background: var(--card); border-radius: var(--r-lg);
  padding: 14px 15px; box-shadow: var(--sh-2); margin-bottom: 10px;
  border-left: 4px solid var(--brand);
  position: relative;
  transition: transform .14s var(--ease);
}
.skill:active { transform: scale(.99); }
.skill .h { display: flex; align-items: flex-start; gap: 9px; }
.skill .h .ic {
  flex-shrink: 0;
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--bg-sunk); display: flex; align-items: center; justify-content: center;
  font-size: 15px; line-height: 1;
  /* 有些 Linux/老 Windows 没装彩色 emoji 字体，图标会退化成方块。
     显式列出常见 emoji 字体，让系统优先挑到能渲染的 */
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji",
               "Segoe UI Symbol", "Android Emoji", sans-serif;
}
.skill .h .n { flex: 1; font-weight: 700; font-size: 15px; line-height: 1.45; letter-spacing: -.1px; }
.skill .s { font-size: 13.5px; color: var(--ink2); margin: 8px 0 0; line-height: 1.6; }
.skill .steps { margin: 9px 0 0; padding-left: 19px; font-size: 13.5px; color: var(--ink2); }
.skill .steps li { margin-bottom: 5px; line-height: 1.55; }
.skill .steps li::marker { color: var(--brand); font-weight: 700; }
.skill .meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 11px; }
.skill .acts { display: flex; gap: 8px; margin-top: 12px; }

/* ============ 内容块 ============ */
.block { border-top: 1px solid var(--line-2); padding-top: 13px; margin-top: 13px; }
.block:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.block .bt {
  font-size: 13.5px; font-weight: 800; margin-bottom: 9px;
  display: flex; align-items: center; gap: 6px; letter-spacing: -.1px;
}
.kv {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 8px 0; border-bottom: 1px dashed var(--line);
  font-size: 13.5px;
}
.kv:last-child { border-bottom: 0; }
.kv .k { color: var(--ink2); flex-shrink: 0; }
.kv .v { text-align: right; font-weight: 700; }

.bar { height: 6px; background: var(--bg-sunk); border-radius: 4px; overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; border-radius: 4px; transition: width .4s var(--ease); }

/* ============ 提示条 ============ */
.note-box {
  background: #FFF8EA; border: 1px solid #FBE7BE; border-radius: var(--r);
  padding: 11px 13px; font-size: 13.5px; color: #7A5310;
  line-height: 1.6; margin-top: 9px;
}
.note-box.danger { background: #FFF0F3; border-color: #FBD3DD; color: #A81E42; }
.note-box.info { background: #EEF3FF; border-color: #D6E1FF; color: #37487F; }
.note-box.ok { background: #EAFBF5; border-color: #BFEEDF; color: #076E57; }

/* ============ 底部导航 ============ */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255, 255, 255, .93);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid var(--line);
  display: flex; padding: 6px 0 max(6px, env(safe-area-inset-bottom));
  max-width: 720px; margin: 0 auto;
}
.tabbar button {
  flex: 1; background: 0; border: 0; padding: 6px 0 5px; cursor: pointer;
  font-family: inherit; display: flex; flex-direction: column;
  align-items: center; gap: 3px; color: var(--ink4);
  font-size: 10.5px; font-weight: 700; position: relative;
  transition: color .16s var(--ease);
}
.tabbar button svg { width: 23px; height: 23px; transition: transform .18s var(--ease); }
.tabbar button.on { color: var(--brand); }
.tabbar button.on svg { transform: translateY(-1px) scale(1.06); }
/* 选中项顶部小指示条 */
.tabbar button.on::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 20px; height: 2.5px; border-radius: 0 0 3px 3px; background: var(--brand);
}

/* ============ 弹层 ============ */
.sheet-mask {
  position: fixed; inset: 0; background: rgba(18, 20, 28, .48);
  z-index: 200; display: flex; align-items: flex-end; justify-content: center;
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  animation: fade .18s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.sheet {
  background: var(--bg); border-radius: 24px 24px 0 0;
  width: 100%; max-width: 720px; max-height: 92vh; overflow-y: auto;
  padding: 18px 16px calc(26px + env(safe-area-inset-bottom));
  animation: up .26s var(--ease);
  box-shadow: 0 -8px 40px rgba(20, 22, 31, .16);
}
@keyframes up { from { transform: translateY(34px); opacity: .6; } to { transform: none; opacity: 1; } }
.sheet .sh { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.sheet .sh b { font-size: 17.5px; font-weight: 800; letter-spacing: -.2px; }
.sheet .sh button {
  background: var(--bg-sunk); border: 0; font-size: 16px; color: var(--ink2);
  cursor: pointer; padding: 0; width: 30px; height: 30px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.sheet .sh button:active { background: var(--line); }

/* ============ 登录 / 引导 ============ */
.login { max-width: 400px; margin: 0 auto; padding: 56px 22px; }
.login .logo { font-size: 32px; font-weight: 800; letter-spacing: -.8px; margin-bottom: 8px; }
.login .slogan { color: var(--ink2); font-size: 14.5px; margin-bottom: 28px; line-height: 1.65; }
.login .switch { text-align: center; margin-top: 18px; font-size: 14px; color: var(--ink2); }
.login .switch a { color: var(--brand); font-weight: 700; cursor: pointer; }

/* ============ 应用内文档 ============ */
.doc-body { font-size: 14px; line-height: 1.75; color: var(--ink2); }
.doc-body h1 { font-size: 20px; font-weight: 800; color: var(--ink); margin: 22px 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--brand); letter-spacing: -.2px; }
.doc-body h1:first-child { margin-top: 4px; }
.doc-body h2 { font-size: 16.5px; font-weight: 800; color: var(--ink); margin: 22px 0 9px; }
.doc-body h3 { font-size: 15px; font-weight: 700; color: var(--brand-700); margin: 16px 0 7px; }
.doc-body p { margin: 8px 0; }
.doc-body ul, .doc-body ol { padding-left: 21px; margin: 8px 0; }
.doc-body li { margin: 5px 0; line-height: 1.7; }
.doc-body li::marker { color: var(--brand); font-weight: 700; }
.doc-body code { background: var(--bg-sunk); padding: 1.5px 6px; border-radius: 5px; font-size: 12.5px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--brand-700); }
.doc-body pre { background: #1E2145; color: #E6E8F5; padding: 12px 14px; border-radius: var(--r); overflow-x: auto; margin: 12px 0; }
.doc-body pre code { background: none; color: inherit; padding: 0; font-size: 12.5px; }
.doc-body blockquote { margin: 11px 0; padding: 10px 13px; background: var(--brand-soft); border-left: 3px solid var(--brand); border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--brand-700); font-size: 13.5px; }
.doc-body table { border-collapse: collapse; width: 100%; margin: 13px 0; font-size: 12.5px; background: #fff; border-radius: var(--r-sm); overflow: hidden; box-shadow: var(--sh-1); }
.doc-body th, .doc-body td { border: 1px solid var(--line); padding: 7px 9px; text-align: left; }
.doc-body th { background: var(--bg-sunk); font-weight: 700; color: var(--ink); }
.doc-body hr { margin: 22px 0; border: 0; border-top: 1px solid var(--line); }
.doc-body a { color: var(--brand); }

/* ============ 空状态 ============ */
.empty { text-align: center; padding: 52px 24px; color: var(--ink3); }
.empty .e { font-size: 44px; margin-bottom: 12px; line-height: 1; }
.empty p { margin: 5px 0; font-size: 14px; line-height: 1.65; }
.empty .cta { margin-top: 18px; }

/* ============ 筛选 chips ============ */
.chips { display: flex; gap: 7px; overflow-x: auto; padding: 2px 0 11px; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; padding: 7px 14px; border-radius: 20px;
  background: #fff; border: 1px solid var(--line);
  font-size: 13px; font-weight: 700; color: var(--ink2);
  cursor: pointer; font-family: inherit;
  transition: all .15s var(--ease); box-shadow: var(--sh-1);
}
.chip:active { transform: scale(.96); }
.chip.on {
  background: var(--brand); color: #fff; border-color: transparent;
  box-shadow: var(--sh-brand);
}

/* ============ 脚本时间轴 ============ */
.timeline-item { display: flex; gap: 12px; margin-bottom: 14px; }
.timeline-item .tm {
  flex-shrink: 0; width: 58px; font-size: 11.5px; font-weight: 800;
  color: var(--brand); padding-top: 3px; font-variant-numeric: tabular-nums;
  background: var(--brand-soft); border-radius: var(--r-xs);
  height: fit-content; padding: 3px 6px; text-align: center;
}
.timeline-item .ct { flex: 1; min-width: 0; }
.timeline-item .ct b { display: block; font-size: 14px; margin-bottom: 3px; letter-spacing: -.1px; }
.timeline-item .ct p { margin: 3px 0 0; font-size: 13.5px; color: var(--ink2); line-height: 1.6; }
.timeline-item .ct .qt {
  color: var(--ink); background: #F7F8FC; padding: 8px 11px;
  border-radius: var(--r-sm); font-size: 13.5px; margin-top: 5px;
  border-left: 2.5px solid var(--brand); line-height: 1.6;
}

/* ============ 发布自检 ============ */
.check-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 14px;
}
.check-row:last-child { border-bottom: 0; }
.check-row .ic { flex-shrink: 0; width: 20px; text-align: center; font-size: 15px; }
.check-row .tx { flex: 1; }
.check-row .nt { font-size: 12.5px; color: var(--ink3); margin-top: 3px; line-height: 1.55; }
.check-row.bad .tx { color: var(--danger); font-weight: 700; }

/* ============ 浮层提示 ============ */
.toast {
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: rgba(20, 22, 31, .95); color: #fff;
  padding: 11px 18px; border-radius: var(--r); font-size: 14px;
  z-index: 300; max-width: 86%; text-align: center; line-height: 1.55;
  box-shadow: var(--sh-3); animation: toastIn .22s var(--ease);
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to { opacity: 1; transform: translateX(-50%); }
}
.loading { text-align: center; padding: 44px; color: var(--ink3); font-size: 14px; }

a.srclink { color: var(--brand); font-size: 12.5px; word-break: break-all; }

/* ============ 平板：稍微放大一点，别显得空 ============ */
@media (min-width: 640px) {
  body { font-size: 15.5px; }
  .page { padding: 18px 18px 28px; }
}

/* 平板（768–999px）：比手机宽不少，还照着手机的 720px 单栏会显得又空又局促。
   底部导航保留（这个尺寸多半是竖屏拿在手上），但内容区放宽、列表改两列。 */
@media (min-width: 768px) and (max-width: 999px) {
  #app { max-width: none; }
  .topbar { padding-left: 24px; padding-right: 24px; }
  .page { max-width: none; padding: 18px 24px 30px; }
  .tabbar { max-width: none; }

  .plat-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .plat-list .sec-title { grid-column: 1 / -1; }
  .plat-list .item { margin-bottom: 0; }

  .skill-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
  .skill-list > * { margin-bottom: 0; }
}

/* ============ 桌面端：手机版是底部导航 + 单栏，直接拉宽就是一条窄柱子，两边全空 ============
   所以这里整体换布局：
   - 导航从底部横条 → 左侧固定侧边栏（图标 + 文字横排，更像正经的网页应用）
   - 内容区居中，宽度提到 1080px，卡片自动排成两列，长页面不会拖得老长
   - 顶部栏和内容区左右对齐，不再各占一边 */
@media (min-width: 1000px) {
  #app { max-width: none; margin: 0; padding-left: 232px; }

  /* ---- 顶部栏：贴右侧内容区 ---- */
  .topbar {
    padding: 18px 32px 14px;
    border-bottom: 1px solid var(--line);
  }
  .topbar h1 { font-size: 24px; }
  .topbar .sub { font-size: 13.5px; }

  /* 内容区别一味拉满：太宽的行长会让表单和正文读起来很累，980px 是舒服的上限 */
  .page {
    padding: 22px 32px 40px;
    max-width: 980px;
    margin: 0 auto;
  }

  /* ---- 底部导航 → 左侧边栏 ---- */
  .tabbar {
    position: fixed; top: 0; bottom: 0; left: 0;
    width: 232px; max-width: none; margin: 0;
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    padding: 20px 14px; gap: 4px;
    border-top: 0; border-right: 1px solid var(--line);
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
  }
  /* 侧边栏顶部的品牌名 */
  .tabbar::before {
    content: '自媒体工作台';
    display: block; padding: 2px 12px 18px;
    font-size: 16.5px; font-weight: 800; letter-spacing: -.3px; color: var(--ink);
  }
  .tabbar button {
    flex: 0 0 auto; flex-direction: row; align-items: center; justify-content: flex-start;
    gap: 11px; padding: 11px 13px; border-radius: 11px;
    font-size: 14px; font-weight: 700; text-align: left;
  }
  .tabbar button svg { width: 21px; height: 21px; flex: 0 0 auto; }
  .tabbar button.on { background: rgba(84, 81, 232, .1); }
  .tabbar button.on svg { transform: none; }
  /* 选中态换成左侧竖条，比顶上的横条更符合侧边栏 */
  .tabbar button.on::before {
    top: 50%; left: 0; transform: translateY(-50%);
    width: 3px; height: 18px; border-radius: 0 3px 3px 0;
  }
  .tabbar button:hover:not(.on) { background: rgba(20, 22, 31, .04); }

  /* 侧边栏占了左侧，弹层别再居中偏左，跟着内容区对齐 */
  .sheet { max-width: 860px; border-radius: 22px 22px 0 0; }

  /* ---- 两列网格：只对「一堆平级卡片」的区块生效 ---- */
  .page > .card { max-width: none; }
  .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
  .grid-2 > .card, .grid-2 > .item { margin-bottom: 0; }
  .grid-2 .sec-title { grid-column: 1 / -1; }

  /* 首页：成长卡单独占满一行，下面按钮并排 */
  .grow-card { max-width: none; }
  .plat-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: start; }
  .plat-list .sec-title { grid-column: 1 / -1; }
  .plat-list .item { margin-bottom: 0; }

  /* 技巧库 / 收集箱的列表：两列 */
  /* align-items: start 会让同一行的两张卡各自只有内容那么高，下面参差不齐；
     stretch（默认）让它们等高，再把操作条推到底部，看起来才整齐 */
  .skill-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .skill-list > *, .skill-cell { margin-bottom: 0; }
  .skill-cell { display: flex; flex-direction: column; }
  .skill-cell .skill:last-child { margin-top: auto !important; }

  /* 表单里的并排字段在桌面端更宽松 */
  .row { gap: 12px; }

  /* 手机上按钮一列一个是因为手指粗；桌面端鼠标precision高，三个按钮并排更省纵向空间 */
  .btn-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
  .btn-row-3 .btn { min-height: 46px; }
}
