/* ===== 设计变量（参考图风格：浅底 + 柠檬黄绿 + 大圆角卡片） ===== */
:root {
  --bg: #f6f8ef;
  --bg-card: #ffffff;
  --bg-card-2: #eef5da;
  --border: #e5eadb;
  --text: #151910;
  --text-2: #6f7667;
  --text-3: #9aa190;
  --green: #d3f75a;          /* 柠檬绿 CTA 底色 */
  --green-2: #b9e93f;
  --green-ink: #4f7600;      /* 浅底上的绿色文字 */
  --green-soft: #eef9c9;
  --cyan: #0f9f86;
  --blue: #4169e1;
  --purple: #6f52d9;
  --danger: #e2555f;
  --gold: #c98a00;
  --ink: #171a12;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(28, 40, 12, .07);
  --tabbar-h: 58px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* 手机端：全局隐藏滚动条，页面与弹窗内仍可正常滑动 */
* { scrollbar-width: none; -ms-overflow-style: none; }
*::-webkit-scrollbar { width: 0 !important; height: 0 !important; display: none !important; }
html, body {
  width: 100%; height: 100%; max-width: 100%;
  overflow: hidden; overscroll-behavior: none; touch-action: pan-x pan-y;
}
body {
  position: fixed; inset: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

#app {
  width: 100%; max-width: 480px;
  height: 100%; height: 100dvh; min-height: 0;
  margin: 0 auto;
  overflow: hidden;
  background: var(--bg);
  position: relative;
}

#view {
  width: 100%; max-width: 100%; height: 100%; min-height: 0;
  overflow-x: hidden; overflow-y: auto;
  overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch;
  padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 28px);
}
#view.no-tabbar { padding-bottom: 0; }
body.page-scroll-locked #view { overflow-y: hidden; }
#view img, #view video, #view canvas { max-width: 100%; }

.page { width: 100%; max-width: 100%; animation: fadeIn .18s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ===== 顶栏 ===== */
.navbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: rgba(246,248,239,.9);
  border-bottom: 1px solid rgba(20,30,10,.04);
  backdrop-filter: blur(12px);
}
.navbar .back-btn {
  width: 36px; height: 36px; flex: none;
  display: flex; align-items: center; justify-content: center;
  color: var(--text); cursor: pointer; border: none; background: none;
}
.navbar .back-btn svg { width: 22px; height: 22px; fill: currentColor; }
.navbar .title { font-size: 16px; font-weight: 600; flex: 1; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.navbar .nav-right { font-size: 12px; color: var(--text-2); flex: none; }
.navbar .nav-spacer { width: 36px; flex: none; }

/* ================= 首页 ================= */
.home-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 0;
}
.hh-greet {
  display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-2);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.hh-dot {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--green-soft); color: var(--green-ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}
.home-avatar {
  width: 36px; height: 36px; border-radius: 50%; overflow: hidden; flex: none;
  background: var(--bg-card-2); border: 2px solid #fff; box-shadow: var(--shadow);
}
.home-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-avatar span {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: var(--green); color: #1b2300; font-size: 15px; font-weight: 800;
}
.home-title {
  padding: 12px 16px 0; font-size: 26px; line-height: 1.28;
  font-weight: 800; letter-spacing: -.6px;
}
.home-title small {
  display: block; margin-top: 6px; font-size: 12px; font-weight: 500;
  color: var(--text-2); letter-spacing: 0;
}

/* 余额主卡 */
.wallet-card {
  position: relative; margin: 16px 16px 0; border-radius: 24px;
  padding: 20px 18px 16px; overflow: hidden;
  background:
    radial-gradient(120% 120% at 88% 0%, rgba(211,247,90,.3), transparent 55%),
    linear-gradient(150deg, #272c1b, #14170e 78%);
  color: #f4ffdd; box-shadow: 0 18px 36px rgba(30,40,10,.18);
}
.wallet-card::before, .wallet-card::after {
  content: ""; position: absolute; border-radius: 50%;
  background: rgba(211,247,90,.1); pointer-events: none;
}
.wallet-card::before { width: 160px; height: 160px; right: -52px; top: -64px; }
.wallet-card::after { width: 108px; height: 108px; right: -16px; bottom: -52px; background: rgba(255,255,255,.06); }
.wc-top { position: relative; display: flex; align-items: center; justify-content: space-between; }
.wc-label { font-size: 12px; color: rgba(234,246,200,.68); }
.wc-pill {
  font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14);
  color: #eaffb6; display: inline-flex; align-items: center; gap: 4px;
}
.wc-pill svg { width: 11px; height: 11px; fill: currentColor; }
.wc-amount {
  position: relative; margin-top: 6px; font-size: 38px; font-weight: 800;
  letter-spacing: -1.2px; line-height: 1.1; color: #d9fb6d;
}
.wc-amount small { font-size: 17px; font-weight: 700; margin-right: 3px; letter-spacing: 0; }
.wc-sub { position: relative; margin-top: 5px; font-size: 11px; color: rgba(234,246,200,.55); }
.wc-stats { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.wc-stat {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px; padding: 10px 6px; text-align: center;
  backdrop-filter: blur(6px);
}
.wc-stat b { display: block; font-size: 17px; color: #f2ffd0; }
.wc-stat span { display: block; margin-top: 2px; font-size: 10px; color: rgba(234,246,200,.6); }

/* 待处理任务 */
.home-todo {
  display: flex; align-items: center; gap: 10px;
  margin: 12px 16px 0; padding: 13px 14px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 18px; box-shadow: var(--shadow); cursor: pointer;
}
.home-todo .ht-icon {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: var(--green-soft); color: var(--green-ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800;
}
.home-todo .ht-text { flex: 1; min-width: 0; }
.home-todo .ht-text b { display: block; font-size: 13px; font-weight: 700; }
.home-todo .ht-text span { display: block; margin-top: 2px; font-size: 10px; color: var(--text-3); }
.home-todo .ht-arrow { flex: none; color: var(--text-3); font-size: 18px; }

/* 快捷入口 */
.quick-card {
  margin: 12px 16px 0; padding: 12px 6px 10px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; box-shadow: var(--shadow);
}
.quick-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.quick-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 4px 0; cursor: pointer; border-radius: 12px;
}
.quick-item:active { background: var(--green-soft); }
.quick-item .q-icon {
  width: 44px; height: 44px; border-radius: 15px;
  background: var(--green-soft); color: var(--green-ink);
  display: flex; align-items: center; justify-content: center;
}
.quick-item .q-icon svg { width: 20px; height: 20px; fill: currentColor; }
.quick-item span { font-size: 10px; color: var(--text-2); }

/* 首页主 CTA */
.home-cta { margin: 14px 16px 0; }
.home-cta .cta-btn { border-radius: 16px; padding: 15px; }

/* 区块标题 */
.section { padding: 20px 16px 2px; display: flex; align-items: center; justify-content: space-between; }
.section-title { font-size: 16px; font-weight: 800; letter-spacing: -.2px; }
.section .more {
  font-size: 11px; color: var(--green-ink); background: var(--green-soft);
  padding: 4px 10px; border-radius: 999px;
}

/* 功能大卡区 */
.hero-cards { display: grid; grid-template-columns: 1.05fr 1fr; gap: 10px; padding: 12px 16px 0; }
.big-card {
  border-radius: 20px; padding: 14px; position: relative; overflow: hidden;
  cursor: pointer; min-height: 84px; display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform .15s; color: #1a2300; box-shadow: var(--shadow);
  border: 1px solid transparent;
}
.big-card:active { transform: scale(.97); }
.big-card .bc-name { font-size: 14px; font-weight: 800; }
.big-card .bc-sub { font-size: 10px; color: rgba(26,35,0,.58); margin-top: 3px; }
.big-card .bc-icon {
  position: absolute; top: 12px; right: 12px;
  width: 30px; height: 30px; border-radius: 10px;
  background: rgba(255,255,255,.5);
  display: flex; align-items: center; justify-content: center;
  color: #1a2300;
}
.big-card .bc-icon svg { width: 16px; height: 16px; fill: currentColor; }
.big-card.tall { grid-row: span 2; min-height: 178px; }
.big-card .bc-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-60%);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(211,247,90,.92);
  display: flex; align-items: center; justify-content: center;
}
.big-card .bc-play svg { width: 16px; height: 16px; fill: #1b2300; margin-left: 2px; }
.big-card .bc-badge {
  position: absolute; top: 0; right: 0;
  background: var(--green); color: #1b2300;
  font-size: 9px; font-weight: 800; padding: 4px 9px;
  border-radius: 0 0 0 12px;
}
.big-card.bg-dark {
  background:
    radial-gradient(110% 110% at 82% 0%, rgba(211,247,90,.28), transparent 58%),
    linear-gradient(150deg, #2b311d, #161a0f 76%);
  color: #f4ffdd; border-color: rgba(211,247,90,.14);
}
.big-card.bg-dark .bc-name { color: #f4ffdd; }
.big-card.bg-dark .bc-sub { color: rgba(234,246,200,.6); }
.big-card.bg-dark .bc-icon { background: rgba(255,255,255,.12); color: #eaffb6; }
.bg-green { background: linear-gradient(150deg, #f0f6e3, #e3ecd2); }
.bg-blue { background: linear-gradient(145deg, #e9fb9f, #d2f05f); }
.bg-purple { background: linear-gradient(145deg, #fff4a4, #ffdf45); }
.bg-cream { background: linear-gradient(145deg, #fbfcf6, #eef3e2); border-color: var(--border); }
.bg-orange { background: linear-gradient(150deg, #ffb46b, #f08a2e); color: #4a2600; }

/* AI 智能体卡片 */
.agent-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 16px; }
.agent-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 11px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  transition: transform .15s;
}
.agent-card:active { transform: scale(.97); }
.agent-card .a-icon {
  width: 38px; height: 38px; border-radius: 13px; flex: none;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  font-size: 17px;
}
.agent-card .a-icon svg { width: 18px; height: 18px; fill: #fff; }
.agent-card .a-icon img { width: 100%; height: 100%; object-fit: cover; }
.agent-card .a-name { font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agent-card .a-sub { font-size: 10px; color: var(--text-2); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ================= 底部导航（3 tab，中间凸起） ================= */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; height: calc(var(--tabbar-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  display: flex; z-index: 40;
  background: rgba(255,255,255,.94); backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 20px rgba(28,40,12,.05);
}
.tabbar.hidden { display: none; }
.tab-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--text-3); text-decoration: none; font-size: 11px;
}
.tab-item svg { width: 24px; height: 24px; fill: currentColor; }
.tab-item span { font-weight: 600; }
.tab-item.active { color: var(--green-ink); }

/* ================= 创作页 ================= */
.create-form { padding: 14px 16px 110px; }

/* 模式 tab（文生视频 / 图生视频） */
.mode-tabs {
  display: flex; background: var(--bg-card); border-radius: 999px;
  padding: 4px; margin-bottom: 18px; border: 1px solid var(--border);
}
.mode-tab {
  flex: 1; text-align: center; padding: 9px; border-radius: 999px;
  font-size: 14px; color: var(--text-2); cursor: pointer; transition: all .18s;
}
.mode-tab.active {
  background: linear-gradient(135deg, #e6ff9a, var(--green));
  color: #1b2300; font-weight: 700;
}

/* 步骤条 */
.steps-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 10px 18px;
}
.step { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: none; }
.step .s-icon {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--bg-card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--text-3);
}
.step .s-icon svg { width: 20px; height: 20px; fill: currentColor; }
.step span { font-size: 11px; color: var(--text-3); }
.step.active .s-icon {
  border-color: var(--green-2); color: var(--green-ink);
  background: var(--green-soft);
}
.step.active span { color: var(--green-ink); }
.step-arrow { flex: 1; text-align: center; color: var(--text-3); font-size: 12px; letter-spacing: 2px; padding-bottom: 18px; }

/* 表单项 */
.form-item { margin-bottom: 14px; }
.form-label { font-size: 13px; font-weight: 600; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; }
.form-label .tip { font-size: 11px; color: var(--text-3); font-weight: 400; }
.form-label .inspire { font-size: 11px; color: var(--text-2); font-weight: 400; cursor: pointer; display: flex; align-items: center; gap: 4px; }
.form-label .inspire:active { color: var(--green-ink); }

.textarea-wrap {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.textarea-wrap:focus-within { border-color: var(--green-2); }
.textarea {
  width: 100%; min-height: 120px; padding: 14px;
  background: none; border: none; outline: none; resize: none;
  color: var(--text); font-size: 14px; font-family: inherit;
}
.ta-grip {
  height: 16px; display: flex; align-items: center; justify-content: center;
  cursor: ns-resize; touch-action: none;
  border-top: 1px solid rgba(20,30,10,.06);
}
.ta-grip span { width: 36px; height: 4px; border-radius: 999px; background: #dde3d3; }
.ta-grip:active span { background: var(--green-2); }
.textarea::placeholder { color: var(--text-3); }
.textarea-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; border-top: 1px solid rgba(20,30,10,.06);
}
.textarea-foot .paste-btn {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--text-2); cursor: pointer;
}
.textarea-foot .paste-btn svg { width: 14px; height: 14px; fill: currentColor; }
.textarea-foot .right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.char-count { font-size: 12px; color: var(--text-3); }
.clear-text { border: none; background: none; color: var(--text-3); cursor: pointer; padding: 0; }
.clear-text svg { width: 15px; height: 15px; fill: currentColor; display: block; }

.input, .select {
  width: 100%; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 13px 14px; color: var(--text);
  font-size: 14px; outline: none; font-family: inherit;
}
.input:focus { border-color: var(--green-2); }

/* 单图 / 音频上传 */
.uploader {
  border: 1.5px dashed #cfd8ba; border-radius: var(--radius);
  min-height: 150px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  color: var(--text-2); font-size: 14px; cursor: pointer;
  background: var(--bg-card); overflow: hidden; position: relative;
}
.uploader .up-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--bg-card-2);
  display: flex; align-items: center; justify-content: center;
}
.uploader .up-icon svg { width: 22px; height: 22px; fill: var(--text-2); }
.uploader .up-hint { font-size: 12px; color: var(--text-3); }
.uploader img, .uploader audio { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.uploader.audio-filled { min-height: 80px; }
.uploader .file-name { position: relative; z-index: 1; color: var(--green-ink); font-size: 13px; padding: 0 16px; text-align: center; word-break: break-all; }
.uploader .clear-img {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  width: 26px; height: 26px; border-radius: 50%; border: none;
  background: rgba(0,0,0,.7); color: #fff; font-size: 15px; cursor: pointer;
}

/* 多图上传（形象克隆） */
.multi-head { margin-bottom: 14px; }
.multi-head .mh-title { font-size: 20px; font-weight: 700; }
.multi-head .mh-title b { color: var(--green-ink); font-size: 26px; padding: 0 2px; }
.multi-head .mh-sub { font-size: 12px; color: var(--text-2); margin-top: 4px; }
.multi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.multi-cell {
  aspect-ratio: 1; border-radius: 12px; overflow: hidden; position: relative;
  background: var(--bg-card); border: 1px dashed #cfd8ba; cursor: pointer;
}
.multi-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.multi-cell.add {
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3); font-size: 26px;
}
.multi-cell .del {
  position: absolute; top: 4px; right: 4px; width: 20px; height: 20px;
  border-radius: 50%; border: none; background: rgba(0,0,0,.7); color: #fff;
  font-size: 12px; cursor: pointer; line-height: 1;
}
.multi-btns { display: flex; gap: 10px; margin-top: 14px; }
.multi-btns .mbtn {
  flex: 1; padding: 12px; border-radius: 12px; border: none; cursor: pointer;
  background: var(--bg-card-2); color: var(--text); font-size: 14px; font-weight: 500;
}
.multi-btns .mbtn.primary { background: linear-gradient(135deg, #e6ff9a, var(--green)); color: #1b2300; font-weight: 700; }
.example-block { margin-top: 16px; }
.example-title { text-align: center; font-size: 13px; color: var(--text-2); margin-bottom: 10px; }
.example-row { display: flex; gap: 10px; justify-content: center; }
.example-item { width: 72px; text-align: center; }
.example-item .ex-img {
  width: 72px; height: 72px; border-radius: 12px; overflow: hidden; position: relative;
  background: var(--bg-card-2);
}
.example-item .ex-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.example-item .ex-img .mark {
  position: absolute; right: 4px; bottom: 4px; width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #fff;
}
.mark.ok { background: #22c55e; }
.mark.no { background: var(--danger); }
.example-item .ex-label { font-size: 11px; color: var(--text-2); margin-top: 5px; }

/* chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 9px 16px; border-radius: 12px; font-size: 13px;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-2); cursor: pointer; transition: all .15s;
}
.chip.active { border-color: var(--green-2); color: var(--green-ink); background: var(--green-soft); }

/* 滑杆 */
.slider-row { display: flex; align-items: center; gap: 12px; }
.slider-row input[type=range] { flex: 1; accent-color: var(--green); }
.slider-val { font-size: 13px; color: var(--green-ink); min-width: 40px; text-align: right; }

/* 风格图片选择（横滑卡片） */
.style-picker { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.style-picker::-webkit-scrollbar { display: none; }
.style-card {
  flex: none; width: 92px; cursor: pointer; position: relative;
  border-radius: 14px; overflow: hidden; border: 2px solid transparent;
  transition: border-color .15s;
}
.style-card img { width: 92px; height: 118px; object-fit: cover; display: block; }
.style-card .sc-label {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 6px 6px; font-size: 12px; text-align: center;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
}
.style-card .sc-check {
  position: absolute; top: 6px; left: 6px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green); color: #1b2300; font-size: 12px; font-weight: 700;
  display: none; align-items: center; justify-content: center;
}
.style-card.active { border-color: var(--green-2); }
.style-card.active .sc-check { display: flex; }

/* 开关行 / 选择行 / 折叠条 */
.row-item {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px; cursor: pointer;
}
.row-item .r-left { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.row-item .r-left .vip { font-size: 10px; background: linear-gradient(135deg, #ffe9a8, var(--gold)); color: #5a3c00; padding: 2px 6px; border-radius: 5px; font-weight: 700; }
.row-item .r-right { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.row-item .r-right svg { width: 16px; height: 16px; fill: var(--text-3); }
.switch {
  width: 46px; height: 26px; border-radius: 999px; background: #dbe1ce;
  position: relative; transition: background .2s; flex: none;
}
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: #fff; transition: transform .2s;
}
.switch.on { background: var(--green); }
.switch.on::after { transform: translateX(20px); }
.collapse-body { overflow: hidden; display: none; padding-top: 14px; }
.collapse-body.open { display: block; }
.collapse-wrap { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 14px 14px; }
.collapse-wrap .row-item { border: none; background: none; padding: 14px 0 0; }

/* 底部提交条 / 大 CTA */
.submit-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  max-width: 480px; margin: 0 auto; z-index: 30;
  padding: 10px 14px calc(10px + var(--safe-b));
  background: linear-gradient(to top, var(--bg) 30%, rgba(246,248,239,0));
  pointer-events: none;
}
.submit-bar .cta-btn, .submit-bar .btn { pointer-events: auto; }
.cta-btn {
  width: 100%; padding: 14px; border: none; border-radius: 12px; cursor: pointer;
  font-size: 15px; font-weight: 700; font-family: inherit;
  background: linear-gradient(135deg, #e6ff9a, var(--green) 60%, var(--green-2));
  color: #1b2300;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 8px 20px rgba(160,210,20,.32);
  transition: transform .1s, opacity .15s;
}
.cta-btn:active { transform: scale(.98); }
.cta-btn:disabled { opacity: .45; box-shadow: none; }
.cta-btn .spark { font-size: 14px; }
/* 会员等级未达：与后台「需 Vx 解锁 · 去充值」一致 */
.cta-btn.locked {
  background: #f2f4e9;
  color: #8a6100;
  border: 1px solid #e6d9a8;
  box-shadow: none;
}
/* 卡片上的等级锁标记 */
.lv-tag {
  display: inline-block; margin-left: 6px; vertical-align: 2px;
  font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 4px;
  background: rgba(201,138,0,.14); color: var(--gold);
  white-space: nowrap;
}
.cta-dark {
  background: linear-gradient(135deg, #2b311d, #161a0f);
  color: #f4ffdd; box-shadow: none; border: 1px solid rgba(211,247,90,.16);
}

/* ================= 结果页 ================= */
.result-body { padding: 14px; }
.status-card {
  padding: 56px 18px 36px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
/* 生成中动画：logo 居中 + 外圈光环旋转 */
.gen-loader {
  position: relative; width: 96px; height: 96px;
  display: flex; align-items: center; justify-content: center;
}
.gen-ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(46,230,200,0) 0deg, rgba(46,230,200,.12) 180deg, #2ee6c8 320deg, #8df3ff 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
  animation: gen-spin 1.2s linear infinite;
  filter: drop-shadow(0 0 10px rgba(46,230,200,.55));
}
.gen-logo {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.gen-logo img { width: 100%; height: 100%; object-fit: contain; }
.gen-pct { font-size: 12px; color: var(--text-3); }
@keyframes gen-spin { to { transform: rotate(360deg); } }
.status-text { font-size: 14px; color: var(--text-2); }
.status-text .dot { animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .2; } }

/* 声音克隆等待页 */
.clone-wait { padding-top: 10px; }
.cw-title {
  text-align: center; font-size: 24px; font-weight: 800; color: var(--green-ink);
  letter-spacing: 2px;
}
.cw-sub { text-align: center; font-size: 12px; color: var(--text-2); margin-top: 8px; letter-spacing: 2px; }
.cw-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.cw-card {
  border-radius: var(--radius); padding: 26px 14px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.cw-card.dark { background: var(--bg-card); border: 1px solid var(--border); cursor: pointer; }
.cw-card.dark:active { opacity: .75; }
.cw-play {
  width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid rgba(20,30,10,.35);
  display: flex; align-items: center; justify-content: center;
}
.cw-play svg { width: 20px; height: 20px; fill: var(--text); margin-left: 2px; }
.cw-card.glow {
  background: linear-gradient(160deg, #f0fdbb, #d3f75a 70%);
  border: 1px solid var(--green-2);
  box-shadow: 0 10px 24px rgba(160,210,20,.25);
}
.cw-spark { font-size: 26px; color: var(--green-ink); animation: blink 1.6s infinite; }
.cw-name { font-size: 15px; font-weight: 700; }
.cw-tip { font-size: 11px; color: var(--text-2); }
.cw-card.glow .cw-tip { color: rgba(30,40,0,.62); }
.cw-field { margin-top: 24px; }
.cw-label { font-size: 14px; font-weight: 700; border-left: 3px solid var(--green-2); padding-left: 8px; margin-bottom: 10px; }
.cw-field input {
  width: 100%; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px; color: var(--text-1); font-size: 14px;
  outline: none; font-family: inherit;
}
.cw-field input:focus { border-color: var(--green-2); }
.cw-actions { display: flex; gap: 12px; margin-top: 26px; }
.cw-retry {
  flex: 1; padding: 14px; border: none; border-radius: 12px; cursor: pointer;
  background: linear-gradient(135deg, #e6ff9a, var(--green)); color: #1b2300;
  font-size: 15px; font-weight: 700; font-family: inherit;
}
.cw-save {
  flex: 1; padding: 14px; border: none; border-radius: 12px; cursor: pointer;
  background: var(--green-soft); color: var(--text-2); font-size: 15px; font-weight: 700; font-family: inherit;
}

.result-media { border-radius: var(--radius); overflow: hidden; background: var(--bg-card); border: 1px solid var(--border); }
.result-media img, .result-media video { width: 100%; display: block; }
.result-media audio { width: 100%; display: block; padding: 20px 12px; background: var(--bg-card-2); }
.result-text {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; font-size: 14px; white-space: pre-wrap;
}
.result-actions { display: flex; gap: 10px; margin-top: 16px; }
.result-actions .btn { flex: 1; padding: 13px; }
/* 多图结果 */
.result-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.rg-item { position: relative; border-radius: 12px; overflow: hidden; background: var(--bg-card); border: 1px solid var(--border); }
.rg-item img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }
.rg-dl {
  position: absolute; right: 6px; bottom: 6px;
  padding: 5px 10px; border: none; border-radius: 8px;
  background: rgba(0,0,0,.55); color: #fff; font-size: 12px; cursor: pointer;
  backdrop-filter: blur(4px);
}
.rg-dl:disabled { opacity: .7; }
.rg-tip { margin-top: 8px; font-size: 12px; color: var(--text-3); text-align: center; }
.btn { border: none; border-radius: 12px; cursor: pointer; font-size: 15px; font-weight: 600; font-family: inherit; }
.btn-primary { background: linear-gradient(135deg, #e6ff9a, var(--green)); color: #1b2300; }
.btn-ghost { background: var(--bg-card); border: 1px solid var(--border); color: var(--text-2); }
.fail-card { text-align: center; padding: 40px 20px; color: var(--text-2); }
.fail-card .icon { font-size: 40px; margin-bottom: 10px; }

/* ================= 作品中心 ================= */
.wo-empty { padding: 46px 0; text-align: center; font-size: 13px; color: var(--text-3); }
.empty-hs { min-height: 200px; display: flex; flex-direction: column; }
.empty-hs .wo-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 24px 18px 32px; }
.wo-empty-big { font-size: 48px; line-height: 1; margin-bottom: 8px; }
.wo-empty-sub { font-size: 11px; color: var(--text-3); opacity: .75; margin-top: 2px; }

/* ================= 资产库 ================= */
.hm-balance-ghost {
  background: #fff; color: #4a5540; border: 1px solid var(--border); box-shadow: none;
}
/* 横向滚动卡片陈列（资产 / 作品中心） */
.hs-sec { padding: 2px 0 8px; }
.hs-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 6px 18px 10px;
}
.hs-head h3 { font-size: 16px; font-weight: 800; letter-spacing: -.2px; }
.hs-head span { font-size: 11px; color: var(--text-3); }
.hs-row {
  display: flex; gap: 10px; padding: 0 18px 6px;
  overflow-x: auto; scroll-snap-type: x mandatory;
}
.hs-row::-webkit-scrollbar { display: none; }
.hs-card {
  position: relative; flex: 0 0 118px; padding-bottom: 8px;
  border: 1px solid var(--border); border-radius: 14px; background: #fff;
  overflow: hidden; scroll-snap-align: start;
}
.hs-thumb { width: 100%; aspect-ratio: 1; overflow: hidden; background: #f4f6ee; cursor: pointer; position: relative; }
.hs-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.hs-ic {
  display: grid; place-items: center; width: 100%; height: 100%;
  font-size: 26px; background: linear-gradient(140deg, #f2ffc9, #dcf79a);
}
.hs-name {
  padding: 7px 9px 0; font-size: 12px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hs-sub {
  padding: 2px 9px 0; font-size: 10px; color: var(--text-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-height: 14px;
}
.hs-acts { display: flex; gap: 4px; padding: 7px 7px 0; }
.hs-act {
  flex: 1; padding: 7px 0; border: 0; border-radius: 8px;
  background: #f3f5ee; color: #4a5540; font-size: 11px; font-weight: 600;
  touch-action: manipulation;
}
.hs-act.del { background: #fdecec; color: #c0392b; }
.lc-ic {
  height: 84px; display: grid; place-items: center; font-size: 26px;
  background: linear-gradient(140deg, #f2ffc9, #dcf79a);
}

/* 顶部圆形图标按钮（垃圾箱） */
.hm-icon {
  position: relative; width: 36px; height: 36px; flex: none;
  display: grid; place-items: center; font-size: 15px;
  border-radius: 50%; background: #fff; border: 1px solid var(--border);
}
.hm-icon i {
  position: absolute; top: -4px; right: -4px; min-width: 15px; height: 15px; padding: 0 3px;
  display: grid; place-items: center; border-radius: 999px;
  background: #e5484d; color: #fff; font-size: 9px; font-style: normal;
}

/* 资产查看弹层 */
.av-sheet { max-height: 84vh; }
.av-img {
  display: block; width: 100%; max-height: 48vh; margin-top: 12px;
  object-fit: contain; border-radius: 14px; background: #f5f7ef;
}
.av-audio { margin-top: 12px; }
.av-audio .hs-ic { height: 120px; border-radius: 14px; }
.av-audio audio { width: 100%; margin-top: 10px; }
.av-text {
  margin-top: 12px; max-height: 46vh; overflow-y: auto; padding: 12px;
  border-radius: 14px; background: #f7f9f1; font-size: 13px; line-height: 1.7;
  white-space: pre-wrap; word-break: break-word;
}
.av-del { background: #fdecec !important; color: #c0392b !important; box-shadow: none !important; }

/* 垃圾箱弹层 */
.trash-sheet { max-height: 86vh; }
.trash-list { margin-top: 10px; max-height: 68vh; overflow-y: auto; }
.trash-item {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 2px; border-bottom: 1px dashed var(--border);
}
.ti-ic { width: 24px; text-align: center; }
.ti-name { flex: 1; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ti-btn { font-size: 11px; padding: 5px 10px; border-radius: 999px; background: #f3f5ee; color: #4a5540; }
.ti-btn.danger { background: #fdecec; color: #c0392b; }

/* 重命名弹层 */
.nm-sheet { padding-bottom: max(18px, var(--safe-b)); }
.nm-input {
  width: 100%; margin-top: 12px; padding: 12px 14px; font-size: 14px;
  border: 1px solid var(--border); border-radius: 12px; background: #fff;
}

/* 新建文案弹层：控制高度，避免遮挡 */
.lib-text-sheet { max-height: 78vh; }
.lib-text-area { height: 110px; margin-top: 10px; resize: none; }
.lib-text-foot { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.lib-file-btn {
  padding: 7px 12px; border-radius: 999px; font-size: 12px; color: #4a5540;
  border: 1px dashed var(--border); background: #fff;
}
.lib-text-tip { font-size: 10px; color: var(--text-3); }
.lib-pick-head { display: flex; align-items: center; justify-content: space-between; }
.lib-pick-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin-top: 12px; max-height: 52vh; overflow-y: auto;
}
.lib-pick { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff; }
.lib-pick img { display: block; width: 100%; height: 72px; object-fit: cover; }
.lib-pick span {
  display: block; padding: 5px 6px; font-size: 10px; color: var(--text-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lib-pick .lc-ic { height: 72px; font-size: 22px; }
.up-lib {
  display: block; width: 100%; margin-top: 8px; padding: 9px 12px;
  font-size: 12px; font-weight: 700; color: #33420a; text-align: center;
  background: var(--green-soft); border-radius: 10px;
}

/* ================= 我的 ================= */
.mine-header { padding: 32px 20px 20px; display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, #e6ff9a, var(--green));
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700; color: #1b2300;
}
.mine-info .name { font-size: 18px; font-weight: 600; }
.mine-info .uid { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.stat-row { display: flex; gap: 10px; padding: 4px 16px 8px; }
.stat-card { flex: 1; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; text-align: center; }
.stat-card .num { font-size: 20px; font-weight: 700; color: var(--green-ink); }
.stat-card .label { font-size: 12px; color: var(--text-2); margin-top: 2px; }

.work-list { padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; }
.work-item {
  display: flex; gap: 12px; align-items: center;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px; cursor: pointer;
}
.work-thumb {
  width: 64px; height: 64px; border-radius: 10px; flex: none;
  background: var(--bg-card-2); overflow: hidden; position: relative;
  display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.work-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hs-count {
  position: absolute; right: 4px; bottom: 4px;
  padding: 1px 6px; border-radius: 6px; font-size: 10px; line-height: 16px;
  background: rgba(0,0,0,.55); color: #fff; pointer-events: none;
}
.work-meta { flex: 1; min-width: 0; }
.work-meta .w-title { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.work-meta .w-sub { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.work-status { font-size: 11px; padding: 3px 9px; border-radius: 999px; flex: none; }
.work-status.done { background: var(--green-soft); color: var(--green-ink); }
.work-status.running { background: rgba(15,159,134,.12); color: var(--cyan); }
.work-status.fail { background: rgba(226,85,95,.12); color: var(--danger); }

.empty { padding: 60px 20px; text-align: center; color: var(--text-3); font-size: 13px; }
.empty .icon { font-size: 40px; margin-bottom: 10px; }
.empty .empty-img {
  width: 120px; height: 120px;
  margin: 0 auto 14px;
}
.empty .empty-img svg { width: 100%; height: 100%; display: block; }

/* ================= 我的页 ================= */

/* 头部渐变区：深绿渐变 + 光晕装饰 */
.mine-header {
  position: relative;
  display: block;
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(160deg, #0e1a10 0%, #162816 55%, #1a3a1f 100%);
  padding: 0 0 16px;
  overflow: hidden;
}
.mine-header::before {
  content: "";
  position: absolute; top: -40px; right: -30px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(185,233,63,.22), transparent 70%);
  pointer-events: none;
}
.mine-header::after {
  content: "";
  position: absolute; bottom: -60px; left: -20px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(46,230,200,.14), transparent 70%);
  pointer-events: none;
}

/* 顶部导航 */
.mine-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px 4px;
  position: relative; z-index: 1;
}
.mine-topbar .mt-title { font-size: 16px; font-weight: 700; text-align: center; flex: 1; color: #f4ffe0; }
.mine-topbar .mt-settings {
  width: 32px; height: 32px; border: none; background: rgba(255,255,255,.08); cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.8);
  border-radius: 50%;
}
.mine-topbar .mt-settings svg { width: 20px; height: 20px; fill: currentColor; }

/* 已登录：个人信息（左头像 + 右信息） */
.mine-profile {
  display: flex; flex-direction: row; align-items: flex-start; gap: 14px;
  width: 100%; min-width: 0; box-sizing: border-box;
  padding: 10px 16px 12px;
  position: relative; z-index: 1;
}
.mine-profile .mp-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mine-profile .avatar-ring {
  width: 64px; height: 64px; border-radius: 50%; overflow: hidden; flex: none;
  margin-top: 2px;
  background: #2a3a22;
  box-shadow: 0 0 0 3px rgba(185,233,63,.5), 0 6px 18px rgba(0,0,0,.35);
}
.mine-profile .avatar-ring img { width: 100%; height: 100%; object-fit: cover; display: block; background: #2a3a22; }
.mine-profile .mp-name {
  max-width: 100%; font-size: 17px; font-weight: 700;
  color: #f4ffe0; letter-spacing: .3px; line-height: 1.45;
  overflow-wrap: anywhere; word-break: break-word; text-align: left;
}
.mine-profile .mp-level-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-start; max-width: 100%; }
.mine-profile .mp-level-tag {
  display: inline-flex; align-items: center;
  padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 600;
  background: rgba(185,233,63,.18); color: #b9e93f;
  border: 1px solid rgba(185,233,63,.35);
}
.mine-profile .mp-level-phone { font-size: 11px; color: rgba(255,255,255,.55); }
.mine-profile .mp-bio-wrap { max-width: 100%; align-items: flex-start; margin-top: 2px; }
.mine-profile .mp-bio-text { text-align: left; padding: 2px 0; }

/* 未登录：游客态顶部 */
.mine-hero-guest {
  display: flex; align-items: center; gap: 12px;
  padding: 14px;
  background: linear-gradient(135deg, #eef9c9, #f7fbf0);
  margin: 4px 14px 12px; border-radius: var(--radius);
  border: 1px solid rgba(185,233,63,.35);
}
.mhg-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  background: var(--bg-card);
  display: flex; align-items: center; justify-content: center;
}
.mhg-avatar svg { width: 24px; height: 24px; fill: var(--text-3); }
.mhg-info { flex: 1; min-width: 0; }
.mhg-name { font-size: 16px; font-weight: 700; }
.mhg-sub { font-size: 11px; color: var(--text-2); margin-top: 2px; }
.mhg-login {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--green-2);
  background: var(--green-soft); color: var(--green-ink);
  font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.mhg-login svg { width: 12px; height: 12px; fill: currentColor; }

/* 统计卡双列 */
.mine-stat-row {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
  width: 100%; box-sizing: border-box;
  padding: 0 14px; margin-top: 10px;
}
.mine-stat-card {
  min-width: 0; box-sizing: border-box;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 8px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.mine-stat-card .ms-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; margin-bottom: 4px;
}
.mine-stat-card .ms-val { max-width: 100%; font-size: 18px; font-weight: 800; overflow-wrap: anywhere; }
.mine-stat-card .ms-label { font-size: 11px; color: var(--text-2); }

/* 青媒素号 + 社交统计（关注/粉丝/获赞与收藏） */
.mp-userno {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 4px; font-size: 11px; color: var(--text-2);
}
.mp-copy {
  width: 18px; height: 18px; padding: 0; border: none; background: transparent;
  color: var(--text-2); cursor: pointer; display: inline-flex; align-items: center;
}
.mp-copy svg { width: 12px; height: 12px; fill: currentColor; }
.avatar-ring { cursor: pointer; }
.mine-social-row {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
  width: 100%; box-sizing: border-box;
  padding: 0 14px; margin-top: 14px;
  position: relative; z-index: 1;
}
.mine-social {
  min-width: 0; box-sizing: border-box;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); padding: 12px 6px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  cursor: pointer; transition: border-color .15s;
}
.mine-social:active { border-color: rgba(185,233,63,.5); }
.mine-social .msc-val { font-size: 18px; font-weight: 800; color: #f4ffe0; }
.mine-social .msc-label { font-size: 11px; color: rgba(255,255,255,.55); }

.mp-userno {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 2px; font-size: 11px; color: rgba(255,255,255,.5);
}
.mp-copy {
  width: 18px; height: 18px; padding: 0; border: none; background: transparent;
  color: rgba(255,255,255,.5); cursor: pointer; display: inline-flex; align-items: center;
}
.uh-head { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 0 4px; }
.uh-avatar, .uh-avatar-text {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--border);
}
.uh-avatar-text {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700; color: var(--text-2); background: var(--bg-card);
}
.uh-name { font-size: 18px; font-weight: 700; }
.uh-no { font-size: 11px; color: var(--text-2); }
.uh-follow { margin-top: 6px; min-width: 132px; padding: 9px 22px; }
.uh-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  margin: 14px 0 4px; padding: 12px 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.uh-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; }
.uh-stat b { font-size: 16px; font-weight: 800; }
.uh-stat span { font-size: 11px; color: var(--text-2); }
.uh-sec-title { font-size: 13px; font-weight: 700; margin: 12px 0 10px; }

/* 关注 / 粉丝列表 */
.fu-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 2px; border-bottom: 1px solid var(--border); cursor: pointer;
}
.fu-row:last-child { border-bottom: none; }
.fu-avatar, .fu-row .uh-avatar-text {
  width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex: none;
}
.fu-row .uh-avatar-text { font-size: 17px; }
.fu-info { flex: 1; min-width: 0; }
.fu-name { font-size: 14px; font-weight: 600; }
.fu-no { font-size: 11px; color: var(--text-2); margin-top: 2px; }
.fu-btn {
  flex: none; border: 1px solid var(--accent, #b6f05a); background: var(--accent, #b6f05a);
  color: #10160a; font-size: 12px; font-weight: 600;
  border-radius: 999px; padding: 6px 14px; cursor: pointer;
}
.fu-btn.on { background: transparent; color: var(--text-2); border-color: var(--border); }
.fu-btn:disabled { opacity: .55; }

/* 作者名入口 */
.gw-author, .wp-author { cursor: pointer; }
.gw-author:active, .wp-author:active { opacity: .7; }
#pwAuthor { cursor: pointer; }

/* 功能卡双列 */
.mine-func-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 0 14px; margin-top: 10px;
}
.mine-func-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px;
  display: flex; flex-direction: column; gap: 6px;
  cursor: pointer;
}
.mine-func-card:active { opacity: .75; }
.mine-func-card .mf-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--bg-card-2);
  display: flex; align-items: center; justify-content: center;
}
.mine-func-card .mf-icon svg { width: 18px; height: 18px; fill: currentColor; }
.mine-func-card .mf-label { font-size: 13px; font-weight: 600; margin-top: 2px; }
.mine-func-card .mf-count { font-size: 11px; color: var(--text-2); }
.mine-func-card .mf-action {
  font-size: 10px; color: var(--cyan); font-weight: 600;
  display: inline-flex; align-items: center; gap: 2px; margin-top: 2px;
}
.mine-func-card .mf-action svg { width: 11px; height: 11px; fill: currentColor; }

.vip-banner {
  margin: 14px 14px 0; border-radius: 18px; padding: 14px 16px;
  background: linear-gradient(135deg, #edfdac, #d3f75a);
  border: 1px solid rgba(160,200,20,.35);
  color: #1c2600;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  cursor: pointer;
}
.vip-banner .vb-title { font-size: 17px; font-weight: 800; font-style: italic; letter-spacing: .5px; }
.vip-banner .vb-sub { font-size: 11px; color: rgba(30,40,0,.62); margin-top: 3px; }
.vip-banner .vb-btn {
  flex: none; padding: 7px 14px; border: none; border-radius: 999px; cursor: pointer;
  background: #1b1f13; color: #eaffc0;
  font-size: 12px; font-weight: 700;
}

.set-group {
  margin: 12px 14px 0; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.set-group .sg-title { padding: 12px 14px 4px; font-size: 13px; font-weight: 700; }
.set-row {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 14px; cursor: pointer; font-size: 13px;
  border-bottom: 1px solid rgba(20,30,10,.06);
}
.set-row:last-child { border-bottom: none; }
.set-row .sr-icon { width: 20px; height: 20px; flex: none; display: flex; align-items: center; justify-content: center; }
.set-row .sr-icon svg { width: 18px; height: 18px; fill: var(--text-2); }
.set-row .sr-label { flex: 1; }
.set-row .sr-val { font-size: 12px; color: var(--text-2); }
.set-row .sr-arrow { width: 16px; height: 16px; fill: var(--text-3); flex: none; }

/* ================= 钻石充值页 ================= */

/* 右上角链接（账单） */
.nav-link {
  background: none; border: none; color: var(--text-2);
  font-size: 13px; font-weight: 500; cursor: pointer; padding: 4px 8px;
}
.nav-link:active { color: var(--text); }

/* Hero 区：我的钻石 + 头像 */
.diamond-hero {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 12px 14px 14px;
}
.dh-left { display: flex; flex-direction: column; gap: 2px; }
.dh-label { font-size: 12px; color: var(--text-2); font-weight: 500; }
.dh-count {
  font-size: 32px; font-weight: 800; letter-spacing: -.5px;
  background: linear-gradient(135deg, #1b2013, #5c8a00 60%, #9ac400);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.15;
}
.dh-right { flex-shrink: 0; }
.dh-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid rgba(185,233,63,.55);
  object-fit: cover; display: block;
}
.dh-avatar.dh-fallback {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #e6ff9a, var(--green));
  color: #1b2300; font-size: 18px; font-weight: 700;
}

/* 钻石套餐网格（2列 × 3行） */
.diamond-grid {
  padding: 2px 14px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.diamond-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 10px 8px 8px;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  cursor: pointer; position: relative;
  transition: border-color .15s, background .15s;
}
.diamond-card .dc-icon { font-size: 18px; line-height: 1; }
.diamond-card .dc-amount {
  font-size: 17px; font-weight: 800; letter-spacing: -.3px;
}
.diamond-card .dc-price { font-size: 11px; color: var(--text-2); }
.diamond-card.active {
  border-color: var(--green-2);
  background: var(--green-soft);
}
.diamond-card.active .dc-amount { color: var(--green-ink); }

/* 支付区 */
.diamond-pay { padding: 16px 14px 0; }
.diamond-pay .cta-btn {
  width: 100%;
  padding: 13px 20px;
  border-radius: 999px;
  font-size: 15px; font-weight: 800;
  letter-spacing: .5px;
  background: linear-gradient(90deg, #e6ff9a, var(--green));
  color: #1b2300;
  border: none; cursor: pointer;
  box-shadow: 0 8px 20px rgba(160,210,20,.32);
  transition: transform .1s, opacity .15s;
}
.diamond-pay .cta-btn:active { transform: scale(.98); }
.diamond-pay .cta-btn:disabled { opacity: .45; box-shadow: none; }

/* 充值协议勾选框 */
.agreement-check {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--text-2);
  margin-bottom: 10px; cursor: pointer; user-select: none;
  width: fit-content;
  pointer-events: auto;
}
.agreement-check .ac-box {
  width: 15px; height: 15px; border-radius: 4px; border: 1.5px solid var(--text-3);
  flex: none; display: flex; align-items: center; justify-content: center;
  transition: all .15s; background: transparent;
}
.agreement-check .ac-box.on {
  background: var(--green); border-color: var(--green);
}
.agreement-check .ac-box.on::after {
  content: ""; width: 4px; height: 8px;
  border: solid #0a2a00; border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}
.agreement-check a { color: var(--green-ink); text-decoration: underline; pointer-events: auto; }

/* 充值协议勾选框居中修饰（钻石充值页） */
.agreement-check.centered {
  margin-left: auto; margin-right: auto;
  margin-bottom: 14px;
  justify-content: center;
}

/* 温馨提示 */
.diamond-warn { font-size: 11px; color: var(--text-3); line-height: 1.85; padding: 10px 14px 8px; }
.diamond-warn .dw-title { color: var(--text-2); font-weight: 600; margin-bottom: 2px; }
.diamond-warn .vw-contact {
  margin-top: 8px;
  text-align: center;
  color: var(--text-3);
  font-style: italic;
}

/* 通用底部弹层（mask + sheet） */
.mask {
  position: fixed; inset: 0; z-index: 100;
  overflow: hidden; overscroll-behavior: none;
  background: rgba(12,16,6,.38);
  opacity: 0; transition: opacity .2s;
  display: flex; align-items: flex-end; justify-content: center;
}
.mask.show { opacity: 1; }
.mask .sheet {
  width: 100%; max-width: 480px; max-height: 80vh;
  background: var(--bg-card); border-radius: 16px 16px 0 0;
  transform: translateY(100%); transition: transform .25s cubic-bezier(.3,.8,.4,1);
  display: flex; flex-direction: column;
}
.mask.show .sheet { transform: translateY(0); }
.mask .sheet .sh-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 8px; border-bottom: 1px solid var(--border);
}
.mask .sheet .sh-title { font-size: 15px; font-weight: 700; }
.mask .sheet .sh-close {
  width: 32px; height: 32px; border: none; background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: var(--text-2);
}
.mask .sheet .sh-close svg { width: 20px; height: 20px; fill: currentColor; }
.mask .sheet .sh-body {
  padding: 14px 18px calc(14px + var(--safe-b)); overflow-y: auto; flex: 1;
  font-size: 12px; line-height: 1.8; color: var(--text-2);
}
.mask .sheet .sh-body p { margin-bottom: 8px; }
.mask .sheet .sh-body b { color: var(--text); }
.agree-row { display: flex; align-items: center; gap: 8px; padding: 6px 22px 14px; font-size: 12px; color: var(--text-2); cursor: pointer; }
.agree-row .radio {
  width: 18px; height: 18px; border-radius: 50%; flex: none;
  border: 1.5px solid var(--text-3); display: flex; align-items: center; justify-content: center;
}
.agree-row .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: transparent; }
.agree-row.on .radio { border-color: var(--green-2); }
.agree-row.on .radio::after { background: var(--green-2); }
.agree-row a { color: var(--green-ink); text-decoration: none; }
.vip-links { text-align: center; padding: 14px 0 26px; font-size: 12px; color: var(--text-2); }

/* ================= 胶囊下拉（参考图3） ================= */
.cap-row { display: flex; flex-wrap: wrap; gap: 10px; }
.cap-select {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; padding: 11px 14px; font-size: 13px; cursor: pointer;
  color: var(--text); min-width: 46%; flex: 1; justify-content: space-between;
}
.cap-select .cs-val { color: var(--text-2); display: flex; align-items: center; gap: 4px; }
.cap-select svg { width: 14px; height: 14px; fill: var(--text-3); }

/* ================= 完善资料弹层（新用户首次进入） ================= */
.sheet-mask {
  position: fixed; inset: 0; background: rgba(12,16,6,.38); z-index: 70;
  display: flex; align-items: flex-end; justify-content: center;
  overflow: hidden; overscroll-behavior: none;
}
.profile-sheet {
  width: 100%; max-width: 480px;
  background: #ffffff; border-radius: 24px 24px 0 0;
  padding: 26px 24px calc(20px + var(--safe-b));
  box-shadow: 0 -18px 40px rgba(28,40,12,.12);
  animation: sheetUp .28s ease;
}
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.profile-sheet .ps-title { text-align: center; font-size: 21px; font-weight: 800; }
.profile-sheet .ps-avatar {
  width: 110px; margin: 22px auto 8px; position: relative; cursor: pointer;
}
.profile-sheet .ps-avatar img {
  width: 110px; height: 110px; border-radius: 50%; object-fit: cover; display: block;
  border: 2px solid #eef2e4;
}
.profile-sheet .ps-avatar .edit-badge {
  position: absolute; right: 2px; bottom: 4px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--green-soft); border: 2px solid #ffffff;
  display: flex; align-items: center; justify-content: center;
}
.profile-sheet .ps-avatar .edit-badge svg { width: 14px; height: 14px; fill: var(--text-2); }
.profile-sheet .ps-avatar-tip { text-align: center; font-size: 12px; color: var(--text-3); margin-bottom: 22px; }
.ps-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 2px; border-bottom: 1px solid rgba(20,30,10,.06);
  font-size: 15px;
}
.ps-row .ps-label { flex: none; }
.ps-row .ps-field { display: flex; align-items: center; gap: 6px; color: var(--text-3); flex: 1; justify-content: flex-end; }
.ps-row input {
  background: none; border: none; outline: none; text-align: right;
  color: var(--text); font-size: 15px; font-family: inherit; width: 180px;
  color-scheme: light;
}
.ps-row input::placeholder { color: var(--text-3); }
.ps-row .ps-field svg { width: 16px; height: 16px; fill: var(--text-3); flex: none; }
.profile-sheet .cta-btn { margin-top: 26px; }
.ps-agree { margin-top: 16px; justify-content: center; font-size: 11px; }

/* ================= 精选案例瀑布流 ================= */
.case-masonry { column-count: 2; column-gap: 10px; padding: 12px 16px; }
.case-card {
  break-inside: avoid; margin-bottom: 10px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden; cursor: pointer;
  box-shadow: var(--shadow);
}
.case-card .cc-cover { position: relative; }
.case-card .cc-cover img { width: 100%; display: block; }
.case-card .cc-tool {
  position: absolute; top: 8px; left: 8px;
  font-size: 10px; padding: 3px 8px; border-radius: 999px;
  background: rgba(0,0,0,.55); backdrop-filter: blur(4px); color: #fff;
}
.case-card .cc-body { padding: 10px 10px 12px; }
.case-card .cc-title { font-size: 13px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.case-card .cc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.case-card .cc-author { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text-2); min-width: 0; }
.case-card .cc-author img { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; flex: none; }
.case-card .cc-same {
  flex: none; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  border: none; cursor: pointer;
  background: linear-gradient(135deg, #e6ff9a, var(--green)); color: #1b2300;
}

/* ================= 创作二级页（参考图：清影 / 换装） ================= */

/* 顶栏：返回 · 工具图标+名称 · 右侧 时钟/分享/更多 */
.create-header {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  position: sticky; top: 0; z-index: 20;
  background: rgba(246,248,239,.9); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(20,30,10,.04);
}
.create-header .back-arrow {
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--bg-card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text);
}
.create-header .back-arrow svg { width: 18px; height: 18px; fill: currentColor; }
.create-header .ch-logo {
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex: none;
}
.create-header .ch-info { flex: 1; min-width: 0; }
.create-header .ch-title { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 4px; }
.create-header .ch-title .ch-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.create-header .ch-title svg { width: 14px; height: 14px; fill: var(--text-3); }
.create-header .ch-sub { font-size: 11px; color: var(--text-2); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.create-header .ch-actions { display: flex; gap: 4px; color: var(--text-2); }
.create-header .ch-actions button {
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--bg-card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text);
}
.create-header .ch-actions svg { width: 16px; height: 16px; fill: currentColor; }

/* 创作弹层右上角关闭 */
.navbar .nav-close {
  width: 32px; height: 32px; border-radius: 10px; flex: none;
  background: rgba(20,30,10,.05); border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-2);
}
.navbar .nav-close svg { width: 15px; height: 15px; fill: currentColor; }
.navbar .nav-close:active { background: rgba(20,30,10,.1); }

/* hero 横幅 */
.create-hero {
  margin: 0 14px 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #eef9c9, #f9fcf0);
  border: 1px solid rgba(185,233,63,.4);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  position: relative; overflow: hidden;
}
.create-hero .ch-text { flex: 1; min-width: 0; }
.create-hero .ch-text .ch-slogan { font-size: 13px; font-weight: 600; line-height: 1.4; }
.create-hero .ch-text .ch-desc { font-size: 11px; color: var(--text-2); margin-top: 3px; line-height: 1.4; }
.create-hero .ch-vip-btn {
  flex: none; font-size: 12px; font-weight: 700;
  padding: 7px 14px; border-radius: 999px; border: none; cursor: pointer;
  background: #1b1f13;
  color: #eaffc0; display: inline-flex; align-items: center; gap: 4px;
}

/* 模式 tabs（胶囊） */
.create-mode-tabs {
  margin: 0 14px 14px;
  display: flex; gap: 8px;
}
.create-mode-tabs .cm-tab {
  flex: 1; padding: 10px 0; border-radius: 12px;
  background: var(--bg-card); border: 1px solid var(--border);
  font-size: 13px; font-weight: 600; text-align: center;
  color: var(--text-2); cursor: pointer; transition: all .18s;
}
.create-mode-tabs .cm-tab.active {
  background: var(--green-soft); border-color: var(--green-2);
  color: var(--text);
}

/* 章节标题 */
.create-section-label {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px; margin-bottom: 10px;
}
.create-section-label .csl-title { font-size: 13px; font-weight: 700; }
.create-section-label .csl-right { font-size: 11px; color: var(--text-2); }

/* 上传卡片（参考图1：虚线大卡片） */
.create-upload-wrap { padding: 0 14px; margin-bottom: 18px; }
.create-upload-wrap .uploader {
  border: 1.5px dashed #cfd8ba !important;
  border-radius: 14px !important;
  min-height: 120px !important;
  background: #fbfdf4 !important;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 18px 16px !important; cursor: pointer; position: relative;
}
.create-upload-wrap .uploader .up-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, #eef9c9, var(--green));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
}
.create-upload-wrap .uploader .up-icon svg { width: 24px; height: 24px; fill: #1b2300; }
.create-upload-wrap .uploader > span:not(.up-hint) { font-size: 14px; font-weight: 600; color: var(--text); }
.create-upload-wrap .uploader .up-hint { margin-top: 5px; font-size: 11px; color: var(--text-3); }

/* 三图并排上传（数字人带货） */
.upload-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto 1fr;
  gap: 10px; padding: 0 14px; margin-bottom: 14px; align-items: stretch;
}
/* 子卡片用 subgrid 共享两行：标签行取最高、内容行等高，避免长标签换行导致上传框/按钮错位；
   不支持 subgrid 的浏览器由 JS（equalizeUploadLabels）兜底动态拉齐标签高度 */
.upload-row .create-upload-wrap {
  padding: 0; margin: 0; min-width: 0;
  display: grid; grid-template-rows: subgrid; grid-row: span 2;
}
.upload-row .create-section-label {
  padding: 0; margin-bottom: 6px;
  flex-direction: column; align-items: flex-start; gap: 2px;
}
.upload-row .create-section-label .csl-title { font-size: 12px; }
.upload-row .create-section-label .csl-right { font-size: 10px; color: var(--text-3); }
.upload-row .uploader { min-height: 92px !important; padding: 10px 6px !important; }
.upload-row .uploader .up-icon { width: 30px; height: 30px; margin-bottom: 4px; }
.upload-row .uploader .up-icon svg { width: 17px; height: 17px; }
.upload-row .uploader > span:not(.up-hint) { font-size: 11px; }
.upload-row .uploader .up-hint { display: none; }
.upload-row .up-lib { margin-top: 6px; padding: 7px 4px; font-size: 11px; }
.upload-row.four { gap: 7px; }
.upload-row.four .create-section-label .csl-title { font-size: 11px; }
.upload-row.four .uploader { min-height: 84px !important; padding: 8px 4px !important; }
.upload-row.four .up-lib { font-size: 9.5px; padding: 6px 2px; letter-spacing: -.2px; }

/* 多图上传：缩略图 + 加号（参考图2） */
.create-multi-wrap { padding: 0 14px; margin-bottom: 18px; }
.create-multi-row { display: flex; gap: 10px; flex-wrap: wrap; }
.create-multi-row .cm-cell {
  width: 92px; height: 92px; border-radius: 12px;
  background: var(--bg-card); border: 1px solid var(--border);
  position: relative; overflow: hidden; flex: none;
  cursor: pointer;
}
.create-multi-row .cm-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.create-multi-row .cm-cell .cm-del {
  position: absolute; top: 4px; right: 4px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,0,0,.75); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; cursor: pointer; border: none;
}
.create-multi-row .cm-cell.cm-add {
  display: flex; align-items: center; justify-content: center;
  border-style: dashed; border-color: #cfd8ba;
  color: var(--text-3); font-size: 26px; font-weight: 300;
  background: #fbfdf4;
}
.create-multi-row .cm-cell.cm-fill-hint {
  position: absolute; bottom: 4px; left: 0; right: 0;
  text-align: center; font-size: 10px; color: var(--green);
  background: linear-gradient(to top, rgba(0,0,0,.6), transparent);
  padding: 3px 0;
}

/* 提示词区（参考图1：灵感描述 + 骰子） */
.create-prompt-wrap { padding: 0 14px; margin-bottom: 18px; }
.create-prompt-wrap .cp-label {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.create-prompt-wrap .cp-label .cp-text { font-size: 13px; font-weight: 700; }
.create-prompt-wrap .cp-label .cp-inspire {
  font-size: 12px; color: var(--text-2); cursor: pointer;
  padding: 4px 10px; border-radius: 999px;
  background: var(--bg-card); border: 1px solid var(--border);
  display: inline-flex; align-items: center; gap: 3px;
}
.create-prompt-wrap .textarea-wrap {
  border-radius: 12px;
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 10px 12px 8px;
}
.create-prompt-wrap .textarea {
  background: transparent; border: none; outline: none; resize: none;
  width: 100%; min-height: 110px; color: var(--text); font-size: 13px;
  line-height: 1.6; font-family: inherit;
}
.create-prompt-wrap .textarea::placeholder { color: var(--text-3); }
.create-prompt-wrap .textarea-foot { border-top: none; padding-top: 6px; }

/* 服装棚拍：场景模板横向选择 */
.create-preset-wrap { padding: 0 14px; margin-bottom: 14px; }
.create-preset-wrap .cp-label {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.create-preset-wrap .cp-label .cp-text { font-size: 13px; font-weight: 700; }
.create-preset-wrap .cpr-count { font-size: 11px; color: var(--text-3); }
.preset-row { display: flex; gap: 10px; align-items: center; }
.preset-select-wrap { position: relative; flex: 1; min-width: 0; }
.preset-select {
  width: 100%; height: 44px; padding: 0 36px 0 12px;
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--bg-card); color: var(--text-1);
  font-size: 13px; font-weight: 600; appearance: none; -webkit-appearance: none;
}
.preset-select:focus { outline: none; border-color: var(--green-2); }
.preset-arrow {
  position: absolute; right: 12px; top: 50%; width: 16px; height: 16px;
  transform: translateY(-50%); fill: var(--text-3); pointer-events: none;
}
.preset-preview { flex: none; width: 56px; height: 76px; border-radius: 10px; overflow: hidden; background: #111; }
.preset-preview:empty { display: none; }
.preset-preview video {
  display: block; width: 100%; height: 100%;
  object-fit: cover; background: #000;
}
.cp-duration { font-size: 11px; font-weight: 600; color: #5b7a1a; }

/* 口播脚本表单（数字人带货） */
.script-card {
  margin: 0 14px 14px; padding: 12px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
}
.sc-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.sc-title { font-size: 13px; font-weight: 700; }
.sc-hint { font-size: 11px; color: var(--text-3); }
.script-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 10px; }
.script-grid .wide { grid-column: 1 / -1; }
.script-grid .form-item { margin: 0; }
.script-grid .form-label { font-size: 11px; margin-bottom: 6px; }
.script-grid .input { height: 40px; font-size: 13px; }
.script-grid .chip-row { gap: 8px 6px; }
.script-grid .chip { font-size: 12px; padding: 7px 11px; }
.sc-preview { margin-top: 10px; padding: 10px; background: rgba(0, 0, 0, .03); border-radius: 10px; }
.sc-preview-t { font-size: 11px; color: var(--text-3); margin-bottom: 6px; }
.sc-preview pre {
  margin: 0; font-size: 11px; line-height: 1.6; color: var(--text-2);
  white-space: pre-wrap; word-break: break-all; font-family: inherit;
}
/* 剧情带货：只读台词预览 */
.sc-lines { margin-top: 12px; padding: 12px; background: rgba(0,0,0,.03); border-radius: 10px; }
.pl-head { font-size: 11px; color: var(--text-3); margin-bottom: 8px; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: baseline; }
.pl-head span { font-size: 10px; color: var(--text-3); opacity: .8; }
.pl-row { display: flex; gap: 8px; font-size: 12px; line-height: 1.7; color: var(--text-2); }
.pl-row b { flex: 0 0 56px; font-weight: 500; color: var(--text-3); font-size: 11px; }
.pl-row span { flex: 1; }
/* 剧情带货：可增删台词编辑器 */
.line-editor { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.le-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.le-head > span:first-child { font-size: 12px; font-weight: 600; color: var(--text-1); }
.le-hint { font-size: 10px; color: var(--text-3); }
.le-body { display: flex; flex-direction: column; gap: 6px; }
.line-row { display: flex; align-items: center; gap: 6px; }
.line-role {
  flex: 0 0 82px; height: 36px; padding: 0 6px; font-size: 12px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; color: var(--text-1);
}
.line-text { flex: 1; height: 36px; font-size: 13px; }
.line-del {
  flex: 0 0 30px; width: 30px; height: 36px; border: none; background: transparent;
  font-size: 18px; line-height: 1; color: var(--text-3); cursor: pointer; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; transition: color .15s, background .15s;
}
.line-del:hover { color: #fff; background: #ff4d4f; }
.line-add {
  height: 36px; border: 1px dashed var(--border); background: transparent; border-radius: 8px;
  font-size: 12px; color: var(--text-3); cursor: pointer; transition: color .15s, border-color .15s;
}
.line-add:hover { color: var(--green-ink); border-color: var(--green-2); }
.sc-adv { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border); }
.sc-adv summary { font-size: 12px; color: var(--text-3); cursor: pointer; list-style: none; }
.sc-adv summary::-webkit-details-marker { display: none; }
.sc-adv summary::before { content: "＋ "; color: var(--text-3); }
.sc-adv[open] summary::before { content: "－ "; }
.sc-adv-body { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.sc-adv-body label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--text-3); }
.sc-adv-body .input { width: 100%; }

/* 高级设置（分镜脚本折叠） */
.create-adv {
  margin-bottom: 14px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
}
.create-adv summary {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 14px; cursor: pointer; list-style: none;
  font-size: 13px; font-weight: 700;
}
.create-adv summary::-webkit-details-marker { display: none; }
.create-adv .adv-s { margin-left: auto; font-size: 11px; font-weight: 400; color: var(--text-3); }
.create-adv .adv-arrow { width: 16px; height: 16px; fill: var(--text-3); transition: transform .2s; }
.create-adv[open] .adv-arrow { transform: rotate(180deg); }
.create-adv .adv-body { padding: 2px 14px 0; }

/* 折叠基础参数行（参考图1） */
.create-collapsible {
  margin: 0 14px 18px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
}
.create-collapsible .cc-head {
  display: flex; align-items: center; gap: 8px; padding: 14px 14px;
  cursor: pointer;
}
.create-collapsible .cc-head .cc-h-icon { font-size: 16px; }
.create-collapsible .cc-head .cc-h-title { font-size: 13px; font-weight: 700; flex: 1; }
.create-collapsible .cc-head .cc-h-title .vip-chip {
  font-size: 10px; font-weight: 700; color: #5a3c00;
  background: linear-gradient(135deg, #ffe9a8, #ffcf5c);
  padding: 2px 6px; border-radius: 4px; margin-left: 4px;
  vertical-align: 2px;
}
.create-collapsible .cc-head .cc-h-sub {
  font-size: 11px; color: var(--text-2); margin-right: 6px;
}
.create-collapsible .cc-head .cc-h-arrow {
  color: var(--text-2); transition: transform .2s;
}
.create-collapsible .cc-head.open .cc-h-arrow { transform: rotate(180deg); }
.create-collapsible .cc-head svg { width: 16px; height: 16px; fill: currentColor; }
.create-collapsible .cc-body {
  display: none; padding: 0 14px 14px;
  border-top: 1px solid var(--border);
}
.create-collapsible .cc-body.open { display: block; }
.create-collapsible .cc-body .form-item { margin-bottom: 14px; margin-top: 14px; }
.create-collapsible .cc-body .form-item:first-child { margin-top: 14px; }
.create-collapsible .cc-body .form-label { font-size: 12px; margin-bottom: 8px; color: var(--text-2); }

/* 创意灵感区 */
.create-ideas-wrap { padding: 0 14px; margin-bottom: 18px; }
.create-ideas-wrap .ideas-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.create-ideas-wrap .ideas-grid .idea-card {
  aspect-ratio: 1; border-radius: 10px; overflow: hidden; cursor: pointer;
  background: var(--bg-card); border: 1px solid var(--border);
}
.create-ideas-wrap .ideas-grid .idea-card img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 底部粘性 CTA（参考图1） */
.create-cta-wrap {
  position: fixed; bottom: 0; left: 0; right: 0;
  max-width: 480px; margin: 0 auto; z-index: 30;
  padding: 10px 14px calc(10px + var(--safe-b));
  background: linear-gradient(to top, var(--bg) 40%, rgba(246,248,239,0));
  pointer-events: none;
}
.create-cta-wrap .create-cta {
  pointer-events: auto;
  width: 100%; padding: 14px 0; border-radius: 12px; border: none; cursor: pointer;
  background: linear-gradient(135deg, #e6ff9a, var(--green));
  color: #1b2300; font-size: 15px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  box-shadow: 0 8px 20px rgba(160,210,20,.32);
}
.create-cta-wrap .create-cta.locked {
  background: #f2f4e9;
  color: #8a6100; box-shadow: none;
}
.create-cta-wrap .create-cta:active { transform: scale(.985); }
.create-cta-wrap .create-cta .spark { font-size: 14px; }
/* 右侧「生成设置」卡片内部文案：仅桌面端显示 */
.cta-side-head, .cta-side-hint { display: none; }

/* 创作页需要给 fixed 的 CTA 按钮留空间 */
#view.no-tabbar .page { padding-bottom: calc(72px + var(--safe-b)); }

/* ================= 拉片报告工作台 ================= */
.rv-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: wrap; margin: 4px 0 12px;
}
.rv-toolbar-title { font-size: 13px; font-weight: 600; color: var(--text); }
.rv-toolbar-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rv-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 30px; padding: 0 12px; border: none; border-radius: 999px;
  background: var(--green-soft, #eef2e4); color: #33420a;
  font-size: 12px; font-weight: 600; font-family: inherit;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .12s ease, opacity .12s ease;
}
.rv-btn:active { transform: scale(.97); }
.rv-btn:disabled { opacity: .45; cursor: default; }
.rv-btn.primary {
  background: linear-gradient(135deg, #e6ff9a, var(--green));
  color: #1b2300; box-shadow: 0 4px 12px rgba(160, 210, 20, .25);
}
.rv-btn.lg { height: 42px; padding: 0 22px; font-size: 14px; }
.rv-report-pre {
  white-space: pre-wrap; word-break: break-word;
  font-size: 13px; line-height: 1.7; color: var(--text);
  border-radius: 12px; padding: 12px; max-height: 40vh; overflow: auto;
  margin: 0 0 14px; background: rgba(0, 0, 0, .04);
}
.rv-edit-all { min-height: 280px; max-height: 60vh; font-size: 12px; line-height: 1.6; }
.rv-shot-list { display: flex; flex-direction: column; gap: 12px; }
.rv-shot-card {
  border: 1px solid var(--border, rgba(0, 0, 0, .08));
  border-radius: 14px; padding: 12px; background: var(--bg-card, #fff);
}
.rv-shot-title { font-size: 14px; font-weight: 700; margin-bottom: 4px; color: var(--text); }
.rv-shot-meta { font-size: 12px; color: #667085; margin-bottom: 6px; }
.rv-shot-line { font-size: 12px; line-height: 1.6; color: #475467; }
.rv-shot-line b { color: #344054; font-weight: 600; }
.rv-shot-label { font-size: 12px; color: #667085; margin: 10px 0 4px; }
.rv-shot-prompt { min-height: 74px; }
.rv-shot-actions { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.rv-dur {
  width: 88px; height: 30px; padding: 0 8px;
  border-radius: 999px; border: 1px solid var(--border, #e4e8d8);
  background: var(--bg-card, #fff); color: var(--text);
  font-size: 12px; font-family: inherit; outline: none;
}
.rv-shot-status { font-size: 12px; color: #98a2b3; }
.rv-shot-card video { width: 100%; border-radius: 10px; margin-top: 8px; background: #000; }
.rv-empty { font-size: 12px; color: var(--text-3, #98a2b3); padding: 8px 0; }
.rv-compose-box { margin-top: 14px; }
.rv-compose-box video { width: 100%; border-radius: 12px; background: #000; }
.rv-status-card {
  padding: 14px; border-radius: 12px; background: rgba(92, 240, 255, .12);
  font-size: 13px; color: var(--text-2, #475467);
}

/* 旧 style.css 的 form-item / textarea / uploader 在 create 页里降级：被上面的 create-* 覆盖 */
.create-form { padding-top: 8px; }
.create-form .steps-bar { display: none; }   /* 参考图风格不再用步骤条 */
.create-form .mode-tabs { display: none; }   /* 已用 .create-mode-tabs 接管 */

/* 案例详情弹层 */
.case-sheet {
  width: 100%; max-width: 480px;
  background: #ffffff; border-radius: 24px 24px 0 0;
  padding: 16px 20px calc(20px + var(--safe-b));
  animation: sheetUp .28s ease; max-height: 86vh; overflow-y: auto;
  box-shadow: 0 -18px 40px rgba(28,40,12,.12);
}

/* 工作流创作弹层 */
.flow-mask { z-index: 80; }
/* 创作弹层内再打开的资产选择层，必须盖在 flow-mask 之上 */
.pick-mask { z-index: 95; }
.flow-sheet {
  height: 92vh; max-height: 92vh; padding: 0;
  display: flex; flex-direction: column; overflow: hidden;
}
.flow-sheet #flowBody { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.flow-sheet .navbar {
  position: sticky; top: 0; z-index: 3; background: #fff;
}
.flow-sheet .page { padding-bottom: 0; }
.flow-sheet .create-form { padding-bottom: 4px; }
.flow-sheet .create-cta-wrap {
  position: sticky; bottom: 0; left: auto; right: auto;
  max-width: none; margin: 0; z-index: 5;
  padding: 10px 14px calc(12px + var(--safe-b));
  background: linear-gradient(to top, var(--bg) 70%, rgba(246,248,239,.92));
  border-top: 1px solid rgba(20,30,10,.05);
  backdrop-filter: blur(12px);
}
.case-sheet .cs-cover { border-radius: 16px; overflow: hidden; }
.case-sheet .cs-cover img { width: 100%; display: block; }
.case-sheet .cs-title { font-size: 16px; font-weight: 700; margin-top: 14px; }
.case-sheet .cs-author { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--text-2); }
.case-sheet .cs-author img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.case-sheet .cs-prompt {
  margin-top: 12px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px; font-size: 13px; color: var(--text-2); line-height: 1.7;
}
.case-sheet .cs-actions { display: flex; gap: 10px; margin-top: 18px; }
.case-sheet .cs-actions .btn { flex: 1; padding: 13px; }

/* ===== Toast ===== */
.toast {
  position: fixed; top: 18%; left: 50%; transform: translate(-50%, -8px);
  background: rgba(24,28,17,.94); border: 1px solid rgba(211,247,90,.18);
  color: #f4ffdd; font-size: 13px; padding: 10px 18px; border-radius: 10px;
  opacity: 0; pointer-events: none; transition: all .25s; z-index: 99;
  max-width: 80%;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ===== 登录 / 注册 ===== */
.login-body { padding: 34px 24px 24px; display: flex; flex-direction: column; align-items: center; }
.login-logo { width: 72px; height: 72px; border-radius: 18px; }
.login-title { font-size: 20px; font-weight: 700; margin: 12px 0 30px; }
.login-tabs { display: flex; justify-content: center; gap: 36px; width: 100%; margin-bottom: 20px; }
.login-tabs span { font-size: 15px; color: var(--text-2); padding-bottom: 6px; cursor: pointer; border-bottom: 2px solid transparent; }
.login-tabs span.on { color: var(--text); border-bottom-color: var(--green-2); font-weight: 600; }
.login-input {
  width: 100%; box-sizing: border-box; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px;
  color: var(--text); font-size: 15px; margin-bottom: 14px; outline: none;
}
.login-input:focus { border-color: var(--green-2); }
.hidden { display: none !important; }
.login-btn { width: 100%; margin-top: 8px; }
.login-tip { color: #d92d20; font-size: 13px; margin-top: 12px; min-height: 18px; }

/* ================= 首页（参考图排版） ================= */
.hm-page { padding-top: 4px; }
.hm-top { display: flex; align-items: center; justify-content: space-between; padding: 4px 16px 14px; }
.hm-logo { font-size: 30px; font-weight: 900; letter-spacing: -1.4px; color: var(--text); }
.hm-logo span { font-size: 15px; font-weight: 800; letter-spacing: 0; margin-left: 2px; color: var(--text-2); }
.hm-top-right { display: flex; align-items: center; gap: 8px; }
.hm-balance {
  font-size: 12px; font-weight: 700; padding: 8px 12px; border-radius: 999px;
  background: var(--bg-card); color: var(--text); text-decoration: none;
  box-shadow: 0 2px 10px rgba(30, 40, 10, .06);
}
.hm-search-btn {
  width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--bg-card);
  display: grid; place-items: center; box-shadow: 0 2px 10px rgba(30, 40, 10, .08); cursor: pointer;
}
.hm-search-btn svg { width: 19px; height: 19px; fill: var(--text); }
.hm-search-row { display: none; margin: -6px 0 12px; }
.hm-search-row.show { display: block; }
.hm-search-row input {
  width: 100%; border: 0; border-radius: 14px; padding: 12px 14px; font-size: 14px;
  background: var(--bg-card); color: var(--text); outline: none;
  box-shadow: 0 2px 12px rgba(30, 40, 10, .06);
}

.hm-tags { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
.hm-tags > * { scroll-snap-align: start; }
.hm-tags::-webkit-scrollbar, .hm-filters::-webkit-scrollbar { display: none; }
.hm-topic {
  flex: 0 0 auto; width: 96px; min-height: 108px; border-radius: 18px; padding: 12px;
  background: linear-gradient(160deg, #f4fbdf, #e6f6b9);
  display: flex; flex-direction: column; justify-content: space-between;
}
.ht-title { font-size: 15px; font-weight: 900; line-height: 1.15; color: var(--text); }
.ht-badge { align-self: flex-start; background: #161616; color: var(--green); font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 9px; }
.hm-coll {
  position: relative; flex: 0 0 auto; width: 134px; min-height: 108px; border-radius: 18px;
  padding: 12px; background: var(--bg-card); text-decoration: none;
  display: flex; flex-direction: column; justify-content: flex-end;
  box-shadow: 0 2px 12px rgba(30, 40, 10, .05);
}
.hc-emoji { position: absolute; top: 10px; left: 12px; font-size: 22px; }
.hc-get {
  position: absolute; top: 9px; right: 10px; font-size: 10px; font-weight: 800;
  background: var(--green); color: var(--green-ink); padding: 3px 6px; border-radius: 6px;
  transform: rotate(-8deg);
}
.hc-name { font-size: 14px; font-weight: 800; color: var(--text); }
.hc-sub { font-size: 11px; color: var(--text-3); margin-top: 2px; }

.hm-feature {
  position: relative; display: block; margin: 14px 0 4px; padding: 18px;
  min-height: 168px; border-radius: 22px; background: #161616; overflow: hidden;
  text-decoration: none; color: #fff;
}
.hf-date {
  position: absolute; left: 18px; top: 18px; display: flex; align-items: center; gap: 7px;
  background: var(--green); color: #16210a; border-radius: 11px; padding: 7px 11px;
}
.hf-date b { font-size: 21px; line-height: 1; font-weight: 900; }
.hf-date span { font-size: 10px; font-weight: 800; line-height: 1; }
.hf-strip { position: absolute; right: 14px; top: 14px; display: flex; flex-direction: column; gap: 4px; }
.hf-strip img { width: 64px; height: 45px; object-fit: cover; border-radius: 9px; opacity: .92; }
.hf-title { position: absolute; left: 18px; bottom: 52px; font-size: 24px; font-weight: 900; letter-spacing: -.6px; }
.hf-sub { position: absolute; left: 18px; bottom: 18px; display: flex; align-items: center; gap: 8px; font-size: 12px; color: #cfd4c6; }
.hf-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--green); }
.hf-tag { background: rgba(211, 247, 90, .16); color: var(--green); padding: 3px 9px; border-radius: 999px; font-size: 11px; }

.hm-filters { display: flex; gap: 6px; overflow-x: auto; padding: 14px 2px 12px; scrollbar-width: none; }
.hm-chip {
  flex: 0 0 auto; border: 0; background: transparent; color: var(--text-3);
  font-size: 14px; font-weight: 700; padding: 7px 13px; border-radius: 999px; cursor: pointer;
}
.hm-chip.on { background: #161616; color: #fff; }

/* ===== 首页：官方案例 / 用户作品 ===== */
.hm-sec { margin-top: 16px; }
.hm-sec-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 16px 6px; }
.hm-sec-head h3 { margin: 0; font-size: 15px; font-weight: 700; }
.hm-sec-head--sub { padding-top: 18px; }
.hm-sec-head--sub h4 { margin: 0; font-size: 15px; font-weight: 700; }
.hm-sec-head span { font-size: 11px; color: var(--text-2); }
.case-card .cc-cover { position: relative; background: linear-gradient(140deg, #eef6d8, #dff0b8); min-height: 130px; }
.case-card .cc-cover .cc-ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 34px; opacity: .55;
}
.case-card .cc-cover img,
.case-card .cc-cover video { position: relative; z-index: 1; width: 100%; display: block; object-fit: cover; }
.case-card .cc-cover video { aspect-ratio: 3 / 4; background: #000; }

/* ===== 首页：全部工作流弹层 ===== */
.hm-topic { cursor: pointer; }
.hm-topic:active { transform: scale(.97); }
.at-sheet {
  height: auto; max-height: calc(100dvh - 16px - var(--safe-b)); min-height: 60vh;
  display: flex; flex-direction: column;
  padding: 0 0 calc(10px + var(--safe-b)); overflow: hidden;
}
.at-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 4px; flex: none; }
.at-head .sh-close {
  flex: none; width: 30px; height: 30px; border: 0; border-radius: 50%;
  background: var(--bg-card-2); color: var(--text-2);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.at-head .sh-close svg { width: 16px; height: 16px; fill: currentColor; }
.at-title { font-size: 16px; font-weight: 700; }
.at-title span { margin-left: 6px; font-size: 11px; font-weight: 500; color: var(--text-2); }
.at-cats { display: flex; gap: 8px; overflow-x: auto; padding: 8px 18px 10px; flex: none; }
.at-cats::-webkit-scrollbar { display: none; }
.at-cat {
  flex: none; padding: 5px 13px; border-radius: 999px; font-size: 12px;
  border: 1px solid #e8ebdf; background: #fff; color: #7a8570;
}
.at-cat.on { background: #111; border-color: #111; color: #fff; }
.at-list {
  flex: 1; overflow-y: auto; column-count: 2; column-gap: 10px;
  padding: 2px 16px 12px; -webkit-overflow-scrolling: touch;
}
.at-card {
  break-inside: avoid; margin: 0 0 10px; padding: 8px 8px 11px;
  border: 1px solid #e8ebdf; border-radius: 16px; background: #fff;
}
.at-card:active { transform: scale(.98); }
.at-cover {
  display: flex; align-items: center; justify-content: center; margin-bottom: 8px;
  border-radius: 12px; background: linear-gradient(140deg, #eef6d8, #dff0b8);
  font-size: 26px;
}
.at-emoji { font-size: 22px; }
.at-name { padding: 0 2px; font-size: 13px; font-weight: 600; }
.at-sub { padding: 0 2px; margin-top: 3px; font-size: 10px; line-height: 1.35; color: var(--text-2); }
.at-go { padding: 0 2px; margin-top: 8px; font-size: 11px; font-weight: 600; color: #4a6b00; }
.at-tip { flex: none; padding: 9px 16px 0; border-top: 1px solid #f0f2ea; font-size: 11px; color: var(--text-2); text-align: center; }

.hm-feed { column-count: 2; column-gap: 10px; }
.hm-card {
  break-inside: avoid; margin: 0 0 10px; padding: 8px; border-radius: 18px;
  background: var(--bg-card); box-shadow: 0 2px 12px rgba(30, 40, 10, .05); cursor: pointer;
}
.hm-cover { position: relative; border-radius: 13px; overflow: hidden; background: linear-gradient(140deg, #eef6d8, #dff0b8); }
.hm-cover img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hm-cost {
  position: absolute; right: 6px; bottom: 6px; font-size: 10px; font-weight: 700;
  background: rgba(0, 0, 0, .62); color: #eafbbf; padding: 3px 8px; border-radius: 999px;
}
.hm-body { padding: 9px 4px 2px; }
.hm-name { font-size: 14px; font-weight: 800; color: var(--text); }
.hm-sub { font-size: 11px; color: var(--text-3); margin-top: 2px; line-height: 1.35; }
.hm-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; }
.hm-emoji { font-size: 13px; }
.hm-go { font-size: 11px; font-weight: 700; color: var(--green-ink); }
.hm-empty { display: none; padding: 34px 0; text-align: center; font-size: 13px; color: var(--text-3); }

/* ================= 视觉对齐设计稿（绿黄 · 大圆角 · 胶囊） ================= */
.hm-hello { padding: 2px 16px 12px; }
.hm-title-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 0 2px 12px;
}
.hm-title-row .hm-hi-title { margin-top: 0; }
.hm-hi { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); }
.hm-hi-dot { width: 16px; height: 16px; border-radius: 50%; background: linear-gradient(135deg, #e6ff9a, #9bd93a); }
.hm-hi-title { margin-top: 5px; font-size: 23px; font-weight: 900; letter-spacing: -.6px; color: var(--text); }

.hm-balance { background: #161616; color: #fff; box-shadow: none; }
.hm-coll {
  background: #fff; border: 1px solid var(--border); border-radius: 20px;
  box-shadow: 0 4px 14px rgba(28, 40, 12, .05);
}
.hc-get {
  background: var(--green); color: #16210a; border-radius: 999px;
  padding: 3px 8px; transform: none;
}
.hm-topic { border-radius: 20px; }

.hm-feature {
  background: linear-gradient(150deg, #f2ffc9, #c9f45f);
  color: var(--text); border-radius: 24px;
}
.hf-date { background: #161616; color: var(--green); border-radius: 12px; }
.hf-sub { color: #3f4a2a; }
.hf-dot { width: 15px; height: 15px; }
.hf-dot, .hf-tag { background: #161616; }
.hf-tag { color: var(--green); }

.hm-sec-head h3 { font-size: 16px; font-weight: 800; }
.case-card { border: 0; border-radius: 20px; box-shadow: 0 6px 18px rgba(28, 40, 12, .06); }
.case-card .cc-same { background: var(--green); color: #16210a; }

.tabbar {
  width: calc(100% - 24px); max-width: 456px; bottom: 10px;
  border-top: 0; border-radius: 26px;
  box-shadow: 0 10px 28px rgba(28, 40, 12, .14);
}
.tab-item { margin: 7px 10px; border-radius: 14px; transition: background .18s ease, color .18s ease; }
.tab-item.active { background: var(--green-soft); color: var(--green-ink); }
.tab-item.active span { color: var(--green-ink); font-weight: 700; }

/* ================= 点缀元素 & 背景渐变 ================= */
/* 首页顶部柔光渐变 */
.hm-page {
  background:
    radial-gradient(62% 46% at 10% -6%, rgba(211, 247, 90, .24) 0%, rgba(211, 247, 90, 0) 68%),
    radial-gradient(54% 40% at 98% 2%, rgba(185, 233, 63, .14) 0%, rgba(185, 233, 63, 0) 72%);
  background-repeat: no-repeat;
  background-size: 100% 520px;
}

/* 标题右侧：光斑 + 漂浮星星 */
.hm-hello { position: relative; }
.hm-hi, .hm-hi-title { position: relative; z-index: 1; }
.hm-hello::before {
  content: ""; position: absolute; right: 40px; top: 2px;
  width: 46px; height: 46px; border-radius: 50%; opacity: .5;
  background: radial-gradient(circle at 35% 35%, #f2ffd0, #dcf79a 75%);
}
.hm-hello::after {
  content: "✦"; position: absolute; right: 8px; top: 20px;
  font-size: 20px; color: #b9e93f;
  animation: floaty 3.2s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(12deg); }
  50% { transform: translateY(-5px) rotate(18deg); }
}

/* 创作合集：角落高光 */
.hm-topic { position: relative; overflow: hidden; }
.hm-topic::after {
  content: ""; position: absolute; right: -26px; bottom: -26px;
  width: 82px; height: 82px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0) 70%);
}

/* 大卡：柔光 + 底部描边圈 */
.hm-feature { position: relative; overflow: hidden; }
.hm-feature::before {
  content: ""; position: absolute; right: -40px; top: -50px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 65%);
}
.hm-feature::after {
  content: ""; position: absolute; left: -34px; bottom: -78px;
  width: 180px; height: 180px; border-radius: 50%;
  border: 14px solid rgba(22, 22, 22, .06);
}
.hf-date, .hf-strip, .hf-title, .hf-sub { z-index: 1; }

/* 分区标题前的绿色小点 */
.hm-sec-head h3::before {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px;
  border-radius: 50%; background: #b9e93f; vertical-align: 3px;
}

/* 工作流卡片封面：柔光高光 */
.at-cover { position: relative; overflow: hidden; }
.at-cover::after {
  content: ""; position: absolute; right: -18px; top: -18px;
  width: 56px; height: 56px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 70%);
}

/* 大卡右侧：3 个案例缩略图 */
.hf-shot {
  position: relative; width: 64px; height: 45px; border-radius: 9px; overflow: hidden;
  background: rgba(255, 255, 255, .55); display: grid; place-items: center; cursor: pointer;
}
.hf-shot img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.hf-shot-ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 16px; opacity: .55; }
.hf-shot::after {
  content: "▶"; position: absolute; right: 4px; bottom: 3px; z-index: 2;
  font-size: 8px; line-height: 1; color: #fff; padding: 2px 3px; border-radius: 4px;
  background: rgba(22, 22, 22, .45);
}

/* 案例视频弹层 */
.hv-sheet { padding-bottom: max(16px, var(--safe-b)); }
.hv-media {
  position: relative; margin: 16px 16px 12px; border-radius: 16px; overflow: hidden;
  background: #eef3e2; aspect-ratio: 4 / 3;
}
.hv-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hv-media video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }

/* 弹层与屏幕 / 应用框对齐：桌面预览时只覆盖 480 宽的应用区域，并始终居中对齐底部 */
.sheet-mask {
  left: 50%; right: auto; transform: translateX(-50%);
  width: 100%; max-width: 480px;
}
.sheet-mask .case-sheet, .sheet-mask .profile-sheet { max-width: 100%; }

/* 居中弹窗（重命名等轻量交互） */
.sheet-mask.center-mask { align-items: center; padding: 24px; }
.center-mask .case-sheet {
  width: 100%; max-width: 330px; border-radius: 22px;
  padding: 18px 18px calc(18px + var(--safe-b));
  animation: popIn .2s ease;
}
/* 资产选择：居中弹窗，内容区独立滚动 */
.center-mask .lib-pick-sheet {
  width: 100%; max-width: 380px; max-height: 74vh;
  display: flex; flex-direction: column;
  padding: 16px 16px calc(14px + var(--safe-b));
}
.center-mask .lib-pick-grid {
  grid-template-columns: repeat(3, 1fr);
  max-height: none; flex: 1; overflow-y: auto;
}
@keyframes popIn {
  from { transform: scale(.94); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ================= 个人中心弹窗 / 账号 / 分享 / 公开作品 ================= */
.avatar-empty {
  width: 100%; height: 100%; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; font-weight: 700; color: var(--text-2);
  background: var(--bg-card-2);
}
.sr-new {
  font-size: 9px; font-weight: 700; color: #fff; background: #ff5a3c;
  padding: 1px 5px; border-radius: 999px; margin-right: 4px;
}

/* 登录 / 注册 */
.login-subtabs {
  display: flex; justify-content: center; gap: 26px;
  margin: 0 0 18px; font-size: 13px; color: var(--text-3);
}
.login-subtabs span { padding: 4px 2px; cursor: pointer; border-bottom: 2px solid transparent; }
.login-subtabs span.on { color: var(--text); font-weight: 700; border-color: var(--green-2, #7fd11e); }
.login-links { text-align: center; margin-top: 14px; font-size: 13px; }
.login-links a { color: var(--text-2); text-decoration: none; }
.code-row { display: flex; align-items: stretch; gap: 10px; width: 100%; margin-bottom: 14px; }
.code-row .login-input { flex: 1; min-width: 0; margin-bottom: 0; }
.code-row .code-btn { height: auto; flex: none; padding: 0 14px; white-space: nowrap; }
.code-btn {
  flex: none; height: 44px; padding: 0 12px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--bg-card-2);
  font-size: 12px; color: var(--text); cursor: pointer;
}
.code-btn:disabled { opacity: .55; }

/* 个人中心弹窗 */
/* 底部上滑弹层，与工作流创作弹层一致：固定面板高度，内容区内部滚动 */
.mine-mask .mine-sheet {
  width: 100%; max-width: 100%;
  height: 82vh; max-height: 82vh;
  height: 82dvh; max-height: 82dvh;   /* 移动端动态视口，避免被地址栏裁切 */
  display: flex; flex-direction: column;
  padding: 0; border-radius: 24px 24px 0 0; overflow: hidden;
  animation: sheetUp .28s ease;
}
.mine-sheet .lib-pick-head {
  padding: 16px 18px 12px; border-bottom: 1px solid var(--border); flex: none;
}
.mine-sheet .sh-close {
  width: 30px; height: 30px; border: none; background: none; padding: 0;
  color: var(--text-2); cursor: pointer;
}
.mine-sheet .sh-close svg { width: 18px; height: 18px; fill: currentColor; }
.mine-sheet-body {
  flex: 1 1 auto; min-height: 0;
  padding: 14px 18px calc(18px + var(--safe-b));
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
/* 固定高面板里空列表居中显示，避免顶部一小行、下方大片留白 */
.mine-sheet-body > .empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 100%; box-sizing: border-box; padding: 0 20px;
}
.mset-loading, .mset-tip { font-size: 12px; color: var(--text-2); padding: 10px 0; line-height: 1.7; }
.mset-tip.err { color: #e5484d; }
.mset-field { margin-bottom: 12px; }
.mset-field label { display: block; font-size: 11px; color: var(--text-3); margin-bottom: 6px; }
.mset-field input, .mset-field textarea {
  width: 100%; border: 1px solid var(--border); background: var(--bg-card);
  border-radius: 12px; padding: 12px 12px; font-size: 14px; font-family: inherit;
  color: var(--text); outline: none;
}
.mset-field textarea { min-height: 88px; resize: vertical; }
.mset-divider {
  display: flex; align-items: center; gap: 10px;
  margin: 20px 0 14px; font-size: 11px; color: var(--text-3);
}
.mset-divider::before, .mset-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}
/* 设置：头像行 + 分区标题 */
.mset-avatar-row {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 16px; padding: 14px;
  border: 1px solid var(--border); border-radius: 16px;
  background: var(--bg-card); cursor: pointer;
}
.mset-avatar {
  width: 56px; height: 56px; border-radius: 50%; overflow: hidden; flex: none;
  background: var(--bg-card-2); display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; color: var(--text-2);
}
.mset-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mset-avatar-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mset-avatar-info b { font-size: 13px; font-weight: 700; color: var(--text); }
.mset-avatar-info span { font-size: 11px; color: var(--text-3); }
.mset-avatar-arrow { flex: none; color: var(--text-3); font-size: 20px; line-height: 1; }
.mset-sec { margin: 20px 0 12px; font-size: 13px; font-weight: 800; color: var(--text); }
.mset-field .code-row { margin-bottom: 0; }
/* 设置弹层高度自适应，避免底部大片留白 */
.mine-mask .mine-sheet.settings-sheet {
  height: auto;
  max-height: calc(100dvh - 16px - var(--safe-b));
}

/* 作品 / 收藏网格 */
.won-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.won-card { background: var(--bg-card-2); border-radius: 14px; overflow: hidden; cursor: pointer; padding-bottom: 8px; }
.won-del {
  position: absolute; right: 6px; top: 6px; border: none; cursor: pointer;
  padding: 3px 9px; border-radius: 999px; font-size: 11px; line-height: 1.6;
  background: rgba(0,0,0,.45); color: #fff; backdrop-filter: blur(2px);
}
.won-del:active { background: rgba(0,0,0,.62); }
.won-thumb {
  position: relative; aspect-ratio: 1 / 1; background: #e6ecd8;
  display: flex; align-items: center; justify-content: center; font-size: 26px;
}
.won-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.won-name { font-size: 12.5px; font-weight: 600; margin: 7px 9px 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.won-sub { font-size: 10.5px; color: var(--text-3); margin: 0 9px; }
.won-unfav {
  position: absolute; right: 6px; top: 6px; width: 26px; height: 26px; border-radius: 50%;
  border: none; background: rgba(0,0,0,.45); color: #ffd43b; font-size: 14px; cursor: pointer;
}

/* 素材弹窗 */
.lib-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.lib-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.lib-card { background: var(--bg-card-2); border-radius: 12px; overflow: hidden; cursor: pointer; }
.lc-thumb { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; background: #e6ecd8; }
.lc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lc-ic { font-size: 24px; }
.lc-name { font-size: 10.5px; padding: 6px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 账单 */
.bill-list { display: flex; flex-direction: column; }
.bill-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 2px; border-bottom: 1px solid var(--border); }
.bill-row:last-child { border-bottom: none; }
.bill-title { font-size: 13.5px; font-weight: 600; }
.bill-sub { font-size: 10.5px; color: var(--text-3); margin-top: 3px; }
.bill-amt { font-size: 15px; font-weight: 700; flex: none; }
.bill-amt.in { color: #1f9d55; }
.bill-amt.out { color: var(--text); }
.bill-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.bill-pay { height: 26px; padding: 0 11px; border-radius: 13px; border: 1px solid #2f3f10; background: #2f3f10; color: #eaffb6; font-size: 12px; font-weight: 600; }
.bill-pay:disabled { opacity: .6; }

/* 回收站入口：两张纵向卡片（图标 + 说明） */
.recycle-entries { display: flex; flex-direction: column; gap: 10px; }
.recycle-entry {
  display: flex; align-items: center; gap: 12px;
  width: 100%; min-height: 64px; padding: 14px;
  border: 1px solid var(--border); border-radius: 16px;
  background: var(--bg-card); color: var(--text);
  font-family: inherit; text-align: left; cursor: pointer;
}
.recycle-entry:active { background: var(--green-soft); }
.rc-icon {
  width: 40px; height: 40px; flex: none; border-radius: 12px;
  background: var(--green-soft); color: var(--green-ink);
  display: flex; align-items: center; justify-content: center;
}
.rc-icon svg { width: 20px; height: 20px; fill: currentColor; }
.rc-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rc-text b { font-size: 14px; font-weight: 700; }
.rc-text i { font-style: normal; font-size: 11px; color: var(--text-3); }
.rc-arrow { flex: none; color: var(--text-3); font-size: 20px; line-height: 1; }
/* 回收站入口内容少，面板高度自适应，避免大片留白 */
.mine-mask .mine-sheet.recycle-sheet {
  height: auto;
  max-height: calc(100dvh - 16px - var(--safe-b));
}

/* 客服 */
.contact-card { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: var(--bg-card-2); }
.contact-avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  background: #07c160; color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.contact-info { flex: 1; min-width: 0; }
.contact-name { font-size: 13px; font-weight: 700; }
.contact-id { font-size: 13px; color: var(--green-ink); font-weight: 700; letter-spacing: .3px; margin-top: 2px; }
/* 微信号复制行 */
.contact-copy {
  display: flex; align-items: center; gap: 10px;
  margin-top: 12px; padding: 12px 14px;
  border: 1px dashed var(--border); border-radius: 14px; background: var(--bg-card);
}
.cc-label { flex: none; font-size: 11px; color: var(--text-3); }
.cc-value {
  flex: 1; min-width: 0;
  font-size: 16px; font-weight: 800; letter-spacing: .4px; color: var(--green-ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.cc-btn {
  flex: none; min-height: 38px; padding: 0 16px; border: 0; border-radius: 999px;
  background: var(--green); color: #1b2300;
  font-family: inherit; font-size: 12px; font-weight: 700; cursor: pointer;
}
.cc-btn:active { background: var(--green-2); }
/* 客服弹层内容少，高度自适应 */
.mine-mask .mine-sheet.contact-sheet {
  height: auto;
  max-height: calc(100dvh - 16px - var(--safe-b));
}

/* 协议 / 推广 */
.agree-body h4 { font-size: 13px; margin: 14px 0 6px; color: var(--text); }
.agree-body h3 { font-size: 13px; font-weight: 700; margin: 18px 0 6px; color: var(--text); }
.agree-body h3:first-of-type { margin-top: 12px; }
.agree-body p { font-size: 12px; line-height: 1.85; color: var(--text-2); margin: 0 0 8px; }
.agree-body b { color: var(--text); font-weight: 600; }
.agree-body .ag-upd { font-size: 11px; color: var(--text-3); margin-bottom: 10px; }
.agree-body .ag-pre { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; margin-bottom: 4px; }
.agree-body .ag-list { margin: 2px 0 10px; padding-left: 18px; font-size: 12px; line-height: 1.85; color: var(--text-2); }
.agree-body .ag-list li { margin-bottom: 2px; }
.agree-body .ag-footer { margin-top: 18px; text-align: center; font-size: 11px; color: var(--text-3); }
.agree-link { text-align: center; font-size: 11px; color: var(--text-3); margin-top: 12px; cursor: pointer; }
.agree-link a { color: var(--text-2); text-decoration: underline; cursor: pointer; }
.promo-banner {
  border-radius: 16px; padding: 18px 16px; margin-bottom: 16px;
  background: linear-gradient(135deg, #ffe9c9, #ffd0a1);
  color: #7a4a12; font-size: 14px; font-weight: 700; line-height: 1.5;
}
.promo-rules { margin: 12px 0 0; padding-left: 18px; font-size: 12px; color: var(--text-2); line-height: 1.9; }

/* 分享 */
.share-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 8px; padding: 6px 0 4px; }
.share-item {
  border: none; background: none; cursor: pointer; padding: 0;
  display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 11px; color: var(--text-2);
}
.share-badge {
  width: 46px; height: 46px; border-radius: 50%; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 700;
}
.share-url {
  margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--bg-card-2);
  font-size: 11px; color: var(--text-2); word-break: break-all;
}
/* 分享面板内容少，高度自适应 */
.mine-mask .mine-sheet.share-sheet {
  height: auto;
  max-height: calc(100dvh - 16px - var(--safe-b));
}

/* 充值 */
.recharge-balance {
  border-radius: 16px; padding: 14px 16px; margin-bottom: 12px;
  background: linear-gradient(135deg, #f0ffd9, #dcf7bd);
}
.recharge-balance > div:first-child { display: flex; align-items: baseline; gap: 8px; }
.recharge-balance span { font-size: 11px; color: var(--text-2); }
.recharge-balance b { font-size: 24px; }
.rb-tip { font-size: 10.5px; color: var(--text-2); margin-top: 4px; }
.recharge-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.recharge-card {
  border: 1.5px solid var(--border); background: var(--bg-card); border-radius: 14px;
  padding: 14px 10px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; align-items: center;
}
.recharge-card b { font-size: 19px; }
.recharge-card span { font-size: 10.5px; color: var(--text-2); }
.recharge-card.on { border-color: var(--green-2, #7fd11e); background: #f4ffe6; }
.recharge-custom { display: flex; gap: 8px; margin-top: 10px; }
.recharge-custom input {
  flex: 1; height: 44px; padding: 0 12px; border-radius: 12px;
  border: 1.5px solid var(--border); background: var(--bg-card);
  font-size: 14px; color: var(--text-1); outline: none;
}
.recharge-custom input:focus { border-color: var(--green-2, #7fd11e); }
.recharge-custom button {
  height: 44px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--border);
  background: var(--bg-card); font-size: 13px; font-weight: 600; color: var(--text-1); cursor: pointer;
}
.recharge-benefits { border: 1px solid var(--border); background: var(--bg-card); border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; }
.recharge-benefits.empty { color: var(--text-2); font-size: 12px; line-height: 1.6; }
.recharge-benefits-title { font-size: 13px; font-weight: 700; color: var(--text-1); margin-bottom: 8px; }
.recharge-benefits-list { display: flex; flex-direction: column; gap: 7px; }
.recharge-benefits-list > div { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--text-2); line-height: 1.5; }
.recharge-benefits-list i { width: 6px; height: 6px; border-radius: 50%; background: var(--green-2, #7fd11e); flex: none; margin-top: 6px; }

/* 作品中心 tab / 精选作品 */
.works-tabs {
  display: flex; gap: 20px; padding: 4px 2px 12px;
  font-size: 14px; color: var(--text-3);
}
.works-tabs span { padding: 4px 1px; cursor: pointer; border-bottom: 2px solid transparent; }
.works-tabs span.on { color: var(--text); font-weight: 700; border-color: var(--green-2, #7fd11e); }
.pub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pub-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; cursor: pointer; }
.pub-thumb {
  position: relative; aspect-ratio: 1 / 1; background: #e6ecd8;
  display: flex; align-items: center; justify-content: center; font-size: 26px;
}
.pub-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pub-fav {
  position: absolute; right: 6px; bottom: 6px; border: none; border-radius: 999px;
  background: rgba(0,0,0,.48); color: #fff; font-size: 11px; padding: 4px 8px; cursor: pointer;
}
.pub-fav.on { color: #ffd43b; }
.pub-name { font-size: 12.5px; font-weight: 600; margin: 7px 9px 2px; }
.pub-sub { font-size: 10.5px; color: var(--text-3); margin: 0 9px 8px; }

/* 作品预览 / 详情 */
.wp-media { border-radius: 14px; overflow: hidden; background: #e6ecd8; max-height: 52vh; overflow-y: auto; }
.wp-media img, .wp-media video { display: block; width: 100%; }
.wp-media audio { width: 100%; display: block; padding: 12px 0; }
.wp-meta { font-size: 11.5px; color: var(--text-3); margin: 10px 2px 0; }
.pw-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 12px; }
.pw-grid img { width: 100%; border-radius: 12px; display: block; }
.pw-media { margin: 12px; border-radius: 16px; overflow: hidden; background: #000; }
.pw-media video { width: 100%; display: block; }
.pw-media audio { width: 100%; display: block; padding: 14px 0; background: #fff; }
.pw-meta { padding: 4px 16px 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pw-author { display: flex; align-items: center; gap: 10px; }
.pw-author img, .pw-avatar {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover; display: block;
  background: var(--bg-card-2); color: var(--text-2);
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.pw-name { font-size: 13px; font-weight: 700; }
.pw-time { font-size: 10.5px; color: var(--text-3); }
.pw-tool { font-size: 11px; color: var(--text-2); background: var(--bg-card-2); padding: 4px 10px; border-radius: 999px; }
#pwBody .result-actions { display: flex; gap: 8px; padding: 16px; }
#pwBody .result-actions .btn { flex: 1; }

/* ================= 推广赚钱（全部作用域限定，避免影响其它页面） ================= */
.promo-page {
  background: var(--bg);
}
.promo-page .promo-body {
  padding: 0 14px calc(24px + var(--safe-b));
  display: flex; flex-direction: column; gap: 12px;
}
.promo-page .promo-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 18px; padding: 14px; box-shadow: 0 6px 18px rgba(28, 40, 12, .04);
  scroll-margin-top: 64px;
}
.promo-page .promo-sec-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 10px;
}
.promo-page .promo-sec-title {
  display: flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 700; color: var(--text);
}
.promo-page .sec-bar {
  width: 3px; height: 14px; border-radius: 2px; flex: none;
  background: var(--green-2);
}
.promo-page .promo-sec-sub { font-size: 11px; color: var(--text-3); flex: none; }

/* 顶部渐变头图 + 个人卡 */
.promo-page .promo-hero-wrap {
  position: relative; overflow: hidden;
  margin: 0 -14px; padding: 16px 14px 24px;
  background: linear-gradient(165deg, var(--bg) 0%, var(--green-soft) 100%);
  border-radius: 0 0 26px 26px;
}
.promo-page .ph-deco { position: absolute; border-radius: 50%; pointer-events: none; }
.promo-page .ph-deco-1 {
  width: 168px; height: 168px; right: -44px; top: -66px;
  background: radial-gradient(circle at 32% 32%, rgba(211,247,90,.5), rgba(211,247,90,0));
}
.promo-page .ph-deco-2 {
  width: 96px; height: 96px; left: -28px; bottom: -36px;
  background: radial-gradient(circle at 40% 40%, rgba(15,159,134,.12), rgba(15,159,134,0));
}
.promo-page .ph-wave {
  position: absolute; left: -12%; right: -12%; bottom: -48px; height: 84px;
  border-radius: 50%; background: rgba(211,247,90,.5); pointer-events: none;
}
.promo-page .promo-profile {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 10px;
  padding: 12px; border-radius: 20px;
  background: rgba(255,255,255,.88);
  border: 1px solid var(--border);
  box-shadow: 0 8px 20px rgba(28, 40, 12, .06);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.promo-page .pp-avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: none; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, var(--green-soft), #e2f5b0);
  color: var(--green-ink); font-size: 18px; font-weight: 800;
}
.promo-page .pp-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.promo-page .pp-info { flex: 1; min-width: 0; }
.promo-page .pp-name {
  font-size: 15px; font-weight: 800; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.promo-page .pp-meta { margin-top: 5px; display: flex; align-items: center; gap: 6px; }
.promo-page .pp-pid {
  display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px;
  background: var(--green-soft); color: var(--green-ink);
  font-size: 10px; font-weight: 700; letter-spacing: .3px;
  font-variant-numeric: tabular-nums;
}
.promo-page .pp-pid.muted { background: rgba(154, 161, 144, .16); color: var(--text-3); }
.promo-page .pp-invite {
  flex: none; border: none; border-radius: 999px; padding: 8px 13px;
  background: var(--green); color: var(--text);
  font-size: 12px; font-weight: 700; font-family: inherit; cursor: pointer;
  box-shadow: 0 6px 14px rgba(185, 233, 63, .3);
}
.promo-page .pp-invite:active { transform: scale(.97); }

/* 主收益卡（深橄榄 + 柠檬绿光斑 + 橙色今日卡） */
.promo-page .promo-earn {
  position: relative; overflow: hidden; border-radius: 20px; padding: 16px;
  background: radial-gradient(110% 110% at 82% 0%, rgba(211,247,90,.28), transparent 58%),
              linear-gradient(150deg, #2b311d, #161a0f);
  color: #f4ffdd; box-shadow: 0 16px 30px rgba(28, 40, 12, .22);
  scroll-margin-top: 64px;
}
.promo-page .promo-earn::after {
  content: ""; position: absolute; width: 160px; height: 160px; border-radius: 50%;
  right: -52px; top: -64px; pointer-events: none;
  background: radial-gradient(circle, rgba(211,247,90,.22), rgba(211,247,90,0));
}
.promo-page .pe-top { position: relative; z-index: 1; display: flex; align-items: flex-start; gap: 10px; }
.promo-page .pe-main { flex: 1; min-width: 0; }
.promo-page .pe-label { font-size: 12px; color: rgba(234,246,200,.75); }
.promo-page .pe-amount {
  margin: 3px 0 10px; font-size: 28px; font-weight: 800; letter-spacing: -.5px;
  color: var(--green);
  font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.promo-page .pe-sub { display: flex; gap: 18px; }
.promo-page .pe-sub > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.promo-page .pe-sub span { font-size: 10.5px; color: rgba(234,246,200,.75); }
.promo-page .pe-sub b { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.promo-page .pe-today {
  flex: none; min-width: 90px; padding: 9px 10px; border-radius: 14px;
  background: linear-gradient(150deg, #ffb46b, #f08a2e);
  color: #4a2600;
  box-shadow: 0 8px 16px rgba(240, 138, 46, .26);
}
.promo-page .pe-today span { display: block; font-size: 10.5px; color: #4a2600; }
.promo-page .pe-today b { display: block; margin: 2px 0; font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.promo-page .pe-today small { font-size: 9.5px; color: rgba(74, 38, 0, .65); }
.promo-page .pe-btn {
  position: relative; z-index: 1; width: 100%; margin-top: 14px; padding: 11px;
  border: none; border-radius: 13px; background: var(--green); color: #1c230f;
  font-size: 14px; font-weight: 800; font-family: inherit; cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.promo-page .pe-btn:active { transform: scale(.99); }
.promo-page .pe-btn:disabled {
  background: rgba(211,247,90,.22); color: rgba(244,255,221,.6); cursor: not-allowed; transform: none;
}

/* 我的工作台 */
.promo-page .wb-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px 6px;
}
.promo-page .wb-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  min-width: 0; padding: 0; border: none; background: none;
  font-family: inherit; cursor: pointer;
}
.promo-page .wb-ic {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s ease;
}
.promo-page .wb-ic svg { width: 20px; height: 20px; }
.promo-page .wb-item:active .wb-ic { transform: scale(.94); }
.promo-page .wb-label {
  font-size: 10.5px; color: var(--text-2);
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 浅色图标底色：柠檬绿 → 橙 → 蓝 → 紫 循环 */
.promo-page .tone-a { background: var(--green-soft); color: var(--green-ink); }
.promo-page .tone-b { background: #ffe7cf; color: #b35c00; }
.promo-page .tone-c { background: #e6ecff; color: var(--blue); }
.promo-page .tone-d { background: #efe9ff; color: var(--purple); }

/* KPI 2 列小卡 */
.promo-page .promo-kpi-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 2px 2px 0;
}
.promo-page .promo-kpi { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.promo-page .kpi-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 18px; padding: 12px; min-width: 0;
  box-shadow: 0 6px 18px rgba(28, 40, 12, .04);
}
.promo-page .kpi-top { display: flex; align-items: center; gap: 7px; }
.promo-page .kpi-ic {
  width: 28px; height: 28px; border-radius: 9px; flex: none;
  display: flex; align-items: center; justify-content: center;
}
.promo-page .kpi-ic svg { width: 16px; height: 16px; }
.promo-page .kpi-label {
  flex: 1; min-width: 0; font-size: 11px; color: var(--text-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.promo-page .kpi-up {
  margin-left: auto; flex: none; font-style: normal;
  font-size: 10px; color: var(--green-ink);
  background: var(--green-soft); border-radius: 999px; padding: 1px 5px;
}
.promo-page .kpi-num {
  display: block; margin-top: 8px; font-size: 22px; font-weight: 800;
  color: var(--text); font-variant-numeric: tabular-nums;
}

/* 环形图（收益构成） */
.promo-page .promo-donut-wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.promo-page .promo-unit-tip { flex: 0 0 100%; color: var(--text-3); font-size: 10.5px; line-height: 1.55; }
.promo-page .promo-donut { width: 124px; height: 124px; flex: none; }
.promo-page .promo-legend { flex: 1; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.promo-page .pl-item {
  padding: 8px 10px; border-radius: 12px; background: var(--bg-card-2);
  display: flex; flex-direction: column; gap: 4px;
}
.promo-page .pl-top { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-2); }
.promo-page .pl-top em {
  margin-left: auto; font-style: normal; font-size: 10.5px;
  color: var(--text-3); font-variant-numeric: tabular-nums;
}
.promo-page .pl-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.promo-page .pl-item b {
  font-size: 14px; font-weight: 800; color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* 佣金完成统计三环 */
.promo-page .promo-rings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.promo-page .promo-ring-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 8px 2px 10px; border-radius: 14px; background: var(--bg-card-2);
  min-width: 0;
}
.promo-page .promo-ring { width: 62px; height: 62px; display: block; }
.promo-page .promo-ring-label { font-size: 11px; color: var(--text-2); white-space: nowrap; }
.promo-page .promo-ring-val {
  font-size: 11px; font-weight: 700; color: var(--text);
  font-variant-numeric: tabular-nums; white-space: nowrap;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}

/* 趋势图 */
.promo-page .promo-range { display: flex; gap: 6px; flex: none; }
.promo-page .promo-range button {
  border: 1px solid var(--border); background: var(--bg-card);
  color: var(--text-2); font-size: 11px; font-family: inherit;
  padding: 4px 10px; border-radius: 999px; cursor: pointer;
}
.promo-page .promo-range button.on {
  background: var(--green); border-color: var(--green);
  color: var(--text); font-weight: 700;
}
.promo-page .promo-chart-head {
  display: flex; justify-content: space-between;
  font-size: 10.5px; color: var(--text-3); margin-bottom: 6px;
}
.promo-page .promo-chart-head b {
  color: var(--green-ink); background: var(--green-soft);
  border-radius: 999px; padding: 1px 6px; font-variant-numeric: tabular-nums;
}
.promo-page .promo-chart { height: 150px; }
.promo-page .promo-chart svg { width: 100%; height: 100%; display: block; }
.promo-page .promo-chart-axis {
  display: flex; justify-content: space-between;
  font-size: 10px; color: var(--text-3); margin-top: 4px;
}

/* 推广转化 */
.promo-page .pf-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.promo-page .pf-card {
  display: flex; flex-direction: column; gap: 3px;
  padding: 10px 8px; border-radius: 14px; min-width: 0;
}
.promo-page .pf-label { font-size: 11px; }
.promo-page .pf-card b {
  font-size: 18px; font-weight: 800; color: var(--text);
  font-variant-numeric: tabular-nums;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.promo-page .pf-card small {
  font-size: 9.5px; color: var(--text-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.promo-page .pf-conv { display: flex; gap: 8px; margin-top: 10px; }
.promo-page .pf-pill {
  flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 4px;
  padding: 7px 8px; border-radius: 10px; background: var(--green-soft);
  font-size: 10.5px; color: var(--green-ink); white-space: nowrap; overflow: hidden;
}
.promo-page .pf-pill + .pf-pill { background: #ffe7cf; color: #b35c00; }
.promo-page .pf-pill b { color: inherit; font-variant-numeric: tabular-nums; }

@media (max-width: 359px) {
  .promo-page .pe-amount { font-size: 25px; }
  .promo-page .wb-label { font-size: 10px; }
  .promo-page .kpi-label { font-size: 10.5px; }
  .promo-page .pf-pill { font-size: 10px; padding: 7px 6px; }
}

/* TOP 列表 */
.promo-page .promo-top { display: flex; flex-direction: column; }
.promo-page .pt-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid var(--border);
  font-size: 12.5px;
}
.promo-page .pt-row:last-child { border-bottom: none; }
.promo-page .pt-rank {
  width: 18px; height: 18px; border-radius: 6px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-card-2); color: var(--text-3);
  font-size: 10.5px; font-weight: 700;
}
.promo-page .pt-row:first-child .pt-rank {
  background: var(--green-soft); color: var(--green-ink);
}
.promo-page .pt-name {
  flex: 1; min-width: 0; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.promo-page .pt-val {
  flex: none; font-size: 11.5px; color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

/* 推广物料 */
.promo-page .promo-pid {
  display: inline-flex; align-items: center;
  padding: 3px 9px; border-radius: 999px;
  background: var(--green-soft); color: var(--green-ink);
  font-size: 10.5px; font-weight: 700; letter-spacing: .4px;
  font-variant-numeric: tabular-nums;
}
.promo-page .promo-link-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px dashed var(--border);
}
.promo-page .promo-link-row:last-of-type { border-bottom: none; }
.promo-page .plr-info { flex: 1; min-width: 0; }
.promo-page .plr-label { font-size: 12px; font-weight: 600; color: var(--text); }
.promo-page .plr-url {
  margin-top: 2px; font-size: 10.5px; color: var(--text-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.promo-page .promo-copy {
  flex: none; border: 1px solid var(--border); background: var(--bg-card);
  color: var(--text); font-size: 11px; font-family: inherit; font-weight: 600;
  padding: 6px 12px; border-radius: 10px; cursor: pointer;
}
.promo-page .promo-copy:disabled { opacity: .45; cursor: not-allowed; }
.promo-page .promo-share {
  width: 100%; margin-top: 10px; padding: 12px;
  border: none; border-radius: 14px;
  background: var(--green);
  color: var(--text); font-size: 14px; font-weight: 800; font-family: inherit;
  cursor: pointer;
}
.promo-page .promo-share:disabled { opacity: .45; cursor: not-allowed; }
.promo-page .promo-words {
  margin-top: 10px; padding: 12px; border-radius: 12px;
  background: var(--bg-card-2); font-size: 12px;
  line-height: 1.7; color: var(--text-2); word-break: break-all;
}
.promo-page .promo-words b { color: var(--text); }

/* 作品收益 */
.promo-page .promo-works { display: flex; flex-direction: column; gap: 10px; }
.promo-page .pw-card {
  display: flex; gap: 10px; padding: 10px;
  border-radius: 14px; background: var(--bg-card-2);
}
.promo-page .pw-cover {
  width: 64px; height: 64px; border-radius: 10px; flex: none;
  overflow: hidden; background: linear-gradient(140deg, var(--green-soft), #e2f5b0);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--green-ink);
}
.promo-page .pw-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.promo-page .pw-info { flex: 1; min-width: 0; }
.promo-page .pw-title-row { display: flex; align-items: center; gap: 6px; }
.promo-page .pw-name {
  font-size: 13px; font-weight: 700; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.promo-page .pw-stats {
  display: flex; flex-wrap: wrap; gap: 3px 12px;
  margin-top: 7px; font-size: 10.5px; color: var(--text-3);
}
.promo-page .pw-stats b { color: var(--text); font-variant-numeric: tabular-nums; }

/* 状态徽标（页面与提现弹窗共用） */
.promo-page .promo-badge,
.promo-wd-sheet .promo-badge {
  flex: none; font-size: 9.5px; font-weight: 700;
  padding: 1px 6px; border-radius: 999px;
  background: var(--green-soft); color: var(--green-ink);
}
.promo-page .promo-badge.review,
.promo-wd-sheet .promo-badge.review,
.promo-page .promo-badge.pending,
.promo-wd-sheet .promo-badge.pending { background: #fff4d6; color: #a57300; }
.promo-page .promo-badge.offline,
.promo-wd-sheet .promo-badge.offline { background: #f0f0ec; color: var(--text-3); }
.promo-page .promo-badge.frozen,
.promo-wd-sheet .promo-badge.frozen { background: #ffe3e5; color: var(--danger); }

/* 收益明细 */
.promo-page .promo-filters {
  display: flex; gap: 6px; overflow-x: auto;
  padding-bottom: 2px; margin-bottom: 8px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.promo-page .promo-filters::-webkit-scrollbar { display: none; }
.promo-page .promo-chip {
  flex: none; border: 1px solid var(--border); background: var(--bg-card);
  color: var(--text-2); font-size: 11.5px; font-family: inherit;
  padding: 5px 12px; border-radius: 999px; white-space: nowrap; cursor: pointer;
}
.promo-page .promo-chip.on {
  background: var(--green-soft); border-color: var(--green-2);
  color: var(--green-ink); font-weight: 700;
}
.promo-page .promo-rec { display: flex; flex-direction: column; }
.promo-page .promo-rec-row { padding: 10px 0; border-bottom: 1px solid var(--border); }
.promo-page .promo-rec-row:last-child { border-bottom: none; }
.promo-page .prr-top { display: flex; align-items: center; gap: 8px; }
.promo-page .prr-title {
  flex: 1; min-width: 0; font-size: 13px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.promo-page .prr-amt {
  flex: none; font-size: 15px; font-weight: 800; color: var(--green-ink);
  font-variant-numeric: tabular-nums;
}
.promo-page .prr-sub {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 3px 10px; margin-top: 4px;
  font-size: 10.5px; color: var(--text-3);
}
.promo-page .prr-order {
  font-variant-numeric: tabular-nums; cursor: pointer;
  text-decoration: underline dotted;
}
.promo-page .promo-more {
  display: block; width: 100%; margin-top: 10px; padding: 9px;
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--bg-card); color: var(--text-2);
  font-size: 12px; font-family: inherit; cursor: pointer;
}

/* 空态 / 错误 / 重试 */
.promo-page .promo-empty {
  padding: 26px 8px; text-align: center;
  font-size: 12px; color: var(--text-3);
}
.promo-page .promo-error {
  text-align: center; font-size: 12px; color: var(--text-2); line-height: 1.8;
}
.promo-page .promo-retry {
  margin-top: 10px; border: 1px solid var(--border);
  background: var(--bg-card-2); color: var(--text);
  padding: 8px 18px; border-radius: 10px;
  font-size: 12px; font-family: inherit; cursor: pointer;
}

/* 提现中心弹窗（mineSheet 内） */
.promo-wd-sheet .wd-balance {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 14px; margin-bottom: 14px;
  border-radius: 16px;
  background: linear-gradient(140deg, var(--green-soft), var(--bg-card-2));
}
.promo-wd-sheet .wd-balance > div { display: flex; flex-direction: column; gap: 2px; }
.promo-wd-sheet .wd-balance span { font-size: 11px; color: var(--text-3); }
.promo-wd-sheet .wd-balance b {
  font-size: 24px; font-weight: 800; color: var(--text);
  font-variant-numeric: tabular-nums;
}
.promo-wd-sheet .wd-gate {
  flex: none; font-size: 11px; color: var(--green-ink);
  background: rgba(255,255,255,.7); padding: 4px 10px; border-radius: 999px;
}
.promo-wd-sheet .wd-links {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: -2px 0 14px;
}
.promo-wd-sheet .wd-link {
  display: flex; flex-direction: column; gap: 4px; padding: 12px;
  border: 1px solid var(--border); border-radius: 14px;
  background: var(--bg-card-2); text-align: left; cursor: pointer;
  font-family: inherit;
}
.promo-wd-sheet .wd-link span { font-size: 13px; font-weight: 600; color: var(--text); }
.promo-wd-sheet .wd-link i { font-style: normal; font-size: 11px; color: var(--text-3); }
.promo-wd-sheet .wd-amount { margin-bottom: 0; }
.promo-wd-sheet .wd-amount input {
  flex: 1; min-width: 0; height: 44px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--bg-card); color: var(--text);
  font-size: 16px; font-family: inherit; outline: none;
  font-variant-numeric: tabular-nums;
}
.promo-wd-sheet .wd-chips { display: flex; gap: 8px; }
.promo-wd-sheet .wd-chip {
  flex: 1; padding: 10px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--bg-card);
  color: var(--text-2); font-size: 13px; font-family: inherit; cursor: pointer;
}
.promo-wd-sheet .wd-chip.on {
  border-color: var(--green-2); background: var(--green-soft);
  color: var(--green-ink); font-weight: 700;
}
.promo-wd-sheet .wd-recs { display: flex; flex-direction: column; }
.promo-wd-sheet .wd-rec-row { padding: 10px 0; border-bottom: 1px solid var(--border); }
.promo-wd-sheet .wd-rec-row:last-child { border-bottom: none; }
.promo-wd-sheet .wd-rec-top {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.promo-wd-sheet .wd-rec-sub {
  display: flex; justify-content: space-between; gap: 10px;
  margin-top: 4px; font-size: 10.5px; color: var(--text-3);
}
.promo-wd-sheet .wd-rec-note { margin-top: 3px; font-size: 10.5px; color: var(--text-3); }
.promo-wd-sheet .promo-empty {
  padding: 18px 0; text-align: center;
  font-size: 12px; color: var(--text-3);
}
.promo-wd-sheet .wd-rules {
  margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--border);
  font-size: 11px; line-height: 1.9; color: var(--text-3);
}

/* 充值弹层：支付方式 / 扫码 */
.recharge-pay-label { margin: 14px 0 8px; font-size: 11px; color: var(--text-2); }
.recharge-channels { display: flex; gap: 10px; }
.recharge-chip {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 10px; border-radius: 12px;
  border: 1.5px solid var(--border); background: var(--bg-card);
  color: var(--text-2); font-size: 13px; font-family: inherit; cursor: pointer;
}
.recharge-chip.on {
  border-color: var(--green-2); background: var(--green-soft);
  color: var(--green-ink); font-weight: 700;
}
.recharge-chip.off {
  color: var(--text-3); background: var(--bg-card-2); cursor: not-allowed;
}
.recharge-chip .recharge-chip-off { font-size: 10px; font-style: normal; font-weight: 400; color: var(--text-3); }
.recharge-help { margin-top: 10px; text-align: center; font-size: 11px; color: var(--text-3); }
.recharge-qr-card {
  margin: 4px auto 0; max-width: 320px; padding: 16px;
  border-radius: 16px; background: var(--bg-card-2); text-align: center;
}
.recharge-qr-head { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin-bottom: 12px; }
.recharge-qr-head b { font-size: 14px; }
.recharge-qr-head span {
  font-size: 20px; font-weight: 800; color: var(--green-ink);
  font-variant-numeric: tabular-nums;
}
.recharge-qr-img {
  display: block; width: 260px; height: 260px; max-width: 100%;
  margin: 0 auto; border-radius: 12px; background: #fff; object-fit: contain;
}
.recharge-qr-tip { margin-top: 12px; font-size: 12px; color: var(--text-2); line-height: 1.6; }
.recharge-qr-status { margin-top: 8px; font-size: 12px; color: var(--green-ink); }
.recharge-qr-status.err { color: #e5484d; }
.recharge-qr-back {
  margin-top: 16px; padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--bg-card);
  color: var(--text-2); font-size: 12px; font-family: inherit; cursor: pointer;
}

/* 推广海报 */
.promo-page .promo-poster-frame {
  padding: 8px; border-radius: 14px; background: var(--bg-card-2);
  display: flex; align-items: center; justify-content: center;
}
.promo-page .promo-poster-img {
  display: block; width: 100%; max-height: 420px;
  object-fit: contain; border-radius: 12px; background: var(--bg-card-2);
}
.promo-page .promo-poster-ph {
  width: 100%; min-height: 220px; padding: 20px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  border: 1.5px dashed var(--border); border-radius: 14px;
  background: var(--bg-card-2); color: var(--text-3); font-size: 12px;
}
.promo-page .promo-poster-acts { display: flex; gap: 10px; margin-top: 12px; }
.promo-page .promo-poster-acts button {
  flex: 1; padding: 12px; font-family: inherit; font-size: 14px; cursor: pointer;
}
.promo-page .promo-poster-save {
  border: none; border-radius: 14px; font-weight: 800;
  background: var(--green); color: var(--text);
}
.promo-page .promo-poster-share {
  border: 1px solid var(--border); border-radius: 14px; font-weight: 700;
  background: var(--bg-card); color: var(--text);
}
.promo-page .promo-poster-acts button:disabled { opacity: .45; cursor: not-allowed; }


/* 分享面板：微信分享预览卡 + 右上角引导（限定 .share-* 作用域，适配移动端安全区） */
.share-panel { display: flex; flex-direction: column; gap: 12px; padding-bottom: env(safe-area-inset-bottom, 0px); }
.share-preview {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; border-radius: 14px;
  background: var(--bg-card-2); border: 1px solid var(--border);
}
.share-preview-thumb {
  flex: 0 0 auto; width: 62px; height: 62px; border-radius: 10px;
  overflow: hidden; background: #fff;
}
.share-preview-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.share-preview-info { flex: 1 1 auto; min-width: 0; }
.share-preview-title {
  font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.share-preview-desc {
  margin-top: 4px; font-size: 11.5px; color: var(--text-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.share-guide {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 13px; border-radius: 12px;
  background: rgba(7, 193, 96, .1); color: #0b8a4a;
  font-size: 12px; font-weight: 600; line-height: 1.5;
}
.share-guide-arrow {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  background: #07c160; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700;
  animation: shareGuideArrow 1.4s ease-in-out infinite;
}
.share-guide-text { flex: 1 1 auto; min-width: 0; }
.share-panel .share-url { margin-top: 0; }
.share-item:disabled { opacity: .45; cursor: wait; }
.media-save-tip {
  padding: 12px 14px; border-radius: 12px; background: #f0f7df;
  color: var(--text-2); font-size: 13px; line-height: 1.65;
}
.media-save-list { display: flex; flex-direction: column; gap: 14px; margin: 14px 0; }
.media-save-item { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.media-save-item img, .media-save-item video {
  display: block; width: 100%; max-height: 58vh; object-fit: contain;
  border-radius: 12px; background: var(--bg-card-2);
}
.media-save-item audio { width: 100%; }
.media-save-item span { color: var(--text-3); font-size: 12px; }
@keyframes shareGuideArrow { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

/* ================= 后台可配置案例（官方案例卡片 / 全部案例 / 详情） ================= */
/* 首页官方案例：3:4 竖图封面 + 视频播放角标 + 渐变兜底 */
.case-card.case-official .cc-cover {
  aspect-ratio: 3 / 4;
  min-height: 0;
  overflow: hidden;
}
.case-card.case-official .cc-cover img {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: cover;
}
.case-card.case-official .cc-cover .cc-ph {
  padding: 12px; font-size: 12px; line-height: 1.5; text-align: center;
  color: var(--text-2); opacity: .8; word-break: break-word;
}
.case-card .cc-play,
.case-all-play {
  position: absolute; right: 7px; bottom: 7px; z-index: 2;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(0, 0, 0, .55); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; line-height: 1;
  backdrop-filter: blur(4px);
}
.case-all-more { padding: 2px 16px 0; }
.case-all-btn {
  width: 100%; box-sizing: border-box;
  border: 1px solid var(--border); border-radius: 14px;
  background: var(--bg-card); color: var(--text);
  font-family: inherit; font-size: 13px; font-weight: 700;
  padding: 11px; cursor: pointer;
}
.case-all-btn:active { transform: scale(.99); }

/* 全部案例弹层 */
.case-sheet.case-all-sheet {
  height: 86vh; max-height: 86vh;
  padding: 0; overflow: hidden;
  display: flex; flex-direction: column;
}
.case-all-head {
  flex: none; display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px 4px; gap: 10px;
}
.case-all-chips {
  flex: none; display: flex; gap: 8px;
  overflow-x: auto; padding: 8px 18px 10px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.case-all-chips::-webkit-scrollbar { display: none; }
.case-chip {
  flex: none; padding: 5px 13px; border-radius: 999px;
  font-family: inherit; font-size: 12px; line-height: 1.4;
  border: 1px solid var(--border); background: #fff; color: var(--text-3);
  cursor: pointer; white-space: nowrap;
}
.case-chip.on { background: #111; border-color: #111; color: #fff; }
.case-all-scroll {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  padding: 0 16px calc(14px + var(--safe-b));
  -webkit-overflow-scrolling: touch;
}
.case-all-grid { column-count: 2; column-gap: 10px; }
.case-all-card {
  break-inside: avoid; margin: 0 0 10px; padding: 8px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 18px; box-shadow: 0 6px 18px rgba(28, 40, 12, .06);
  cursor: pointer;
}
.case-all-card:active { transform: scale(.98); }
.case-all-cover {
  position: relative; aspect-ratio: 3 / 4;
  border-radius: 13px; overflow: hidden;
  background: linear-gradient(140deg, #eef6d8, #dff0b8);
}
.case-all-cover img {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.case-all-ph {
  position: absolute; inset: 0; z-index: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 10px; text-align: center;
  font-size: 12px; line-height: 1.5; color: var(--text-2);
  opacity: .8; word-break: break-word;
}
.case-all-tag {
  position: absolute; left: 7px; top: 7px; z-index: 2;
  font-size: 10px; padding: 2px 8px; border-radius: 999px;
  background: rgba(0, 0, 0, .55); color: #fff;
  backdrop-filter: blur(4px);
}
.case-all-name {
  padding: 8px 4px 2px; font-size: 13px; font-weight: 600; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.case-all-empty { padding: 34px 0; text-align: center; font-size: 13px; color: var(--text-3); }

/* 案例详情弹层 */
.case-sheet.case-detail-sheet {
  max-height: 88vh; padding: 0; overflow: hidden;
  display: flex; flex-direction: column;
}
.case-detail-head {
  flex: none; display: flex; align-items: flex-start; justify-content: space-between;
  gap: 10px; padding: 18px 18px 10px;
}
.case-detail-heading { flex: 1; min-width: 0; }
.case-detail-title { font-size: 17px; font-weight: 800; line-height: 1.35; word-break: break-word; }
.case-detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.case-detail-tag {
  font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  background: var(--green-soft); color: var(--green-ink);
}
.case-detail-body {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 0 18px 6px;
}
.case-detail-media {
  display: flex; align-items: center; justify-content: center;
  border-radius: 16px; overflow: hidden;
  background: linear-gradient(140deg, #eef6d8, #dff0b8);
}
.case-detail-media img,
.case-detail-media video {
  display: block; width: 100%; max-height: 56vh; object-fit: contain; background: #000;
}
.case-detail-media img { background: transparent; }
.case-detail-media.case-media-fallback { aspect-ratio: 3 / 4; }
.case-detail-media.case-media-fallback::after {
  content: attr(data-title);
  padding: 16px; text-align: center;
  font-size: 13px; line-height: 1.6; font-weight: 600; color: var(--text-2);
}
.case-detail-ph {
  display: flex; align-items: center; justify-content: center;
  width: 100%; aspect-ratio: 3 / 4; padding: 16px;
  text-align: center; font-size: 13px; font-weight: 600; color: var(--text-2);
}
.case-detail-desc {
  margin-top: 12px; font-size: 13px; line-height: 1.7;
  color: var(--text-2); white-space: pre-wrap; word-break: break-word;
}
.case-detail-prompt {
  margin-top: 12px; border: 1px solid var(--border);
  border-radius: 12px; background: var(--bg-card); overflow: hidden;
}
.case-detail-prompt summary {
  padding: 11px 12px; font-size: 12px; font-weight: 700;
  color: var(--text); cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between;
}
.case-detail-prompt summary::-webkit-details-marker { display: none; }
.case-detail-prompt summary::after { content: "⌄"; font-size: 13px; color: var(--text-3); }
.case-detail-prompt[open] summary::after { content: "⌃"; }
.case-detail-prompt div {
  padding: 0 12px 12px; font-size: 12px; line-height: 1.7;
  color: var(--text-2); white-space: pre-wrap; word-break: break-word;
}
.case-detail-actions {
  flex: none; display: flex; gap: 10px;
  padding: 12px 18px calc(16px + var(--safe-b));
  border-top: 1px solid rgba(20, 30, 10, .05);
}
.case-detail-actions .btn { padding: 12px; }
.case-detail-actions .btn-ghost { flex: 0 0 96px; }
.case-detail-actions .btn-primary { flex: 1; }
.case-detail-metrics { padding: 10px 18px 0; border-top: 0; }
.case-all-head .sh-close,
.case-detail-head .sh-close {
  flex: none; width: 30px; height: 30px; border: 0; border-radius: 50%;
  background: var(--bg-card-2); color: var(--text-2);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.case-all-head .sh-close svg,
.case-detail-head .sh-close svg { width: 16px; height: 16px; fill: currentColor; }
.case-card.case-official .cc-tool { z-index: 2; }

/* ================= 弹层高度统一规范 ================= */
/* 底部 sheet：统一最大高度，头尾固定、内容区独立滚动 */
.sheet-mask > .case-sheet,
.mask .sheet {
  max-height: 88vh;
  max-height: 88dvh;
  display: flex;
  flex-direction: column;
}

/* 通用内容区：占满剩余空间并可滚动 */
.mask .sheet .sh-body,
.mine-sheet-body,
.case-detail-body,
.case-all-scroll,
.at-list,
.trash-sheet .trash-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden; overflow-y: auto;
  overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch;
}

/* 固定头部与底部操作区 */
.case-detail-head,
.case-all-head,
.case-all-chips,
.at-head,
.at-cats,
.at-tip,
.mine-sheet .lib-pick-head,
.av-sheet > .lib-pick-head,
.trash-sheet > .lib-pick-head,
.hv-sheet > .cs-title,
.hv-sheet > .cs-tool-tag {
  flex: none;
}

.case-detail-actions,
.cs-actions {
  flex: none;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}

/* 直接内容型底部 sheet：内容区内部滚动，避免整层溢出 */
.av-sheet,
.trash-sheet,
.lib-text-sheet,
.hv-sheet,
.nm-sheet {
  overflow: hidden;
}
.av-sheet > .av-img,
.av-sheet > .av-audio,
.av-sheet > .av-text,
.hv-sheet > .hv-media,
.hv-sheet > .cs-prompt {
  flex: 0 1 auto;
  min-height: 0;
}
.av-sheet > .av-text,
.hv-sheet > .cs-prompt { overflow-y: auto; }
.hv-sheet > .hv-media img,
.hv-sheet > .hv-media video { max-height: 48vh; object-fit: contain; }
.trash-sheet .trash-list { max-height: none; }

/* 居中 modal：统一最大高度，标题与底部按钮固定 */
.sheet-mask.center-mask { overflow: hidden; }
.center-mask .case-sheet {
  max-height: 86vh;
  max-height: 86dvh;
  overflow: hidden;
}
.center-mask .lib-pick-sheet {
  max-height: 86vh;
  max-height: 86dvh;
}
.center-mask .lib-pick-sheet > .lib-pick-head { flex: none; }
.center-mask .lib-pick-sheet > .lib-pick-grid {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
}

/* 完善资料弹层 */
.profile-sheet {
  max-height: 88vh;
  max-height: 88dvh;
  overflow-y: auto;
  padding-bottom: max(20px, env(safe-area-inset-bottom));
}

/* 作品预览：只保留内容区单一滚动条 */
.mine-sheet-body .wp-media {
  max-height: none;
  overflow: visible;
}
.mine-sheet-body .wp-media img,
.mine-sheet-body .wp-media video { max-height: 52vh; object-fit: contain; }

/* 作品空态 */
.empty-create {
  margin-top: 14px;
  padding: 10px 22px;
}

/* ===== 媒体原比例展示（作品弹窗 / 结果页 / 案例 / 素材） ===== */
.media-stage {
  width: 100%;
  max-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f120b;
  border-radius: 14px;
  overflow: hidden;
}
.media-stage > img.media-main,
.media-stage > video.media-main {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  background: transparent;
}
.media-ph {
  color: #d8e6c2;
  font-size: 24px;
  padding: 40px 0;
}
.media-audio {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 8px 0;
}
.media-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding-bottom: 2px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.media-thumbs::-webkit-scrollbar { display: none; }
.media-thumb {
  flex: none;
  width: auto;
  height: 58px;
  max-width: 110px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: #0f120b;
  opacity: .62;
  cursor: pointer;
}
.media-thumb.on { border-color: #9ccb2b; opacity: 1; }
.media-thumb img { display: block; width: auto; height: 58px; max-width: 106px; object-fit: contain; }

/* 结果页多图 */
.result-main-stage { position: relative; }
.result-main-stage .rg-dl { top: 8px; right: 8px; bottom: auto; }
#resMainImg { max-height: 60vh; }
#pwBody > .media-stage { margin: 12px; width: calc(100% - 24px); }
#pwBody > .media-thumbs { margin: 0 12px 10px; }
#pwBody > .media-audio { width: calc(100% - 24px); margin: 0 12px 12px; }

/* 案例详情 / 大卡预览 / 素材预览：原比例不裁切 */
.case-detail-media {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f120b;
}
.case-detail-media img.media-main,
.case-detail-media video.media-main {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 56vh;
  object-fit: contain;
}
.case-detail-media.case-media-fallback { background: linear-gradient(145deg, #e7efd3, #d3e3b2); }
.hv-media {
  aspect-ratio: auto;
  max-height: 48vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f120b;
}
.hv-media img.media-main,
.hv-media video.media-main {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 48vh;
  object-fit: contain;
}
.av-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 52vh;
  object-fit: contain;
  margin: 0 auto;
}

/* ===== 作品弹窗高度 / 固定头尾 ===== */
.mine-mask .mine-sheet.work-preview-sheet {
  height: 88vh;
  max-height: 88vh;
  height: 88dvh;
  max-height: 88dvh;
}
.mine-sheet-foot {
  flex: none;
  padding: 10px 18px calc(12px + var(--safe-b));
  border-top: 1px solid var(--border);
  background: #fff;
}
/* 底部常驻操作栏：仅「发布态」+「做同款」 */
.wp-bottom-bar { display: flex; gap: 10px; align-items: stretch; }
.wp-bar-btn {
  flex: 1 1 0; min-width: 0; min-height: 46px; padding: 13px 10px;
  display: flex; align-items: center; justify-content: center;
}
/* 图片类作品：全部结果图纵向平铺，避免横向截断 */
.wp-gallery { display: flex; flex-direction: column; gap: 10px; }
.wp-gallery-img {
  display: block; width: 100%; height: auto;
  border-radius: 14px; background: #0f120b;
}
/* 指标行可点击（点赞 / 收藏），热区 ≥44px */
.wm-btn {
  min-height: 44px; padding: 0 12px; border: 0; border-radius: 12px;
  justify-content: center;
  background: none; color: var(--text-2); font-family: inherit; font-size: 12px; cursor: pointer;
}
.wm-btn.on { color: #e5486b; background: #fff3f6; }
/* 次要操作行（分享 / 下载 / 重命名 / 删除），热区 ≥44px */
.wp-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.wp-tool {
  flex: 1 1 0; min-width: 72px; min-height: 44px; padding: 8px 6px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--bg-card);
  color: var(--text-2); font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
}
.wp-tool.danger { color: #c0392b; border-color: #f3c2c2; background: #fdecec; }
/* 作品详情内的关闭 / 编号操作按钮：热区统一 ≥44px */
.work-preview-sheet .sh-close { width: 44px; height: 44px; }
.work-preview-sheet .wp-no-btn {
  min-height: 44px; padding: 0 14px;
  display: inline-flex; align-items: center;
}
.wp-pub-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(211, 247, 90, .55);
  color: #2c3b00;
  font-size: 10px;
  font-weight: 700;
}

/* ===== 收藏按钮 ===== */
.fav-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 999px;
  background: rgba(0, 0, 0, .4);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.fav-btn i {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
}
.fav-btn.on { color: #ff7a90; border-color: rgba(255, 122, 144, .85); }
.fav-act {
  flex: 1;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  color: var(--text-2);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.fav-act.on { color: #e5486b; border-color: #f3b7c5; background: #fff3f6; }
.result-actions .fav-act { flex: 1; }

/* 我的作品卡片：收藏 + 广场角标 + 发布入口 */
.hs-pub-badge {
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: 2;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(211, 247, 90, .95);
  color: #2c3b00;
  font-size: 9px;
  font-weight: 800;
}
.hs-card .hs-acts { flex-wrap: wrap; gap: 4px; }
.hs-card .hs-act { flex: 1 0 38%; padding: 6px 0; font-size: 10px; }
.won-card .won-del { left: 6px; right: auto; }
.won-pub {
  display: block;
  width: calc(100% - 18px);
  margin: 6px 9px 2px;
  padding: 6px 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text-2);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

/* 精选作品：排序 */
.pub-sort {
  display: flex;
  gap: 16px;
  padding: 0 18px 10px;
  font-size: 12.5px;
  color: var(--text-3);
}
.pub-sort span {
  cursor: pointer;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}
.pub-sort span.on { color: var(--text); font-weight: 700; border-color: #9ccb2b; }
.pub-fav { right: 6px; top: 6px; bottom: auto; }

/* 首页作品广场 */
.hm-sec-more {
  font-size: 11px;
  color: var(--text-2);
  cursor: pointer;
}
.gw-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0 16px 4px;
}
.gw-card {
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
}
.gw-cover {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #e6ecd8;
}
.gw-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gw-play {
  position: absolute; left: 8px; bottom: 8px;
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .45); color: #fff; font-size: 10px;
  pointer-events: none;
}
.gw-ph { font-size: 26px; }
.gw-name {
  margin: 7px 9px 2px;
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gw-sub { margin: 0 9px 8px; font-size: 10.5px; color: var(--text-3); }

/* ===== 发布到广场弹层 ===== */
.case-sheet.pub-sheet {
  height: 88vh;
  max-height: 88vh;
  height: 88dvh;
  max-height: 88dvh;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.pub-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px 10px;
  border-bottom: 1px solid var(--border);
}
.pub-head .at-title { display: flex; flex-direction: column; }
.pub-head .at-title span { margin-top: 2px; margin-left: 0; font-size: 11px; color: var(--text-3); }
.pub-head-acts { display: flex; flex: none; align-items: center; gap: 10px; }
.pub-direct {
  padding: 6px 12px;
  border: none;
  border-radius: 999px;
  background: rgba(211, 247, 90, .55);
  color: #2c3b00;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.pub-direct:disabled { opacity: .55; }
.pub-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 18px 10px;
  -webkit-overflow-scrolling: touch;
}
.pub-cover {
  position: relative;
  width: 100%;
  max-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0f120b;
  border-radius: 14px;
  cursor: pointer;
}
.pub-cover img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 40vh;
  object-fit: contain;
}
.pub-cover-ph { padding: 36px 0; color: #d8e6c2; font-size: 13px; }
.pub-cover-edit {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 11px;
}
.pub-cats-label { margin: 4px 0 8px; font-size: 11px; color: var(--text-3); }
.pub-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.pub-tip { margin-top: 8px; font-size: 10.5px; line-height: 1.7; color: var(--text-3); }
.pub-foot {
  flex: none;
  padding: 10px 18px calc(14px + var(--safe-b));
  border-top: 1px solid var(--border);
  background: #fff;
}
.pub-foot .btn { width: 100%; padding: 13px; }
.pub-cover-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pub-cover-opt {
  aspect-ratio: 1 / 1;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 10px;
  background: #0f120b;
  cursor: pointer;
}
.pub-cover-opt.on { border-color: #9ccb2b; }
.pub-cover-opt img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ===== 弹窗高度统一适配屏幕（作品预览 / 回收站 / 文案 / 推广） ===== */
.sheet-mask > .case-sheet.trash-sheet,
.sheet-mask > .case-sheet.lib-text-sheet,
.mine-mask .mine-sheet.work-preview-sheet,
.mine-mask .mine-sheet.promo-sheet {
  height: auto;
  max-height: calc(100dvh - 16px - env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}
.mine-sheet-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.work-preview-sheet .media-stage > img.media-main,
.work-preview-sheet .media-stage > video.media-main {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 52dvh;
  object-fit: contain;
}
.work-preview-sheet .media-stage { max-height: 52dvh; }

/* 回收站：空列表时高度自适应 */
.sheet-mask > .case-sheet.trash-sheet { max-height: calc(100dvh - 16px - env(safe-area-inset-bottom)); }
.trash-sheet .trash-list { flex: 1 1 auto; min-height: 0; max-height: none; overflow-y: auto; -webkit-overflow-scrolling: touch; }
/* 资产查看 / 垃圾箱等 case-sheet 的统一关闭按钮 */
.case-sheet .sh-close {
  flex: none; width: 30px; height: 30px; border: 0; border-radius: 50%;
  background: var(--bg-card-2); color: var(--text-2); padding: 0;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.case-sheet .sh-close svg { width: 16px; height: 16px; fill: currentColor; }
.trash-sheet .wo-empty { padding: 22px 0; }

/* 文案弹窗：内容滚动，按钮固定底部 */
.lib-text-sheet { padding: 0; }
.lib-text-sheet .lib-text-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 16px 20px 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.lib-text-sheet > .cs-actions {
  flex: none;
  margin-top: 14px;
  padding: 0 20px calc(16px + var(--safe-b));
}

/* 推广赚钱：底部上滑 sheet，内容内部滚动 */
.promo-sheet .mine-sheet-body { padding: 0; }
.promo-sheet .promo-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 14px calc(18px + var(--safe-b));
}

/* 顶栏固定在安全区内 */
.navbar { padding-top: calc(10px + env(safe-area-inset-top, 0px)); }

/* ===== 排队中 / 取消 ===== */
.queue-list { display: flex; flex-direction: column; gap: 8px; padding: 0 18px 4px; }
.queue-card {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; border: 1px solid var(--border); border-radius: 14px; background: #fff;
}
.qc-main { flex: 1; min-width: 0; }
.qc-title {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.qc-dot {
  flex: none; width: 7px; height: 7px; border-radius: 50%;
  background: var(--green-2); box-shadow: 0 0 0 3px rgba(211, 247, 90, .35);
  animation: qcPulse 1.2s ease-in-out infinite;
}
@keyframes qcPulse { 50% { opacity: .35; transform: scale(.85); } }
.qc-sub { margin-top: 3px; font-size: 11px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qc-cancel {
  flex: none; padding: 7px 12px; border-radius: 999px;
  border: 1px solid #f3c2c2; background: #fdecec; color: #c0392b;
  font-size: 12px; font-weight: 600; font-family: inherit;
}
.qc-cancel:disabled { opacity: .6; }
.work-cancel {
  flex: none; margin-right: 6px; padding: 6px 10px; border-radius: 999px;
  border: 1px solid #f3c2c2; background: #fdecec; color: #c0392b;
  font-size: 11px; font-weight: 600; font-family: inherit;
}

/* ===== 作品选择 / 批量下载 ===== */
.hs-card.selectable { cursor: pointer; }
.hs-card.selectable.on { outline: 2px solid var(--green-2); outline-offset: -2px; }
.hs-check {
  position: absolute; left: 8px; top: 8px; z-index: 4;
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid #fff; background: rgba(20, 30, 10, .35);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .2); box-sizing: border-box;
}
.hs-check::after {
  content: ""; position: absolute; left: 5px; top: 2px;
  width: 5px; height: 9px; border: 2px solid #fff; border-top: 0; border-left: 0;
  transform: rotate(45deg); opacity: 0;
}
.hs-check.on { background: var(--green-2); border-color: var(--green-2); }
.hs-check.on::after { opacity: 1; }
#assetGroups.selecting .hs-acts,
#assetGroups.selecting .hs-fav { display: none; }
.hs-act.hs-dlall {
  display: block; width: calc(100% - 14px); margin: 6px 7px 0; padding: 6px 0; font-size: 10px;
}
.batch-bar {
  position: fixed; left: 0; right: 0; z-index: 26;
  bottom: calc(var(--tabbar-h) + var(--safe-b) + 8px);
  max-width: 480px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; box-sizing: border-box;
  background: rgba(255, 255, 255, .96);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.batch-all {
  flex: none; padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--border); background: #fff; color: var(--text-2);
  font-size: 12px; font-weight: 600; font-family: inherit;
}
#batchCount { flex: 1; font-size: 12px; color: var(--text-3); }
.batch-go { flex: none; padding: 9px 16px; font-size: 13px; }

/* ===== 作品编号 / 确权 ===== */
.wp-no {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  margin-top: 8px; padding: 8px 10px; border-radius: 12px;
  background: #f7f9f1; font-size: 11px;
}
.wp-no-label { flex: none; color: var(--text-3); }
.wp-no-val {
  flex: 1 1 100%; min-width: 0; font-weight: 700; color: var(--text-2);
  word-break: break-all; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.wp-no-btn {
  flex: none; padding: 5px 9px; border-radius: 999px;
  border: 1px solid var(--border); background: #fff; color: var(--text-2);
  font-size: 11px; font-family: inherit;
}
.cert-list { display: flex; flex-direction: column; }
.cert-row {
  display: flex; gap: 10px; padding: 10px 0;
  border-bottom: 1px dashed var(--border); font-size: 12px; line-height: 1.6;
}
.cert-row > span { flex: none; width: 66px; color: var(--text-3); }
.cert-row > b { flex: 1; min-width: 0; font-weight: 600; word-break: break-all; }
.cert-row a { color: #2f7d00; text-decoration: none; }

/* ===== 广场卡片分享 ===== */
.gw-cover { position: relative; }
.gw-share {
  position: absolute; left: 6px; bottom: 6px; z-index: 3;
  width: 28px; height: 28px; padding: 0; border: none; border-radius: 50%;
  background: rgba(20, 30, 10, .42); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.gw-share svg { width: 14px; height: 14px; fill: currentColor; }

/* ===== 个人中心资料区：长文本与两行简介 ===== */
.mp-userno {
  max-width: 100%; box-sizing: border-box; line-height: 1.5;
  overflow-wrap: anywhere; word-break: break-word; text-align: center;
}
.mp-bio-wrap {
  width: 100%; max-width: 340px; min-width: 0; margin-top: 4px;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.mp-bio-text {
  width: 100%; margin: 0; padding: 3px 8px; border: 0; background: transparent;
  color: rgba(244,255,224,.72); font-family: inherit; font-size: 12px; line-height: 1.7;
  text-align: center; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.mp-bio-text.is-empty { color: rgba(255,255,255,.4); }
.mp-bio-wrap.can-expand .mp-bio-text { cursor: pointer; }
.mp-bio-wrap.can-expand::after {
  content: "展开全文"; color: rgba(185,233,63,.72); font-size: 10px; line-height: 1.4;
}
.mp-bio-wrap.can-expand.open::after { content: "收起"; }
.mp-bio-wrap.open .mp-bio-text { display: block; -webkit-line-clamp: unset; overflow: visible; }
.mp-bio-edit {
  flex: none; padding: 3px 10px; border: 1px solid rgba(185,233,63,.28); border-radius: 999px;
  background: rgba(185,233,63,.08); color: #b9e93f; font-family: inherit; font-size: 10px;
}
.bio-save { width: 100%; padding: 12px; }
.uh-bio {
  max-width: 100%; padding: 2px 12px; color: var(--text-2); font-size: 12px; line-height: 1.7;
  text-align: center; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word;
}
.uh-bio.is-empty { color: var(--text-3); }
.uh-name { max-width: 100%; overflow-wrap: anywhere; text-align: center; }
.uh-no { max-width: 100%; overflow-wrap: anywhere; text-align: center; }

/* ===== 作品点赞 / 收藏 / 浏览指标 ===== */
.work-metrics {
  display: flex; align-items: center; gap: 10px; min-width: 0;
  color: var(--text-3); font-size: 10px; line-height: 1;
}
.wm-item { display: inline-flex; align-items: center; gap: 3px; min-width: 0; }
.wm-item svg { width: 12px; height: 12px; flex: none; fill: currentColor; }
.wm-item b { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hs-metrics { justify-content: space-between; gap: 3px; padding: 6px 8px 0; font-size: 9px; }
.hs-metrics .wm-item { gap: 2px; }
.hs-metrics .wm-item svg { width: 10px; height: 10px; }
.won-metrics { gap: 12px; margin: 6px 9px 0; }
.wp-metrics {
  justify-content: space-around; gap: 8px; margin: 10px 2px 0; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--bg-card); font-size: 12px;
}
.wp-metrics .wm-item { gap: 5px; }
.wp-metrics .wm-item svg { width: 15px; height: 15px; }
.wl-actions { display: flex; gap: 6px; margin-top: 7px; }
.wl-actions .hs-act { flex: 0 0 58px; padding: 6px 0; }
.wl-metrics { margin-top: 6px; }
.pw-metrics-wrap { margin: 10px 16px 0; }
.pw-work-metrics { justify-content: space-around; padding: 10px 12px; border-radius: 12px; background: var(--bg-card-2); }

/* ===== 待发布队列：详情 / 发布 / 删除 ===== */
.queue-card { cursor: pointer; }
.qc-actions { flex: none; display: flex; gap: 5px; }
.qc-action {
  padding: 6px 9px; border: 0; border-radius: 8px; background: #f3f5ee;
  color: #4a5540; font-family: inherit; font-size: 11px; font-weight: 600;
}
.qc-action.del { background: #fdecec; color: #c0392b; }

/* ===== 账单类型筛选与流水字段 ===== */
.bill-filters {
  display: flex; gap: 7px; margin: 0 0 8px; padding: 2px 0 8px;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.bill-filters::-webkit-scrollbar { display: none; }
.bill-main { flex: 1; min-width: 0; }
.bill-title { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.bill-type {
  padding: 1px 6px; border-radius: 999px; background: var(--green-soft);
  color: var(--green-ink); font-size: 9px; font-weight: 600;
}
.bill-sub { line-height: 1.6; overflow-wrap: anywhere; word-break: break-word; }

/* ===== 资产类型 / 来源筛选及分类标签 ===== */
.asset-filters { flex: none; padding: 0 14px 10px; }
.mine-sheet-body > .asset-filters, .lib-pick-sheet > .asset-filters { padding: 0 0 8px; }
.asset-filter-row {
  display: flex; gap: 7px; padding: 2px 0 6px; overflow-x: auto;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.asset-filter-row::-webkit-scrollbar { display: none; }
.asset-tags { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px 8px 0; }
.asset-tags span {
  max-width: 100%; padding: 2px 5px; border-radius: 5px; background: var(--green-soft);
  color: var(--green-ink); font-size: 9px; line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lib-card .asset-tags { min-height: 20px; }
.lib-pick .asset-tags { padding: 0 5px 5px; }
.hs-thumb video, .lc-thumb video, .lib-pick video {
  display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none;
}
.lib-pick video { height: 72px; }

/* 375px 及更窄设备：头像、资料、统计与作品卡不相互挤压 */
@media (max-width: 375px) {
  .mine-topbar { padding-left: 10px; padding-right: 10px; }
  .mine-profile { padding-left: 10px; padding-right: 10px; }
  .mine-profile .avatar-ring { width: 72px; height: 72px; }
  .mine-profile .mp-name { font-size: 17px; }
  .mine-social-row { gap: 8px; padding-left: 10px; padding-right: 10px; }
  .mine-social { padding: 10px 3px; }
  .mine-social .msc-val { font-size: 16px; }
  .mine-social .msc-label { font-size: 10px; }
  .mine-stat-row { gap: 8px; padding-left: 10px; padding-right: 10px; }
  .mine-stat-card { padding: 12px 5px; }
  .mine-stat-card .ms-val { font-size: 16px; }
  .mp-bio-wrap { max-width: 100%; }
  .work-item { gap: 8px; padding: 10px; }
  .work-thumb { width: 56px; height: 56px; }
  .work-meta .w-title { font-size: 13px; }
  .work-status { padding: 3px 6px; font-size: 10px; }
  .wl-metrics { gap: 8px; }
  .qc-actions { gap: 4px; }
  .qc-action { padding: 6px 7px; }
}

/* ===== 作品封面：统一方形、圆角、裁切与失败占位 ===== */
.work-cover {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(145deg, #edf5dc, #dce9bd);
}
.work-cover-placeholder {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-ink);
  font-size: 26px;
  pointer-events: none;
}
.work-cover img.work-cover-img {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.work-cover > button,
.work-cover > .hs-count,
.work-cover > .hs-pub-badge { z-index: 3; }
.work-audio-badge {
  position: absolute;
  left: 6px;
  bottom: 6px;
  z-index: 4;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 50%;
  background: rgba(20, 30, 10, .62);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  pointer-events: none;
  backdrop-filter: blur(4px);
}

/* 作品弹窗：封面加载失败时移除坏图，视频移除 poster 后展示首帧或渐变占位 */
.work-media-stage {
  position: relative;
  background: linear-gradient(145deg, #29341d, #11170c);
}
.work-media-stage .work-media-placeholder {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: rgba(234, 255, 182, .82);
  pointer-events: none;
}
.work-media-stage > img.media-main,
.work-media-stage > video.media-main {
  position: relative;
  z-index: 1;
  background: transparent;
}
.work-media-stage.work-cover-failed { min-height: 160px; }
.work-media-stage > .work-audio-badge {
  left: auto;
  right: 8px;
  bottom: 8px;
  z-index: 2;
}


/* ================= 模板库（移动端「模板」页 / 宽屏首页模板瀑布） ================= */
.tpl-empty { display: none; padding: 40px 0; text-align: center; font-size: 13px; color: var(--text-3); }
.tpl-blank { padding: 40px 0; text-align: center; font-size: 13px; color: var(--text-3); }
.works-page .works-tabs { padding: 0 16px 12px; }

.tpl-page { padding-bottom: 28px; }
.tpl-top { display: flex; align-items: center; gap: 10px; padding: 14px 16px 12px; }
.tpl-top .hm-logo { flex: none; font-size: 22px; }
.tpl-search { flex: 1; min-width: 0; }
.tpl-search input {
  width: 100%; padding: 10px 14px; font-size: 13px; outline: none;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--bg-card); color: var(--text);
}
.tpl-chips { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px 12px; scrollbar-width: none; }
.tpl-chips::-webkit-scrollbar { display: none; }
.tpl-chip {
  flex: none; padding: 7px 14px; border-radius: 999px; cursor: pointer;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-2); font-size: 12.5px; font-weight: 600;
}
.tpl-chip.on { background: #161616; border-color: #161616; color: #fff; }
.tpl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 16px; }
.tpl-card {
  display: block; overflow: hidden; text-decoration: none; color: var(--text);
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 18px; box-shadow: 0 4px 14px rgba(28, 40, 12, .05);
  transition: transform .15s;
}
.tpl-card:active { transform: scale(.98); }
.tpl-cover { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; }
.tpl-emoji { font-size: 34px; }
.tpl-body { display: block; padding: 10px 12px 13px; }
.tpl-name { display: block; font-size: 14px; font-weight: 800; }
.tpl-sub {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin-top: 3px; font-size: 11px; line-height: 1.45; color: var(--text-3);
}

/* 技能页：按分类分组排版 */
.sk-sec { padding: 0 16px; margin-bottom: 26px; }
.sk-sec:last-child { margin-bottom: 8px; }
.sk-sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.sk-sec-head h3 { font-size: 16px; font-weight: 800; letter-spacing: -.2px; }
.sk-sec-head h3::before {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px;
  border-radius: 50%; background: #b9e93f; vertical-align: 3px;
}
.sk-sec-head span { font-size: 11px; color: var(--text-3); }
.sk-sec .tpl-grid { padding: 0; }





/* 首页「创作合集」：左侧合集框固定，右侧卡片横滑并从其下方穿过；
   开始滑动后左侧卡右缘渐隐，初始状态完整不裁切 */
.hm-tags-row { position: relative; }
.hm-tags-row > .hm-topic {
  position: absolute; left: 2px; top: 2px; z-index: 2;
}
.hm-tags-row > .hm-tags {
  padding: 2px 16px 4px 108px;
  scroll-snap-type: none;
  scroll-padding-left: 108px;
}
.hm-tags-row.scrolled > .hm-topic {
  -webkit-mask-image: linear-gradient(90deg, #000 64%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(90deg, #000 64%, rgba(0, 0, 0, 0) 100%);
}

/* ===== 登录 / 注册页排版优化 ===== */
.login-page {
  min-height: calc(100dvh - 56px);
  display: flex; flex-direction: column;
  padding: 0 16px 40px;
}
.login-page .navbar { flex: none; margin: 0 -16px; }
.login-page .login-body {
  width: 100%; max-width: 380px; margin: auto;
  padding: 30px 24px 26px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 24px; box-shadow: 0 18px 44px rgba(28, 40, 12, .10);
}
.login-page .login-logo { width: 64px; height: 64px; border-radius: 16px; }
.login-page .login-title { font-size: 22px; font-weight: 800; letter-spacing: -.4px; margin: 14px 0 22px; }
.login-page .login-tabs {
  display: flex; gap: 0; width: 100%; margin-bottom: 20px;
  padding: 4px; background: var(--bg-card-2);
  border: 1px solid var(--border); border-radius: 999px;
}
.login-page .login-tabs span {
  flex: 1; text-align: center; padding: 9px 0; border-radius: 999px;
  border-bottom: 0; font-size: 14px; color: var(--text-2);
}
.login-page .login-tabs span.on {
  background: #fff; color: var(--text); font-weight: 700;
  box-shadow: 0 2px 8px rgba(28, 40, 12, .10);
}
.login-page .login-subtabs { margin: 0 0 20px; gap: 24px; font-size: 13.5px; }
.login-page .login-input { height: 48px; padding: 0 16px; border-radius: 12px; margin-bottom: 12px; font-size: 15px; }
.login-page .login-btn { height: 48px; border-radius: 14px; margin-top: 10px; }
.login-page .login-links { margin-top: 16px; font-size: 13px; }
.login-page .login-tip { margin-top: 10px; text-align: center; }
@media (max-width: 400px) {
  .login-page { padding: 0 14px 32px; }
  .login-page .navbar { margin: 0 -14px; }
  .login-page .login-body { padding: 26px 18px 22px; border-radius: 20px; }
}
/* ===== 底部导航：悬浮深色胶囊（参考图） ===== */
#tabbar.tabbar {
  position: fixed; left: 50%; bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: min(420px, calc(100% - 24px));
  height: 58px; padding: 6px;
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  background: #23261f; border-radius: 999px;
  box-shadow: 0 12px 28px rgba(18, 22, 10, .28);
  z-index: 60;
}
#tabbar.tabbar.hidden { display: none; }
#tabbar .tab-item {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; gap: 0;
  background: #2f332a; color: #cdd2c5; text-decoration: none;
  transition: background .18s, color .18s;
}
#tabbar .tab-item svg { width: 21px; height: 21px; fill: currentColor; }
#tabbar .tab-item span { display: none; font-size: 13px; font-weight: 700; }
#tabbar .tab-item.active {
  flex: 1 1 auto; max-width: 150px; width: auto;
  padding: 0 16px; border-radius: 999px;
  background: var(--green); color: #16190f;
  justify-content: center;
}
#tabbar .tab-item.active span { display: inline; }
#view { padding-bottom: calc(82px + var(--safe-b)); }

/* ===== 我的：创作等级英雄卡（角色插画 + 等级进度） ===== */
.mine-profile.mine-hero {
  position: relative; display: block; overflow: hidden;
  padding: 18px 16px 16px; min-height: 216px;
  border-radius: 22px; border: 1px solid rgba(20, 30, 10, .05);
}
.mine-profile.mine-hero.lv-1 { background: linear-gradient(115deg, #e9fbd6 0%, #f8fff2 66%); }
.mine-profile.mine-hero.lv-2 { background: linear-gradient(115deg, #ffe4ee 0%, #fff6fa 66%); }
.mine-profile.mine-hero.lv-3 { background: linear-gradient(115deg, #ffe8cf 0%, #fff8f0 66%); }
.mine-profile.mine-hero.lv-4 { background: linear-gradient(115deg, #eae3ff 0%, #f8f5ff 66%); }
.mp-art {
  position: absolute; right: -10px; top: 0; bottom: 0; width: 152px;
  pointer-events: none;
}
.mp-art img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40%);
  mask-image: linear-gradient(90deg, transparent 0, #000 40%);
}
.mp-main { position: relative; z-index: 1; max-width: calc(100% - 122px); }
.mp-hi { font-size: 17px; font-weight: 800; letter-spacing: -.3px; }
.mp-hi-sub { margin-top: 4px; font-size: 11.5px; color: var(--text-2); }
.mp-lv-name {
  margin-top: 14px; display: flex; align-items: center; gap: 6px;
  font-size: 24px; font-weight: 900; letter-spacing: -.6px; line-height: 1.15;
}
.mp-lv-emblem {
  flex: none; display: inline-flex; width: 32px; height: 36px;
  transform: rotate(6deg); filter: drop-shadow(0 3px 2px rgba(40, 35, 8, .16));
}
.mp-lv-name .mp-lv-emblem svg { width: 100%; height: 100%; overflow: visible; opacity: 1; }
.mp-lv-emblem .mp-emblem-ribbon {
  fill: #b9e93f; stroke: #293215; stroke-width: 2.2; stroke-linejoin: round;
}
.mp-lv-emblem .mp-emblem-ribbon.alt { fill: #91c83b; }
.mp-lv-emblem .mp-emblem-outer {
  fill: #ffc94d; stroke: #293215; stroke-width: 2.4;
}
.mp-lv-emblem .mp-emblem-inner {
  fill: #fff1a6; stroke: #fff8d7; stroke-width: 2;
}
.mp-lv-emblem .mp-emblem-shine {
  fill: none; stroke: rgba(255, 255, 255, .85); stroke-width: 2.6; stroke-linecap: round;
}
.mp-lv-emblem .mp-emblem-num {
  fill: #293215; font-family: inherit; font-size: 16px; font-weight: 900;
}
.mp-lv-desc { margin-top: 6px; font-size: 11.5px; line-height: 1.55; color: var(--text-2); }
.mp-lv-bar {
  margin-top: 12px; width: 150px; height: 6px; border-radius: 99px;
  background: rgba(20, 30, 10, .1); overflow: hidden;
}
.mp-lv-bar i { display: block; height: 100%; border-radius: 99px; background: #16190f; }
.mp-lv-foot { margin-top: 6px; font-size: 11px; color: var(--text-2); }
.mp-badge {
  display: inline-block; margin-top: 10px; padding: 5px 10px;
  border-radius: 8px; font-size: 11.5px; font-weight: 700;
  background: #16190f; color: var(--green);
}
.mp-level-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mp-bio-wrap { margin-top: 10px; }

/* 参考卡渐变（径向彩色光晕 + 白底），人物用参考插画 */
.mine-profile.mine-hero.lv-1 {
  background:
    radial-gradient(88% 88% at 86% 54%, rgba(150, 228, 152, .92) 0%, rgba(150, 228, 152, .34) 46%, rgba(255, 255, 255, 0) 74%),
    #fff;
}
.mine-profile.mine-hero.lv-2 {
  background:
    radial-gradient(88% 88% at 86% 54%, rgba(255, 186, 178, .95) 0%, rgba(255, 186, 178, .36) 46%, rgba(255, 255, 255, 0) 74%),
    #fff;
}
.mine-profile.mine-hero.lv-3 {
  background:
    radial-gradient(88% 88% at 86% 54%, rgba(255, 198, 143, .95) 0%, rgba(255, 198, 143, .36) 46%, rgba(255, 255, 255, 0) 74%),
    #fff;
}
.mine-profile.mine-hero.lv-4 {
  background:
    radial-gradient(88% 88% at 86% 54%, rgba(224, 188, 254, .95) 0%, rgba(224, 188, 254, .36) 46%, rgba(255, 255, 255, 0) 74%),
    #fff;
}
.mp-art { right: -2px; top: 0; bottom: 0; width: 150px; }
.mp-art img {
  object-fit: contain; object-position: bottom right;
  -webkit-mask-image: none; mask-image: none;
}

/* 英雄卡：铺满渐变 + 透明人物融合 + 保留头像 */
.mine-profile.mine-hero.lv-1 { background: linear-gradient(120deg, #b9e6a0 0%, #e6f9d6 48%, #ffffff 100%); }
.mine-profile.mine-hero.lv-2 { background: linear-gradient(120deg, #ffc6bf 0%, #ffe4e1 48%, #ffffff 100%); }
.mine-profile.mine-hero.lv-3 { background: linear-gradient(120deg, #ffcf9c 0%, #ffe8d4 48%, #ffffff 100%); }
.mine-profile.mine-hero.lv-4 { background: linear-gradient(120deg, #d8bcfb 0%, #efe4ff 48%, #ffffff 100%); }
.mp-art { right: -6px; top: 0; bottom: 0; width: 168px; }
.mp-art img { width: 100%; height: 100%; object-fit: contain; object-position: bottom right; }
.mp-hi-row { display: flex; align-items: center; gap: 8px; }
.mp-avatar {
  width: 34px; height: 34px; border-radius: 50%; overflow: hidden; flex: none;
  background: rgba(255, 255, 255, .75);
  border: 1.5px solid rgba(255, 255, 255, .9);
  box-shadow: 0 4px 10px rgba(20, 30, 10, .08);
}
.mp-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mp-avatar span {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; color: #3c4a12; background: rgba(255, 255, 255, .8);
}

/* 底部导航：渐变 */
#tabbar.tabbar {
  background: linear-gradient(135deg, #33382c 0%, #1d2019 62%, #171a13 100%);
  border: 1px solid rgba(255, 255, 255, .06);
}
#tabbar .tab-item { background: rgba(255, 255, 255, .1); }
#tabbar .tab-item.active {
  background: linear-gradient(135deg, #e6ff8a 0%, #c9ef46 60%, #b9e93f 100%);
}

/* 我的：去掉深色底块，渐变从上到下铺满，人物按参考比例融合 */
.mine-header { background: none !important; padding: 0 0 10px !important; }
.mine-header::before, .mine-header::after { display: none !important; }
.mine-topbar .mt-title { color: var(--text) !important; }
.mine-topbar .mt-settings { background: rgba(20, 30, 10, .06) !important; color: var(--text-2) !important; }
.mine-social { background: #fff !important; border: 1px solid var(--border) !important; }
.mine-social .msc-val { color: var(--text) !important; }
.mine-social .msc-label { color: var(--text-2) !important; }

.mine-profile.mine-hero.lv-1 { background: linear-gradient(180deg, #c6eda8 0%, #eafbd8 44%, #ffffff 100%); }
.mine-profile.mine-hero.lv-2 { background: linear-gradient(180deg, #ffc4bc 0%, #ffe3df 44%, #ffffff 100%); }
.mine-profile.mine-hero.lv-3 { background: linear-gradient(180deg, #ffcd97 0%, #ffe6cf 44%, #ffffff 100%); }
.mine-profile.mine-hero.lv-4 { background: linear-gradient(180deg, #d6b8fa 0%, #eee1ff 44%, #ffffff 100%); }

.mp-art { top: auto; bottom: 0; right: 8px; width: auto; height: 88%; }
.mp-art img { height: 100%; width: auto; object-fit: contain; object-position: right bottom; }

/* 最终：整卡竖直渐变（顶部浓 → 底部白），人物白底用 multiply 融合 */
.mine-profile.mine-hero.lv-1 { background: linear-gradient(180deg, #a8dd86 0%, #d8f3c0 52%, #ffffff 100%) !important; }
.mine-profile.mine-hero.lv-2 { background: linear-gradient(180deg, #ffb0a6 0%, #ffd9d4 52%, #ffffff 100%) !important; }
.mine-profile.mine-hero.lv-3 { background: linear-gradient(180deg, #ffbf7e 0%, #ffe0c2 52%, #ffffff 100%) !important; }
.mine-profile.mine-hero.lv-4 { background: linear-gradient(180deg, #c8a4f6 0%, #e6d6ff 52%, #ffffff 100%) !important; }
.mp-art img { mix-blend-mode: multiply; }

/* 渐变改为整页背景（无卡片边界），从顶部向页面底色过渡 */
.mine-header.lv-1 { background: linear-gradient(180deg, #a8dd86 0%, #d3efb9 46%, var(--bg) 100%) !important; }
.mine-header.lv-2 { background: linear-gradient(180deg, #ffb0a6 0%, #ffdcd7 46%, var(--bg) 100%) !important; }
.mine-header.lv-3 { background: linear-gradient(180deg, #ffbf7e 0%, #ffe3c8 46%, var(--bg) 100%) !important; }
.mine-header.lv-4 { background: linear-gradient(180deg, #c8a4f6 0%, #e6d6ff 46%, var(--bg) 100%) !important; }
.mine-profile.mine-hero.lv-1,
.mine-profile.mine-hero.lv-2,
.mine-profile.mine-hero.lv-3,
.mine-profile.mine-hero.lv-4 {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* 文字配色修正：浅色渐变上统一深色文字 */
.mine-header { color: #1d2410; }
.mine-header .mp-hi,
.mine-header .mp-lv-name { color: #1d2410 !important; }
.mine-header .mp-hi-sub,
.mine-header .mp-lv-desc { color: rgba(28, 38, 14, .64) !important; }
.mine-header .mp-lv-foot,
.mine-header .mp-level-phone,
.mine-header .mp-userno { color: rgba(28, 38, 14, .56) !important; }
.mine-header .mp-bio-text { color: rgba(28, 38, 14, .6) !important; }
.mine-header .mp-bio-text.is-empty { color: rgba(28, 38, 14, .42) !important; }
.mine-header .mp-bio-edit { color: #3f5a12 !important; }
.mine-header .mp-lv-bar { background: rgba(28, 38, 14, .12) !important; }
.mine-header .mp-lv-bar i { background: #2f3f10 !important; }
.mine-header .mp-badge { background: rgba(24, 32, 12, .88) !important; color: #eaffb6 !important; }
.mine-header .mp-lv-desc { max-width: 64%; }

/* 等级信息区文字排版：间距、字号、徽章与简介行 */
.mine-header .mp-main { gap: 0; }
.mine-header .mp-hi-sub { margin-top: 5px; }
.mine-header .mp-lv-name { margin-top: 10px; line-height: 1.2; }
.mine-header .mp-lv-desc { margin-top: 8px; line-height: 1.62; max-width: 62%; }
.mine-header .mp-lv-bar { margin-top: 12px; height: 5px; border-radius: 3px; overflow: hidden; }
.mine-header .mp-lv-foot { margin-top: 8px; font-size: 11px; letter-spacing: .2px; }
.mine-header .mp-level-row { margin-top: 10px; gap: 8px; }
.mine-header .mp-badge { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; line-height: 1.3; }
.mine-header .mp-level-phone { font-size: 10.5px; }
.mine-header .mp-bio-wrap { margin-top: 12px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.mine-header .mp-bio-text { font-size: 11.5px; line-height: 1.5; }
.mine-header .mp-bio-edit { font-size: 11px; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .6); }

/* 文字区避让人物 + 简介与编辑同行 */
.mine-header .mp-main { max-width: 68%; }
.mine-header .mp-lv-desc { max-width: 100%; }
.mine-header .mp-bio-wrap {
  flex-direction: row; align-items: center; width: auto; max-width: 100%;
}
.mine-header .mp-bio-text { width: auto; padding: 0; text-align: left; }


/* ================= 积分体系 / 充值活动 / 签到 ================= */
.mine-stat-row.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mine-stat-row.is-3 .mine-stat-card { padding: 12px 4px; }
.mine-stat-row.is-3 .ms-val { font-size: 16px; }

.benefit-card {
  margin: 10px 14px 0; padding: 12px 14px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius);
}
.bc-row { display: flex; align-items: center; gap: 10px; }
.bc-ico { width: 30px; height: 30px; flex: none; display: flex; align-items: center; justify-content: center;
  border-radius: 9px; background: #f2f8e4; font-size: 15px; }
.bc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.bc-main b { font-size: 12.5px; color: var(--text); }
.bc-main span { font-size: 11px; color: var(--text-2); line-height: 1.5; }
.bc-dots { display: flex; gap: 4px; margin-top: 2px; }
.bc-dots i { width: 16px; height: 4px; border-radius: 999px; background: rgba(28, 38, 14, .12); }
.bc-dots i.on { background: #9cd93b; }
.bc-line { height: 1px; background: var(--border); margin: 10px 0; }
.signin-btn {
  flex: none; height: 30px; padding: 0 12px; border: none; border-radius: 999px;
  background: linear-gradient(135deg, #e6ff8a, #c9ef46 60%, #b9e93f);
  color: #26310b; font-size: 11.5px; font-weight: 700; cursor: pointer;
}
.signin-btn.off { background: #f0f2ea; color: var(--text-3); cursor: default; }
.signin-actions { flex: none; display: flex; align-items: center; gap: 6px; }
.signin-history-btn {
  height: 30px; padding: 0 6px; border: 0; background: transparent;
  color: var(--green-ink); font-size: 11px; cursor: pointer;
}
.bc-level-ico { width: 38px; color: var(--green-ink); font-size: 10.5px; font-weight: 800; }
.signin-record-list { display: flex; flex-direction: column; gap: 8px; }
.signin-record {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 12px; border: 1px solid var(--border); border-radius: 12px; background: #fff;
}
.signin-record > div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.signin-record > div:last-child { flex: none; text-align: right; }
.signin-record b, .signin-record strong { font-size: 12.5px; color: var(--text); }
.signin-record span { font-size: 11px; color: var(--text-2); }
@media (max-width: 360px) {
  .signin-actions { flex-direction: column-reverse; gap: 1px; }
  .signin-history-btn { height: 20px; }
}

.user-manual { color: var(--text); }
.manual-head { padding: 2px 0 16px; }
.manual-head h2 { font-size: 20px; line-height: 1.35; }
.manual-head p { margin-top: 8px; color: var(--text-2); font-size: 12px; line-height: 1.75; }
.manual-section { padding: 16px 0; border-top: 1px solid var(--border); }
.manual-section h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; line-height: 1.5; }
.manual-section h3 > span {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 22px; border-radius: 7px; background: var(--green-soft);
  color: var(--green-ink); font-size: 10px; font-weight: 800;
}
.manual-text { margin-top: 10px; color: var(--text-2); font-size: 12.5px; line-height: 1.85; word-break: break-word; }
.manual-images { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 12px; }
.manual-images img, .manual-video {
  display: block; width: 100%; max-width: 100%; border: 1px solid var(--border);
  border-radius: 12px; background: #eef2e7; object-fit: contain;
}
.manual-video { margin-top: 12px; max-height: 420px; background: #111; }
.manual-updated { padding: 16px 0 4px; border-top: 1px solid var(--border); color: var(--text-3); font-size: 10.5px; text-align: center; }

.recharge-activity {
  border-radius: 14px; padding: 12px 14px; margin-bottom: 12px;
  background: linear-gradient(135deg, #fff4e5, #ffe6cf);
  border: 1px solid #ffd9b0;
}
.ra-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ra-name { font-size: 14px; font-weight: 800; color: #7a3d00; }
.ra-cd { font-size: 11px; font-weight: 700; color: #b4550a; font-variant-numeric: tabular-nums; }
.ra-cd.end { color: var(--text-3); }
.ra-sub { margin-top: 5px; font-size: 10.5px; line-height: 1.55; color: #96601f; }
.ra-tiers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 9px; }
.ra-tier {
  display: flex; flex-direction: column; gap: 2px; padding: 7px 10px;
  border-radius: 10px; background: rgba(255, 255, 255, .7);
}
.ra-tier b { font-size: 12px; color: #7a3d00; }
.ra-tier span { font-size: 10.5px; color: #a46a26; }
.recharge-tip-card {
  margin-bottom: 12px; padding: 10px 12px; border-radius: 12px;
  background: #f6f8ef; color: var(--text-2); font-size: 11px; line-height: 1.6;
}

.hm-activity {
  margin: 12px 14px 2px; padding: 14px 16px;
  border-radius: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: linear-gradient(135deg, #2b3323, #171a13 65%);
  color: #f2f8e4;
}
.ha-main { min-width: 0; }
.ha-tag {
  display: inline-block; padding: 2px 7px; border-radius: 999px;
  background: rgba(201, 239, 70, .18); color: #d6f77a; font-size: 10px; font-weight: 700;
}
.ha-title { margin-top: 6px; font-size: 15px; font-weight: 800; letter-spacing: .2px; }
.ha-sub { margin-top: 3px; font-size: 11px; color: rgba(242, 248, 228, .62); line-height: 1.5; }
.ha-cd { margin-top: 6px; font-size: 11px; font-weight: 700; color: #d6f77a; font-variant-numeric: tabular-nums; }
.ha-btn {
  flex: none; height: 32px; padding: 0 14px; border: none; border-radius: 999px;
  background: linear-gradient(135deg, #e6ff8a, #c9ef46 60%, #b9e93f);
  color: #26310b; font-size: 12px; font-weight: 800; cursor: pointer;
}

@media (max-width: 360px) {
  .mine-stat-row.is-3 .ms-val { font-size: 14px; }
  .ha-sub { display: none; }
}

/* ---------- AI 技能（多步骤编排）---------- */
.skill-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 18px 18px calc(20px + var(--safe-b)); }
.skill-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.skill-hd-main { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.skill-hd-title { font-size: 18px; font-weight: 800; letter-spacing: .2px; }
.skill-hd-sub { margin-top: 4px; font-size: 12px; color: var(--text-2); line-height: 1.5; }
.skill-x, .skill-back {
  flex: none; width: 30px; height: 30px; border-radius: 50%; border: none;
  background: rgba(20,30,10,.06); color: var(--text-2); font-size: 15px; line-height: 1;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.skill-back { font-size: 20px; padding-bottom: 2px; }
.skill-loading { padding: 40px 0; text-align: center; color: var(--text-3); font-size: 13px; }
.skill-list { display: flex; flex-direction: column; gap: 12px; }
.skill-card {
  display: flex; align-items: center; gap: 12px; padding: 14px;
  border-radius: 16px; background: #fff; border: 1px solid rgba(20,30,10,.07);
  box-shadow: 0 4px 14px rgba(28,40,12,.05); cursor: pointer;
}
.skill-card:active { transform: scale(.99); }
.sk-emoji { flex: none; width: 44px; height: 44px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 22px; background: linear-gradient(135deg,#eaffb0,#d3f36a); }
.sk-main { flex: 1; min-width: 0; }
.sk-name { font-size: 15px; font-weight: 700; }
.sk-desc { margin-top: 3px; font-size: 12px; color: var(--text-2); line-height: 1.45; }
.sk-chain { margin-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 11px; color: var(--text-3); }
.sk-chain span { background: rgba(20,30,10,.05); border-radius: 6px; padding: 1px 6px; }
.sk-chain i { font-style: normal; color: var(--text-3); }
.sk-side { flex: none; text-align: right; }
.sk-cost { font-size: 13px; font-weight: 800; color: var(--green-ink); }
.sk-steps { margin-top: 3px; font-size: 11px; color: var(--text-3); }
.skill-form { display: flex; flex-direction: column; gap: 16px; }
.skill-field .form-label { margin-bottom: 8px; }
.skill-req { color: #e05555; margin-left: 2px; }
.skill-file { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; border: 1px dashed rgba(20,30,10,.18); background: rgba(20,30,10,.025); cursor: pointer; }
.skill-file-btn { flex: none; padding: 6px 12px; border-radius: 9px; background: #1b2300; color: #e6ff9a; font-size: 12px; font-weight: 700; }
.skill-file-name { font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.skill-foot { margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(20,30,10,.06); }
.skill-est { font-size: 12px; color: var(--text-2); margin-bottom: 10px; }
.skill-est b { color: var(--green-ink); }
.skill-go { width: 100%; }
.skill-steps { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.skill-step { display: flex; gap: 10px; padding: 12px; border-radius: 13px; background: rgba(20,30,10,.035); border: 1px solid transparent; }
.skill-step.running { background: rgba(214,247,122,.22); border-color: rgba(180,220,60,.45); }
.skill-step.success { background: rgba(76,175,80,.10); border-color: rgba(76,175,80,.3); }
.skill-step.failed { background: rgba(224,85,85,.10); border-color: rgba(224,85,85,.35); }
.skill-step.cancelled { opacity: .65; }
.ss-ico { flex: none; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; background: rgba(20,30,10,.08); color: var(--text-2); }
.skill-step.success .ss-ico { background: #4caf50; color: #fff; }
.skill-step.failed .ss-ico { background: #e05555; color: #fff; }
.skill-step.running .ss-ico { background: #b9e93f; color: #26310b; animation: skspin 1.2s linear infinite; }
@keyframes skspin { to { transform: rotate(360deg); } }
.ss-main { flex: 1; min-width: 0; }
.ss-label { font-size: 13px; font-weight: 600; }
.ss-state { margin-top: 2px; font-size: 11px; color: var(--text-2); }
.skill-step.failed .ss-state { color: #c23b3b; }
.ss-thumb { margin-top: 8px; }
.ss-thumb img { max-width: 120px; border-radius: 8px; display: block; }
.ss-thumb span { font-size: 11px; color: var(--text-2); }
.skill-err { padding: 10px 12px; border-radius: 10px; background: rgba(224,85,85,.10); color: #b03030; font-size: 12px; margin-bottom: 12px; }
.skill-result { margin-bottom: 14px; border-radius: 14px; overflow: hidden; background: #000; }
.skill-result video, .skill-result img { width: 100%; display: block; }

.skill-chat { margin-bottom: 16px; }
.skill-chat-input {
  width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 13px;
  border: 1px solid rgba(20,30,10,.1); background: #fff; font-size: 13px; line-height: 1.5;
  resize: none; outline: none; font-family: inherit; color: var(--text-1);
}
.skill-chat-input:focus { border-color: rgba(150,200,40,.55); box-shadow: 0 0 0 3px rgba(190,235,80,.18); }
.skill-chat-go { margin-top: 8px; width: 100%; }
