/* 摇小树像素盒子 · 移动端 H5
   黑底 #0a0a08 + 琥珀 #F5BE37，与 PC 端同一套视觉
   字号基准：正文 15 / 次要 13 / 标签 12 / 标题 17-18
   触控基准：所有可点区域 ≥ 44px，滑杆拇指 28px */

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* v0.18.4：全站按钮统一去掉浏览器默认描边（换图确认/积分弹层等琥珀底按钮曾露白边）。
   需要边框的按钮都用类名显式声明（.zb-btns button / .sub-back 等），不受影响。 */
button { border: 0; }

:root {
  --amber: #F5BE37;
  --amber-rgb: 245,190,55;             /* 主色 RGB 三元组，供 rgba(var(--amber-rgb),x) 用 */
  --bg: #0a0a08;
  --panel: #15150f;
  --line: rgba(255,255,255,.09);
  --line2: rgba(255,255,255,.17);
  --la: rgba(var(--amber-rgb),.24);
  --t1: #F2F2EC;
  --t2: #A3A397;
  --t3: #77776B;
  /* 2.34 圆角规范：小控件 8 / 卡片按钮 12 / 弹层顶部 20 / 胶囊 999 */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --tab-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  /* 2.17 主题化：把原来的硬编码深色收成语义变量，浅色只在 html[data-theme=light] 里换值 */
  --on-amber: #0a0a08;            /* 琥珀底上的字 / 开关旋钮 */
  --img-bg: #101010;              /* 图片加载前的占位底 */
  --stripe-a: #141410;            /* 加载条纹 */
  --stripe-b: #1a1a13;
  --surf-1: rgba(255,255,255,.02);
  --surf-2: rgba(255,255,255,.03);
  --surf-3: rgba(255,255,255,.04);
  --surf-4: rgba(255,255,255,.05);
  --surf-5: rgba(255,255,255,.06);
  --surf-9: rgba(255,255,255,.09);
  --surf-12: rgba(255,255,255,.12);
  --surf-16: rgba(255,255,255,.16);
  --surf-18: rgba(255,255,255,.18);
  --input-bg: rgba(0,0,0,.3);     /* 输入框 / 小按钮的深底 */
  --mask: rgba(0,0,0,.68);        /* 弹层遮罩 */
  --tab-bg: rgba(38,38,32,.84);   /* 底部导航悬浮胶囊 */
}

/* 2.19 浅色主题定稿：纯白 #FFF 底 + 黑主色（用户拍板，black-E 方案）；深色保持琥珀不动 */
html[data-theme="light"] {
  --amber: #141414;
  --amber-rgb: 20,20,20;
  --bg: #ffffff;
  --panel: #ffffff;
  --line: #F8F8F8;            /* 2.20 分割线/弱边框＝用户指定 #F8F8F8（极浅） */
  --line2: #ececec;           /* 功能性边框（输入框等），保持可用可见度 */
  --la: rgba(20,20,20,.22);
  --t1: #1a1a1a;
  --t2: #5f5f5f;
  --t3: #909090;
  --on-amber: #ffffff;
  --img-bg: #ececec;
  --stripe-a: #e9e9e9;
  --stripe-b: #f1f1f1;
  --surf-1: rgba(0,0,0,.02);
  --surf-2: rgba(0,0,0,.03);
  --surf-3: rgba(0,0,0,.04);
  --surf-4: rgba(0,0,0,.05);
  --surf-5: rgba(0,0,0,.06);
  --surf-9: rgba(0,0,0,.09);
  --surf-12: rgba(0,0,0,.12);
  --surf-16: rgba(0,0,0,.15);
  --surf-18: rgba(0,0,0,.17);
  --input-bg: #f4f4f4;
  --mask: rgba(0,0,0,.5);
  --tab-bg: rgba(255,255,255,.92);
}

/* 2.19 深底角标（封面期号/比例标签）浅色下换白底，避免黑字配黑底 */
html[data-theme="light"] .mcard .bdg,
html[data-theme="light"] .feed-track .ratio {
  background: rgba(255,255,255,.94);
  border-color: rgba(var(--amber-rgb),.4);
}
/* v0.17.1：左上角 VIP 角标跟原 VOL 同款描边、去掉底色 */
html[data-theme="light"] .zcard .lk { background: transparent; }

html, body { height: 100%; }
/* v0.18.7：全站关掉 iOS Safari 的蓝色点击高亮与焦点框（用户在 iPad 上点
   「CRT 风」等按钮会闪蓝，本站点击反馈只用琥珀/黑） */
button, a, .cvr, .chip, .msg-item, input, textarea, label {
  -webkit-tap-highlight-color: transparent;
}
button:focus, button:focus-visible, [role="button"]:focus { outline: none; }
body {
  background: var(--bg);
  color: var(--t1);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
  user-select: none;
}

#app { height: 100dvh; display: flex; flex-direction: column; overflow: hidden; position: relative; }
/* 桌面 / 平板上把 App 收进一个居中的手机画框：不做全宽拉伸。
   全宽时瀑布流被拉成两张大图、底栏飘在宽屏中间，看着不像一本杂志；
   收成 480px 后与手机上完全同构，底栏永远贴着画框底边。 */
@media (min-width: 640px) {
  body { background: #050505; }
  #app {
    max-width: 480px; margin: 0 auto;
    border-left: 1px solid var(--line); border-right: 1px solid var(--line);
    box-shadow: 0 0 70px rgba(0,0,0,.6);
  }
}

svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
button, input, select { font-family: inherit; }

/* ── 屏幕切换 ─────────────────────────────── */
/* 加到主屏（standalone）后顶部没有浏览器栏，状态栏区域必须让出来 */
.screen { display: none; flex-direction: column; flex: 1; min-height: 0; padding-top: env(safe-area-inset-top, 0px); }
.sheet-wrap, .viewer { padding-top: env(safe-area-inset-top, 0px); }
.screen.on { display: flex; }
.screen.push { position: absolute; inset: 0; z-index: 30; background: var(--bg); }
#tabbar { display: flex; }
#app.scr-editor #tabbar, #app.scr-ipick #tabbar { display: none; }

/* ── 品牌行 ─────────────────────────────── */
.brand { display: flex; align-items: center; gap: 12px; padding: 14px 16px 12px; }
.brand-logo {
  width: 36px; height: 36px; position: relative; flex: 0 0 auto;
}
.brand-logo img { width: 100%; height: 100%; display: block; }
/* 2.35d 浅色模式：曲线 logo 换黑主体+白描边变体 */
html[data-theme="light"] .brand-logo img { content: url(logo-line-light.svg); }
.brand-txt h1 { font-size: 18px; font-weight: 700; letter-spacing: .2px; }
.brand-txt p { font-size: 12px; color: var(--t3); margin-top: 3px; letter-spacing: .3px; }

/* ── 分类栏 ─────────────────────────────── */
.catbar {
  display: flex; gap: 20px; padding: 0 16px 10px; margin: 0 16px;
  border-bottom: 1px solid var(--line); white-space: nowrap; overflow-x: auto;
  flex: 0 0 auto;
}
.catbar span {
  font-size: 14px; color: var(--t3); padding-bottom: 9px;
  border-bottom: 2px solid transparent; margin-bottom: -11px;
}
.catbar span.on { color: var(--amber); border-bottom-color: var(--amber); font-weight: 600; }

/* ── 瀑布流 ─────────────────────────────── */
.feed { flex: 1; display: flex; gap: 9px; padding: 12px 16px calc(var(--tab-h) + var(--safe-b) + 16px); overflow-y: auto; }
.col { flex: 1; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.mcard { position: relative; }
.mcard img {
  width: 100%; display: block; border-radius: var(--r-sm); border: 1px solid var(--la);
  image-rendering: pixelated; background: var(--img-bg);
  aspect-ratio: var(--ar, 3 / 4); object-fit: cover;
}
.mcard .lb { font-size: 12px; color: var(--t2); margin-top: 7px; letter-spacing: .2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcard .bdg {
  position: absolute; top: 7px; left: 7px; font-size: 11px;
  background: rgba(8,8,6,.9); color: var(--amber); font-weight: 700;
  padding: 3px 7px; border-radius: 3px; letter-spacing: .4px;
  border: 1px solid rgba(var(--amber-rgb),.45);
}

/* ── Tab 栏 ─────────────────────────────── */
#tabbar {
  position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--tab-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  border-top: 1px solid var(--line); background: var(--tab-bg);
  z-index: 20; backdrop-filter: blur(10px);
}
#tabbar > div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--t3); font-size: 12px; }
#tabbar > div.on { color: var(--t1); }
#tabbar > div.on span { font-weight: 600; }
#tabbar svg { width: 24px; height: 24px; }
.plus-wrap { flex: 0 0 88px !important; }
#btn-plus {
  width: 52px; height: 52px; border-radius: 50%; border: none; background: var(--amber);
  color: var(--on-amber); display: flex; align-items: center; justify-content: center;
  margin: -16px auto 0; box-shadow: 0 4px 14px rgba(var(--amber-rgb),.35), 0 0 0 4px var(--bg);
}
#btn-plus svg { width: 24px; height: 24px; stroke-width: 2.4; }

/* ── ＋ 弹层 ─────────────────────────────── */
.sheet-wrap { position: absolute; inset: 0; z-index: 60; display: none; }
.sheet-wrap.on { display: block; }
.sheet-mask { position: absolute; inset: 0; background: var(--mask); }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; background: var(--panel);
  border-top: 1px solid rgba(var(--amber-rgb),.25); border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: 14px 16px calc(16px + var(--safe-b));
  animation: up .22s ease-out;
}
@keyframes up { from { transform: translateY(40px); opacity: .4; } }
.grab { width: 40px; height: 4px; border-radius: 2px; background: var(--surf-18); margin: 0 auto 16px; }
.sheet-h { font-size: 16px; font-weight: 600; text-align: center; margin-bottom: 16px; }
.opt {
  width: 100%; min-height: 66px; display: flex; align-items: center; gap: 14px; text-align: left;
  background: var(--surf-5); border: none;
  border-radius: var(--r-md); padding: 13px 14px; margin-bottom: 10px;
  color: var(--t1); cursor: pointer;
}
.opt:active { background: rgba(var(--amber-rgb),.12); }
.opt .ic {
  width: 44px; height: 44px; border-radius: 12px; background: rgba(var(--amber-rgb),.14);
  display: flex; align-items: center; justify-content: center; color: var(--amber); flex: 0 0 auto;
}
.opt .ic svg { width: 22px; height: 22px; }
.opt .opt-t { flex: 1; min-width: 0; }
.opt b { font-size: 15px; font-weight: 700; display: block; }
.opt em { font-style: normal; font-size: 12px; color: var(--t3); display: block; margin-top: 4px; }
.opt .go { width: 16px; height: 16px; color: var(--t3); stroke-width: 2; flex: 0 0 auto; }
.sheet-c {
  width: 100%; min-height: 48px; text-align: center; font-size: 15px; color: var(--t2);
  background: none; border: none; padding: 12px 0 4px; cursor: pointer;
}

/* ── 通用顶栏 ─────────────────────────────── */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; flex: 0 0 auto; min-height: 60px; }
.tb-title { text-align: center; font-size: 15px; font-weight: 600; line-height: 1.35; min-width: 0; }
.tb-title em { font-style: normal; display: block; font-size: 11.5px; color: var(--t3); font-weight: 400; margin-top: 4px; letter-spacing: .2px; }
.ib {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line2);
  background: var(--surf-5); color: var(--t2);
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
  cursor: pointer;
}
.ib svg { width: 18px; height: 18px; }
.ib.ghost { visibility: hidden; }
.ib:active, .src:active { background: rgba(var(--amber-rgb),.16); }

/* 左侧素材来源图标 */
.src {
  width: 40px; height: 40px; border-radius: var(--r-md); border: 1px solid var(--line2);
  background: var(--surf-5); color: var(--amber);
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
  position: relative; overflow: hidden; cursor: pointer;
}
.src svg { width: 20px; height: 20px; }
.src.logo { background: var(--amber); border-color: var(--amber); }
.src.logo i { position: absolute; background: var(--bg); }
.src.logo i:nth-child(1) { width: 6px; height: 6px; left: 17px; top: 7px; }
.src.logo i:nth-child(2) { width: 6px; height: 6px; left: 11px; top: 14px; }
.src.logo i:nth-child(3) { width: 6px; height: 6px; left: 17px; top: 14px; }
.src.logo i:nth-child(4) { width: 6px; height: 6px; left: 23px; top: 14px; }
.src.logo i:nth-child(5) { width: 6px; height: 6px; left: 17px; top: 21px; }
.src.logo i:nth-child(6) { width: 5px; height: 8px; left: 17.5px; top: 28px; }

/* ── 选 IP ─────────────────────────────── */
#scr-ipick { overflow: hidden; }
.chips { display: flex; gap: 9px; padding: 4px 16px 14px; flex: 0 0 auto; }
.chip {
  font-size: 13px; min-height: 38px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line2); color: var(--t2); background: none;
}
.chip.on { background: var(--amber); color: var(--on-amber); border-color: var(--amber); font-weight: 600; }
.chip.lk { color: var(--amber); border-style: dashed; }
.cvr-grid {
  flex: 1; overflow-y: auto; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 9px; padding: 0 16px 20px; align-content: start;
}
.cvr { position: relative; cursor: pointer; }
.cvr img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block;
  border-radius: var(--r-sm); border: 1px solid var(--la); background: var(--img-bg);
  transition: opacity .18s ease;
}
.cvr .no { font-size: 12px; color: var(--t2); text-align: center; margin-top: 7px; letter-spacing: .2px; }
.cvr:active img { border-color: var(--amber); }
.cvr-more { text-align: center; font-size: 12px; color: var(--t3); padding: 14px 0 22px; }

/* ── 编辑器 ─────────────────────────────── */
.stage {
  flex: 1; min-height: 180px; display: flex; align-items: center; justify-content: center;
  padding: 6px 16px; position: relative;
}
#ed-canvas {
  max-width: 100%; max-height: 100%; border-radius: var(--r-sm); border: 1px solid var(--la);
  image-rendering: pixelated; background: var(--img-bg); display: none;
}
.stage-load {
  position: absolute; inset: 16px; border-radius: var(--r-sm);
  background: repeating-linear-gradient(135deg, var(--stripe-a), var(--stripe-a) 6px, var(--stripe-b) 6px, var(--stripe-b) 12px);
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 9px;
}
.stage-load.on { display: flex; }
.stage-load-t { font-size: 15px; color: var(--t2); letter-spacing: .5px; }
.stage-load-d { font-size: 12px; color: var(--t3); }
.prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--surf-9); overflow: hidden; }
.prog i { display: block; height: 100%; width: 40%; background: var(--amber); animation: slide 1.1s ease-in-out infinite; }
@keyframes slide { 0% { margin-left: -40%; } 100% { margin-left: 100%; } }

/* 画布上的拖拽把手（仅「位置」工具开启时出现） */
.drag-layer { position: absolute; z-index: 45; pointer-events: none; }
.drag-layer .dh {
  position: absolute; pointer-events: auto; touch-action: none;
  border: 1.5px dashed rgba(var(--amber-rgb),.95); border-radius: 4px;
  background: rgba(var(--amber-rgb),.06); display: flex; align-items: flex-start; justify-content: flex-start;
  /* 亮琥珀画面上必须有黑色外描边，否则虚线看不见 */
  box-shadow: 0 0 0 1.5px rgba(0,0,0,.72), inset 0 0 0 1px rgba(0,0,0,.28);
}
.drag-layer .dh.hero {
  border: 2px solid var(--amber); background: rgba(var(--amber-rgb),.15); z-index: 3;
  box-shadow: 0 0 0 1px rgba(0,0,0,.5), 0 0 18px -6px rgba(var(--amber-rgb),.8);
}
/* 2.27：模板卡会员角标（CRT-4 等会员版式在卡上亮「会员」提醒） */
.tile { position: relative; }
.tile .vip-tag {
  position: absolute; top: 4px; right: 4px; padding: 1px 5px; border-radius: var(--r-sm);
  font-size: 9px; font-style: normal; font-weight: 700; letter-spacing: .5px;
  background: var(--amber); color: var(--on-amber);
}
.drag-layer .dh.brand { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.05); z-index: 2; }
.drag-layer .dh.win { z-index: 1; }
/* 2.27：屏幕层把手（屏幕·菜单栏/顶栏/屏幕框）压在窗口与品牌把手之上——
   CRT-2 顶栏往下拖穿过窗口区不被吃事件 */
.drag-layer .dh.scr { z-index: 4; }
/* 2.26 屏幕层元素把手：青灰虚线，与窗口/主体区分 */
.drag-layer .dh.scr { border-color: rgba(140,190,190,.75); border-style: dashed; background: rgba(140,190,190,.08); z-index: 2; }
.dh.scr .dh-lab { background: rgba(140,190,190,.85); color: #102020; }
.drag-layer .dh:active { background: rgba(var(--amber-rgb),.28); }
.dh-lab {
  position: absolute; left: -1px; top: -18px;
  font-size: 10.5px; line-height: 1; font-weight: 700; letter-spacing: .2px;
  background: var(--amber); color: var(--on-amber); padding: 3px 5px; border-radius: 4px;
  white-space: nowrap; max-width: 140px; overflow: hidden; text-overflow: ellipsis;
  box-shadow: 0 1px 3px rgba(0,0,0,.45);
}
.dh.brand .dh-lab { background: rgba(255,255,255,.78); }
.dh.win .dh-lab { background: rgba(var(--amber-rgb),.78); }
/* 2.9 缩放手柄：右下角一个小方块，拖动改大小 */
.dh-grip {
  position: absolute; right: -6px; bottom: -6px; width: 16px; height: 16px;
  border-radius: 3px; background: var(--amber); border: 1.5px solid rgba(0,0,0,.75);
  touch-action: none; box-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.dh-grip::after {
  content: ""; position: absolute; inset: 4px; border-right: 1.5px solid rgba(0,0,0,.75);
  border-bottom: 1.5px solid rgba(0,0,0,.75);
}
.drag-layer .dh.sel { border-style: solid; z-index: 6; }

/* 2.9 位置面板：可拖对象列表 + 选中项大小 */
.pos-list { display: flex; flex-wrap: wrap; gap: 6px; }
.pos-chip {
  padding: 6px 10px; border-radius: 999px; font-size: 11px; line-height: 1;
  border: 1px solid var(--line2); background: var(--surf-3); color: var(--t2);
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pos-chip.on { border-color: var(--amber); background: rgba(var(--amber-rgb),.14); color: var(--amber); font-weight: 600; }
.pos-foot { margin-top: 12px; display: flex; justify-content: flex-end; }

.meta { display: flex; align-items: center; justify-content: space-between; padding: 9px 16px 0; font-size: 12px; color: var(--t3); letter-spacing: .2px; flex: 0 0 auto; }
.pill { background: rgba(var(--amber-rgb),.16); color: var(--amber); font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 4px; margin-right: 8px; font-style: normal; }
.pill.ok { background: var(--amber); color: var(--on-amber); }

.tools { display: flex; gap: 2px; margin-top: 10px; padding: 0 10px; flex: 0 0 auto; }
.tools button {
  flex: 1; min-width: 0; min-height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  padding: 8px 0; border-radius: 12px; border: none; background: none;
  color: var(--t2); font-size: 12px; letter-spacing: .1px; cursor: pointer;
}
.tools button svg { width: 22px; height: 22px; }
.tools button.on { background: var(--amber); color: var(--on-amber); }
.tools button.on span { font-weight: 700; }

.tiles { display: flex; gap: 11px; padding: 12px 12px 0; overflow-x: auto; flex: 0 0 auto; }
.tile { flex: 0 0 auto; background: none; border: none; color: var(--t1); cursor: pointer; min-height: 44px; }
.tile .bx {
  width: 60px; height: 60px; border-radius: var(--r-md); border: 1px solid var(--line2);
  background: var(--surf-4); display: flex; align-items: center; justify-content: center;
  color: var(--t2); position: relative; overflow: hidden;
}
.tile .bx svg { width: 28px; height: 28px; }
.tile .n { font-size: 11.5px; text-align: center; color: var(--t3); margin-top: 7px; letter-spacing: .1px; white-space: nowrap; }
.tile.on .bx { border-color: var(--amber); background: rgba(var(--amber-rgb),.11); color: var(--amber); box-shadow: 0 0 0 1px var(--amber); }
.tile.on .n { color: var(--amber); font-weight: 600; }
.tile .bx.logo { background: var(--amber); border-color: var(--amber); color: var(--on-amber); }
.tile .bx.logo b { font-size: 16px; font-weight: 800; letter-spacing: -.4px; }
.tile .bx.logo i { position: absolute; background: var(--bg); }
.tile .bx.logo i:nth-child(1) { width: 9px; height: 9px; left: 25.5px; top: 9px; }
.tile .bx.logo i:nth-child(2) { width: 9px; height: 9px; left: 16.5px; top: 19px; }
.tile .bx.logo i:nth-child(3) { width: 9px; height: 9px; left: 25.5px; top: 19px; }
.tile .bx.logo i:nth-child(4) { width: 9px; height: 9px; left: 34.5px; top: 19px; }
.tile .bx.logo i:nth-child(5) { width: 9px; height: 9px; left: 25.5px; top: 29px; }
.tile .bx.logo i:nth-child(6) { width: 6px; height: 12px; left: 27px; top: 39px; }
.tile.on .bx.logo { background: var(--amber); border-color: var(--amber); color: var(--on-amber); box-shadow: 0 0 0 2px var(--amber), 0 0 16px -5px rgba(var(--amber-rgb),.75); }
.tile .bx.ghost { background: transparent; border-style: dashed; border-color: rgba(var(--amber-rgb),.42); color: var(--amber); }
.tile .bx.ghost b { font-size: 14px; font-weight: 700; }
.tile .bx .lk-mark { position: absolute; right: 4px; top: 4px; width: 11px; height: 11px; color: var(--amber); }

.ed-btns { display: flex; gap: 9px; padding: 12px 16px calc(14px + var(--safe-b)); flex: 0 0 auto; }
.btn {
  flex: 1; min-height: 52px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 500; letter-spacing: .2px;
  border: 1px solid var(--line2); background: var(--surf-5); color: var(--t1); cursor: pointer;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { background: var(--surf-12); }
.btn.p { background: var(--amber); color: var(--on-amber); border-color: var(--amber); font-weight: 700; box-shadow: 0 6px 18px -8px rgba(var(--amber-rgb),.8); }
.btn.p:active { filter: brightness(.92); }
.btn:disabled { opacity: .5; }

/* ── 工具面板 ─────────────────────────────── */
.panel-mask { position: absolute; inset: 0; z-index: 40; background: rgba(0,0,0,.14); display: none; }
.panel-mask.on { display: block; }
/* 排布模式：遮罩不能拦住画布上的拖拽 */
.panel-mask.pass { pointer-events: none; background: transparent; }
.panel {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 41; background: var(--panel);
  border-top: 1px solid rgba(var(--amber-rgb),.28); border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: 14px 16px calc(16px + var(--safe-b)); display: none;
  box-shadow: 0 -14px 40px rgba(0,0,0,.55);
  max-height: 60dvh; overflow: hidden;
}
/* 面板打开时把模板方块与导出按钮收起，把垂直空间还给画布；
   JS 会给 #scr-editor 加等高的 padding-bottom，画布等比缩小且完全可见 */
#scr-editor.panel-open .tiles, #scr-editor.panel-open .ed-btns { display: none; }
.panel.on { display: block; animation: up .2s ease-out; }
.panel-h { font-size: 16px; font-weight: 600; margin-bottom: 14px; }
.panel-b { display: flex; gap: 12px; overflow-x: auto; align-items: flex-start; }
.panel-b.col { display: block; max-height: 34dvh; overflow-y: auto; overflow-x: hidden; padding-right: 2px; }
.panel-b .tile .bx { width: 64px; height: 64px; }
.panel-b .tile .bx svg { width: 30px; height: 30px; }

/* 参数控件：一行标题 + 一条 28px 拇指的滑杆 */
.ctl { width: 100%; padding: 2px 0 16px; }
.ctl-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.ctl-h label { font-size: 14px; color: var(--t1); }
.ctl-h output { font-size: 14px; color: var(--amber); font-weight: 700; }
input[type="range"] {
  width: 100%; display: block; appearance: none; -webkit-appearance: none;
  height: 6px; border-radius: 3px; background: var(--surf-16); outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none; -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--amber); border: 5px solid #26240f; box-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.ctl-note { font-size: 12px; color: var(--t3); line-height: 1.6; margin-top: 6px; }
/* 1.9 细节级别三档 / 填充形态五档 */
.ink-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.fill-chips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin-bottom: 10px; }
.fill-chips button {
  border: 1px solid var(--line2); background: var(--surf-3); color: var(--t1);
  border-radius: var(--r-md); padding: 8px 2px; cursor: pointer; text-align: center;
  font-size: 11.5px; line-height: 1.25; white-space: nowrap;
}
.fill-chips button.on { border-color: var(--amber); background: rgba(var(--amber-rgb),.16); color: var(--amber); }
.ink-chips button {
  border: 1px solid var(--line2); background: var(--surf-3); color: var(--t1);
  border-radius: var(--r-md); padding: 9px 6px; cursor: pointer; text-align: center;
  font-size: 14px; line-height: 1.3;
}
.ink-chips button b { display: block; font-weight: 600; }
.ink-chips button small { display: block; font-size: 10.5px; color: var(--t3); margin-top: 3px; }
.ink-chips button.on { border-color: var(--amber); background: rgba(var(--amber-rgb),.16); color: var(--amber); }
.ink-chips button.on small { color: var(--amber); opacity: .82; }
.sw {
  width: 100%; min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px; margin-bottom: 9px; border-radius: var(--r-md); text-align: left;
  border: 1px solid var(--line2); background: var(--surf-3); color: var(--t1);
  font-size: 14px; cursor: pointer;
}
.sw small { display: block; font-size: 11.5px; color: var(--t3); margin-top: 3px; font-weight: 400; }
.sw i { width: 46px; height: 27px; border-radius: var(--r-md); background: var(--surf-16); position: relative; flex: 0 0 auto; transition: background .18s; }
.sw i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 21px; height: 21px; border-radius: 50%; background: #9a9a90; transition: left .18s, background .18s; }
.sw.on { border-color: rgba(var(--amber-rgb),.55); background: rgba(var(--amber-rgb),.08); }
.sw.on i { background: var(--amber); }
.sw.on i::after { left: 22px; background: var(--bg); }
.panel-foot {
  display: flex; gap: 9px; margin-top: 4px;
  position: sticky; bottom: -1px; background: var(--panel); padding: 8px 0 2px;
}
.mini-btn {
  flex: 1; min-height: 46px; border-radius: 12px; border: 1px solid var(--line2);
  background: var(--surf-4); color: var(--t1); font-size: 14px; cursor: pointer;
}
.mini-btn.p { background: var(--amber); border-color: var(--amber); color: var(--on-amber); font-weight: 700; }
/* 2.8：删除是危险但次要的动作，收在左边、不抢主按钮 */
.mini-btn.dim { flex: 0 0 74px; background: transparent; border-color: var(--surf-9);
  color: var(--t3); font-size: 13px; }
.mini-btn:active { filter: brightness(1.15); }

.txt-in {
  width: 100%; min-height: 50px; background: var(--surf-5); border: 1px solid var(--line2); border-radius: var(--r-md);
  color: var(--t1); font-size: 16px; padding: 12px 14px; outline: none;
}
.txt-in:focus { border-color: var(--amber); }
.txt-hint { font-size: 12px; color: var(--t3); margin-top: 10px; line-height: 1.7; }
.qopt {
  flex: 1; min-height: 74px; border: 1px solid var(--line2); background: var(--surf-4); border-radius: var(--r-md);
  padding: 14px; color: var(--t1); text-align: left; cursor: pointer; position: relative;
}
.qopt b { font-size: 15px; font-weight: 600; display: block; }
.qopt em { font-style: normal; font-size: 12px; color: var(--t3); display: block; margin-top: 5px; }
.qopt.on { border-color: var(--amber); background: rgba(var(--amber-rgb),.11); box-shadow: 0 0 0 1px var(--amber); }
.qopt.on em { color: var(--amber); }
.qopt.lk { opacity: .6; }

/* ── 我的 ─────────────────────────────── */
#scr-mine { overflow-y: auto; padding-bottom: calc(var(--tab-h) + var(--safe-b) + 20px); }
.mine-hd { display: flex; align-items: center; gap: 12px; padding: 16px 16px 14px; }
.mine-card { margin: 4px 16px 20px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surf-2); }
.mine-row { padding: 15px 16px; font-size: 14px; }
.mine-row + .mine-row { border-top: 1px solid var(--line); }
.mine-row.dim { color: var(--t3); font-size: 12.5px; line-height: 1.6; }
.mine-sub { font-size: 13px; color: var(--t2); padding: 0 16px 12px; letter-spacing: .3px; }
.mine-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; padding: 0 16px; }
.mine-grid img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--la); image-rendering: pixelated; }
.mine-empty { text-align: center; color: var(--t3); font-size: 13px; line-height: 2; padding: 40px 0; display: none; }
.mine-empty.on { display: block; }

/* ── Toast ─────────────────────────────── */
#toast {
  position: absolute; left: 50%; bottom: calc(var(--tab-h) + var(--safe-b) + 26px);
  transform: translateX(-50%) translateY(8px); z-index: 90;
  background: rgba(20,20,14,.96); border: 1px solid var(--la); color: #F2F2EC;
  font-size: 14px; padding: 12px 20px; border-radius: 999px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: all .25s ease; max-width: 88vw;
  overflow: hidden; text-overflow: ellipsis;
}
#toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 渲染参数开关：两列排布，少占垂直空间、把画面还给画布 */
.sw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 10px; }
.sw-grid .sw { margin-bottom: 0; min-height: 68px; padding: 10px; gap: 6px; font-size: 13px; }
.sw-grid .sw small { font-size: 10.5px; line-height: 1.35; }
.sw-grid .sw i { width: 36px; height: 21px; }
.sw-grid .sw i::after { width: 15px; height: 15px; }
.sw-grid .sw.on i::after { left: 18px; }

/* ── 矮屏（iPhone SE / 老机型，≤720px 高）─────────────────
   面板打开时垂直空间极紧，优先保证「画布看得见参数效果」：
   收起信息行、压缩工具条与面板内边距，把省下的高度全给画布。 */
@media (max-height: 720px) {
  #scr-editor.panel-open .meta { display: none; }
  #scr-editor.panel-open .tools { margin-top: 2px; }
  #scr-editor.panel-open .tools button { min-height: 48px; padding: 5px 0; gap: 3px; }
  #scr-editor.panel-open .tools button svg { width: 20px; height: 20px; }
  .panel { padding-top: 10px; max-height: 52dvh; }
  .panel .grab { margin-bottom: 8px; }
  .panel-h { margin-bottom: 9px; }
  .panel-b.col { max-height: 25dvh; }
  .ctl { padding-bottom: 10px; }
  .ctl-h { margin-bottom: 8px; }
  .ctl-note { margin-top: 4px; }
  .sw-grid .sw { min-height: 58px; padding: 8px 9px; }
}

/* ── 我的 · 账号卡片 / 功能列表 ───────────────── */
.acct {
  margin: 4px 16px 18px; padding: 16px; border-radius: var(--r-md);
  border: 1px solid var(--la); background: linear-gradient(135deg, rgba(var(--amber-rgb),.10), rgba(var(--amber-rgb),.02));
  display: flex; align-items: center; gap: 13px;
}
.acct .av {
  width: 48px; height: 48px; border-radius: var(--r-md); flex: 0 0 auto;
  background: rgba(var(--amber-rgb),.18); border: 1px solid var(--la);
  display: flex; align-items: center; justify-content: center; color: var(--amber);
}
.acct .av svg { width: 25px; height: 25px; }
.acct .info { flex: 1; min-width: 0; }
.acct .info b { font-size: 15px; font-weight: 600; display: block; }
.acct .info small { font-size: 12px; color: var(--t3); display: block; margin-top: 4px; line-height: 1.5; }
.acct .act {
  flex: 0 0 auto; min-height: 38px; padding: 0 15px; border-radius: 999px;
  background: var(--amber); color: var(--on-amber); border: none; font-size: 13px; font-weight: 700; cursor: pointer;
}
.acct .act.ghost { background: transparent; border: 1px solid var(--line2); color: var(--t2); font-weight: 500; }
.mcard-list { margin: 0 16px 22px; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--surf-1); }
.mrow {
  width: 100%; min-height: 54px; display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; background: none; border: none; color: var(--t1);
  font-size: 14px; text-align: left; cursor: pointer;
}
.mrow + .mrow { border-top: 1px solid var(--line); }
.mrow:active { background: rgba(var(--amber-rgb),.08); }
.mrow span { flex: 0 0 auto; }
.mrow em { font-style: normal; font-size: 12px; color: var(--t3); margin-left: auto; }
.mrow svg { width: 15px; height: 15px; color: var(--t3); flex: 0 0 auto; }

/* ── 登录 / 注册 ───────────────────────────── */
.login-body { flex: 1; overflow-y: auto; padding: 24px 16px 40px; }
.login-logo {
  width: 58px; height: 58px; position: relative; margin: 8px auto 22px;
}
.login-logo img { width: 100%; height: 100%; display: block; }
.login-body h2 { font-size: 21px; font-weight: 700; text-align: center; }
.login-body > p { font-size: 13px; color: var(--t3); text-align: center; margin-top: 8px; }
.login-form { margin-top: 30px; }
/* 手机号验证码模式：密码与验证码两组字段互斥显隐 */
.login-form [hidden] { display: none !important; }
.login-form label { display: block; font-size: 13px; color: var(--t2); margin-bottom: 18px; }
.login-form input {
  width: 100%; min-height: 50px; margin-top: 9px; padding: 12px 14px;
  border-radius: var(--r-md); border: 1px solid var(--line2); background: var(--surf-5);
  color: var(--t1); font-size: 16px; outline: none;
}
.login-form input:focus { border-color: var(--amber); }
.login-form .btn { width: 100%; margin-top: 6px; }
.login-alt { text-align: center; font-size: 13px; color: var(--t3); margin-top: 18px; }
.login-alt button { background: none; border: none; color: var(--amber); font-size: 13px; cursor: pointer; padding: 6px; }
/* 登录门禁：唤起原因提示 */
#li-why { color: var(--amber); font-weight: 600; }
/* 验证码行：输入框 + 获取验证码按钮同排 */
.li-code-row { display: flex; gap: 8px; align-items: center; margin-top: 9px; }
.li-code-row input { flex: 1; min-width: 0; margin-top: 0; }
.li-code-row .btn {
  width: auto; margin-top: 0; flex: 0 0 auto; padding: 0 14px;
  min-height: 50px; font-size: 14px; white-space: nowrap;
}
.li-code-row .btn:disabled { opacity: .55; }

/* ── 设置页 ───────────────────────────────── */
.set-body { flex: 1; overflow-y: auto; padding: 8px 16px calc(30px + var(--safe-b)); }
.set-group { margin-bottom: 22px; }
.set-gh { font-size: 12px; color: var(--t3); letter-spacing: .5px; padding: 0 2px 10px; }
.set-card { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--surf-1); }
.set-row {
  width: 100%; min-height: 56px; display: flex; align-items: center; gap: 12px;
  padding: 12px 15px; border: none; background: none; color: var(--t1);
  font-size: 14px; text-align: left; cursor: pointer;
}
.set-row + .set-row { border-top: 1px solid var(--line); }
.set-row .k { flex: 1; }
.set-row .k small { display: block; font-size: 11.5px; color: var(--t3); margin-top: 4px; line-height: 1.5; }
.set-row .v { font-size: 13px; color: var(--amber); flex: 0 0 auto; }
.set-row .v.mute { color: var(--t3); }
.set-row:active { background: rgba(var(--amber-rgb),.07); }
.set-seg { display: flex; gap: 6px; padding: 12px 14px; flex-wrap: wrap; }
.set-seg + .set-seg { border-top: 1px solid var(--line); }
.set-seg > label { font-size: 13px; color: var(--t2); flex: 0 0 100%; margin-bottom: 2px; }
.set-seg button {
  min-height: 40px; padding: 8px 15px; border-radius: var(--r-md); font-size: 13px;
  border: 1px solid var(--line2); background: var(--surf-3); color: var(--t2); cursor: pointer;
}
.set-seg button.on { background: var(--amber); color: var(--on-amber); border-color: var(--amber); font-weight: 700; }
/* v0.16.0 设置「默认」折叠卡：收起来只留一行摘要，展开才露出分段 */
.set-fold { display: none; border-top: 1px solid var(--line); }
.set-fold.on { display: block; }
#set-def-h .v { font-size: 12px; }
#set-def-h .k small { color: var(--t3); }
.set-seg button:disabled { opacity: .45; }
.set-danger { color: #e8805a; }
.about-box { padding: 16px; border: 1px solid var(--line); border-radius: var(--r-md); font-size: 12.5px; color: var(--t3); line-height: 1.9; }
.about-box b { color: var(--t2); font-weight: 600; }

/* ── 作品详情 ─────────────────────────────── */
.viewer {
  position: absolute; inset: 0; z-index: 70; background: rgba(6,6,5,.98);
  display: none; flex-direction: column;
}
.viewer.on { display: flex; }
.viewer-hd { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; font-size: 15px; font-weight: 600; flex: 0 0 auto; }
.viewer-img { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 8px 16px; }
.viewer-img img { max-width: 100%; max-height: 100%; object-fit: contain; image-rendering: pixelated; border: 1px solid var(--la); border-radius: var(--r-sm); }
.viewer-ft { flex: 0 0 auto; padding: 10px 16px calc(20px + var(--safe-b)); }
.viewer-meta { font-size: 12px; color: var(--t3); text-align: center; margin-bottom: 14px; }
.viewer-btns { display: flex; gap: 10px; }

/* ── 发现页：两行卡片信息 / 空状态 ───────────── */
.mcard .lb { white-space: normal; font-size: 11.5px; line-height: 1.5; }
.mcard .lb b { display: block; color: var(--t2); font-weight: 600; font-size: 12px; }
.feed-empty { width: 100%; text-align: center; color: var(--t3); font-size: 13px; line-height: 2; padding: 70px 20px; }
.feed-empty b { display: block; color: var(--amber); font-size: 15px; margin-bottom: 8px; }

#feed .feed-empty { display: none; }
#feed.is-empty .col { display: none; }
#feed.is-empty .feed-empty { display: block; }

/* ═══════════════════════════════════════════════════════════════
   0.3 版 · 妙剪式结构 / 悬浮胶囊 / 两层工具栏 / 全局动效
   本节统一放在最后，用较高选择器权重覆盖上面的旧布局规则。
   ═══════════════════════════════════════════════════════════════ */

:root { --ease: cubic-bezier(.22,.68,.32,1); }

/* ── 动效 ─────────────────────────────────── */
@keyframes scrIn { from { opacity: .45; transform: translateY(7px); } }
@keyframes subIn { from { opacity: 0; transform: translateX(-10px); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(9px); } }
@keyframes popIn { from { opacity: 0; transform: translateY(-8px) scale(.97); } }
.screen.on { animation: scrIn .26s var(--ease) both; }
button { transition: transform .14s var(--ease), background-color .18s, border-color .18s, color .18s, opacity .18s; }
button:active { transform: scale(.955); }
.mcard, .cvr { animation: cardIn .32s var(--ease) both; }

/* ── 悬浮胶囊导航 ─────────────────────────── */
#tabbar {
  position: absolute; left: 50%; bottom: calc(12px + var(--safe-b));
  transform: translateX(-50%);
  width: min(86vw, 336px); height: 62px; padding: 6px;
  border-radius: 999px; border: 1px solid var(--surf-9);
  background: var(--tab-bg); backdrop-filter: blur(22px) saturate(1.25);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
  box-shadow: 0 12px 34px rgba(0,0,0,.6), inset 0 1px 0 var(--surf-5);
  z-index: 65; display: flex; align-items: center; gap: 4px;
}
#tabbar > div {
  flex: 1 1 0; height: 100%; border-radius: 999px; gap: 2px;
  font-size: 11.5px; color: var(--t2);
}
#tabbar > div.on { background: none; color: var(--t1); }
#tabbar > div.on span { font-weight: 700; }
/* 1.9d 杂志详情页中间「创作」行动点：琥珀药丸（首页四 tab 底栏仍等权） */
#tabbar > div.cta { background: var(--amber); color: var(--on-amber); font-weight: 700;
  box-shadow: 0 3px 14px rgba(var(--amber-rgb),.35); }
#tabbar > div.cta svg { stroke: var(--on-amber); }
#tabbar svg { width: 20px; height: 20px; }
#tabbar .plus-wrap { flex: 0 0 62px !important; }
#btn-plus { width: 46px; height: 46px; margin: 0; box-shadow: 0 3px 12px rgba(var(--amber-rgb),.32); }
#btn-plus svg { width: 22px; height: 22px; }
#app.scr-editor #tabbar, #app.scr-ipick #tabbar,
#app.scr-login #tabbar, #app.scr-settings #tabbar, #app.scr-cert #tabbar { display: none; }
/* 内容要给悬浮胶囊让出底部空间 */
#scr-home .feed, #scr-mine { padding-bottom: calc(102px + var(--safe-b)); }

/* ── 首页：品牌 / 直接开始 / 瀑布流灵感案例 ─── */
.brand { padding: 16px 16px 8px; }
.brand-sign {
  margin-left: auto; text-align: right; line-height: 1.1; transform: rotate(-8deg);
  color: var(--amber); opacity: .9;
}
.brand-sign b {
  display: block; font-size: 10px; font-style: italic; font-weight: 800;
  letter-spacing: .8px;
}
.brand-sign em {
  display: block; font-style: italic; font-weight: 800; font-size: 23px;
  letter-spacing: -1px;
}
/* 快捷入口先隐藏不删除，未来作为增值功能放出 */
.quick { display: none !important; }
.start-hint {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 10px 16px 2px;
}
.start-hint span { font-size: 13.5px; color: var(--amber); font-weight: 600; }
.start-hint em { font-style: normal; font-size: 11px; color: var(--t3); }
.issue-strip { margin-top: 10px; }
.inspire { margin: 18px 0 16px; }
.inspire-h { display: flex; align-items: baseline; gap: 8px; padding: 0 16px 10px; }
.inspire-h b { font-size: 15px; font-weight: 700; color: var(--t1); letter-spacing: .2px; }
.inspire-h span { font-size: 11.5px; color: var(--t3); }
.inspire-h button {
  margin-left: auto; flex: none; min-height: 28px; padding: 0 10px; border-radius: 999px;
  font-size: 11px; color: var(--amber); background: transparent;
  border: 1px solid var(--la);
}
.inspire-row {
  display: flex; gap: 10px; padding: 0 16px 6px; overflow-x: auto;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.inspire-row::-webkit-scrollbar { display: none; }
.ins-card {
  flex: 0 0 124px; width: 124px; min-width: 0; max-width: 124px;
  padding: 0; border: 0; background: transparent; text-align: left;
  display: flex; flex-direction: column; gap: 5px; overflow: hidden;
}
.ins-card img {
  width: 124px; aspect-ratio: 3 / 4; object-fit: cover; display: block;
  border-radius: var(--r-md); border: 1px solid var(--line2); background: var(--surf-3);
}
.ins-card b {
  font-size: 12px; font-weight: 600; color: var(--t1); line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ins-card small { font-size: 10.5px; color: var(--t3); }
.ins-card:active img { filter: brightness(.82); }
.quick button {
  flex: 1 1 0; min-height: 92px; min-width: 0; padding: 12px 11px;
  border-radius: var(--r-md); border: 1px solid var(--la); color: var(--t1);
  background: linear-gradient(150deg, rgba(var(--amber-rgb),.12), rgba(var(--amber-rgb),.02));
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  gap: 3px; text-align: left;
}
.quick button:active { border-color: var(--amber); }
.quick .qi { width: 26px; height: 26px; color: var(--amber); margin-bottom: 4px; }
.quick .qi svg { width: 25px; height: 25px; }
.quick b { font-size: 14px; font-weight: 600; }
.quick small { font-size: 11px; color: var(--t3); }

.catbar { gap: 18px; margin: 0 16px 8px; padding-bottom: 8px; }
.feed {
  display: block; flex: 1; min-height: 0;
  padding: 6px 0 calc(102px + var(--safe-b)); overflow-y: auto; overflow-x: hidden;
}
.feed-head { display: flex; align-items: baseline; gap: 10px; padding: 14px 16px 12px; }
.feed-head b { font-size: 16px; font-weight: 600; }
.feed-head em { font-style: normal; font-size: 11.5px; color: var(--t3); }
.feed-track {
  display: flex; gap: 12px; padding: 0 16px 14px; overflow-x: auto;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.feed-track::-webkit-scrollbar { display: none; }
.feed-track .mcard { flex: 0 0 auto; width: 166px; scroll-snap-align: start; }
.feed-track .mcard.wide { width: 254px; }
.feed-track .mcard.sq { width: 150px; }
.feed .mcard img { aspect-ratio: var(--ar, 3 / 4); }
.feed-track .ratio {
  position: absolute; right: 7px; bottom: 7px; font-size: 10px; font-weight: 700;
  color: #1a1a1a; background: rgba(198,198,198,.82); border: none;
  padding: 3px 6px; border-radius: 4px; letter-spacing: .3px;
}
/* 两列瀑布流：像 Pinterest 一样上下无限滑 */
.masonry { display: flex; gap: 9px; padding: 0 16px; }
.feed .col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
#feed.is-empty .feed-track { display: none; }
#feed.is-empty .feed-empty { display: block; }

/* ── 项目页（轻量） ───────────────────────── */
#scr-mine { position: relative; }
.proj-hd { display: flex; align-items: center; justify-content: space-between; padding: 20px 16px 10px; flex: 0 0 auto; }
.proj-title h1 { font-size: 28px; font-weight: 800; letter-spacing: 1px; }
.proj-title p { font-size: 12px; color: var(--t3); margin-top: 5px; }
.proj-tools { display: flex; gap: 8px; }
.proj-tools .ib { width: 40px; height: 40px; border-radius: 50%; }
.proj-tools .ib svg { width: 19px; height: 19px; }
.proj-chips { display: flex; flex-direction: column; gap: 8px; padding: 8px 16px 14px; flex: 0 0 auto; }
/* 2.35 一级：三组上下罗列（创作/认领/互动），组带小标题，条目样式统一整行卡 */
.mine-group { display: flex; flex-direction: column; gap: 8px; }
.mg-title { font-size: 11.5px; color: var(--t3); padding: 0 2px; }
.mine-group + .mine-group { margin-top: 14px; }
.proj-chips span {
  display: flex; align-items: center; justify-content: flex-start; gap: 6px;
  min-height: 48px; padding: 0 15px; border-radius: 12px; font-size: 14px; font-weight: 600;
  color: var(--t2); background: var(--surf-5); border: 1px solid transparent; cursor: pointer;
}
.proj-chips span.on { background: rgba(var(--amber-rgb),.14); border-color: var(--la); color: var(--amber); }
.proj-chips b { font-weight: 700; }
.proj-chips .mt-lbl { flex: 0 0 auto; }
.proj-chips .mt-num { margin-left: auto; opacity: .72; font-size: .9em; font-weight: 500; }
.proj-chips .mt-num i { font-style: normal; }
.mt-chev { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--t3); stroke-width: 2; }

/* 2.34 二级：返回栏 + 标题 + 右上角动作 + 已发布/草稿箱 tab */
/* 作者样式的 display 会盖过 UA 的 [hidden]，二级视图元素必须显式压回 */
#scr-mine [hidden] { display: none !important; }
.mine-topbar {
  display: flex; align-items: center; gap: 10px; flex: 0 0 auto;
  padding: 6px 16px 10px; border-bottom: 1px solid var(--line2);
}
.mine-topbar .ib { width: 36px; height: 36px; border-radius: 50%; background: var(--surf-5); border: 1px solid var(--line2); }
.mine-topbar .ib svg { width: 18px; height: 18px; fill: none; stroke: var(--t1); stroke-width: 2; }
.mine-topbar b { font-size: 15px; font-weight: 600; }
.mine-lv-act { margin-left: auto; padding: 7px 13px; border-radius: 999px; font-size: 12px; color: var(--amber); background: rgba(var(--amber-rgb),.12); border: 1px solid var(--la); }
.mine-tabs { display: flex; gap: 18px; padding: 8px 16px 0; flex: 0 0 auto; border-bottom: 1px solid var(--line2); }
.mine-tabs span { position: relative; padding: 8px 0 11px; font-size: 13px; color: var(--t2); cursor: pointer; }
.mine-tabs span.on { color: var(--amber); font-weight: 600; }
.mine-tabs span.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--amber); }
.mine-tabs b { font-size: 10px; opacity: .7; margin-left: 2px; }
.mine-lv2 { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; }
#scr-mine .mine-sub { padding: 12px 16px 10px; }
#scr-mine .mine-grid { padding: 0 16px; }
#scr-mine .mine-empty { padding-bottom: 40px; }
.draft-pane { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 16px 24px; }
.draft-empty { text-align: center; color: var(--t3); font-size: 12px; line-height: 1.9; padding: 40px 0; }
.draft-item { display: flex; gap: 11px; align-items: center; padding: 10px; margin-bottom: 10px; border: 1px solid var(--line2); border-radius: var(--r-md); background: var(--surf-2); cursor: pointer; }
.draft-item img { width: 54px; height: 72px; object-fit: cover; border-radius: var(--r-sm); background: #fff; flex: none; }
.draft-item .di-t { flex: 1; min-width: 0; }
.draft-item .di-t b { display: block; font-size: 13px; color: var(--t1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.draft-item .di-t small { display: block; margin-top: 5px; font-size: 10.5px; color: var(--t3); }
.draft-item .di-del { flex: none; width: 30px; height: 30px; border-radius: var(--r-sm); border: 1px solid var(--line2); background: var(--surf-3); color: var(--t3); font-size: 15px; }

/* 账号抽屉：账号/会员/授权不再占一整页 */
.acct-drawer { position: absolute; inset: 0; z-index: 64; display: none; }
.acct-drawer.on { display: block; }
.drawer-mask { position: absolute; inset: 0; background: rgba(0,0,0,.62); }
.drawer-body {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(24px + var(--safe-b));
  background: var(--panel); border-top: 1px solid var(--la); border-radius: var(--r-lg) var(--r-lg) 0 0;
  animation: up .24s var(--ease) both;
}
.drawer-body .grab { margin-bottom: 14px; }
.drawer-body .acct { margin: 0 0 16px; }
.drawer-body .mcard-list { margin: 0; }

/* ── 编辑器顶栏：返回 / 尺寸▾ / 导出 ───────── */
.ed-top { gap: 6px; padding: 8px 12px; min-height: 56px; }
.ed-top .tb-title { flex: 1 1 auto; text-align: left; font-size: 13px; padding-left: 4px; min-width: 0; }
.ed-top .tb-title em { font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-top-r { display: flex; gap: 7px; align-items: center; flex: 0 0 auto; }
.size-btn {
  min-height: 36px; padding: 0 11px; border-radius: 999px; white-space: nowrap;
  background: var(--surf-9); border: 1px solid var(--line2); color: var(--t1); font-size: 12px;
}
.size-btn i { font-style: normal; color: var(--amber); margin-left: 3px; }
.export-btn {
  min-height: 36px; padding: 0 16px; border-radius: 999px; border: none;
  background: var(--amber); color: var(--on-amber); font-size: 13px; font-weight: 700;
}
.popover {
  position: absolute; z-index: 66; top: calc(58px + env(safe-area-inset-top, 0px)); right: 12px;
  width: 218px; padding: 12px; border-radius: var(--r-md); border: 1px solid var(--la);
  background: var(--tab-bg); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 14px 36px rgba(0,0,0,.6);
  opacity: 0; transform: translateY(-8px) scale(.97); pointer-events: none;
  transition: opacity .18s var(--ease), transform .2s var(--ease);
}
.popover.on { opacity: 1; transform: none; pointer-events: auto; }
.pop-h { font-size: 12px; color: var(--t3); padding: 2px 2px 10px; }
.pop-note { font-size: 11px; color: var(--t3); line-height: 1.65; padding: 6px 2px 2px; }
.popover .qopt {
  width: 100%; min-height: 52px; margin: 0 0 7px; padding: 9px 12px; text-align: left;
  border-radius: var(--r-md); border: 1px solid var(--line2); background: var(--surf-3); color: var(--t1);
}
.popover .qopt b { font-size: 14px; }
.popover .qopt em { font-size: 11px; margin-top: 3px; }
.popover .qopt.lk { opacity: .5; }
.ed-btns.popover { width: 202px; display: flex; flex-direction: column; gap: 8px; }
.ed-btns.popover .btn { width: 100%; min-height: 46px; margin: 0; }

/* 更换素材：浮在画布左上角，不再占顶栏 */
#scr-editor .stage { position: relative; }
#scr-editor .src {
  position: absolute; left: 10px; top: 10px; z-index: 6;
  width: 38px; height: 38px; min-width: 38px; min-height: 38px; border-radius: 12px;
  background: rgba(10,10,8,.74); border: 1px solid var(--la);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
#scr-editor .src svg { width: 19px; height: 19px; }
#scr-editor .src.logo i:nth-child(1) { left: 16px; top: 6px; }
#scr-editor .src.logo i:nth-child(2) { left: 10px; top: 13px; }
#scr-editor .src.logo i:nth-child(3) { left: 16px; top: 13px; }
#scr-editor .src.logo i:nth-child(4) { left: 22px; top: 13px; }
#scr-editor .src.logo i:nth-child(5) { left: 16px; top: 20px; }
#scr-editor .src.logo i:nth-child(6) { left: 16.5px; top: 27px; }

/* ── 底部 dock：面板在工具栏上方「推」出来 ─── */
.dock { flex: 0 0 auto; position: relative; z-index: 12; }
#scr-editor .panel {
  position: static; display: block; max-height: 0; opacity: 0; overflow: hidden;
  padding: 0 16px; border: 0; border-radius: 0; background: transparent; box-shadow: none;
  animation: none;
  transition: max-height .3s var(--ease), opacity .22s var(--ease), padding .3s var(--ease);
}
#scr-editor .panel.on {
  max-height: 46dvh; opacity: 1; padding: 4px 16px 10px; animation: none;
}
#scr-editor .panel .grab { display: none; }
#scr-editor .panel-h { font-size: 14px; margin-bottom: 10px; }
#scr-editor .panel-b.col { max-height: 30dvh; }
#scr-editor.panel-open .tiles, #scr-editor.panel-open .ed-btns { display: none; }

#ed-tools {
  display: flex; gap: 4px; padding: 8px 12px calc(8px + var(--safe-b));
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
#ed-tools::-webkit-scrollbar { display: none; }
#ed-tools button {
  flex: 0 0 62px; min-width: 62px; min-height: 56px; padding: 6px 0; gap: 4px;
  border-radius: var(--r-md); border: 1px solid transparent; background: transparent; color: var(--t2);
  font-size: 11.5px;
}
#ed-tools button.on { background: rgba(var(--amber-rgb),.15); color: var(--amber); border-color: var(--la); }
#ed-tools button svg { width: 22px; height: 22px; }
/* 2.22：用了会员能力的工具，右上角一个低调小灰点，点工具直接进对应面板 */
#ed-tools button { position: relative; }
.tool-vip-dot {
  position: absolute; top: 6px; right: 10px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--t3, #8a8a8a); pointer-events: none;
}

#ed-subbar {
  display: none; align-items: center; gap: 8px; padding: 8px 12px calc(8px + var(--safe-b));
  border-top: 1px solid var(--line); background: var(--panel);
}
#scr-editor.sub-open #ed-subbar { display: flex; animation: subIn .22s var(--ease) both; }
#scr-editor.sub-open #ed-tools { display: none; }
.sub-back {
  flex: 0 0 auto; min-width: 44px; height: 44px; border-radius: 999px;
  padding: 0 12px 0 9px; gap: 4px;
  background: var(--surf-5); border: 1px solid var(--line2); color: var(--t1);
  display: flex; align-items: center; justify-content: center;
}
.sub-back svg { width: 19px; height: 19px; flex: none; }
.sub-back .sub-back-label { font-size: 13px; font-weight: 600; color: var(--amber); max-width: 110px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sub-back .sub-back-label:empty { display: none; }
.subopts { display: flex; gap: 8px; overflow-x: auto; flex: 1; min-width: 0; scrollbar-width: none; }
.subopts::-webkit-scrollbar { display: none; }
.subopts button {
  flex: 0 0 auto; min-height: 44px; padding: 0 15px; border-radius: 999px;
  background: var(--surf-5); border: 1px solid var(--line2);
  color: var(--t2); font-size: 13px; white-space: nowrap;
}
.subopts button.on { background: var(--amber); color: var(--on-amber); border-color: var(--amber); font-weight: 700; }
.subopts button.act { color: var(--amber); border-color: var(--la); }
.subopts .spacer { flex: 1 0 4px; }

#ed-tiles { display: none !important; }
#scr-editor .panel-mask { display: none !important; }

/* ── 选 IP：白底圆形插画 + 更新角标 ───────── */
.cvr img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: contain; border: none; border-radius: 50%;
  background: #fff; image-rendering: auto;   /* 2.4：透明 webp 一律铺白底（detail-opt-v1 ①） */
}
.cvr:active img { border: none; filter: brightness(.9); }
.cvr .upd {
  position: absolute; top: 2px; right: 2px; z-index: 2;
  width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--bg);
  background: var(--amber); color: var(--on-amber); display: flex; align-items: center; justify-content: center;
}
.cvr .upd svg { width: 15px; height: 15px; stroke-width: 2.3; }
.cvr .upd.busy { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#ipick-update-all.busy svg { animation: spin 1s linear infinite; }
.cvr .no { margin-top: 6px; }

/* ── 矮屏：优先保住画布 ─────────────────────── */
@media (max-height: 720px) {
  #scr-editor.panel-open .meta { display: none; }
  #scr-editor .panel.on { max-height: 40dvh; }
  #scr-editor .panel-b.col { max-height: 24dvh; }
  #ed-tools { padding-top: 4px; }
  #ed-tools button { min-height: 48px; }
  #ed-tools button svg { width: 20px; height: 20px; }
  #ed-subbar { padding-top: 4px; }
  .quick button { min-height: 78px; }
  .sw-grid .sw { min-height: 58px; padding: 8px 9px; }
}

/* 精细度说明 */
.dense-info { padding: 2px 0 8px; }
.dense-info b { display: block; font-size: 15px; color: var(--amber); margin-bottom: 8px; }
.dense-info p { font-size: 12.5px; color: var(--t2); line-height: 1.75; margin-top: 6px; }

/* 尊重系统「减少动态效果」 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}



/* ── 0.3.1 观感修复 ───────────────────────────── */
/* 换素材按钮：IP 源时必须是琥珀底 + 黑像素树，否则深色里看不见 */
#scr-editor .src.logo { background: var(--amber); border-color: var(--amber); }
#scr-editor .src.logo i { background: var(--bg); }

/* 参数面板内容多：给足高度、去掉会遮挡开关的 sticky 底栏 */
#scr-editor .panel.on { max-height: 54dvh; }
#scr-editor .panel-b.col { max-height: 43dvh; }
.panel-foot { position: static; background: transparent; padding: 4px 0 0; box-shadow: none; }
.ctl { padding-bottom: 10px; }
.sw-grid { gap: 7px; }
.sw-grid .sw { min-height: 56px; padding: 8px 9px; }

/* 发现页：按期号挑 + 三步引导，把横滑案例下方的空白填上 */
.issue-strip {
  display: flex; gap: 12px; padding: 0 16px 16px; overflow-x: auto;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.issue-strip::-webkit-scrollbar { display: none; }
.issue-strip .ic { flex: 0 0 68px; text-align: center; cursor: pointer; }
.issue-strip img { width: 68px; height: 68px; display: block; border-radius: 50%; }
.issue-strip small { display: block; font-size: 11px; color: var(--t3); margin-top: 6px; }
.issue-strip .ic:active img { filter: brightness(.82); }
.feed-help {
  margin: 2px 16px 16px; padding: 14px 15px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--surf-1);
}
.feed-help b { font-size: 13px; color: var(--amber); }
.feed-help p { font-size: 12px; color: var(--t3); line-height: 1.85; margin-top: 6px; }
#feed.is-empty .issue-strip, #feed.is-empty .feed-help { display: none; }

/* 项目页空状态：品牌 logo（v0.18.2 换掉旧十字标记） */
.mine-empty .empty-disc {
  width: 54px; height: 54px; margin: 0 auto 18px; border-radius: var(--r-md);
  background: rgba(var(--amber-rgb),.12); border: 1px solid var(--la);
  display: flex; align-items: center; justify-content: center;
}
.mine-empty .empty-disc img { width: 32px; height: 32px; object-fit: contain; }
.mine-empty .empty-steps { margin-top: 16px; font-size: 12px; color: var(--t3); }

@media (max-height: 720px) {
  #scr-editor .panel.on { max-height: 48dvh; }
  #scr-editor .panel-b.col { max-height: 36dvh; }
  .quick button { min-height: 72px; }
  .feed-help { margin-bottom: 10px; }
}


/* 0.3.2：比例角标贴到图片右上角；给说明卡留出胶囊高度 */
.feed-track .ratio { top: 7px; right: 7px; bottom: auto; }
.issue-strip .ic { flex-basis: 62px; }
.issue-strip img { width: 62px; height: 62px; }
.feed-help { margin-bottom: calc(96px + var(--safe-b)); }


/* 0.3.3：矮屏（≤720px）参数面板的开关压成一行，避免被二级栏切掉 */
@media (max-height: 720px) {
  #scr-editor .panel.on { max-height: 50dvh; }
  #scr-editor .panel-b.col { max-height: 40dvh; }
  .ctl { padding-bottom: 6px; }
  .ctl-h { margin-bottom: 6px; }
  .ctl-note { margin-top: 3px; }
  .sw-grid { grid-template-columns: repeat(4, 1fr); gap: 5px; margin-bottom: 6px; }
  .sw-grid .sw {
    min-height: 46px; padding: 6px 3px; font-size: 11px; line-height: 1.25;
    flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 0;
  }
  .sw-grid .sw span { display: block; }
  .sw-grid .sw small, .sw-grid .sw i { display: none; }
  .sw-grid .sw.on { background: var(--amber); color: var(--on-amber); border-color: var(--amber); }
  .panel-foot .mini-btn { min-height: 40px; }
}


/* ── 0.4：杂志层 ── 模板册 / 投递故事 ───────────────────────────
   新增的是「一层概念」而不是一个弹窗：模板册是独立一级页，
   投稿是内容回流入口。视觉仍用黑底琥珀，不引入新色系。       */
#app.scr-tplbook #tabbar, #app.scr-submit #tabbar { display: none; }

/* A11 公告条：后台开一条就出现在品牌头下面，关掉过就不再打扰 */
.notice-bar {
  display: none; flex: 0 0 auto; align-items: flex-start; gap: 9px;
  margin: 0 16px 10px; padding: 10px 12px;
  border: 1px dashed var(--line2); border-radius: 12px;
  background: var(--surf-2);
}
.notice-bar.on { display: flex; }
/* v0.17.3：标题一行、正文一行（上下两行），不再挤在同一行 */
.notice-bar .nb-lines { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.notice-bar b { font-size: 12px; color: var(--amber); font-weight: 600; display: block; }
.notice-bar .nb-lines > span { font-size: 11.5px; color: var(--t2); line-height: 1.55; }
.notice-bar .nb-x {
  flex: 0 0 auto; width: 20px; height: 20px; border-radius: var(--r-sm); border: 1px solid var(--line2);
  background: transparent; color: var(--t3); font-size: 14px; line-height: 1; padding: 0;
}
/* v0.18.7：多条通知叠在一起——条上圆圈数字＝没清掉的条数；点条开通知列表 */
.notice-bar { cursor: pointer; }
.notice-bar .nb-badge {
  flex: 0 0 auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--amber); color: var(--on-amber); font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.notice-bar .nb-lines b { cursor: pointer; }

/* v0.18.7 通知列表（点通知条 / 消息页聚合卡进来）：铺出全部通知，右上角一键清除 */
.ntc-clear {
  margin-left: auto; flex: none; min-height: 28px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line2); background: transparent; color: var(--t2);
  font-size: 12px; font-weight: 600;
}
.ntc-clear:active { color: var(--amber); border-color: var(--amber); }
.ntc-list { overflow-y: auto; max-height: 52dvh; padding: 2px 2px 10px; }
.ntc-it { padding: 13px 2px; border-bottom: 1px solid var(--line2); }
.ntc-it:last-child { border-bottom: 0; }
.ntc-it .ntc-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.ntc-it .ntc-h b { font-size: 14.5px; color: var(--t1); }
.ntc-it .ntc-h small { font-size: 11px; color: var(--t3); }
.ntc-it p { font-size: 13px; color: var(--t2); line-height: 1.75; margin: 0 0 6px; }
.ntc-it p.mute { color: var(--t3); }
.ntc-empty { text-align: center; padding: 34px 0 26px; }
/* 消息页聚合卡：最新一条通知 + 圆圈数字（未读通知数） */
.ntc-num {
  flex: none; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
  background: #E24B4A; color: #fff; font-size: 10.5px; font-weight: 700; font-style: normal;
  display: flex; align-items: center; justify-content: center;
}
.zine-bar {
  display: flex; align-items: center; gap: 10px; flex: 0 0 auto;
  margin: 2px 16px 12px; padding: 11px 12px;
  border: none; border-radius: var(--r-md);
  background: rgba(var(--amber-rgb),.055);
}
.zb-txt { flex: 1; min-width: 0; }
.zb-txt b { display: block; font-size: 14px; font-weight: 600; color: var(--amber); }
.zb-txt em { display: block; font-style: normal; font-size: 11.5px; color: var(--t3); margin-top: 4px; }
.zb-btns { display: flex; gap: 7px; flex: 0 0 auto; }
.zb-btns button {
  min-height: 40px; padding: 0 11px; border-radius: var(--r-md); white-space: nowrap;
  border: 1px solid var(--line2); background: transparent; color: var(--t1);
  font-size: 13px; font-weight: 600;
}
.zb-btns button.p { background: var(--amber); border-color: var(--amber); color: var(--on-amber); }
.zb-btns button:active { transform: scale(.96); }

/* 1.9d：proj-links 顶部入口卡已删（我的版式走编辑器版式面板，投稿走分区），
   规则移除；.mine-cta 是投稿分区标题旁的行动点 */
.mine-cta { margin-left: auto; flex: none; height: 30px; padding: 0 13px;
  border: none; border-radius: 999px; background: var(--amber); color: var(--on-amber);
  font-size: 11.5px; font-weight: 600; font-family: inherit; display: flex; align-items: center; }
.mine-cta:active { transform: scale(.95); }
#scr-mine .mine-sub { display: flex; align-items: center; }

.zine-intro {
  padding: 16px; margin-bottom: 18px; border-radius: var(--r-md);
  border: 1px solid var(--la); background: rgba(var(--amber-rgb),.055);
}
.zine-intro b { font-size: 17px; font-weight: 700; color: var(--amber); letter-spacing: .5px; }
.zine-intro p { font-size: 13.5px; color: var(--t2); line-height: 1.9; margin-top: 8px; }
.zine-intro small { display: block; font-size: 11px; color: var(--t3); margin-top: 10px; }

.tbk-h { font-size: 15px; font-weight: 600; color: var(--t1); margin: 20px 2px 11px; }
.tbk-h em { font-style: normal; font-size: 11.5px; font-weight: 400; color: var(--t3); margin-left: 6px; }
.tbk-grid { display: flex; flex-direction: column; gap: 12px; }
.tbk-card.live {
  display: flex; gap: 14px; padding: 13px;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surf-1);
}
.tbk-card.live.cur { border-color: var(--la); background: rgba(var(--amber-rgb),.06); }
/* 2.10：A07 下线版式 */
.tbk-card.live.soon { opacity: .45; }
.tbk-card.live.soon .tbk-use { pointer-events: none; opacity: .6; }
.tbk-thumb {
  position: relative; flex: 0 0 92px; width: 92px; height: 122px;
  border: 1px solid var(--la); border-radius: var(--r-sm); overflow: hidden; background: #0d0d0a;
}
.tbk-thumb > span { position: absolute; right: 5px; bottom: 4px; font-size: 9px; letter-spacing: 1px; color: var(--amber); }
.tbk-shape { position: absolute; inset: 10px 8px 18px; }
.tbk-shape i { position: absolute; border: 1px solid var(--amber); }
.tbk-shape.arcade i:nth-child(1) { left: 22%; top: 20%; width: 56%; height: 52%; background: rgba(var(--amber-rgb),.22); }
.tbk-shape.arcade i:nth-child(2) { left: 2%; top: 4%; width: 26%; height: 20%; }
.tbk-shape.arcade i:nth-child(3) { left: 70%; top: 8%; width: 28%; height: 24%; }
.tbk-shape.arcade i:nth-child(4) { left: 4%; top: 66%; width: 30%; height: 24%; }
.tbk-shape.arcade i:nth-child(5) { left: 66%; top: 70%; width: 30%; height: 20%; }
.tbk-shape.desktop i:nth-child(1) { left: 0; top: 0; width: 100%; height: 12%; background: rgba(var(--amber-rgb),.2); }
.tbk-shape.desktop i:nth-child(2) { left: 4%; top: 22%; width: 42%; height: 32%; }
.tbk-shape.desktop i:nth-child(3) { left: 54%; top: 32%; width: 42%; height: 40%; }
.tbk-shape.desktop i:nth-child(4) { left: 4%; top: 62%; width: 42%; height: 22%; }
.tbk-shape.desktop i:nth-child(5) { display: none; }
.tbk-shape.poster i:nth-child(1) { left: 8%; top: 6%; width: 84%; height: 56%; background: rgba(var(--amber-rgb),.16); }
.tbk-shape.poster i:nth-child(2) { left: 0; top: 0; width: 100%; height: 4%; background: var(--amber); border: 0; }
.tbk-shape.poster i:nth-child(3) { left: 0; top: auto; bottom: 0; width: 100%; height: 4%; background: var(--amber); border: 0; }
.tbk-shape.poster i:nth-child(4) { left: 12%; top: 70%; width: 76%; height: 10%; }
.tbk-shape.poster i:nth-child(5) { left: 12%; top: 84%; width: 48%; height: 7%; }
/* 2.24 CRT-4 像素报纸：报头双线 + 插画框 + 双栏块 */
.tbk-shape.news i:nth-child(1) { left: 8%; top: 4%; width: 84%; height: 12%; background: var(--amber); border: 0; }
.tbk-shape.news i:nth-child(2) { left: 8%; top: 20%; width: 84%; height: 44%; }
.tbk-shape.news i:nth-child(3) { left: 8%; top: 68%; width: 40%; height: 24%; }
.tbk-shape.news i:nth-child(4) { left: 52%; top: 68%; width: 40%; height: 24%; }
.tbk-shape.news i:nth-child(5) { display: none; }
.tbk-info { flex: 1; min-width: 0; }
.tbk-info > b { display: block; font-size: 16px; font-weight: 700; }
.tbk-info > b i {
  font-style: normal; font-size: 10.5px; font-weight: 600; color: var(--on-amber);
  background: var(--amber); border-radius: 4px; padding: 1px 5px; margin-left: 4px; vertical-align: middle;
}
.tbk-info p { font-size: 12.5px; color: var(--t2); line-height: 1.65; margin-top: 7px; }
.tbk-info em { display: block; font-style: normal; font-size: 11.5px; color: var(--t3); margin-top: 8px; }
.tbk-use {
  width: 100%; min-height: 40px; margin-top: 11px;
  border: 1px solid var(--amber); border-radius: var(--r-md);
  background: transparent; color: var(--amber); font-size: 14px; font-weight: 600;
}
.tbk-card.live.cur .tbk-use { background: var(--amber); color: var(--on-amber); }
.tbk-use:active { transform: scale(.98); }
.tbk-next { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tbk-card.next {
  min-height: 92px; text-align: left; padding: 12px;
  border: 1px dashed var(--line2); border-radius: var(--r-md);
  background: transparent; color: var(--t1);
}
.tbk-card.next b { display: block; font-size: 14px; font-weight: 600; }
.tbk-card.next span { display: block; font-size: 11.5px; color: var(--t3); line-height: 1.55; margin-top: 6px; }
.tbk-card.next em { display: block; font-style: normal; font-size: 10.5px; color: var(--amber); margin-top: 8px; }
.tbk-foot { margin: 20px 2px 8px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-md); font-size: 12px; color: var(--t3); line-height: 1.9; }

.sb-form label { display: block; font-size: 13px; font-weight: 600; color: var(--t2); margin-bottom: 15px; }
.sb-form label em { float: right; font-style: normal; font-size: 11.5px; font-weight: 400; color: var(--t3); }
.sb-form input:not([type="checkbox"]), .sb-form textarea, .sb-form select {
  display: block; width: 100%; min-height: 46px; margin-top: 8px; padding: 11px 13px;
  border: 1px solid var(--line2); border-radius: var(--r-md); outline: none;
  background: var(--surf-2); color: var(--t1); font-size: 15px;
}
.sb-form textarea { min-height: 150px; line-height: 1.75; resize: vertical; }
.sb-form select { appearance: none; }
.sb-form input:focus, .sb-form textarea:focus, .sb-form select:focus { border-color: var(--amber); }
.sb-form input::placeholder, .sb-form textarea::placeholder { color: #5f5f55; }
.sb-form label.sb-agree {
  display: flex; align-items: flex-start; gap: 10px;
  font-weight: 400; font-size: 12.5px; color: var(--t3); line-height: 1.7;
}
.sb-agree input {
  flex: 0 0 20px; width: 20px; height: 20px; min-height: 20px;
  margin: 2px 0 0; accent-color: var(--amber);
}
.sb-actions { display: flex; gap: 10px; margin: 4px 0 14px; }
.sb-actions .btn { flex: 1; min-height: 48px; font-size: 15px; }
.sb-note { font-size: 11.5px; color: var(--t3); line-height: 1.8; margin-bottom: 20px; }

.sb-result {
  display: none; margin-bottom: 20px; padding: 16px;
  border: 1px solid var(--la); border-radius: var(--r-md); background: rgba(var(--amber-rgb),.07);
  animation: scrIn .26s ease both;
}
.sb-result.on { display: block; }
.sb-r-h { font-size: 16px; font-weight: 700; color: var(--amber); }
.sb-r-id { font-size: 20px; font-weight: 700; letter-spacing: 1px; margin: 8px 0; }
.sb-result p { font-size: 12px; color: var(--t2); line-height: 1.85; }
.sb-r-btns { display: flex; gap: 10px; margin-top: 14px; }
.sb-r-btns button {
  flex: 1; min-height: 44px; border: 1px solid var(--line2); border-radius: var(--r-md);
  background: transparent; color: var(--t1); font-size: 14px;
}
.sb-r-btns button.p { background: var(--amber); border-color: var(--amber); color: var(--on-amber); font-weight: 700; }

.sb-list-h { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; margin: 0 2px 11px; }
.sb-list-h b { font-size: 12px; color: var(--on-amber); background: var(--amber); border-radius: 999px; padding: 2px 8px; }
.sb-empty { padding: 22px 14px; text-align: center; font-size: 12.5px; color: var(--t3); border: 1px dashed var(--line2); border-radius: var(--r-md); }
.sb-item { padding: 13px 14px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surf-1); }
.sb-i-h { display: flex; align-items: center; gap: 8px; }
.sb-i-h b { flex: 1; font-size: 15px; font-weight: 600; }
.sb-tag { flex: 0 0 auto; font-size: 11px; padding: 3px 8px; border-radius: 999px; }
.sb-tag.submitted { background: var(--amber); color: var(--on-amber); font-weight: 600; }
.sb-tag.draft { border: 1px solid var(--line2); color: var(--t3); }
.sb-item p { font-size: 12.5px; color: var(--t2); line-height: 1.7; margin-top: 7px; }
.sb-i-f { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 11px; color: var(--t3); }
.sb-i-f span:nth-child(2) { margin-left: auto; }
.sb-i-f button {
  min-height: 32px; padding: 0 10px; border: 1px solid var(--line2);
  border-radius: 8px; background: transparent; color: var(--t3); font-size: 11.5px;
}

@media (max-height: 720px) {
  .zine-bar { margin-bottom: 8px; padding: 9px 11px; }
  .sb-form textarea { min-height: 110px; }
  .tbk-thumb { flex-basis: 78px; width: 78px; height: 104px; }
}

/* ── 二级栏：中间工具名（不可点）+ 右侧固定操作 ── */
.sub-name { flex: 1; min-width: 0; line-height: 1.2; }
.sub-name b { display: block; font-size: 13.5px; font-weight: 600; color: var(--t1); }
.sub-name small { display: block; font-size: 10px; color: var(--t3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#ed-subbar { gap: 10px; }
#ed-subbar .subopts { flex: 0 0 auto; }

/* ── 2.22 更多 IP / 激活弹层（放在 #app 根层，盖住 push 屏） ── */
#ip-more-sheet { z-index: 50; }
.ipu-list { flex: 1; min-height: 160px; overflow-y: auto; padding: 12px 16px 4px; }
.ipu-card {
  display: flex; align-items: center; gap: 12px; text-align: left; width: 100%;
  background: var(--surf-5); border: 1px solid var(--line2); border-radius: var(--r-md);
  padding: 12px; margin-bottom: 10px; color: var(--t1);
}
.ipu-card img {
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover;
  background: #fff; border: 1px solid var(--line2); flex: 0 0 auto;
}
.ipu-t { flex: 1; min-width: 0; }
.ipu-t b { display: block; font-size: 14px; font-weight: 600; }
.ipu-t small { display: block; font-size: 10.5px; color: var(--t3); margin-top: 4px; line-height: 1.5; }
.ipu-t em { font-style: normal; color: var(--amber); }
.ipu-btn {
  flex: 0 0 auto; min-height: 34px; padding: 0 12px; border-radius: var(--r-md);
  background: var(--amber); color: var(--on-amber); font-size: 12px; font-weight: 700;
  border: none; cursor: pointer;
}
.ipu-btn.ghost { background: var(--surf-5); border: 1px solid var(--line2); color: var(--t2); }
.ipu-btn.locked { background: var(--surf-5); border: 1px solid var(--line2); color: var(--t3); }
/* 2.25：全部 IP 添加完后的「敬请期待」占位 */
.ipu-empty { text-align: center; padding: 34px 20px 26px; }
.ipu-empty b { display: block; font-size: 15px; font-weight: 600; color: var(--t1); }
.ipu-empty small { display: block; font-size: 11.5px; color: var(--t3); margin-top: 8px; line-height: 1.6; }
#ipm-bal { color: var(--t2); }
/* 未激活的系列在 chips / tabs 里直接不占位 */
#ipick-chips .chip[hidden], #ips-tabs span[hidden] { display: none; }

/* ── IP 半弹窗（编辑器内） ─────────────────────── */
.ip-sheet { position: absolute; inset: 0; z-index: 40; display: none; }
.ip-sheet.on { display: block; }
.ips-mask { position: absolute; inset: 0; background: rgba(0,0,0,.34); }
.ips-body {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 72%;
  background: var(--panel); border: 1px solid var(--line); border-bottom: none;
  border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: 0 -14px 40px rgba(0,0,0,.55);
  display: flex; flex-direction: column;
  animation: subIn .26s var(--ease) both;
}
.ips-body .grab { margin: 9px auto 0; }
.ips-h { display: flex; align-items: baseline; gap: 9px; padding: 8px 16px 0; }
.ips-h b { font-size: 16px; font-weight: 600; }
.ips-h small { font-size: 10.5px; color: var(--t3); }
.ips-tabs { display: flex; gap: 8px; padding: 12px 16px 6px; }
.ips-tabs span {
  padding: 7px 16px; border-radius: 999px; font-size: 12.5px; color: var(--t2);
  background: var(--surf-5); border: 1px solid var(--line2); cursor: pointer;
}
.ips-tabs span.on { background: var(--amber); border-color: var(--amber); color: var(--on-amber); font-weight: 700; }
.ips-grid {
  flex: 1; min-height: 120px; overflow-y: auto; -webkit-overflow-scrolling: touch;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 10px;
  padding: 12px 16px; align-content: start;
}
.ips-grid .it { text-align: center; cursor: pointer; }
.ips-grid .it img {
  width: 100%; max-width: 76px; aspect-ratio: 1/1; border-radius: 50%;
  background: #fff; object-fit: cover; display: block; margin: 0 auto;
  border: 2px solid transparent;
}
.ips-grid .it.cur img { border-color: var(--amber); }
.ips-grid .it small { display: block; font-size: 9.5px; color: var(--t3); margin-top: 4px; }
.ips-grid .it:active img { filter: brightness(.9); }
.ips-empty { grid-column: 1/-1; text-align: center; padding: 44px 16px; font-size: 13px; color: var(--t3); line-height: 2; }
.ips-foot {
  flex: none; display: flex; align-items: center; gap: 10px;
  padding: 10px 16px calc(12px + var(--safe-b)); border-top: 1px solid var(--line2);
}
.ips-foot p { flex: 1; font-size: 10.5px; color: var(--t3); line-height: 1.5; }
.ips-foot p b { color: var(--amber); font-weight: 500; }
.ips-foot button {
  flex: none; height: 40px; padding: 0 20px; border-radius: 999px;
  background: var(--amber); color: var(--on-amber); font-size: 13.5px; font-weight: 700;
}

/* ── 内容工具：逐窗口文字 ──────────────────────── */
.cw-item { border: 1px solid var(--line2); border-radius: 12px; padding: 10px 12px; margin-bottom: 9px; background: var(--surf-2); }
.cw-item .cw-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 7px; }
.cw-item .cw-h b { font-size: 12.5px; color: var(--amber); }
.cw-item .cw-h small { font-size: 10px; color: var(--t3); }
.cw-item input, .cw-item textarea {
  width: 100%; background: var(--input-bg); border: 1px solid var(--line2);
  border-radius: 8px; color: var(--t1); font-size: 13px; padding: 8px 10px; margin-top: 5px;
}
.cw-item textarea { resize: none; line-height: 1.55; }

/* ── 面板内选项 chips（精细度等） ───────────────── */
.panel-chips { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 10px; }
.panel-chips button {
  min-height: 40px; padding: 0 14px; border-radius: 999px; font-size: 12.5px;
  background: var(--surf-5); border: 1px solid var(--line2); color: var(--t2);
}
.panel-chips button.on { background: var(--amber); border-color: var(--amber); color: var(--on-amber); font-weight: 700; }

/* ── 贴图把手 ─────────────────────────────────── */
.dh.stick { border-style: solid; border-color: var(--amber); }
.dh.stick .dh-lab { color: var(--amber); }

/* ── 版式面板：卡片列表（对齐设计稿） ─────────────── */
.tpl-cards { display: flex; flex-direction: column; gap: 9px; padding-bottom: 10px; }
.tpl-card {
  display: flex; align-items: center; gap: 12px; text-align: left; width: 100%;
  padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line2);
  background: var(--surf-2);
}
.tpl-card.on { border-color: var(--amber); background: rgba(var(--amber-rgb),.08); }
.tpl-card .bx {
  width: 38px; height: 38px; border-radius: var(--r-md); flex: none;
  background: rgba(var(--amber-rgb),.12); color: var(--amber);
  display: flex; align-items: center; justify-content: center;
}
.tpl-card .bx svg { width: 22px; height: 22px; }
.tpl-card .tt { flex: 1; min-width: 0; }
.tpl-card .tt b { display: block; font-size: 14px; color: var(--t1); }
.tpl-card .tt em { display: block; font-style: normal; font-size: 11px; color: var(--t3); margin-top: 3px; }
.tpl-card .cur {
  flex: none; font-style: normal; font-size: 10px; font-weight: 700;
  color: var(--on-amber); background: var(--amber); border-radius: var(--r-sm); padding: 3px 8px;
}

/* ── 0.6：IP 圆排小字 / 杂志封面卡 ─────────────── */
#ip-strip .ic small { font-size: 10px; color: var(--t2); }
.zcard { position: relative; cursor: pointer; }
.zcard img {
  width: 100%; height: auto; object-fit: cover; display: block;
  border-radius: var(--r-md); background: #fff;
}
.zcard .lk {
  position: absolute; left: 8px; top: 8px; font-size: 9px; font-weight: 700;
  color: var(--amber); background: transparent; border: 1px solid rgba(var(--amber-rgb),.5);
  padding: 2.5px 6px; border-radius: 4px; letter-spacing: .4px;
}
.zcard .lb { padding: 6px 2px 0; font-size: 11.5px; line-height: 1.5; }
.zcard .lb b { display: block; color: var(--txt); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zcard .lb small { color: var(--t3); font-size: 10px; }

/* ── v0.17.2 单张插画：VIP 专享 / 限时免费 ──
   VOL 编号已去掉。VIP 与限免角标统一描边款、无底色：
   限免＝实琥珀描边（强，现在就能用），纯 VIP＝淡琥珀描边（弱）。 */
.ab {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 9px; font-weight: 700; line-height: 1.4;
  padding: 2px 6px; border-radius: 4px; letter-spacing: .3px;
  vertical-align: middle; white-space: nowrap;
}
.ab-free { background: transparent; color: var(--amber); border: 1px solid var(--amber); }
.ab-free i { font-style: normal; font-weight: 600; font-size: 8px; opacity: .6; letter-spacing: 0; }
.ab-vip { color: var(--amber); background: rgba(8,8,6,.82); border: 1px solid rgba(var(--amber-rgb),.45); }
html[data-theme="light"] .ab-vip { background: rgba(255,255,255,.94); }
.ab-sm { margin-left: 6px; vertical-align: 2px; }
.dt-h .ab-sm { font-size: 10px; padding: 2px 7px; }
/* 列表卡左上角：限免与纯 VIP 都是透明底 + 描边；限免描边更实（强），VIP 描边淡（弱） */
.zcard .lk.lk-flag {
  background: transparent; color: var(--amber); border-color: var(--amber);
  text-shadow: none; letter-spacing: .2px;
}
.zcard .lk.lk-flag i { font-style: normal; font-weight: 600; opacity: .55; margin-left: 2px; font-size: 8px; }
.zcard .lk.lk-flag.viponly {
  background: transparent; color: var(--amber); border-color: rgba(var(--amber-rgb),.5);
}
html[data-theme="light"] .zcard .lk.lk-flag.viponly { background: transparent; }
/* 没标 VIP 但有认领头像堆：只留头像，不带底色框 */
.zcard .lk.lk-claim { background: transparent; border-color: transparent; padding: 2.5px 0; }
html[data-theme="light"] .zcard .lk.lk-claim { background: transparent; border-color: transparent; }
/* 挑插画 / 换图网格：小角标，非会员的 VIP 图略压暗 */
.cvr > .ab, .ips-grid .it > .ab {
  position: absolute; left: 3px; top: 3px; font-size: 8px; padding: 1px 4px;
  border-radius: 3px; z-index: 2;
}
.ips-grid .it { position: relative; }
.vip-lock img { filter: grayscale(.5) brightness(.86); }
.vip-lock > .ab-vip { opacity: .92; }

/* ── 风格选择列表 ─────────────────────────────── */
.ss-list { flex: 1; min-height: 120px; overflow-y: auto; padding: 10px 16px 6px; }
.ss-item {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left;
  padding: 12px 14px; margin-bottom: 9px; border-radius: var(--r-md);
  border: 1px solid var(--line2); background: var(--surf-2);
}
.ss-item.on { border-color: var(--amber); background: rgba(var(--amber-rgb),.08); }
.ss-item .si { width: 44px; height: 44px; border-radius: var(--r-md); background: var(--amber); color: var(--on-amber); display: flex; align-items: center; justify-content: center; flex: none; font-weight: 800; font-size: 15px; }
.ss-item .st { flex: 1; min-width: 0; }
.ss-item .st b { display: block; font-size: 14px; }
.ss-item .st em { display: block; font-style: normal; font-size: 11px; color: var(--t3); margin-top: 3px; }
.ss-item .tag { flex: none; font-size: 9.5px; font-weight: 700; color: var(--amber); border: 1px solid rgba(var(--amber-rgb),.5); border-radius: var(--r-sm); padding: 2.5px 7px; }
/* 2.8：一次只能用一个风格 → 去掉勾选圈与确认按钮，点即进；未上线整卡置灰且不可点 */
.ss-item .lk { flex: none; font-size: 12px; opacity: 1; filter: grayscale(1); color: #6d695c; }
.ss-item.soon { cursor: default; border-color: var(--line2); background: var(--surf-1); }
.ss-item.soon .si { background: #34301f; color: #6d695c; }
.ss-item.soon .st b, .ss-item.soon .st em { color: #6d695c; }

/* ── 详情页 ───────────────────────────────────── */
.dt-cover { margin: 4px 0 0; }
.dt-cover img { width: 100%; border-radius: var(--r-md); display: block; background: #fff; }
.dt-h { padding: 16px 0 0; }
.dt-h h2 { font-size: 21px; font-weight: 700; letter-spacing: .3px; }
.dt-h .meta { display: flex; gap: 10px; margin-top: 8px; padding: 9px 0 0; font-size: 11px; color: var(--t3); }
.dt-h .meta .vol { color: var(--amber); font-weight: 600; }
.dt-body { padding: 14px 0 0; font-size: 14.5px; line-height: 1.95; color: var(--t1); }
.dt-body p { margin-bottom: 12px; text-align: justify; }
.dt-body .dt-fail { font-size: 12px; color: var(--t3); }
.dt-bar { display: flex; gap: 10px; padding: 12px 0 0; }
.dt-bar .pill {
  flex: 1; height: 44px; border-radius: 999px; border: 1px solid var(--line2);
  background: var(--card); display: flex; align-items: center; justify-content: center;
  gap: 7px; font-size: 13px; color: var(--t2); cursor: pointer;
}
.dt-bar .pill svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dt-bar .pill.on { color: var(--amber); border-color: rgba(var(--amber-rgb),.45); }
.dt-cta { display: flex; gap: 10px; padding: 12px 0 0; }
.dt-cta .make {
  flex: 1; height: 48px; border-radius: 999px; background: var(--amber); color: var(--on-amber);
  font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.dt-cta .share {
  flex: none; width: 48px; height: 48px; border-radius: 999px; border: 1px solid var(--line2);
  background: var(--card); display: flex; align-items: center; justify-content: center;
}
.dt-cta .share svg { width: 19px; height: 19px; stroke: var(--txt); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* 1.9d 精选创作：竖向两列，比例跟随原作（不再 3:4 裁切），无横滑手势 */
.dt-works { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; padding: 0; }
.dt-works .w { position: relative; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line2); background: var(--card); }
.dt-works img { width: 100%; height: auto; display: block; object-fit: cover; }
/* 2.23 比例角标：灰底黑字、减弱、无描边（原黑底看不清） */
.dt-works .w .ratio { position: absolute; right: 7px; top: 7px; background: rgba(198,198,198,.82); color: #1a1a1a; font-size: 9px; padding: 2px 6px; border-radius: var(--r-sm); letter-spacing: .4px; border: none; }
.dt-works .w small { display: block; font-size: 9.5px; color: var(--t3); margin: 7px 9px 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dt-seeall { text-align: center; padding: 16px 0 4px; font-size: 12.5px; color: var(--amber); }
.dt-goods { margin: 14px 0 20px; padding: 14px; border: 1px dashed var(--line2); border-radius: 12px; text-align: center; color: var(--t3); font-size: 11px; line-height: 1.8; }
.dt-cm { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line2); }
.dt-cm .av { flex: none; width: 30px; height: 30px; border-radius: 50%; background: rgba(var(--amber-rgb),.15); color: var(--amber); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.dt-cm .bd { flex: 1; min-width: 0; }
.dt-cm .bd b { font-size: 12px; color: var(--t1); }
.dt-cm .bd small { font-size: 9.5px; color: var(--t3); margin-left: 7px; }
.dt-cm .bd p { font-size: 12.5px; color: var(--t2); line-height: 1.7; margin-top: 4px; }
.dt-cm-form { display: flex; gap: 8px; padding: 12px 0 4px; }
.dt-cm-form input {
  flex: 1; height: 40px; border-radius: 999px; border: 1px solid var(--line2);
  background: var(--input-bg); color: var(--t1); font-size: 13px; padding: 0 14px;
}
.dt-cm-form button { flex: none; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--amber); color: var(--on-amber); font-size: 12.5px; font-weight: 700; }
.dt-next { display: flex; gap: 9px; padding-bottom: 30px; }
.dt-next .w { flex: 1; cursor: pointer; }
.dt-next img { width: 100%; border-radius: var(--r-md); display: block; background: #fff; }
.dt-next small { display: block; font-size: 9.5px; color: var(--t3); margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── 投稿规则区 ───────────────────────────────── */
.sb-rule { border: 1px solid var(--line2); border-radius: 12px; margin: 10px 0 2px; overflow: hidden; }
.sb-rule-h { display: flex; align-items: baseline; gap: 8px; padding: 11px 13px; font-size: 13px; font-weight: 600; cursor: pointer; }
.sb-rule-h em { font-style: normal; font-size: 11px; color: var(--amber); margin-left: auto; }
.sb-rule-b { display: none; padding: 0 13px 12px; font-size: 12px; color: var(--t2); line-height: 1.9; }
.sb-rule.open .sb-rule-b { display: block; }
.sb-rule-b p { margin-bottom: 8px; }
.sec-h { display: flex; align-items: baseline; gap: 9px; padding: 18px 0 10px; }
.sec-h b { font-size: 14.5px; font-weight: 600; }
.sec-h em { font-style: normal; font-size: 10.5px; color: var(--t3); }
.comments { padding: 0 0 4px; }
#ip-strip .ic img { object-fit: cover; background: #fff; border: 1px solid var(--line2); }
/* 「更多 IP」没有对应插画，用虚线圆 + 加号占位，避免空 <img> 显示破图 */
.issue-strip .ic-more {
  width: 62px; height: 62px; box-sizing: border-box; display: flex;
  align-items: center; justify-content: center; border-radius: 50%;
  border: 1px dashed rgba(var(--amber-rgb), .45); background: rgba(var(--amber-rgb), .05);
  color: var(--amber); font-size: 27px; font-weight: 300; line-height: 1;
}
.issue-strip .ic:active .ic-more { background: rgba(var(--amber-rgb), .14); }

/* ── 2.22 D1：认领署名工具 ─────────────────────────────── */
.claim-sw {
  width: 38px; height: 22px; border-radius: var(--r-md); flex: none;
  background: var(--line2); position: relative; transition: background .18s;
}
.claim-sw::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; transition: transform .18s;
}
.claim-sw.on { background: var(--amber); }
.claim-sw.on::after { transform: translateX(16px); }
.claim-sig {
  margin: 4px 0 12px; padding: 12px; border: 1px dashed rgba(var(--amber-rgb), .6);
  border-radius: 12px; text-align: center; font-size: 13px; font-weight: 700;
  color: var(--amber); background: rgba(var(--amber-rgb), .06); letter-spacing: .3px;
}
.claim-pos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.claim-pos button {
  height: 34px; border-radius: var(--r-md); background: var(--surf-5);
  border: 1px solid var(--line2); color: var(--t2); font-size: 11.5px; cursor: pointer;
}

/* ── 2.22 C：投稿表单前置插画 + 系统期号 ───────────────── */
/* 2.26 投稿类型：横向 tab（导航式切换），切换即换下方表单，不再上下堆三张卡 */
.sb-types {
  display: flex; gap: 18px; margin-bottom: 20px;
  border-bottom: 1px solid var(--line2);
}
.sb-type {
  flex: 1; position: relative; padding: 2px 2px 11px;
  background: none; border: 0; cursor: pointer; font-family: inherit;
  font-size: 15px; font-weight: 500; color: var(--t3); letter-spacing: .2px;
  -webkit-tap-highlight-color: transparent;
}
.sb-type.on { color: var(--t1); font-weight: 700; }
.sb-type.on::after {
  content: ""; position: absolute; left: 50%; bottom: -1px; transform: translateX(-50%);
  width: 30px; height: 2.5px; border-radius: 2px; background: var(--amber);
}
.sb-art { margin-bottom: 16px; }
.sb-art-pick {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left;
  background: var(--surf-5); border: 1px solid var(--line2); border-radius: var(--r-md);
  padding: 10px 12px; color: var(--t1); cursor: pointer;
}
.sb-art-thumb {
  flex: 0 0 auto; width: 54px; height: 54px; border-radius: var(--r-md); overflow: hidden;
  background: rgba(var(--amber-rgb), .08); display: flex; align-items: center; justify-content: center;
}
.sb-art-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sb-art-thumb i { font-style: normal; font-size: 25px; color: var(--amber); line-height: 1; }
.sb-art-t { flex: 1; min-width: 0; }
.sb-art-t b { display: block; font-size: 13.5px; font-weight: 600; }
.sb-art-t small { display: block; font-size: 10.5px; color: var(--t3); line-height: 1.6; margin-top: 4px; }
.sb-art-chev { width: 16px; height: 16px; color: var(--t3); flex: 0 0 auto; }
.sb-art-clear {
  display: block; margin: 6px 0 0 auto; padding: 3px 0; border: none; background: none;
  color: var(--t3); font-size: 11px; cursor: pointer;
}
/* 2.35 IP 创作与双审核提示（自由创作/命题故事） */
.sb-art-note { margin: 8px 0 0; font-size: 11.5px; line-height: 1.7; color: var(--t3); }
.sb-art-note::before { content: "※ "; color: var(--amber); }
/* 2.26 投递期数：纯展示、不可点，所以不留框（用框的都是能操作的东西） */
.sb-issue { margin-bottom: 18px; }
.sb-issue-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 7px; }
.sb-issue-h b { font-size: 13px; font-weight: 600; }
.sb-issue-h small { font-size: 10.5px; color: var(--t3); }
.sb-issue-v { font-size: 15px; font-weight: 700; color: var(--t1); letter-spacing: .01em; }
/* 2.27 新增故事不显示投递期数：期号＝所选插画那一期，不是新分配的期 */
.sb-issue[hidden] { display: none !important; }
/* 2.27 署名：从手填输入框改成选择（选项来自「账号 → 署名」），默认用户名 */
.sb-byline { margin-bottom: 18px; }
.sb-byline-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.sb-byline-h b { font-size: 13px; font-weight: 600; }
.sb-byline-h small { font-size: 10.5px; color: var(--t3); }
.sb-byline-n { display: flex; gap: 8px; flex-wrap: wrap; }
.sb-byline-n button {
  padding: 7px 14px; border-radius: 999px; cursor: pointer;
  background: var(--surf-5); border: 1px solid var(--line2); color: var(--t2);
  font-family: inherit; font-size: 12.5px; line-height: 1.25;
}
.sb-byline-n button.on { border-color: var(--amber); background: rgba(var(--amber-rgb), .07); color: var(--amber); font-weight: 600; }
.sb-byline-note { margin: 8px 0 0; font-size: 10.5px; color: var(--t3); line-height: 1.6; }
/* 设置页：署名管理 */
.byline-row { display: flex; align-items: center; gap: 10px; padding: 12px 15px; }
.byline-row + .byline-row { border-top: 1px solid var(--line); }
.byline-row .k { flex: 1; min-width: 0; font-size: 14px; }
.byline-row .k small { display: block; font-size: 11px; color: var(--t3); margin-top: 3px; }
.byline-row .del {
  flex: 0 0 auto; padding: 5px 11px; border-radius: 999px; cursor: pointer;
  background: none; border: 1px solid var(--line2); color: var(--t3);
  font-family: inherit; font-size: 11.5px;
}
.byline-new { display: flex; gap: 8px; padding: 12px 15px; border-top: 1px solid var(--line); }
.byline-new input {
  flex: 1; min-width: 0; height: 38px; padding: 0 12px; border-radius: var(--r-md);
  background: var(--bg); border: 1px solid var(--line2); color: var(--t1); font-family: inherit; font-size: 13.5px;
}
.byline-new input:focus { border-color: var(--amber); outline: none; }
.byline-new button {
  flex: 0 0 auto; height: 38px; padding: 0 16px; border-radius: var(--r-md); cursor: pointer;
  background: var(--amber); border: 1px solid var(--amber); color: var(--on-amber);
  font-family: inherit; font-size: 13px; font-weight: 700;
}
#sb-art-sheet .ips-foot button.ghost {
  background: var(--surf-5); border: 1px solid var(--line2); color: var(--t2);
}

/* ── 0.7 模板系统：横滑方形卡 + 我的模板管理 ─────────────── */
.panel-h { display: flex; align-items: center; gap: 8px; }
.panel-h small { font-size: 10.5px; font-weight: 400; color: var(--t3); }
.panel-h .tpl-mng {
  margin-left: auto; flex: none; min-height: 30px; padding: 0 11px; border-radius: 999px;
  font-size: 11px; color: var(--amber); background: transparent; border: 1px solid var(--la);
}
.panel-b.tpl-panel { display: block; overflow-x: hidden; overflow-y: auto; max-height: 34dvh; }
.tpl-row { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 12px; scrollbar-width: none; }
.tpl-row::-webkit-scrollbar { display: none; }
.tpl-card.sq {
  display: block; width: 108px; flex: 0 0 108px; padding: 0; border: none;
  border-radius: 0; background: transparent; gap: 0; cursor: pointer; text-align: left;
}
.tpl-card.sq .box {
  width: 108px; height: 108px; border-radius: 12px; border: 2px solid var(--line2);
  position: relative; overflow: hidden; background: #fdfcf7;
}
.tpl-card.sq.on .box { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber); }
.tpl-card.sq .box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tpl-card.sq .badge {
  position: absolute; left: 0; top: 0; z-index: 2; font-size: 8.5px; font-weight: 700;
  background: var(--amber); color: var(--on-amber); padding: 2.5px 7px; border-radius: 0 0 8px 0;
}
.tpl-card.sq .ed {
  position: absolute; right: 6px; bottom: 6px; z-index: 2; width: 28px; height: 28px;
  border-radius: 50%; background: rgba(10,10,8,.74); border: 1.5px solid var(--amber);
  color: var(--amber); display: flex; align-items: center; justify-content: center;
}
.tpl-card.sq .ed svg { width: 13px; height: 13px; stroke: var(--amber); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tpl-card.sq .hint {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 3px 0;
  font-size: 8px; text-align: center; color: #6b6a60; background: rgba(253,252,247,.9);
}
.tpl-card.sq .n { font-size: 11px; color: var(--t1); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tpl-card.sq .n b { font-weight: 600; }
.tpl-card.sq .n small { color: var(--t3); }
.tpl-card.sq.on .n b { color: var(--amber); }
.tpl-note { font-size: 10.5px; color: var(--t3); line-height: 1.75; padding: 2px 2px 6px; }
.tpl-book { color: var(--amber); cursor: pointer; }
.tpl-manage { padding: 2px 2px 8px; }
.tm-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line2); }
.tm-row img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: #fff; flex: none; }
.tm-row .tm-name {
  flex: 1; min-width: 0; height: 38px; border-radius: var(--r-md); border: 1px solid var(--line2);
  background: var(--input-bg); color: var(--t1); font-size: 12.5px; padding: 0 10px;
}
.tm-row .tm-del {
  flex: none; min-height: 38px; padding: 0 10px; border-radius: var(--r-md); border: 1px solid var(--line2);
  background: transparent; color: var(--t2); font-size: 11.5px;
}

/* ── 0.9 四 tab 等权：创作不再用实心琥珀特别突出，只留轻点按反馈 ── */
#tabbar > div { font-size: 11px; }
#tabbar svg { fill: none; stroke: currentColor; stroke-width: 1.6; }
#tabbar > div:active { background: rgba(var(--amber-rgb),.13); }
#tabbar > div.on span { font-weight: 600; }
#app.scr-detail #tabbar, #app.scr-work #tabbar { display: flex; }
/* ── 2.4 详情/投稿文章页：悬浮胶囊 → 吸底通栏导航（detail-opt-v1） ── */
#tabbar.docked {
  left: 0; right: 0; bottom: 0; transform: none;
  width: auto; height: calc(66px + var(--safe-b));
  padding: 7px 4px calc(var(--safe-b) + 8px);
  border-radius: 0; border: none; border-top: 1px solid var(--surf-12);
  background: var(--tab-bg); box-shadow: none; gap: 0;
}
#tabbar.docked > div { gap: 3px; font-size: 10px; color: var(--t3); background: none !important; box-shadow: none; }
#tabbar.docked > div.on { color: var(--amber); }
#tabbar.docked > div .num { font-size: 10.5px; font-weight: 600; letter-spacing: .2px; }
#tabbar.docked > div .pill {
  display: flex; align-items: center; justify-content: center; gap: 4px; flex-wrap: nowrap; white-space: nowrap;
  background: var(--amber); color: var(--on-amber); font-weight: 700;
  border-radius: 999px; padding: 8px 22px;
  box-shadow: 0 3px 14px rgba(var(--amber-rgb),.3);
}
#tabbar.docked > div .pill svg { width: 17px; height: 17px; }
#tabbar.docked > div.cta { flex: 1.1; }
#tabbar.docked > div.cta .pill svg { stroke: var(--on-amber); }
/* 创作弹层 / 选风格弹层打开时，吸底导航整体不出现（交互稿 ⑤⑦） */
#tabbar.nav-hide { display: none; }
#app.sheet-open #tabbar { display: none !important; }
#dt-body, #post-body { padding-bottom: calc(104px + var(--safe-b)); }
#dt-body { padding-bottom: calc(104px + var(--safe-b)); }
#post-body { padding-bottom: calc(104px + var(--safe-b)); }
/* 2.15：作品详情底栏与插画详情同构（吸底通栏），内容同样让位 */
#scr-work .set-body { padding-bottom: calc(104px + var(--safe-b)); }
/* v0.15.0：作品列表改成整页滚动（和「我的」一致），悬浮胶囊导航压在整个页面上；
   原来是 .wk-grid 自己开一个滚动窗口，滑动时看起来像底下铺了个底。 */
#scr-works { flex-direction: column; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: calc(102px + var(--safe-b)); }

/* ── 作品：用户公开流，方形卡 + 作者 / 标签 / 互动 ────────── */
.wk-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 16px 12px; }
.wk-bar em { font-style: normal; font-size: 10.5px; color: var(--t3); text-align: right; }
.wk-chips { display: flex; gap: 8px; }
.wk-chips span { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line2); font-size: 12px; color: var(--t2); }
.wk-chips span.on { background: var(--amber); border-color: var(--amber); color: var(--on-amber); font-weight: 700; }
/* v0.9.0：底部让位只算一次——section 已经留 102px 给悬浮胶囊，
   grid 自己再留 20px 会多出一截死白，滚到底像「窗口被截断」。 */
/* v0.15.0：不再自己滚——高度由内容撑开，滚动交给 #scr-works，导航才像浮在整页上 */
.wk-grid { flex: 0 0 auto; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: max-content; align-content: start; align-items: start; gap: 12px; padding: 0 16px; overflow: visible; }
.wk-card { width: 100%; align-self: start; display: flex; flex-direction: column; border-radius: var(--r-md); overflow: hidden; background: var(--surf-3); border: 1px solid var(--line2); }
.wk-card img { width: 100%; height: auto; object-fit: cover; display: block; flex: 0 0 auto; background: #fff; }
.wk-card .wk-b { flex: 0 0 auto; padding: 9px 10px 11px; }
.wk-card .wk-t { font-size: 12.5px; color: var(--t1); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-card .wk-tag { display: inline-block; margin-top: 6px; font-size: 10px; color: var(--amber); border: 1px solid rgba(var(--amber-rgb),.4); border-radius: var(--r-sm); padding: 2px 6px; }
.wk-card .wk-ft { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 10.5px; color: var(--t3); }
.wk-card .wk-ft button { border: none; background: none; color: var(--t3); font-size: 10.5px; padding: 0; }
.wk-card .wk-ft button.on { color: var(--amber); }
.wk-card .wk-ft .again { margin-left: auto; color: var(--amber); }
.wk-empty { padding: 30px 16px; text-align: center; color: var(--t3); font-size: 12px; line-height: 1.8; }

/* ── 通用评论半弹窗 ─────────────────────────── */
#cm-sheet { z-index: 80; }
#app.cm-open #tabbar { display: none; }
.cm-list { max-height: 46dvh; overflow-y: auto; padding: 6px 16px 4px; -webkit-overflow-scrolling: touch; }
.cm-empty { padding: 28px 0; text-align: center; color: var(--t3); font-size: 12px; }
/* 超过 20 条才出现；整宽虚线按钮，比小链接更容易点中 */
.cm-more { display: block; width: 100%; margin: 10px 0 6px; padding: 11px 0; border: 1px dashed var(--line);
  border-radius: 10px; background: none; color: var(--t2); font: inherit; font-size: 12px; }
.cm-more:active { color: var(--amber); border-color: var(--amber); }
.cm-foot { align-items: center; }
.cm-foot input { flex: 1; min-width: 0; height: 40px; border-radius: 999px; border: 1px solid var(--line2); background: var(--input-bg); color: var(--t1); font-size: 12.5px; padding: 0 14px; }
.cm-foot button { flex: none; height: 40px; padding: 0 18px; border-radius: 999px; background: var(--amber); color: var(--on-amber); font-size: 12.5px; font-weight: 700; border: none; }

/* ── 详情页：评论入口 ───────────── */
.dt-cm-entry { margin: 12px 0 4px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line2); display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: var(--t2); }
.dt-cm-entry b { color: var(--t1); font-weight: 600; }
.dt-cm-entry em { font-style: normal; color: var(--amber); font-size: 11.5px; }
/* .dt-next（往期横滑）1.9d 起不再渲染，规则保留以防回退 */
.dt-next { overflow-x: auto; scrollbar-width: none; }
.dt-next::-webkit-scrollbar { display: none; }
.dt-next .w { flex: 0 0 calc((100% - 18px) / 3); min-width: 0; }
.dt-next .w img { aspect-ratio: 3 / 4; object-fit: cover; }
.dt-next { padding: 0 0 30px; }

/* ── 版式：图标卡 + 模块编辑 ─────────────────── */
.tpl-icons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding-bottom: 10px; }
.tpl-tile { position: relative; aspect-ratio: 1/1; border-radius: 12px; border: 1px solid var(--line2);
  background: var(--surf-2); display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 6px; cursor: pointer; }
.tpl-tile.on { border-color: var(--amber); background: rgba(var(--amber-rgb),.08); }
/* 2.10：后台 A07 下线的预设 —— 整卡压灰、去交互，但仍占位（用户知道有这么个版式） */
.tpl-tile.soon { opacity: .42; cursor: default; }
.tpl-tile.soon:active { border-color: var(--line2); }
.tpl-tile.soon .tico { color: var(--t3); }
.tpl-tile.soon em { color: var(--t3); letter-spacing: .04em; }
.tpl-tile .tico { width: 38px; height: 38px; color: var(--t2); display: flex; align-items: center; justify-content: center; }
.tpl-tile.on .tico { color: var(--amber); }
.tpl-tile .tico svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.tpl-tile small { font-size: 11px; color: var(--t1); max-width: 92%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tpl-tile em { font-style: normal; font-size: 9.5px; color: var(--t3); }
.tpl-tile .pen { position: absolute; right: 6px; bottom: 6px; width: 22px; height: 22px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center; color: var(--t3);
  background: var(--surf-9); border: 1px solid var(--line2); }
.tpl-tile .pen svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; }
.tpl-tile .pen:active { color: var(--amber); border-color: rgba(var(--amber-rgb),.5); }
.mod-group { margin-bottom: 14px; }
.mod-h { font-size: 12px; color: var(--amber); margin-bottom: 8px; }
.mod-row { display: flex; gap: 7px; flex-wrap: wrap; }
.mod-row button { padding: 7px 12px; border-radius: var(--r-md); border: 1px solid var(--line2); background: transparent; color: var(--t2); font-size: 11.5px; }
.mod-row button.on { background: var(--amber); border-color: var(--amber); color: var(--on-amber); font-weight: 700; }
.mod-note { font-size: 10.5px; color: var(--t3); line-height: 1.7; margin-top: 10px; }

/* ── 贴图：内置 1bit 图标，不允许上传 ─────────── */
.stk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; padding: 2px 0 10px; }
.stk-grid button { aspect-ratio: 1 / 1; border-radius: 12px; border: 1px solid var(--line2); background: var(--surf-3); display: flex; align-items: center; justify-content: center; color: var(--t2); }
.stk-grid button.on { border-color: var(--amber); background: rgba(var(--amber-rgb),.12); color: var(--amber); }
.stk-grid svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; }

/* ── 间距统一：尺寸行 → 面板 → 工具条 → 二级栏 ── */
.meta { padding: 9px 16px 12px; }
.panel-h { margin-bottom: 12px; }
.panel-b.col { padding-bottom: 14px; }
#scr-editor .panel.on { padding: 8px 16px 14px; }
.panel-b.tpl-panel { padding-bottom: 12px; }
#ed-export-pop { flex-direction: column; }
#ed-export-pop .btn { min-height: 46px; width: 100%; }

/* ── 「我的」页分区 ─────────────────────────── */
.mine-extra { padding: 0 16px 20px; }
.mine-extra .row { padding: 12px 0; border-bottom: 1px solid var(--line2); font-size: 12.5px; color: var(--t2); }
.mine-extra .row b { display: block; color: var(--t1); font-size: 13px; font-weight: 600; }
.mine-extra .row small { color: var(--t3); font-size: 10.5px; }

/* ══════════════ 0.9 ══════════════ */

/* 导出：发布时是否开放二次创作 */
.pub-remix { display: flex; align-items: flex-start; gap: 9px; padding: 2px 4px 8px; font-size: 11.5px; color: var(--t2); cursor: pointer; }
.pub-remix input { appearance: none; flex: 0 0 16px; width: 16px; height: 16px; margin: 1px 0 0; border: 1px solid var(--line2); border-radius: var(--r-sm); background: transparent; }
.pub-remix input:checked { background: var(--amber); border-color: var(--amber); box-shadow: inset 0 0 0 3px var(--on-amber); }
.pub-remix span { line-height: 1.5; }
.pub-remix em { display: block; font-style: normal; color: var(--t3); font-size: 10px; margin-top: 2px; }

/* 2.31 发布封面图：100% 宽上下堆叠，整块加号可点，PC 的「选取文件」已删 */
#pub-sheet .ips-body { max-height: calc(100% - 44px); }
#pub-sheet .pub-inner { flex: 1; min-height: 0; overflow-y: auto; padding: 0 16px 10px; }
#pub-sheet .ips-h { flex-wrap: wrap; gap: 4px 9px; padding: 8px 0 0; }
#pub-sheet .ips-h small { flex: 1 0 100%; line-height: 1.5; }
/* 2.34 标题栏：原来完全没样式，退回浏览器默认 20 字符宽，显得很窄 */
.pub-title { padding: 12px 0 2px; }
.pub-title input {
  width: 100%; min-height: 42px; padding: 0 12px; border-radius: var(--r-md);
  border: 1px solid var(--line2); background: var(--input-bg); color: var(--t1); font-size: 13px;
}
.pub-cover { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 16px 0 0; }
.pc-head b { display: block; font-size: 12.5px; color: var(--t1); font-weight: 600; }
.pc-head small { display: block; margin-top: 3px; font-size: 10.5px; color: var(--t3); line-height: 1.5; }
.pc-thumb {
  width: 100%; height: 132px; border-radius: 12px; border: 1.5px dashed var(--line2);
  background: rgba(127,127,127,.06); display: flex; align-items: center; justify-content: center;
  overflow: hidden; color: var(--t3); font-size: 28px; cursor: pointer;
}
.pc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pub-cover.has .pc-thumb { border-style: solid; border-color: var(--amber); }
.pc-clear { display: none; align-self: flex-start; font-size: 11px; color: var(--t3); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }
.pub-cover.has .pc-clear { display: inline-block; }
/* 2.34 修：原选择器 .pub-remix.sw 命不中（按钮 class 是 sw on），封面加号与二创开关贴在一起 */
#pub-remix.sw { margin: 18px 0 0; }


/* 「我的」：2.33 三类分层入口（作品投稿 / 认领 / 点赞评论），行动点在 mine-sub 行内 */
#scr-mine .proj-chips { padding-top: 14px; }
#app.scr-account #tabbar, #app.scr-byline #tabbar { display: none; }
.acct-list { margin-top: 16px !important; }
.acct-note { margin: 0 16px 30px; font-size: 10.5px; line-height: 1.8; color: var(--t3); }
/* v0.15.0 账号页：左右边距与「我的」对齐——.set-body 让出内边距，
   由 .acct / .mcard-list 自己的 16px 决定，不再叠成 32px。 */
#scr-account .set-body { padding-left: 0; padding-right: 0; }
#scr-account .icp-line { margin-left: 16px; margin-right: 16px; }

/* ── v0.15.0 署名页（账号 → 署名） ── */
#scr-byline .set-body { padding-bottom: calc(30px + var(--safe-b)); }
#scr-byline .byline-row { cursor: pointer; }
#scr-byline .byline-row:active { background: rgba(var(--amber-rgb),.07); }
#scr-byline .byline-row.on .k { color: var(--amber); }
.byl-cur {
  flex: 0 0 auto; font-style: normal; font-size: 10.5px; font-weight: 600;
  color: var(--amber); border: 1px solid rgba(var(--amber-rgb),.45);
  border-radius: 999px; padding: 2px 8px;
}

/* 作品详情页 */
#wk-body { padding-bottom: calc(104px + var(--safe-b)); }
.wkdt-cover { padding: 4px 0 0; }
.wkdt-cover img { width: 100%; border-radius: var(--r-md); display: block; background: #fff; }
.wkdt-h { padding: 18px 0 0; }
.wkdt-h h2 { font-size: 21px; font-weight: 600; letter-spacing: .3px; }
.wkdt-author { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.wkdt-author .av { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--la); background: rgba(var(--amber-rgb),.12); color: var(--amber); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; }
.wkdt-author b { display: block; font-size: 13px; font-weight: 600; }
.wkdt-author small { display: block; font-size: 10.5px; color: var(--t3); margin-top: 3px; }
.wkdt-author em { margin-left: auto; font-style: normal; font-size: 10.5px; color: var(--t3); }
.wkdt-tags { display: flex; flex-wrap: wrap; gap: 7px; padding: 16px 0 0; }
.wkdt-tags span { font-size: 10.5px; color: var(--amber); border: 1px solid rgba(var(--amber-rgb),.4); border-radius: var(--r-sm); padding: 3px 8px; }
.wkdt-note { margin: 14px 0 0; font-size: 12px; line-height: 1.9; color: var(--t2); }
/* v0.15.0：作品详情的下载 / 二创次数收进「累计获得 N 积分」弹出明细，这行文字不再单独渲染 */
.wkdt-save { margin: 10px 0 0; display: flex; align-items: center; gap: 10px; }
.wkdt-save small { font-size: 10.5px; color: var(--t3); }
/* 2.9 发布确认弹层 */
.pub-pts { margin: 16px 0 8px; padding: 12px; border-radius: var(--r-md);
  border: 1px solid rgba(var(--amber-rgb),.28); background: rgba(var(--amber-rgb),.06); }
.pub-pts b { display: block; font-size: 11.5px; color: var(--amber); font-weight: 600; }
.pub-pts span { display: block; font-size: 10.5px; color: var(--t2); line-height: 1.7; margin-top: 4px; }
.pub-actions {
  position: sticky; bottom: 0; flex: 0 0 auto; display: flex; gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--panel); border-top: 1px solid var(--line2);
}
.pub-actions .mini-btn { flex: 1; height: 40px; font-size: 12.5px; }
.pub-actions .mini-btn.p { background: var(--amber); color: var(--on-amber); border-color: var(--amber); font-weight: 700; }
.wkdt-cm { margin: 18px 0 0; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line2); display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: var(--t2); }
/* 2.33 本地作品管理条（再编辑 / 删除） */
.wkdt-mine { margin: 12px 0 0; display: flex; gap: 9px; }
.wkdt-mine .wm-btn { flex: 1; height: 38px; border-radius: var(--r-md); font-size: 12px; color: var(--amber); border: 1px solid rgba(var(--amber-rgb),.45); background: rgba(var(--amber-rgb),.08); }
.wkdt-mine .wm-btn.dim { flex: 0 0 84px; color: var(--t3); border-color: var(--line2); background: transparent; }
.wkdt-cm b { color: var(--t1); font-weight: 600; }
.wkdt-cm em { font-style: normal; color: var(--amber); font-size: 11.5px; }
/* v0.15.0：积分行与评论行上下相邻，缩一点间距免得像两块分开的卡 */
.wkdt-cm + .wkdt-cm { margin-top: 10px; }
/* v0.15.0：举报从正文底部挪到作者行右上角，只留两个字 */
.wkdt-rep {
  margin-left: auto; flex: 0 0 auto; padding: 6px 13px; border-radius: 999px;
  background: none; border: 1px solid var(--line2); color: var(--t3);
  font-family: inherit; font-size: 11.5px; cursor: pointer;
}
.wkdt-rep:active { color: var(--amber); border-color: var(--amber); }
/* v0.15.0 作品数据明细弹层 */
.wpts-list { margin-top: 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.wpts-row { display: flex; align-items: center; gap: 10px; padding: 13px 16px; }
.wpts-row + .wpts-row { border-top: 1px solid var(--line2); }
.wpts-row span { flex: 1; min-width: 0; font-size: 13px; color: var(--t1); }
.wpts-row small { display: block; margin-top: 3px; font-size: 10.5px; color: var(--t3); }
.wpts-row b { flex: 0 0 auto; font-size: 12px; font-weight: 600; color: var(--t2); }
.wpts-row em { flex: 0 0 66px; font-style: normal; text-align: right; font-size: 13px; font-weight: 700; color: var(--amber); }
.wpts-row.tot { background: rgba(var(--amber-rgb),.06); }
.wpts-row.tot span { color: var(--t2); }
.wpts-row.tot em { font-size: 15px; }
.wpts-note { margin: 12px 0 14px; padding: 0 16px; font-size: 10.5px; line-height: 1.7; color: var(--t3); }
#wk-pts-sheet .ips-foot button { flex: 1; }
.wkdt-license { margin: 12px 0 0; padding: 10px 12px; border-radius: var(--r-md); background: rgba(var(--amber-rgb),.07); border: 1px solid rgba(var(--amber-rgb),.24); font-size: 10.5px; line-height: 1.7; color: var(--t2); }
.wkdt-license.off { background: var(--surf-2); border-color: var(--line2); color: var(--t3); }

/* 杂志详情：精选创作移到最底下，不再有往期与商品占位 */
.dt-works-h { padding-top: 26px; }
#dt-body .dt-works { padding-bottom: 8px; }
#dt-body .dt-seeall { margin-bottom: 30px; }

/* 版式模块组合器：可展开的四组 × 三形式 */
/* 1.4 区域元素清单：顶部 / 底部两块，逐要素显隐与缩放 */
.rg-box { padding-bottom: 8px; }
.rg-block { border: 1px solid var(--line2); border-radius: var(--r-md); margin-top: 9px; overflow: hidden; }
.rg-h { display: flex; align-items: center; gap: 7px; padding: 7px 8px;
  background: rgba(var(--amber-rgb),.07); border-bottom: 1px solid var(--line2); }
.rg-h b { font-size: 11px; color: var(--t1); font-weight: 500; }
.rg-h small { margin-left: auto; font-size: 9px; color: var(--t3); }
.rg-eye, .el-eye { flex: none; width: 26px; height: 22px; border-radius: var(--r-sm);
  border: 1px solid var(--line2); background: var(--input-bg); color: var(--amber); font-size: 10px; }
.rg-eye.off, .el-eye.off { color: var(--t3); background: transparent; }
.rg-eye:disabled, .el-eye:disabled { opacity: .45; }
.el-row { padding: 7px 8px; border-top: 1px solid var(--surf-4); }
.el-row.off { opacity: .55; }
.el-row.sel { background: rgba(var(--amber-rgb),.09); box-shadow: inset 2px 0 0 var(--amber); }
.el-main { display: flex; align-items: center; gap: 7px; }
.el-main b { font-size: 11.5px; color: var(--t1); font-weight: 500; }
.el-lock { font-size: 9px; color: var(--amber); border: 1px solid rgba(var(--amber-rgb),.4);
  border-radius: 4px; padding: 1px 4px; }
.el-go { margin-left: auto; font-size: 9.5px; color: var(--amber); background: none; border: none; padding: 3px 2px; }
.el-sc { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.el-sc span { font-size: 9.5px; color: var(--t3); flex: none; }
.el-sc input[type="range"] { flex: 1; min-width: 0; accent-color: var(--amber); height: 16px; }
.el-sc output { flex: none; width: 34px; text-align: right; font-size: 9.5px; color: var(--t3); }
.el-qr { margin-top: 7px; display: flex; align-items: center; gap: 6px; }
.el-qr input { flex: 1; min-width: 0; height: 27px; padding: 0 7px; border-radius: var(--r-sm);
  border: 1px solid var(--line2); background: var(--input-bg); color: var(--t1); font-size: 10px; }
.el-qr input:disabled { opacity: .6; }
.el-bytes { flex: none; font-size: 9px; color: var(--t3); }
.el-warn { margin-top: 5px; font-size: 9.5px; line-height: 1.5; color: var(--amber); }
.rg-note { margin-top: 9px; font-size: 9.5px; line-height: 1.5; color: var(--t3); }
.cw-gh { margin: 12px 2px 6px; font-size: 10px; color: var(--amber); letter-spacing: .5px; }
.cw-item.sel { border-color: rgba(var(--amber-rgb),.6); }
.cw-item.flash { animation: cwFlash 1.3s ease-out; }
@keyframes cwFlash { 0%, 40% { box-shadow: 0 0 0 2px rgba(var(--amber-rgb),.55); } 100% { box-shadow: none; } }
.cw-item.off { opacity: .62; }
.cw-item input:disabled { opacity: .6; }
.dh.el-sel { pointer-events: none; border: 2px solid var(--amber);
  background: rgba(var(--amber-rgb),.12); box-shadow: 0 0 0 2px rgba(0,0,0,.7); }
.dh.sel { border-width: 2px; }
.set-note { padding: 8px 11px; font-size: 10px; line-height: 1.55; color: var(--t3); }
.mod-panel { padding-bottom: 18px; }
/* 1.6 L2 模块导航：主体提示 + 底部一排板块图标 */
.mod-hint { margin: 10px 2px 0; font-size: 11px; line-height: 1.7; color: var(--t3); }
.mod-dock { display: flex; gap: 8px; margin-top: 14px; }
.md-back { flex: 0 0 40px; height: 64px; border-radius: 12px; border: 1px solid var(--line2);
  background: var(--surf-2); color: var(--t2); font-size: 20px; }
.md-ico { position: relative; flex: 1; min-width: 0; height: 64px; border-radius: 12px;
  border: 1px solid var(--line2); background: var(--surf-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.md-ico .mdi { width: 22px; height: 22px; color: var(--t2); }
.md-ico:active .mdi, .md-ico:hover .mdi { color: var(--amber); }
.md-ico .mdi svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.md-ico small { font-size: 9.5px; color: var(--t3); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 3px; }
.md-ico .dot { position: absolute; right: 7px; top: 7px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--amber); opacity: .85; }
.md-ico .mn-eye { position: absolute; left: 6px; top: 6px; font-style: normal; text-decoration: none;
  font-size: 8.5px; line-height: 1; padding: 3px 4px; border-radius: 4px;
  color: var(--t3); border: 1px solid var(--line2); background: var(--surf-9); }
.md-ico .mn-eye.off { color: var(--t3); opacity: .55; }
.md-ico .mn-eye[data-lock] { opacity: .8; }
.md-ico .mn-eye.none { visibility: hidden; }
/* L3 整组显隐行 */
.mc-group { padding: 10px 12px; }
/* 管理列表图标化 */
.tm-ico { flex: none; width: 40px; height: 40px; border-radius: var(--r-md); border: 1px solid var(--line2);
  display: flex; align-items: center; justify-content: center; color: var(--t2); }
.tm-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.mod-group2 { border: 1px solid var(--line2); border-radius: 12px; margin-bottom: 9px; overflow: hidden; background: var(--surf-1); }
.mod-group2.open { border-color: rgba(var(--amber-rgb),.45); }
.mod-h2 { width: 100%; display: flex; align-items: center; gap: 10px; padding: 13px 13px; background: transparent; border: none; color: var(--t1); text-align: left; }
.mod-h2 b { font-size: 13px; font-weight: 600; flex: 0 0 auto; }
.mod-h2 em { font-style: normal; font-size: 10.5px; color: var(--t3); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mod-h2 i { font-style: normal; font-size: 16px; color: var(--amber); flex: 0 0 auto; }
.mod-forms { display: flex; flex-direction: column; gap: 7px; padding: 0 11px 4px; }
.mod-form { width: 100%; text-align: left; padding: 10px 11px; border-radius: var(--r-md); border: 1px solid var(--line2); background: var(--surf-2); color: var(--t2); }
.mod-form b { display: block; font-size: 12px; font-weight: 600; color: var(--t1); }
.mod-form small { display: block; font-size: 10px; color: var(--t3); margin-top: 4px; line-height: 1.6; }
.mod-form.on { border-color: var(--amber); background: rgba(var(--amber-rgb),.1); }
.mod-form.on b { color: var(--amber); }
.mod-group2 .mod-note { margin: 6px 12px 12px; }
.mod-save { margin: 4px 2px 0 !important; }

/* 1.1 模块编辑：状态条 / 真实形式缩略图 / 内容编辑区 */
.mod-panel { max-height: 44dvh; }
.mod-state { display: flex; align-items: center; gap: 8px; padding: 9px 11px; margin-bottom: 10px;
  border-radius: var(--r-md); border: 1px solid var(--line2); background: var(--surf-1);
  font-size: 10.5px; color: var(--t3); line-height: 1.5; }
.mod-state span { flex: 1; min-width: 0; }
.mod-state.dirty { border-color: rgba(var(--amber-rgb),.34); background: rgba(var(--amber-rgb),.07); color: var(--t2); }
.mod-state button { flex: 0 0 auto; padding: 5px 9px; border-radius: var(--r-sm); font-size: 10.5px;
  border: 1px solid var(--la); color: var(--amber); background: transparent; }
.mod-h2-row { display: flex; align-items: stretch; }
.mod-h2-row .mod-h2 { flex: 1; min-width: 0; }
.mod-reset { flex: 0 0 38px; border: none; border-left: 1px solid var(--line2);
  background: transparent; color: var(--t3); font-size: 17px; line-height: 1; }
.mod-reset:active { color: var(--amber); }
.mod-forms { gap: 8px; }
.mod-form { display: flex !important; align-items: center; gap: 10px; text-align: left; padding: 8px !important; }
.mf-ico { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 8px; display: flex;
  align-items: center; justify-content: center; color: var(--t2);
  background: var(--surf-3); border: 1px solid var(--line2); }
.mod-form.on .mf-ico { color: var(--amber); border-color: rgba(var(--amber-rgb),.5); background: rgba(var(--amber-rgb),.08); }
.mf-ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.mf-hint { margin: 3px 12px 7px; font-size: 10px; line-height: 1.5; color: var(--t3); }
/* 2.14 标题模块行内输入 + 窗口模块逐窗展开 + 主体模块 */
.el-txt { width: 100%; margin-top: 6px; height: 28px; padding: 0 8px; border-radius: var(--r-sm);
  border: 1px solid var(--line2); background: var(--input-bg); color: var(--t1); font-size: 10.5px; }
.mw-item { border-top: 1px solid var(--surf-4); }
.mw-item.off { opacity: .55; }
.mw-item.open { background: rgba(var(--amber-rgb),.05); }
.mw-head { display: flex; align-items: center; gap: 7px; padding: 8px 8px; cursor: pointer; }
.mw-head b { font-size: 11.5px; color: var(--t1); font-weight: 500; flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mw-kind { flex: none; max-width: 92px; height: 26px; border-radius: var(--r-sm); border: 1px solid var(--line2);
  background: var(--input-bg); color: var(--t2); font-size: 10px; padding: 0 4px; }
.mw-eye { flex: none; font-size: 12px; line-height: 1; padding: 4px; border-radius: var(--r-sm);
  color: var(--t2); border: 1px solid var(--line2); background: var(--surf-9); }
.mw-eye.off { opacity: .5; }
.mw-edit { padding: 0 8px 9px 30px; }
.mw-edit .mw-title { width: 100%; height: 27px; margin-bottom: 6px; padding: 0 8px; border-radius: var(--r-sm);
  border: 1px solid var(--line2); background: var(--input-bg); color: var(--t1); font-size: 10.5px; }
.mw-edit .mw-lines { width: 100%; padding: 6px 8px; border-radius: var(--r-sm); resize: none;
  border: 1px solid var(--line2); background: var(--input-bg); color: var(--t1); font-size: 10.5px; line-height: 1.6; }
.mw-edit .txt-hint { margin-top: 5px; }
/* ── 2.21 局部放大 / 底片监视器 · 自由拖框选区 ── */
.zf-wrap { position: relative; margin-top: 8px; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--line2); background: var(--surf-2); touch-action: none; }
.zf-wrap .zf-art { display: block; width: 100%; height: auto; }
.zf-box { position: absolute; border: 1.5px solid var(--amber); cursor: grab;
  box-shadow: 0 0 0 999px rgba(0,0,0,.25); }
.zf-box.hint { border-style: dashed; opacity: .8; }
.zf-box.drag { cursor: grabbing; }
.zf-grip { position: absolute; right: -6px; bottom: -6px; width: 14px; height: 14px;
  border-radius: 4px; background: var(--amber); cursor: nwse-resize; }
.zf-row { display: flex; align-items: center; gap: 8px; margin-top: 7px; }
.zf-row .mc-btn { width: auto; margin-top: 0; padding: 7px 12px; flex: none; }
.zf-row .txt-hint { margin-top: 0; flex: 1; min-width: 0; }
/* 2.21 档位上的 VIP 小标（精细 / 超细、会员能力） */
.vip-tag { display: inline-block; margin-left: 5px; padding: 1px 4px; border-radius: 4px;
  font-size: 8.5px; font-style: normal; font-weight: 700; letter-spacing: .5px; line-height: 1.2; vertical-align: 1px;
  color: var(--on-amber, #fff); background: var(--amber);
  border: 1px solid rgba(var(--amber-rgb, 255 170 0), .75); }
/* 2.28 会员视角强化态（添加 IP 弹层「当前积分」旁）：描边光晕，突出会员加成 */
.vip-tag.vip-on { padding: 1px 6px; box-shadow: 0 0 0 2px rgba(var(--amber-rgb, 255 170 0), .3); }
.mc-btn { width: 100%; margin-top: 10px; padding: 9px 0; border-radius: var(--r-md); font-size: 11.5px;
  border: 1px solid var(--line2); background: var(--surf-2); color: var(--t2); }
.mc-btn:active { color: var(--amber); border-color: rgba(var(--amber-rgb),.5); }
.mod-form.on .mf-thumb { border-color: var(--amber); }
.mf-txt { flex: 1; min-width: 0; }
.mf-txt b, .mf-txt small { display: block; }
.mf-txt b { font-size: 11.5px; font-weight: 600; color: var(--t1); line-height: 1.45; }
.mf-txt small { font-size: 10px; color: var(--t3); margin-top: 3px; line-height: 1.5; }
.mc-box { margin: 10px 11px 4px; padding: 10px 11px 11px; border-radius: var(--r-md);
  border: 1px dashed var(--line2); background: var(--surf-1); }
.mc-h { margin-bottom: 9px; }
.mc-h b { display: block; font-size: 11.5px; color: var(--amber); font-weight: 600; }
.mc-h small { display: block; font-size: 9.5px; color: var(--t3); margin-top: 3px; line-height: 1.5; }
.mc-row { display: flex; align-items: center; gap: 8px; margin-top: 7px; min-height: 28px; }
.mc-row > span { flex: 0 0 54px; font-size: 10.5px; color: var(--t3); }
.mc-row input[type="text"], .mc-row input:not([type]), .mc-input, .mw-row select {
  flex: 1; min-width: 0; height: 28px; padding: 0 8px; border-radius: var(--r-sm);
  border: 1px solid var(--line2); background: var(--input-bg); color: var(--t1);
  font-size: 11px; font-family: inherit; outline: none; }
.mc-row input:focus, .mc-input:focus, .mw-row select:focus { border-color: var(--amber); }
.mc-row input[type="range"] { flex: 1; min-width: 0; accent-color: var(--amber); }
.mc-row output { color: var(--amber); font-size: 10.5px; }
.mc-input { width: 100%; box-sizing: border-box; margin-top: 2px; }
/* 2.9 菜单并入屏幕：三套菜单形式横排小卡 */
.mod-menu-box { margin-top: 10px; }
.mod-mforms { display: flex; gap: 6px; }
.mod-mform { flex: 1; min-width: 0; text-align: left; padding: 7px 8px; border-radius: 8px;
  border: 1px solid var(--line2); background: var(--surf-2); color: var(--t2); }
.mod-mform b { display: block; font-size: 10.5px; font-weight: 600; color: var(--t1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mod-mform small { display: block; font-size: 9px; color: var(--t3); margin-top: 3px; line-height: 1.4;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mod-mform.on { border-color: var(--amber); background: rgba(var(--amber-rgb),.1); }
.mod-mform.on b { color: var(--amber); }
.md-ico.locked { opacity: .55; }
.mc-sw { display: flex; align-items: center; gap: 7px; margin-top: 10px; font-size: 10.5px; color: var(--t2); }
.mc-sw input { accent-color: var(--amber); }
.mc-plain { font-size: 10.5px; color: var(--t3); line-height: 1.75; }
.mw-row { display: flex; align-items: center; gap: 7px; margin-top: 7px; }
.mw-row b { flex: 1; min-width: 0; font-size: 10.5px; color: var(--t2); font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mw-row select { flex: 0 0 88px; height: 27px; }
.mw-eye { flex: 0 0 27px; height: 27px; border-radius: var(--r-sm); border: 1px solid var(--la);
  background: transparent; color: var(--amber); font-size: 10.5px; }
.mw-eye.off { border-color: var(--line2); color: var(--t3); }

/* ═══════════ 2.0 插画详情页升级：关注 / 领养 / 用户投递 / 投稿文章 ═══════════ */

/* 顶栏：分享旁的文字按钮（关注 / 已关注） */
.tb-acts { display: flex; align-items: center; gap: 4px; }
.ib.ftxt { width: auto; padding: 0 8px; font-size: 12px; color: var(--amber); font-weight: 600; }
.ib.ftxt.on { color: var(--t3); font-weight: 500; }

/* 标题居中 + 关注人数 */
.dt-h { text-align: center; }
.dt-h h2 em { font-style: normal; font-size: 11.5px; font-weight: 400; color: var(--t3); margin-left: 6px; white-space: nowrap; }
.dt-h .meta { justify-content: center; }

/* 封面右上关注者头像堆 */
.dt-cover { position: relative; }
/* 2.28 作品详情右上角：琥珀「存相册」药丸 + 分享并排（页面中间的存相册块撤了） */
.tb-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.save-pill {
  display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 12px;
  border-radius: var(--r-md); border: none; background: var(--amber); color: var(--on-amber);
  font-size: 12px; font-weight: 700; letter-spacing: .3px; cursor: pointer;
  box-shadow: 0 2px 10px rgba(var(--amber-rgb),.35);
}
.save-pill svg { width: 14px; height: 14px; stroke: var(--on-amber); stroke-width: 2; fill: none; }
.save-pill:active { transform: scale(.96); }
.p-fstack { position: absolute; right: 10px; top: 10px; display: flex; align-items: center;
  background: rgba(10,10,8,.62); border-radius: 999px; padding: 3px 9px 3px 4px; backdrop-filter: blur(4px); }
.p-fstack .av { width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 9.5px; font-weight: 700; color: var(--on-amber); margin-left: -6px; border: 1.5px solid rgba(10,10,8,.85); }
.p-fstack .av:first-child { margin-left: 0; }
.p-fstack .n { font-size: 10px; color: var(--amber); margin-left: 5px; font-weight: 600; }
/* 2.28 浅色模式修复：黑底半透明在白封面上发灰、头像黑描边生硬 → 白底浮层走主题变量 */
html[data-theme="light"] .p-fstack { background: rgba(255,255,255,.92); box-shadow: 0 1px 5px rgba(0,0,0,.10); }
html[data-theme="light"] .p-fstack .av { border-color: rgba(255,255,255,.95); }
html[data-theme="light"] .p-fstack .n { color: var(--t2); }

/* 2.28 杂志卡 VOL 后的迷你认领头像堆：与 VOL 文字同高，×3 + 超出点点点 */
.zcard .lk { display: inline-flex; align-items: center; gap: 3px; }
.lk .ch-stack { display: inline-flex; align-items: center; margin-left: 1px; }
.lk .ch {
  width: 12px; height: 12px; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center; font-size: 7px; font-weight: 700;
  font-style: normal; color: rgba(255,255,255,.95); margin-left: -4px;
  border: 1px solid rgba(8,8,6,.85);
}
.lk .ch:first-child { margin-left: 0; }
.lk .ch.dots { background: transparent; border: none; color: var(--amber); font-size: 8px; letter-spacing: .5px; padding-left: 2px; }
html[data-theme="light"] .lk .ch { border-color: rgba(255,255,255,.9); }
html[data-theme="light"] .lk .ch.dots { color: var(--t2); }

/* 领养者区块 */
/* 2.25：云股东一行式（头像 · 名字 · 云股东 001），去掉大标题压高度 */
.dt-adopt { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; border: 1px dashed rgba(var(--amber-rgb),.55);
  background: rgba(var(--amber-rgb),.07); display: flex; align-items: center; gap: 10px; }
.dt-adopt .bd { flex: 1; min-width: 0; }
.dt-adopt b { font-size: 12.5px; color: var(--t1); display: block; }
.dt-adopt small { font-size: 10.5px; color: var(--t3); display: block; margin-top: 3px; line-height: 1.5; }
.dt-adopt .no { color: var(--amber); font-weight: 600; }
.dt-adopt-btn { flex: none; height: 30px; padding: 0 16px; border-radius: var(--r-md); border: none;
  background: var(--amber); color: var(--on-amber); font-size: 12px; font-weight: 700; }
.dt-adopt.done { border-style: solid; background: rgba(0,0,0,.0); }
.dt-adopt.done .dt-adopt-btn { background: transparent; border: 1px solid var(--line2); color: var(--t3); font-weight: 500; }
.dt-adopt .rights { color: var(--amber); }
.dt-adopt .dt-rights { margin-top: 6px; }
/* 2.25：云股东列表——头像 | 用户名 | 小字「云股东 001」（三位数、不带 No.） */
.dt-holder { flex: 0 0 auto; display: flex; flex-direction: row; align-items: center; gap: 8px; }
.dt-holder i {
  width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-style: normal; font-size: 12px; font-weight: 700; color: #fff;
}
.dt-holder b { font-size: 12.5px; font-weight: 600; color: var(--t1); display: inline;
  max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt-holder small { flex: none; font-size: 10px; color: var(--t3); }
.dt-holder.more { color: var(--t3); font-size: 11px; }

/* 用户投递 */
.dt-dels-h { display: flex; align-items: baseline; gap: 8px; padding: 16px 0 0; }
.dt-dels-h b { font-size: 14px; color: var(--t1); }
.dt-dels-h small { font-size: 10.5px; color: var(--t3); }
.dt-dels-h .sort { margin-left: auto; font-size: 10.5px; color: var(--t3); }
.p-dcard { margin: 10px 0 0; padding: 12px 13px; border-radius: 12px; border: 1px solid var(--line2);
  background: var(--card); position: relative; cursor: pointer; }
.p-dcard:active { border-color: var(--amber); }
.p-dcard .p-bar { display: flex; align-items: center; gap: 7px; padding-right: 64px; }
.p-dcard .p-avt { flex: none; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 11px; font-weight: 700; color: var(--on-amber); }
.p-dcard .p-bar .tt { font-size: 12px; color: var(--t1); font-weight: 600; white-space: nowrap; }
.p-dcard .p-bar .vr { color: var(--t3); font-size: 11px; }
.p-dcard .p-bar .ttl.grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.p-dcard .p-cardtag { position: absolute; right: 11px; top: 11px; font-size: 9.5px; font-weight: 600;
  color: #1d9c43; background: rgba(0,180,42,.12); border-radius: var(--r-sm); padding: 3px 8px; }
.p-dcard .abs { margin-top: 8px; font-size: 12px; color: var(--t2); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.p-dcard .p-row { display: flex; align-items: center; gap: 12px; margin-top: 8px; font-size: 10.5px; color: var(--t3); }
.p-dcard .p-row .read { margin-left: auto; color: var(--amber); }
.dt-dels-note { margin: 10px 0 0; font-size: 10px; color: var(--t3); text-align: center; }

/* 投稿的文章页（与详情同构，复用 dt-* 类） */
/* 2.25：作者头部紧凑化——头像在左，右侧两行（用户名 / 来自…的投稿） */
#post-body .post-author { display: flex; align-items: center; gap: 9px; padding: 0; margin-top: 2px; }
#post-body .post-author .p-avt { flex: none; width: 30px; height: 30px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--on-amber); }
#post-body .post-author .pa-r { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
#post-body .post-author b { font-size: 13px; color: var(--t1); }
#post-body .post-author small { font-size: 10.5px; color: var(--t3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 2.24 投稿文章页：标题左对齐；2.25 来源小字并进作者行 */
.post-h { text-align: left !important; }
.post-from { font-size: 10.5px; color: var(--t3); }
.post-others-h { padding: 16px 0 0; font-size: 13.5px; color: var(--t1); }
.post-others { margin: 10px 0 0; border: 1px solid var(--line2); border-radius: 12px; background: var(--card); overflow: hidden; }
.post-others .row { display: flex; align-items: center; gap: 8px; padding: 12px 13px; border-top: 1px solid var(--line2); cursor: pointer; }
.post-others .row:first-child { border-top: none; }
.post-others .row .p-avt { flex: none; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 10px; font-weight: 700; color: var(--on-amber); }
.post-others .row b { font-size: 12px; color: var(--t1); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-others .row small { font-size: 10px; color: var(--t3); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-others .row .otag { flex: none; font-size: 9.5px; color: var(--t3); border: 1px solid var(--line2); border-radius: var(--r-sm); padding: 2px 7px; }
.post-others .row .otag.official { color: var(--amber); border-color: rgba(var(--amber-rgb),.5); }

/* 弹层副文案 + 右侧小标签 */
.sheet-sub { margin: -8px 4px 14px; font-size: 11.5px; color: var(--t2); line-height: 1.7; }
.sheet .tag.g { color: #1d9c43; background: rgba(0,180,42,.12); border-radius: var(--r-sm); padding: 3px 8px; font-size: 9.5px; font-weight: 600; flex: none; }
.sheet .tag.b { color: var(--amber); background: rgba(var(--amber-rgb),.14); border-radius: var(--r-sm); padding: 3px 8px; font-size: 9.5px; font-weight: 600; flex: none; }
.sheet .tag.off { color: var(--t3); border: 1px solid var(--line2); border-radius: var(--r-sm); padding: 3px 8px; font-size: 9.5px; flex: none; }

/* 领养弹层内表单 */
.ad-form { padding: 2px 4px 0; }
.ad-note { font-size: 11.5px; color: var(--t2); line-height: 1.7; margin-bottom: 12px; }
.ad-input { width: 100%; height: 40px; border-radius: var(--r-md); border: 1px solid var(--line2);
  background: var(--input-bg); color: var(--t1); font-size: 13px; padding: 0 12px; outline: none; }
.ad-input:focus { border-color: var(--amber); }
.ad-info { border: 1px solid var(--line2); border-radius: 12px; padding: 12px 14px; background: var(--card); }
.ad-info b { font-size: 13px; color: var(--t1); display: block; }
.ad-info small { display: block; font-size: 11px; color: var(--t2); margin-top: 6px; line-height: 1.6; }
.ad-info small .rt { color: var(--amber); }
/* 2.23 认领弹层：所需 / 当前积分一眼可见 */
.ad-pts { display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border: 1px solid var(--line2); border-radius: var(--r-md); padding: 11px 13px; background: var(--card);
  font-size: 11.5px; color: var(--t2); margin-top: 2px; }
.ad-pts b { font-size: 14px; font-weight: 700; }
.ad-pts .enough { color: #1d9c43; }
.ad-pts .lack { color: #e05555; }
.ad-form .ad-note b.lack { color: #e05555; }
/* .opt-t 是 flex:1，按钮级 justify-content 无法居中文字，须在此层居中 */
.ad-go .opt-t { text-align: center; }

/* 我的投递三态标签 */
.st-tag { flex: 0 0 auto; font-size: 10px; padding: 3px 8px; border-radius: 999px; }
.st-tag.pending { background: rgba(var(--amber-rgb),.16); color: var(--amber); font-weight: 600; }
.st-tag.published { background: rgba(0,180,42,.14); color: #1d9c43; font-weight: 600; }
.st-tag.returned { background: rgba(245,63,63,.12); color: #e05555; font-weight: 600; }
.st-tag.draft { border: 1px solid var(--line2); color: var(--t3); }
.mine-reason { font-size: 10.5px; color: #e05555; margin-top: 3px; }

/* 2.1 后台开关关闭时的创作弹层项（置灰 + 标签变「已关闭」，JS 控制） */
.opt.opt-off { opacity: .45; pointer-events: none; }
.opt.opt-off .tag { filter: grayscale(1); }

/* ═══════════ 2.2 作品/精选创作瀑布流 · 眼睛显隐 · 像素贴图 ═══════════ */

/* 眼睛图标：显示=琥珀 / 隐藏=灰（.off 控制，继承按钮 currentColor） */
.rg-eye svg, .el-eye svg, .mw-eye svg { width: 15px; height: 15px; display: block; margin: 0 auto; }
.rg-eye svg path, .el-eye svg path, .mw-eye svg path { fill: none; stroke: currentColor; stroke-width: 1.8; }
.rg-eye svg .pupil, .el-eye svg .pupil, .mw-eye svg .pupil { fill: currentColor; stroke: none; }
.md-ico .mn-eye { width: 20px; height: 20px; padding: 0; display: flex; align-items: center; justify-content: center;
  color: var(--amber); border-color: rgba(var(--amber-rgb),.4); }
.md-ico .mn-eye svg { width: 14px; height: 14px; display: block; }
.md-ico .mn-eye svg path { fill: none; stroke: currentColor; stroke-width: 1.8; }
.md-ico .mn-eye svg .pupil { fill: currentColor; }
.md-ico .mn-eye.off { color: var(--t3); border-color: var(--line2); }
/* L3 整组显隐（2.8）：左侧文字 · 中间状态眼睛（不可点）· 右侧开关 */
.mc-group { display: flex; align-items: center; gap: 10px; }
.mc-group .mc-glab { font-size: 12px; color: var(--t1); flex: 1; min-width: 0; }
.mc-group .rg-eye { cursor: default; }
.mc-group .rg-eye.locked { color: var(--t3); border-color: var(--line2); opacity: .8; }
.mc-group .rg-eye.locked svg path, .mc-group .rg-eye.locked svg rect { stroke-width: 1.6; }
.tgl { flex: none; position: relative; display: inline-block; width: 44px; height: 26px; }
.tgl input { position: absolute; opacity: 0; width: 0; height: 0; }
.tgl i {
  position: absolute; inset: 0; border-radius: 999px;
  background: var(--surf-9); border: 1px solid var(--line2);
  transition: background .18s, border-color .18s;
}
.tgl i::after {
  content: ""; position: absolute; top: 50%; left: 3px; width: 18px; height: 18px;
  margin-top: -9px; border-radius: 50%; background: #6d695c;
  transition: transform .18s, background .18s;
}
.tgl input:checked + i { background: rgba(var(--amber-rgb),.28); border-color: rgba(var(--amber-rgb),.75); }
.tgl input:checked + i::after { transform: translateX(18px); background: var(--amber); }
.md-ico .mn-eye.locked { color: var(--t3); border-color: var(--line2); }

/* 作品页：两列瀑布流（各列独立堆叠） */
.wk-grid { display: flex; gap: 12px; }
.wk-grid .wcol { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.wk-card .wk-author { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.wk-card .p-avt { width: 15px; height: 15px; font-size: 8.5px; flex: none; border-radius: 50%; }
.wk-card .wk-author { color: var(--t2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 精选创作：两列瀑布流 + 作者头像 */
.dt-works { display: flex; gap: 10px; padding: 10px 0 0; }
.dt-works .wcol { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.dt-works .w small { display: flex; align-items: center; gap: 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dt-works .w small .p-avt { width: 13px; height: 13px; font-size: 8px; flex: none; border-radius: 50%; }

/* 2.15 颜色面板：两色配色卡（纸色块压墨色块） */
.pal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.pal-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  padding: 10px; border-radius: 12px; border: 1.5px solid var(--line2);
  background: var(--card, var(--surf-3)); cursor: pointer; text-align: left;
}
.pal-card.on { border-color: var(--amber); background: rgba(var(--amber-rgb),.08); }
.pal-swatch { display: flex; width: 100%; height: 44px; border-radius: 8px; overflow: hidden; border: 1px solid rgba(0,0,0,.25); }
.pal-swatch i { flex: 1; height: 100%; display: block; }
.pal-swatch i + i { flex: 0 0 38%; }
.pal-n { font-size: 12px; color: var(--t1); }

/* 2.31 颜色工具里的背景：底色 + 预设纸纹 + VIP 上传 */
.bg-sec { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line2); }
.bg-color-row { display: flex; flex-wrap: wrap; gap: 8px; }
.bg-color-row button, .bg-custom {
  min-height: 32px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line2);
  background: var(--surf-3); color: var(--t2); font-size: 11.5px;
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
}
.bg-color-row button.on { border-color: var(--amber); color: var(--amber); background: rgba(var(--amber-rgb),.08); }
.bg-custom input[type=color] { width: 22px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; }
.bg-blend-row { display: flex; gap: 8px; margin-bottom: 10px; }
.bg-blend-row button { flex: 1; min-height: 32px; border-radius: 8px; border: 1px solid var(--line2); background: var(--surf-3); color: var(--t2); font-size: 11.5px; cursor: pointer; }
.bg-blend-row button.on { border-color: var(--amber); color: var(--amber); background: rgba(var(--amber-rgb),.08); }
.bg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bg-card {
  position: relative; height: 78px; border-radius: var(--r-md); border: 1.5px solid var(--line2);
  background-size: cover; background-position: center; overflow: hidden; cursor: pointer;
}
.bg-card.on { border-color: var(--amber); box-shadow: 0 0 0 2px rgba(var(--amber-rgb),.24); }
.bg-card > span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 5px;
  font-size: 10.5px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.68));
}
.bg-card.vip { display: flex; align-items: center; justify-content: center; background: var(--surf-3); color: var(--t2); }
.bg-card.vip > span { position: static; background: none; color: inherit; text-align: center; }
.bg-card.vip small { color: var(--amber); font-size: 9px; margin-left: 3px; }
.bg-clear { margin-top: 10px; font-size: 11px; color: var(--t3); background: none; border: 0; text-decoration: underline; }

/* 2.15 我的页积分卡：余额 + 签到 + 获取/消耗摘要（演示，规则待对齐） */
.pts-card {
  margin: 0 16px 12px; padding: 14px 16px; border-radius: var(--r-md);
  border: none; background: rgba(var(--amber-rgb),.07);
}
.pts-main { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pts-bal { display: flex; align-items: baseline; gap: 6px; }
.pts-bal b { font-size: 26px; font-weight: 800; color: var(--amber); letter-spacing: .5px; }
.pts-bal span { font-size: 12px; color: var(--t2); }
.pts-sign {
  flex: none; height: 34px; padding: 0 14px; border-radius: 999px;
  border: 1px solid rgba(var(--amber-rgb),.55); background: var(--amber); color: var(--on-amber);
  font-size: 12.5px; font-weight: 700; cursor: pointer;
}
.pts-sign:disabled { opacity: .55; cursor: default; }
/* 2.21 VIP 签到：×2 小标 */
.sign-x2 { display: inline-block; margin-left: 5px; padding: 1px 5px; border-radius: 999px;
  font-size: 9px; font-style: normal; font-weight: 700; line-height: 1.3;
  color: var(--amber); background: rgba(var(--amber-rgb),.16); }
.pts-sign .sign-x2 { color: var(--on-amber); background: rgba(255,255,255,.28); }
/* ── 2.21 我的页头部：头像（VIP 角标）+ 用户名 + 一行基本资料 ── */
.mine-hd { display: flex; align-items: center; justify-content: space-between;
  padding: 20px 18px 12px; flex: 0 0 auto; gap: 10px; }
.mine-me { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1;
  text-align: left; background: none; border: none; padding: 0; cursor: pointer; }
.mine-av-wrap { position: relative; flex: none; }
.mine-av { display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(var(--amber-rgb),.16); color: var(--amber);
  font-size: 18px; font-weight: 800; }
.mine-vip { position: absolute; right: -4px; bottom: -2px; padding: 1.5px 5px;
  border-radius: 999px; font-size: 8.5px; font-style: normal; font-weight: 800;
  letter-spacing: .5px; color: var(--on-amber); background: var(--amber);
  border: 2px solid var(--bg, var(--surf-9)); }
.mine-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mine-info b { font-size: 15px; font-weight: 700; color: var(--t1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mine-info small { font-size: 11px; color: var(--t3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mine-chev { flex: none; width: 16px; height: 16px; stroke: var(--t3);
  fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* ── 2.21 会员页 ── */
.mbr-card { margin-bottom: 14px; }
.mbr-top { display: flex; align-items: center; gap: 12px; padding: 16px;
  border-radius: var(--r-md); background: rgba(var(--amber-rgb),.1);
  border: 1px solid rgba(var(--amber-rgb),.35); }
.mbr-top.vip { background: var(--amber); border-color: transparent; }
.mbr-top.vip .info b, .mbr-top.vip .info small { color: var(--on-amber); }
.mbr-crown { flex: none; width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; letter-spacing: 1px;
  color: var(--on-amber); background: var(--amber); }
.mbr-top.vip .mbr-crown { background: rgba(255,255,255,.24); }
.mbr-top .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mbr-top .info b { font-size: 14.5px; font-weight: 700; color: var(--t1); }
.mbr-top .info small { font-size: 11px; color: var(--t3); line-height: 1.5; }
.mbr-top .act { flex: none; }
.pts-meta { display: flex; flex-direction: column; gap: 3px; margin-top: 10px; }
.pts-meta span { font-size: 11px; color: var(--t3); }

/* 2.16 尺寸面板：比例卡（左侧形状预览 + 名称 + 用途） */
.asp-grid { display: flex; flex-direction: column; gap: 8px; }
.asp-card {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border-radius: 12px; border: 1.5px solid var(--line2);
  background: var(--card, var(--surf-3)); cursor: pointer; text-align: left;
}
.asp-card.on { border-color: var(--amber); background: rgba(var(--amber-rgb),.08); }
.asp-shape {
  flex: none; width: 56px; height: 48px; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; background: var(--surf-3);
}
.asp-shape i { display: block; border: 1.5px solid var(--amber); border-radius: 3px; background: rgba(var(--amber-rgb),.14); }
.asp-n { font-size: 13px; font-weight: 600; color: var(--t1); }
.asp-d { font-size: 11px; color: var(--t3); margin-left: auto; }

/* ═══════════ 2.19 底部导航五项：＋创作凸起圆钮 / 消息红点 / 消息页 ═══════════ */
#tabbar > div { position: relative; }
#tabbar > div.tab-plus {
  flex: 0 0 62px; display: flex; align-items: center; justify-content: center;
}
#tabbar > div.tab-plus > i {
  width: 50px; height: 50px; border-radius: 50%; background: var(--amber);
  display: flex; align-items: center; justify-content: center; font-style: normal;
  transform: translateY(-9px);
  box-shadow: 0 6px 16px rgba(var(--amber-rgb),.4), 0 0 0 4px var(--tab-bg);
}
#tabbar > div.tab-plus svg { width: 24px; height: 24px; stroke: var(--on-amber); stroke-width: 2.2; }
#tabbar > div.tab-plus:active { background: none; }
#tabbar > div.tab-plus:active > i { transform: translateY(-9px) scale(.94); }

.ndot { width: 8px; height: 8px; border-radius: 50%; background: #E24B4A; }
#tabbar .ndot { position: absolute; top: 8px; left: calc(50% + 3px); }

.msg-list { flex: 1; overflow-y: auto; padding: 4px 16px calc(var(--tab-h) + var(--safe-b) + 16px); }
/* v0.18.2 消息分类筛选：全部 / 官方通知 / 点赞 / 评论 */
.msg-tabs { display: flex; gap: 8px; padding: 0 16px 10px; overflow-x: auto; scrollbar-width: none; }
.msg-tabs::-webkit-scrollbar { display: none; }
.msg-tabs span { flex: 0 0 auto; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 13px; color: var(--t2); cursor: pointer; }
.msg-tabs span.on { background: var(--amber); border-color: var(--amber); color: var(--on-amber); font-weight: 700; }
.msg-tabs[hidden] { display: none !important; }
.msg-item {
  display: flex; gap: 12px; align-items: center; width: 100%; text-align: left;
  padding: 13px 14px; margin-bottom: 9px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--panel); color: var(--t1);
}
.msg-item.unread { background: rgba(var(--amber-rgb),.05); border-color: rgba(var(--amber-rgb),.22); }
.mi-ic {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(var(--amber-rgb),.12); color: var(--amber);
}
.mi-ic svg { width: 19px; height: 19px; }
.mi-b { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.55; }
.mi-b b { font-weight: 600; }
.mi-b em { font-style: normal; color: var(--t2); }
.mi-t { display: block; font-size: 12px; color: var(--t3); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.mi-r { flex: none; font-size: 11px; color: var(--t3); display: flex; align-items: center; }
.mi-r .ndot { flex: none; margin-left: 5px; }
.msg-empty { text-align: center; color: var(--t3); font-size: 13px; line-height: 2; padding: 90px 20px calc(var(--tab-h) + 40px); }
/* v0.17.0 官方消息（摇小树X）：通知和互动同列表，官方那几条置顶 */
.msg-item.sys { align-items: flex-start; }
.mi-sys-av {
  flex: none; width: 38px; height: 38px; border-radius: 10px; overflow: hidden;
  background: rgba(var(--amber-rgb),.12); display: flex; align-items: center; justify-content: center;
}
.mi-sys-av img { width: 100%; height: 100%; display: block; object-fit: cover; }
.mi-sys-h { display: flex; align-items: center; gap: 6px; }
.mi-pin {
  font-style: normal; font-size: 9.5px; line-height: 1; padding: 3px 5px 4px;
  border-radius: 3px; color: var(--on-amber); background: var(--amber); font-weight: 700;
}
.mi-title { display: block; margin-top: 3px; font-size: 13px; font-weight: 600; color: var(--t1); line-height: 1.45; }
.msg-item.sys .mi-t {
  white-space: normal; margin-top: 3px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; text-overflow: ellipsis;
}

/* ═══════════ 2.19 积分明细 ═══════════ */
.pts-more {
  width: 100%; margin-top: 10px; min-height: 40px; border-radius: var(--r-md);
  border: none; background: rgba(var(--amber-rgb),.07);
  color: var(--amber); font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.pts-more:active { background: rgba(var(--amber-rgb),.14); }
.pts-sheet-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.pts-sheet-h b { font-size: 16px; font-weight: 600; }
.pts-sheet-h span { font-size: 11.5px; color: var(--t3); }
.pts-log { max-height: 46dvh; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; padding: 4px 12px; }
.pl-row { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--surf-9); }
.pl-row:last-child { border-bottom: none; }
.pl-note { flex: 1; min-width: 0; font-size: 13.5px; color: var(--t1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-d { flex: none; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pl-d.earn { color: var(--amber); }
.pl-d.spend { color: var(--t2); }
.pl-at { flex: none; font-size: 11px; color: var(--t3); width: 62px; text-align: right; }

/* ═══════════ 2.22 D2 任务中心 / 我的认领 / 云股东证书 ═══════════ */
.task-sheet .sheet { max-height: 82dvh; }
.task-tip { margin: 0 0 12px; font-size: 12.5px; color: var(--t3); line-height: 1.6; }
.task-list { max-height: 52dvh; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; padding: 2px 12px; }
.task-row { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--surf-9); }
.task-row:last-child { border-bottom: none; }
.task-ico {
  width: 34px; height: 34px; flex: none; border-radius: var(--r-md);
  display: grid; place-items: center; background: rgba(var(--amber-rgb),.10);
  color: var(--amber); font-size: 15px; font-weight: 700;
}
.task-txt { flex: 1; min-width: 0; }
.task-txt b { display: block; font-size: 13.5px; font-weight: 600; color: var(--t1); }
.task-txt small { display: block; margin-top: 2px; font-size: 11.5px; color: var(--t3); }
.task-go {
  flex: none; min-width: 62px; height: 30px; padding: 0 10px; border-radius: var(--r-md);
  border: none; background: var(--amber); color: #fff; font-size: 12px; font-weight: 700; cursor: pointer;
}
.task-row.done .task-go { background: var(--line2); color: var(--t3); }
.task-row.done .task-ico { background: var(--line2); color: var(--t3); }
.task-foot { display: flex; gap: 10px; margin-top: 14px; }
.task-foot .sheet-c { flex: 1; }

.claim-row {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 14px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surf-2); cursor: pointer;
}
.claim-row:active { background: var(--surf-9); }
.claim-row .cr-img { width: 52px; height: 68px; flex: none; border-radius: var(--r-sm); object-fit: cover; background: var(--line2); }
.claim-row .cr-t { flex: 1; min-width: 0; }
.claim-row .cr-t b { display: block; font-size: 14px; font-weight: 600; color: var(--t1); }
.claim-row .cr-t small { display: block; margin-top: 4px; font-size: 11.5px; color: var(--t3); }
.claim-row .cr-no { flex: none; font-size: 12px; font-weight: 700; color: var(--amber); }
.claim-cert-sheet .sheet { max-height: 90dvh; }
.cc-pic { padding: 8px 0 4px; text-align: center; }
.cc-pic img { max-width: 100%; max-height: 58dvh; border: 1px solid var(--line); border-radius: 8px; }
.cc-note { margin: 4px 0 0; font-size: 12px; color: var(--t3); text-align: center; line-height: 1.6; }

/* 2.29 二维码窗口设置：边框开关（CRT-4，默认无框） */
.mw-qrf { display: flex; align-items: center; gap: 6px; margin-top: 9px; font-size: 11px; color: var(--t2); cursor: pointer; }
.mw-qrf input { accent-color: var(--amber); }

/* 2.29 拖动吸附参考线（画布中线 / 各模块中心线） */
.snap-guide { position: absolute; pointer-events: none; z-index: 5; background: #19d3c5; opacity: .9; }
.snap-guide.v { top: 0; bottom: 0; width: 1px; }
.snap-guide.h { left: 0; right: 0; height: 1px; }

/* 2.35 首页：只去掉「点个 IP 直接创作」引导小字行，下面的 IP 选择排保留。
   DOM 与点击绑定保留（后台文案覆盖、E2E 门禁测试都依赖），不碰 display（A09 会重置）。 */
#scr-home .start-hint { visibility: hidden; height: 0; padding: 0; margin: 0; overflow: hidden; }

/* ═══════════ v0.9.0 个人资料（头像上传 / 昵称 / 城市 / 简介） ═══════════
   头像统一走「方形裁切 + 256px 压图」，本地演示存 dataURL，线上传 uploads 拿 URL。 */
.mine-av { overflow: hidden; }
.mine-av img, .acct .av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mine-av-wrap.tappable { cursor: pointer; }
.prof-sheet .sheet { max-height: 88dvh; }
.prof-top { display: flex; align-items: center; gap: 14px; padding: 2px 0 14px; }
.prof-av {
  position: relative; flex: none; width: 72px; height: 72px; border-radius: 50%;
  border: 1px solid var(--la); background: rgba(var(--amber-rgb),.16);
  color: var(--amber); font-size: 26px; font-weight: 800;
  display: grid; place-items: center; overflow: visible; cursor: pointer; padding: 0;
}
.prof-av-face { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; }
.prof-av-face img { width: 100%; height: 100%; object-fit: cover; }
.prof-av-badge {
  position: absolute; right: -3px; bottom: -3px; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; font-size: 10px; font-style: normal; font-weight: 700;
  color: var(--on-amber); background: var(--amber); border: 2px solid var(--surf-1);
}
.prof-top-tip { min-width: 0; }
.prof-top-tip b { display: block; font-size: 13.5px; font-weight: 600; color: var(--t1); }
.prof-top-tip small { display: block; margin-top: 4px; font-size: 11.5px; color: var(--t3); line-height: 1.5; }
.prof-field {
  display: block; margin: 0 0 12px; font-size: 12px; color: var(--t3); font-weight: 500;
}
.prof-field input, .prof-field textarea {
  display: block; width: 100%; margin-top: 6px; padding: 11px 13px;
  font-size: 14px; color: var(--t1); font-family: inherit;
  background: var(--surf-2); border: 1px solid var(--line); border-radius: var(--r-md);
  resize: none; outline: none;
}
.prof-field input:focus, .prof-field textarea:focus { border-color: var(--la); }
.prof-seg { display: flex; gap: 8px; margin-top: 6px; }
.prof-seg button {
  flex: 1; min-height: 42px; border-radius: var(--r-md); cursor: pointer;
  background: var(--surf-2); border: 1px solid var(--line); color: var(--t2);
  font-size: 13px; font-family: inherit;
}
.prof-seg button.on { background: rgba(var(--amber-rgb),.14); border-color: var(--la); color: var(--amber); font-weight: 600; }

/* ═══════════ v0.9.0 注册协议勾选 / 条款正文 ═══════════ */
/* .mrow 是 flex，hidden 会被作者样式压掉，这里补回来（未登录时隐藏「个人资料」） */
.mrow[hidden] { display: none !important; }
.login-agree {
  display: flex; align-items: flex-start; gap: 8px; margin: 2px 0 12px;
  font-size: 11.5px; color: var(--t3); line-height: 1.6; cursor: pointer;
}
.login-agree[hidden] { display: none !important; }
.login-agree input { flex: none; margin-top: 2px; width: 15px; height: 15px; accent-color: var(--amber); }
.login-agree .li-doc {
  background: none; border: none; padding: 0; font: inherit; color: var(--amber);
  cursor: pointer; text-decoration: underline; text-underline-offset: 2px;
}
.doc-sheet .sheet { max-height: 86dvh; }
.doc-body {
  max-height: 60dvh; overflow-y: auto; padding-right: 4px;
  font-size: 13px; line-height: 1.75; color: var(--t2);
}
.doc-body h4 { margin: 16px 0 6px; font-size: 13.5px; font-weight: 700; color: var(--t1); }
.doc-body h4:first-child { margin-top: 0; }
.doc-body p { margin: 0 0 8px; }
.doc-body ol { margin: 0 0 8px; padding-left: 18px; }
.doc-body li { margin-bottom: 4px; }

/* ═══════════ v0.10.0 别人的头像：作品卡 / 评论 / 消息 ═══════════ */
.p-avt.has-img { display: inline-flex; align-items: center; justify-content: center; overflow: hidden; }
.p-avt.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dt-cm .av.has-img { overflow: hidden; padding: 0; background: rgba(var(--amber-rgb),.12); }
.dt-cm .av.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mi-av {
  display: inline-block; width: 18px; height: 18px; border-radius: 50%; object-fit: cover;
  vertical-align: -4px; margin-right: 5px; background: rgba(var(--amber-rgb),.15);
}

/* v0.15.0 举报从正文底部搬到作者行右上角（样式见 .wkdt-rep），旧的下划线入口已撤 */
.cm-rep {
  margin-left: 7px; padding: 0; background: none; border: none; font: inherit;
  font-size: 9.5px; color: var(--t3); cursor: pointer;
}
.cm-rep:hover { color: var(--amber); }
.rep-sheet .sheet { max-height: 86dvh; }
.rep-reasons { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
/* v0.22.0：举报面板里的「屏蔽」——次要动作，用虚线框压住存在感，别抢「提交举报」 */
.rep-block {
  display: block; width: 100%; margin: 0 0 12px; padding: 11px 0;
  background: none; border: 1px dashed var(--line2); border-radius: 10px;
  font: inherit; font-size: 12.5px; color: var(--t2); cursor: pointer;
}
.rep-block:active { background: rgba(var(--amber-rgb), .08); }
.rep-reasons button {
  padding: 9px 12px; border-radius: 999px; cursor: pointer; font: inherit;
  font-size: 12.5px; color: var(--t2); background: var(--surf-2); border: 1px solid var(--line);
}
.rep-reasons button.on {
  background: rgba(var(--amber-rgb), .16); border-color: var(--la);
  color: var(--amber); font-weight: 600;
}
/* 账号页危险入口（注销） */
.mrow-danger span, .mrow-danger em { color: #e06a5a; }

/* ── v0.12.0 手机号：绑定 / 忘记密码 ───────────────── */
/* 登录页「忘记密码」：放在主按钮下面，弱化成一行文字链接，不抢登录视线 */
.li-forgot {
  display: block; width: 100%; margin: 10px 0 0; padding: 4px;
  background: none; border: none; font: inherit; font-size: 12.5px;
  color: var(--t3); text-align: center; cursor: pointer;
}
.li-forgot:active { color: var(--amber); }
/* 手机号面板：和举报面板同源的 sheet，只是行距松一点便于输 11 位 */
#phone-sheet .sheet { max-height: 88dvh; }
#phone-sheet .prof-field { margin-top: 12px; }
#phone-sheet .li-code-row { margin-top: 8px; }
#phone-sheet .li-code-row .btn { white-space: nowrap; }
/* hidden 属性必须真的藏住：.prof-field / .li-forgot 自带 display:block，
   会盖掉浏览器默认的 [hidden]{display:none}（绑定态曾因此露出新密码框） */
#phone-sheet [hidden], .li-forgot[hidden] { display: none !important; }

/* ── v0.13.0 会员价格行 / 备案公示 ───────────────── */
/* 会员卡下面的价格条：和卡片同宽、留一点间隙，避免和「开通会员」按钮抢视线 */
.mbr-price {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  margin: 10px 0 14px; padding: 0 4px;
}
.mbr-price b { font-size: 15px; font-weight: 700; color: var(--amber); letter-spacing: .2px; }
.mbr-price small { font-size: 11px; color: var(--t3); }
/* ── v0.21.0 三档会员卡：体验 / 月 / 年（点一下改选中，底部按钮跟着变价） ── */
.mbr-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.mbr-plan {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 5px;
  padding: 15px 10px 12px; border-radius: 12px; border: 1.5px solid var(--line2);
  background: var(--surf-1); cursor: pointer; text-align: left;
}
.mbr-plan.on { border-color: var(--amber); background: rgba(var(--amber-rgb), .1); }
.mbr-plan.dis { opacity: .4; cursor: not-allowed; }
.mbr-plan b { font-size: 12.5px; font-weight: 700; color: var(--t1); }
.mbr-plan em { font-style: normal; font-size: 17px; font-weight: 800; color: var(--t1); letter-spacing: -.3px; }
.mbr-plan small { font-size: 10.5px; color: var(--t3); }
.mbr-plan-tag {
  position: absolute; top: -8px; right: 8px; font-style: normal; font-size: 9.5px; font-weight: 700;
  padding: 2px 6px; border-radius: 999px; background: var(--amber); color: var(--on-amber);
}
.mbr-buy {
  width: 100%; height: 46px; border: 0; border-radius: 999px;
  background: var(--amber); color: var(--on-amber); font-size: 15px; font-weight: 700; cursor: pointer;
}
.mbr-buy[disabled] { background: var(--surf-3); color: var(--t3); cursor: not-allowed; }
.mbr-tip { margin: 10px 2px 0; font-size: 10.5px; line-height: 1.6; color: var(--t3); }
/* v0.22.0：会员页的协议入口（App Store 3.1.2 要求订阅页能就地打开条款与隐私政策） */
.mbr-legal { margin: 8px 2px 0; font-size: 11px; line-height: 1.7; color: var(--t3); }
.mbr-legal button {
  background: none; border: none; padding: 0; font: inherit; color: var(--amber);
  cursor: pointer; text-decoration: underline; text-underline-offset: 2px;
}
/* 备案号：账号页最底部，一行小字，链接不带下划线（和 acct-note 同一视觉层） */
.icp-line {
  margin: -18px 18px 30px; font-size: 10.5px; line-height: 1.8; color: var(--t3);
  display: flex; align-items: center; flex-wrap: wrap; gap: 2px;
}
.icp-line a { color: var(--t3); text-decoration: none; }
.icp-line a:active { color: var(--amber); }
.icp-dot { font-style: normal; opacity: .5; margin: 0 4px; }
/* 我的页底部备案行：居中、与列表留一点呼吸，不抢「＋ 创作」的视线 */
.mine-icp { margin: 16px 0 26px; justify-content: center; }

/* ═══════════ v0.14.0 找回密码：手机号 / 邮箱双通道 ═══════════ */
/* .prof-seg 本身是 flex，[hidden] 会被作者样式压掉，这里必须补回 */
.ph-ch { margin: 0 0 14px; }
.ph-ch[hidden] { display: none !important; }

/* ═══════════ 2.25 投稿：角色 / 命题多选 / 联系方式带出 ═══════════ */
/* 插画卡只在「新增故事」出现，其余两种类型整块收起 */
.sb-art[hidden] { display: none !important; }
.sb-role { margin-bottom: 18px; }
.sb-role-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.sb-role-h b { font-size: 13px; font-weight: 600; }
.sb-role-n { display: flex; gap: 10px; }
.sb-role-b {
  flex: 1; display: flex; align-items: center; gap: 10px; text-align: left;
  padding: 8px 10px; border-radius: var(--r-md); cursor: pointer; font-family: inherit;
  background: var(--surf-5); border: 1px solid var(--line2); color: var(--t1);
}
/* 2.26 一张图顶掉「男/女」小字：角色靠形象认，不标性别 */
.sb-role-av {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; overflow: hidden;
  background: var(--bg); display: block;
}
.sb-role-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sb-role-b b { font-size: 13.5px; font-weight: 600; }
.sb-role-b.on { border-color: var(--amber); background: rgba(var(--amber-rgb), .07); }
.sb-role-b.on b { color: var(--amber); }

/* 命题多选：后台配 102/103/104 就列三个，只有一条时不显示这一行 */
.sb-prompt { display: flex; gap: 10px; margin-top: 10px; }
.sb-prompt[hidden] { display: none !important; }
.sb-prompt > span { flex: 0 0 auto; font-size: 12px; color: var(--t2); }
.sb-prompt-n { display: flex; gap: 7px; flex-wrap: wrap; }
.sb-prompt-n button {
  display: flex; flex-direction: column; gap: 2px; text-align: left;
  padding: 6px 10px; border-radius: var(--r-md); cursor: pointer;
  background: var(--bg); border: 1px solid var(--line2); color: var(--t2);
}
.sb-prompt-n b { font-size: 11.5px; font-weight: 600; }
.sb-prompt-n small {
  font-size: 10.5px; color: var(--t3); max-width: 132px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sb-prompt-n button.on { border-color: var(--amber); background: rgba(var(--amber-rgb), .07); }
.sb-prompt-n button.on b { color: var(--amber); }

/* 联系方式：从账号带出来时给一行说明，手动改过就收起 */
.sb-hint { display: block; margin-top: 6px; font-size: 10.5px; line-height: 1.6; color: var(--t3); }
.sb-hint[hidden] { display: none !important; }
.sb-hint::before { content: "※ "; color: var(--amber); }

/* 我的故事：角色标签 */
.sb-role-tag {
  flex: 0 0 auto; padding: 1px 6px; border-radius: 999px; font-size: 10px;
  color: var(--t3); border: 1px solid var(--line2); background: var(--surf-5);
}
/* 同一个坑：.sb-art-clear 写了 display:block，没选图时「清除」会一直露着 */
.sb-art-clear[hidden] { display: none !important; }

/* ── v0.18.0 内测进站口（邀请码）──────────────────────────
   内测期整屏盖住，填对邀请人的码才放行；公测关掉后这层不出现。
   v0.18.2：矮屏（横屏 / 小窗）不再把内容裁掉；聚焦环换成主色（原来是浏览器蓝）；
   logo 改黑方块版 —— 曲线版内部是黑色实心，在深底上只剩一个圈和一张脸。 */
.beta-gate {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 24px 22px calc(24px + var(--safe-b));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  /* 只在顶部铺一层薄光：整屏径向提亮会把曲线 logo 内部的黑色实心
     衬成一块黑洞，logo 看着像「一个圈 + 一张脸」 */
  background:
    linear-gradient(180deg, rgba(var(--amber-rgb),.07), transparent 220px),
    var(--bg);
}
.beta-gate[hidden] { display: none !important; }
.beta-card { width: 100%; max-width: 360px; margin: auto; }
.beta-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.beta-logo {
  width: 44px; height: 44px; flex: none;
}
.beta-logo img { width: 100%; height: 100%; display: block; }
.beta-brand b { font-size: 16px; font-weight: 700; letter-spacing: .2px; }
.beta-brand em {
  font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .5px;
  color: var(--on-amber); background: var(--amber); border-radius: 999px; padding: 2px 7px;
}
.beta-card h2 { font-size: 24px; font-weight: 700; letter-spacing: .2px; line-height: 1.3; }
.beta-note { margin-top: 10px; font-size: 13px; line-height: 1.75; color: var(--t2); }
.beta-form { position: relative; display: flex; gap: 8px; margin-top: 22px; }
.beta-form input {
  flex: 1; min-width: 0; height: 48px; border-radius: 12px; border: 1px solid var(--line2);
  background: var(--input-bg); color: var(--t1); font-size: 15px; padding: 0 14px;
  user-select: text; outline: none;
  transition: border-color .16s, box-shadow .16s;
}
.beta-form input::placeholder { color: var(--t3); }
.beta-form input:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(var(--amber-rgb),.16);
}
.beta-form button {
  flex: none; height: 48px; padding: 0 20px; border: 0; border-radius: 12px;
  background: var(--amber); color: var(--on-amber); font-size: 14.5px; font-weight: 700;
  outline: none; transition: transform .12s, opacity .16s;
}
.beta-form button:active { transform: scale(.97); }
.beta-form button:focus-visible { box-shadow: 0 0 0 3px rgba(var(--amber-rgb),.28); }
.beta-form button:disabled { opacity: .55; }
/* 提示不占布局高度：出现/消失都不会让整块内容上下跳 */
.beta-msg {
  position: absolute; left: 0; right: 0; top: calc(100% + 10px);
  font-size: 12.5px; line-height: 1.7; color: var(--t2);
}
.beta-msg[hidden] { display: none !important; }
.beta-msg.bad { color: #E2726B; }
.beta-msg.ok { color: var(--amber); }
.beta-why {
  margin-top: 46px; padding: 8px 0; border: 0; background: none; color: var(--t3);
  font-size: 12px; text-decoration: underline; text-underline-offset: 3px;
  outline: none;
}
.beta-why:focus-visible { color: var(--t2); }
.beta-why-b {
  margin-top: 6px; padding: 12px 14px; border-radius: 12px;
  border: 1px dashed var(--line2); background: var(--surf-2);
}
.beta-why-b[hidden] { display: none !important; }
.beta-why-b p { font-size: 12px; line-height: 1.8; color: var(--t2); }
.beta-why-b p + p { margin-top: 6px; }

/* ── v0.19.0 邀请好友 ─────────────────────────────────────────
   「我的」页一条入口 + 独立一页（我的码 / 进度 / 名单 / 补填）。
   码用等宽数字，方便口头念、也方便对照输入。 */
.invite-bar {
  width: calc(100% - 32px); display: flex; align-items: center; gap: 12px;
  margin: 0 16px 12px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surf-1); color: var(--t1); text-align: left;
}
.invite-bar:active { background: rgba(var(--amber-rgb),.08); }
.ivt-b-ico {
  width: 34px; height: 34px; flex: none; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800; color: var(--on-amber); background: var(--amber);
}
.ivt-b-t { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.ivt-b-t b { font-size: 14px; font-weight: 700; }
.ivt-b-t small { font-size: 11.5px; color: var(--t3); }
.ivt-b-chev { width: 15px; height: 15px; flex: none; fill: none;
  stroke: var(--t3); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* v0.18.4 会员入口条：第一屏大字（未开通＝琥珀强调引导订阅；已开通＝普通态） */
.member-bar .ivt-b-ico { font-size: 11px; letter-spacing: .5px; }
.member-bar .ivt-b-t b { font-size: 17px; }
.member-bar .member-on .ivt-b-t b { font-size: 15px; }
.member-bar:not(.member-on) { border-color: rgba(var(--amber-rgb),.45); background: rgba(var(--amber-rgb),.07); }
.member-bar:not(.member-on) .ivt-b-t b { color: var(--amber); }

/* 底部 64px 胶囊是悬浮的，正文自己多留一截，最后一块不会被压住 */
.ivt-body { padding-bottom: calc(92px + var(--safe-b)); }
.ivt-guest { padding: 34px 6px 0; text-align: center; }
.ivt-g-ico {
  width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; color: var(--on-amber); background: var(--amber);
}
.ivt-guest h3 { font-size: 16px; font-weight: 700; color: var(--t1); }
.ivt-guest p { margin-top: 10px; font-size: 13px; line-height: 1.85; color: var(--t2); }
.ivt-guest .btn { width: 100%; margin-top: 22px; }

.ivt-hero {
  padding: 18px; border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background:
    linear-gradient(158deg, rgba(var(--amber-rgb),.11), transparent 66%),
    var(--surf-1);
}
.ivt-lead { font-size: 13px; line-height: 1.75; color: var(--t2); }
.ivt-lead b { font-size: 15px; font-weight: 800; color: var(--amber); white-space: nowrap; }
.ivt-code-row { display: flex; align-items: stretch; gap: 10px; margin-top: 16px; }
.ivt-code {
  flex: 1; min-width: 0; display: flex; align-items: center;
  padding: 10px 16px; border-radius: var(--r-md);
  border: 1px dashed var(--la); background: rgba(0,0,0,.24);
  font-size: 25px; font-weight: 800; letter-spacing: 2.5px; color: var(--amber);
  font-variant-numeric: tabular-nums; line-height: 1.2; user-select: text;
}
.ivt-copy {
  flex: none; min-width: 62px; border-radius: var(--r-md);
  border: 1px solid var(--line2); background: transparent; color: var(--t1);
  font-size: 13px; font-weight: 700;
}
.ivt-copy:active { background: var(--surf-5); }
.ivt-hint { margin-top: 10px; font-size: 11.5px; line-height: 1.6; color: var(--t3); }
.ivt-hint b { font-weight: 600; color: var(--t2); }
.ivt-share { width: 100%; margin-top: 16px; }

.ivt-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; margin-top: 14px; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--line);
}
.ivt-stats > div {
  padding: 14px 6px; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; gap: 5px;
}
.ivt-stats b { font-size: 21px; font-weight: 800; color: var(--t1);
  font-variant-numeric: tabular-nums; line-height: 1; }
.ivt-stats span { font-size: 11px; color: var(--t3); }

.ivt-sec { margin-top: 24px; }
.ivt-sec-t { display: flex; align-items: baseline; justify-content: space-between;
  gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--t2); }
.ivt-sec-t em { font-style: normal; font-size: 11px; font-weight: 400; color: var(--t3); }
.ivt-list { margin-top: 10px; border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden; background: var(--surf-1); }
.ivt-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.ivt-row + .ivt-row { border-top: 1px solid var(--line); }
.ivt-row .av {
  width: 30px; height: 30px; flex: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surf-5); color: var(--t2); font-size: 12px; font-weight: 700;
}
.ivt-row .nm { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ivt-row .nm b { font-size: 13px; font-weight: 600; color: var(--t1);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ivt-row .nm small { font-size: 11px; color: var(--t3); }
.ivt-row .st { flex: none; font-size: 11.5px; font-weight: 700; color: var(--t3); }
.ivt-row .st.paid { color: var(--amber); }
.ivt-empty {
  margin-top: 10px; padding: 24px 16px; text-align: center;
  border: 1px dashed var(--line2); border-radius: var(--r-md);
  font-size: 12px; line-height: 1.8; color: var(--t3);
}
.ivt-empty[hidden] { display: none !important; }

.ivt-fill { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.ivt-fill[hidden] { display: none !important; }
.ivt-fill-p { margin-top: 8px; font-size: 12px; line-height: 1.8; color: var(--t3); }
.ivt-fill-row { display: flex; gap: 8px; margin-top: 12px; }
.ivt-fill-row input {
  flex: 1; min-width: 0; height: 46px; padding: 0 13px;
  border-radius: var(--r-md); border: 1px solid var(--line2);
  background: var(--input-bg); color: var(--t1); font-size: 14.5px;
  outline: none; transition: border-color .16s;
}
.ivt-fill-row input::placeholder { color: var(--t3); }
.ivt-fill-row input:focus { border-color: var(--amber); }
.ivt-fill-row button {
  flex: none; height: 46px; padding: 0 18px; border: 0; border-radius: var(--r-md);
  background: var(--amber); color: var(--on-amber); font-size: 13.5px; font-weight: 700;
}
.ivt-fill-row button:disabled { opacity: .55; }
.ivt-fill-msg { margin-top: 10px; font-size: 12px; line-height: 1.7; color: var(--t2); }
.ivt-fill-msg[hidden] { display: none !important; }
.ivt-fill-msg.bad { color: #E2726B; }
.ivt-fill-msg.ok { color: var(--amber); }
.ivt-by {
  margin-top: 26px; padding: 14px 16px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--surf-1);
  font-size: 12.5px; line-height: 1.8; color: var(--t2);
}
.ivt-by b { color: var(--t1); font-weight: 700; }
.ivt-by[hidden] { display: none !important; }

/* ═══ Pad 版（v0.28.0 · 后台 A30「Pad 版」）：iPad 独立排版 ═══
   风格/样式/文案与手机版共用一套变量，只有排版不同（交互稿 v0.8 拍板）：
   body.pad-body + #app.pad      = iPad 竖屏：解除手机画框，全宽单列（手机布局原样放大）
   body.pad-body + #app.pad-land = iPad 横屏：聚合页全宽多列 + 创作/我的/详情左右分栏
   检测与开关在 main.ts（IS_PAD_DEVICE / padOn / padLand）；竖屏不做任何分栏。 */

body.pad-body { background: var(--bg); }
#app.pad { max-width: none; border: 0; box-shadow: none; }

/* 品牌行：标题 + slogan 更大，右上角登录态头像（替代 PC 式按钮排） */
#app.pad .brand { padding: 20px 28px 14px; }
#app.pad .brand-txt h1 { font-size: 22px; }
#app.pad .brand-txt p { font-size: 13px; }
#app.pad .brand .brand-sign { display: none; }
.pad-avatar {
  margin-left: auto; width: 36px; height: 36px; border-radius: 50%; border: none; flex: 0 0 auto;
  background: var(--amber); color: var(--on-amber); font-size: 15px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.pad-avatar:active { filter: brightness(.94); }

/* 聚合页（首页/作品/消息）内容满宽（v0.9 拍板：全部 100%，不再限宽居中）
   v0.18.4：width:auto —— 带 16px 左右 margin 的块（zine-bar/notice-bar）用 100% 会溢出 32px 出框 */
#app.pad .start-hint, #app.pad .issue-strip, #app.pad .zine-bar, #app.pad .feed,
#app.pad .wk-bar, #app.pad .wk-grid, #app.pad .wk-empty, #app.pad .msg-list,
#app.pad .msg-empty, #app.pad .notice-bar { width: auto; }

/* 底部导航（v0.9）：根屏＝居中自适应胶囊（宽度随视口缩放，上限 560）；
   二级页（详情/账号/设置等）＝满宽通栏。编辑器/挑插画本就隐藏底栏，不受影响。 */
#app.pad #tabbar {
  left: 50%; right: auto; transform: translateX(-50%);
  width: min(60vw, 560px); max-width: none; margin: 0;
}
#app.pad #tabbar > div { cursor: pointer; }
#app.pad:not(.scr-home):not(.scr-works):not(.scr-msg):not(.scr-mine) #tabbar {
  left: 0; right: 0; transform: none; width: 100%;
  border-radius: 0; border-left: 0; border-right: 0; box-shadow: none;
}

/* 横屏：间距放宽；绘本志流一行 4 卡（col-c/col-d 两列由 JS padFeedCols 增删） */
#app.pad-land .masonry { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
#app.pad-land .masonry .col { gap: 14px; }
#app.pad-land .wk-grid { gap: 16px; }
#app.pad-land .wk-grid .wcol { gap: 16px; }
/* v0.18.7：挑插画（创作壁纸选 IP）横屏一行 5 张（手机仍一行 3） */
#app.pad-land .cvr-grid { grid-template-columns: repeat(5, 1fr); gap: 14px; }
#app.pad-land .cvr-grid .cvr .no { font-size: 13px; }

/* ── 编辑器分栏：左＝画布+读数，右＝工具面板（v0.8 PAD-01）──
   DOM 不动，用 grid-areas 重排；panel 仍贴 dock 底部弹出（即右栏底部），
   不再遮画布，所以关掉手机的 padding-bottom 补偿。 */
#app.pad-land #scr-editor.on {
  display: grid;
  overflow: hidden;   /* v0.18.3：左侧画布区不滚，只有右栏内部滚 */
  grid-template-columns: minmax(0, 1fr) minmax(300px, 36%);
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas: "top top" "stage dock" "meta dock";
}
#app.pad-land #scr-editor.on > .ed-top { grid-area: top; }
#app.pad-land #scr-editor.on > #stage { grid-area: stage; padding: 16px 28px; overflow: hidden; }
#app.pad-land #scr-editor.on > #ed-meta { grid-area: meta; padding: 6px 28px 10px; }
/* v0.18.3：读数行（已生成 / 尺寸 / 预览·未保存）在 Pad 上常驻，任何面板状态都不隐藏 */
#app.pad-land #scr-editor.on > #ed-meta { display: flex !important; }
#app.pad-land #scr-editor.on > #dock { grid-area: dock; border-left: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 0;
  overflow: hidden; }
/* v0.18.7：右栏面板整体撑满、顶对齐——面板自己就是右栏的滚动容器，
   颜色/参数这类长内容整栏可滚，不再挤在下面一小格里；
   底条仍贴底（flex 布局 panel 在前 subbar 在后） */
#app.pad-land #scr-editor.on > #dock > #panel.on {
  max-height: none; flex: 1 1 auto; min-height: 0; overflow-y: auto;
  overscroll-behavior: contain; }
/* 面板内部的分栏滚动（.panel-b.col 的 30dvh 小窗）在 Pad 上全部放开，交给面板整滚 */
#app.pad-land #scr-editor.on > #dock > #panel .panel-b.col { max-height: none; overflow: visible; }
/* v0.18.4：底条（← 返回 · 完成）贴底贴左贴右（去掉 dock 的 18/14px 外间距），
   按钮组横向居中；bar 自身 padding 由基础规则（8px/安全区）提供 */
#app.pad-land #scr-editor.on > #dock #ed-subbar { justify-content: center;
  padding-bottom: calc(8px + var(--safe-b)); }
#app.pad-land #scr-editor.on > #dock #ed-subbar .subopts {
  flex: 0 1 auto; min-width: 0; justify-content: center; }
#app.pad-land #scr-editor.on > #dock #ed-subbar .subopts .spacer { display: none; }
#app.pad-land #scr-editor.panel-open { padding-bottom: 0 !important; }

/* ── 我的分栏：左＝资料与内容网格，右＝积分/邀请/菜单（v0.8 PAD-05，VIP 在手机本就置顶）── */
#app.pad-land #scr-mine.on { display: flex; flex-direction: row; align-items: stretch; }
#app.pad-land #scr-mine.on > .pad-mine-l { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
#app.pad-land #scr-mine.on > .pad-mine-r {
  flex: 0 0 340px; border-left: 1px solid var(--line); padding: 16px 18px; overflow-y: auto;
  padding-bottom: calc(var(--tab-h) + var(--safe-b) + 20px); }
/* v0.18.4：右栏 chips 的「创作」组标题冗余（作品/故事已是左栏顶部 Tab），只隐藏标题不藏组 */
#app.pad #proj-chips .mine-group:first-child .mg-title { display: none; }

/* ── 详情分栏：左＝封面/标题/正文，右＝认领/投稿/评论/精选（v0.9：认领归右栏操作区）
   左右两栏各自独立滚动（左看图右看评论互不牵动），底栏悬浮其上 ── */
#app.pad-land #dt-body, #app.pad-land #wk-body {
  display: flex; gap: 34px; align-items: stretch;
  padding: 22px 30px 0; overflow: hidden;
}
#app.pad-land #dt-body > .pad-col-l, #app.pad-land #wk-body > .pad-col-l {
  flex: 11; min-width: 0; overflow-y: auto;
  padding-bottom: calc(var(--tab-h) + var(--safe-b) + 24px); }
#app.pad-land #dt-body > .pad-col-r, #app.pad-land #wk-body > .pad-col-r {
  flex: 9; min-width: 0; padding-top: 6px; overflow-y: auto;
  padding-bottom: calc(var(--tab-h) + var(--safe-b) + 24px); }
#app.pad-land #dt-body .dt-cover img, #app.pad-land #wk-body .wkdt-cover img {
  max-height: 60vh; width: auto; max-width: 100%; margin: 0 auto; }

/* ── 消息（v0.18.2）：分类筛选右对齐（列表仍在左，筛选条像作品页的排序位） ── */
#app.pad-land .msg-tabs { justify-content: flex-end; padding: 0 28px 12px; }

/* ── 我的（v0.9）：左栏顶部 作品/故事 Tab + 列表常驻平铺（不进二级）；
   右栏隐藏与 Tab 重复的 作品/故事 入口 chip ── */
.pad-mine-tabs { display: flex; gap: 8px; padding: 4px 16px 14px; }
.pad-mine-tabs span { flex: 1; text-align: center; padding: 10px 0; border-radius: 999px;
  border: 1px solid var(--line); font-size: 14px; color: var(--t2); cursor: pointer; }
.pad-mine-tabs span.on { background: var(--amber); border-color: var(--amber);
  color: var(--on-amber); font-weight: 700; }
.pad-mine-tabs[hidden] { display: none !important; }
#app.pad-land #proj-chips span[data-mine="posters"],
#app.pad-land #proj-chips span[data-mine="stories"] { display: none; }
