/* mysumu.top — Minimalist Obsidian Dark & Porcelain Light Design System */
:root {
  --bg: #080a0f;
  --bg-elev: rgba(17, 20, 29, 0.9);
  --bg-solid: #11141d;
  --bg-input: rgba(10, 12, 19, 0.85);
  --bg-soft: rgba(255, 255, 255, 0.055);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --text: #f5f7fb;
  --text-2: #cbd5e1;
  --muted: #8b95a7;
  --gold: #fbbf24;
  --gold-2: #f59e0b;
  --amber-grad: linear-gradient(135deg, #fde047 0%, #fbbf24 45%, #f59e0b 100%);
  --ai-grad: linear-gradient(135deg, #818cf8 0%, #6366f1 55%, #8b5cf6 100%);
  --emerald: #34d399;
  --emerald-bg: rgba(16, 185, 129, 0.14);
  --danger: #f87171;
  --danger-bg: rgba(239, 68, 68, 0.14);
  --shadow-lg: 0 24px 60px -18px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 0 1px rgba(251, 191, 36, 0.35), 0 10px 30px -10px rgba(245, 158, 11, 0.32);
  --radius-xl: 20px;
  --radius-lg: 15px;
  --radius-md: 12px;
  --radius-sm: 9px;
}

html[data-theme="light"] {
  --bg: #f5f6f8;
  --bg-elev: #ffffff;
  --bg-solid: #ffffff;
  --bg-input: #f8fafc;
  --bg-soft: rgba(15, 23, 42, 0.048);
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.14);
  --text: #0f172a;
  --text-2: #334155;
  --muted: #64748b;
  --emerald: #059669;
  --emerald-bg: rgba(16, 185, 129, 0.12);
  --shadow-lg: 0 16px 44px -18px rgba(15, 23, 42, 0.09);
  --shadow-glow: 0 0 0 1px rgba(245, 158, 11, 0.4), 0 10px 26px -12px rgba(245, 158, 11, 0.25);
}
html[data-theme="light"] .tag-pill {
  background: rgba(245, 158, 11, 0.11); border-color: rgba(245, 158, 11, 0.26); color: #b45309;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.55;
  overflow-x: hidden;
  padding-bottom: 36px;
}

.hidden { display: none !important; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.text-center { text-align: center; }
.muted { color: var(--muted); font-size: 13.5px; }

/* 克制的顶部氛围微光 */
.ambient-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 42% at 50% -8%, rgba(251, 191, 36, 0.09), transparent 70%),
    radial-gradient(45% 36% at 85% 12%, rgba(99, 102, 241, 0.07), transparent 70%);
}
html[data-theme="light"] .ambient-bg {
  background:
    radial-gradient(60% 40% at 50% -8%, rgba(245, 158, 11, 0.08), transparent 70%),
    radial-gradient(45% 35% at 85% 10%, rgba(99, 102, 241, 0.05), transparent 70%);
}

/* 线性 SVG 图标 */
.ic {
  width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.85;
  stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0;
}
.sm-ic { width: 14px; height: 14px; }
.input-lead-ic {
  width: 17px; height: 17px; fill: none; stroke: var(--muted); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; margin-right: 10px; flex-shrink: 0;
}

/* 预览条 */
.preview-mode-bar {
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.16), rgba(99, 102, 241, 0.16));
  border-bottom: 1px solid rgba(251, 191, 36, 0.3);
  padding: 8px 16px; font-size: 12.5px; font-weight: 700; color: var(--gold);
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
}
.preview-bar-link {
  color: var(--text); text-decoration: none; padding: 3px 10px; border-radius: 7px;
  background: var(--bg-soft); border: 1px solid var(--border-strong); font-size: 12px;
}

/* 顶部悬浮导航 */
.topbar {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  background: rgba(8, 10, 15, 0.78);
  border-bottom: 1px solid var(--border);
}
html[data-theme="light"] .topbar { background: rgba(255, 255, 255, 0.86); }

.topbar-inner {
  max-width: 1060px; margin: 0 auto; padding: 11px 20px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px;
}
.topbar-inner > .brand { justify-self: start; }
.topbar-inner > .topbar-actions { justify-self: end; }

.brand {
  display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--text); flex-shrink: 0;
}
.brand-logo {
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--amber-grad); color: #111827;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px -4px rgba(245, 158, 11, 0.5);
}
.brand-name { font-weight: 800; font-size: 17.5px; letter-spacing: -0.3px; }
.brand-dot { color: var(--gold); }
.brand-badge {
  font-size: 10px; font-weight: 700; letter-spacing: 0.7px;
  padding: 2px 7px; border-radius: 99px;
  background: var(--bg-soft); border: 1px solid var(--border); color: var(--muted);
}
.brand-badge.is-pro {
  background: rgba(251, 191, 36, 0.16); border-color: rgba(251, 191, 36, 0.42); color: var(--gold);
}

.nav-pills {
  display: flex; align-items: center; gap: 4px; padding: 4px;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 999px;
}
.nav-pill {
  display: inline-flex; align-items: center; gap: 6px;
  border: none; background: transparent; color: var(--muted);
  font-size: 13.5px; font-weight: 600; padding: 7px 16px; border-radius: 999px;
  cursor: pointer; transition: all 0.18s ease; white-space: nowrap;
}
.nav-pill:hover { color: var(--text); }
.nav-pill.active {
  background: var(--bg-solid); color: var(--text);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2), 0 0 0 1px var(--border-strong);
}

.topbar-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg-soft); color: var(--text-2);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.16s;
}
.icon-btn:hover { border-color: var(--border-strong); color: var(--text); }
.ghost-btn {
  border: 1px solid var(--border); background: transparent; color: var(--text-2);
  padding: 7px 12px; border-radius: 10px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.pro-btn {
  display: inline-flex; align-items: center; gap: 5px;
  border: none; background: var(--amber-grad); color: #111827;
  padding: 7px 14px; border-radius: 10px; font-size: 13px; font-weight: 800; cursor: pointer;
}

/* 主容器 */
.container { max-width: 920px; margin: 0 auto; padding: 20px 18px 40px; }

/* 极简 Hero */
.hero { text-align: center; padding-top: 2px; margin-bottom: 18px; }
.hero-title {
  font-size: clamp(24px, 4.2vw, 38px); font-weight: 850; letter-spacing: -0.025em; line-height: 1.2;
  margin-bottom: 6px;
}
.text-gradient {
  background: var(--amber-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { color: var(--muted); font-size: 14.5px; }

/* 面板与主卡片 */
.panel { display: none; animation: fadeUp 0.22s ease; }
.panel.active { display: block; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.glass-card {
  position: relative;
  background: var(--bg-elev);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 26px;
  box-shadow: var(--shadow-lg);
}
.stacked-card { margin-top: 18px; }

.card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 18px; flex-wrap: wrap;
}
.card-head h2 { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.tag-pill {
  font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 999px;
  background: rgba(251, 191, 36, 0.12); border: 1px solid rgba(251, 191, 36, 0.28); color: var(--gold);
  white-space: nowrap;
}

/* URL 输入控制台 */
.url-deck { display: flex; gap: 10px; align-items: stretch; }
.url-input-wrap {
  flex: 1; min-width: 0; display: flex; align-items: center;
  background: var(--bg-input); border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-md); padding: 5px 7px 5px 15px;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.url-input-wrap:focus-within {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.14);
}
.url-input {
  flex: 1; min-width: 0; border: none; background: transparent; color: var(--text);
  font-size: 15px; padding: 10px 6px 10px 0; outline: none;
}
.url-input::placeholder { color: var(--muted); }
.paste-btn {
  border: none; background: var(--bg-soft); color: var(--text-2);
  padding: 8px 14px; border-radius: 9px; font-size: 13px; font-weight: 700; cursor: pointer;
  white-space: nowrap; transition: all 0.16s;
}
.paste-btn:hover { background: rgba(251, 191, 36, 0.18); color: var(--gold); }

/* 按钮体系 */
.btn-primary, .btn-secondary, .btn-ai, .btn-outline, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 14.5px; font-weight: 700; padding: 12px 20px; border-radius: var(--radius-md);
  cursor: pointer; text-decoration: none; transition: all 0.16s ease; border: none; white-space: nowrap;
}
.btn-primary {
  background: var(--amber-grad); color: #111827;
  box-shadow: 0 8px 22px -8px rgba(245, 158, 11, 0.55);
}
.btn-primary:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.05); }
.btn-ai {
  background: var(--ai-grad); color: #ffffff;
  box-shadow: 0 8px 22px -8px rgba(99, 102, 241, 0.55);
}
.btn-ai:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.06); }
.btn-secondary {
  background: var(--bg-soft); border: 1px solid var(--border-strong); color: var(--text);
}
.btn-secondary:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
.btn-outline {
  background: transparent; border: 1px solid var(--border-strong); color: var(--text-2);
}
.btn-outline:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
.btn-ghost { background: transparent; color: var(--muted); padding: 8px 12px; }
.btn-ghost:hover { color: var(--text); background: var(--bg-soft); }
.sm { font-size: 13px; padding: 8px 13px; border-radius: var(--radius-sm); }
.lg { font-size: 15.5px; padding: 13px 26px; width: 100%; }
button:disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; }

.smart-route-hint {
  margin-top: 10px; padding: 10px 14px; border-radius: 11px;
  background: rgba(99, 102, 241, 0.12); border: 1px solid rgba(129, 140, 248, 0.35);
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  font-size: 13px; color: var(--text);
}

/* 快捷选项行 & 分段按钮 */
.quick-opts {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 14px;
}
.opt-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.seg-group {
  display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px;
  background: var(--bg-input); border: 1px solid var(--border); border-radius: 11px;
}
.seg-btn {
  border: none; background: transparent; color: var(--muted);
  font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 8px; cursor: pointer;
}
.seg-btn.active { background: rgba(251, 191, 36, 0.18); color: var(--gold); }

/* 精致 2 列切换控件 */
.sub-tabs {
  display: grid; grid-template-columns: repeat(2, 1fr); width: 100%; max-width: 400px;
  gap: 4px; padding: 4px; margin-bottom: 14px;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px;
}
.sub-tab {
  border: none; background: transparent; color: var(--muted);
  font-size: 13.5px; font-weight: 700; padding: 8px 10px; border-radius: 9px; cursor: pointer;
  transition: all 0.16s; text-align: center; white-space: nowrap;
}
.sub-tab.active {
  background: var(--bg-solid); color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14), 0 0 0 1px var(--border);
}

/* 目标社交平台水平滚动胶囊 */
.target-pills {
  display: flex; align-items: center; gap: 6px;
  overflow-x: auto; padding-bottom: 4px; margin-bottom: 14px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.target-pills::-webkit-scrollbar { display: none; }
.target-pill {
  flex-shrink: 0; border: 1px solid var(--border-strong); background: var(--bg-soft); color: var(--text-2);
  font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-radius: 999px; cursor: pointer;
  transition: all 0.16s; white-space: nowrap;
}
.target-pill:hover { border-color: var(--gold); color: var(--text); }
.target-pill.active {
  background: rgba(251, 191, 36, 0.18); border-color: rgba(251, 191, 36, 0.55); color: var(--gold);
}

/* 拖拽上传区 */
.dropzone {
  display: block; border: 1.5px dashed var(--border-strong); border-radius: var(--radius-lg);
  background: var(--bg-input); padding: 24px 16px; text-align: center; cursor: pointer;
  transition: all 0.18s; margin-bottom: 14px;
}
.dropzone:hover, .dropzone.dragover {
  border-color: var(--gold); background: rgba(251, 191, 36, 0.05);
}
.dropzone.compact { padding: 12px 16px; margin-top: 10px; margin-bottom: 14px; text-align: center; }
.dz-svg {
  width: 44px; height: 44px; border-radius: 13px; margin: 0 auto 8px;
  background: rgba(251, 191, 36, 0.12); border: 1px solid rgba(251, 191, 36, 0.25);
  color: var(--gold); display: flex; align-items: center; justify-content: center;
}
.dz-title { font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.dz-sub { font-size: 12.5px; color: var(--muted); }
.dz-inline { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; font-size: 13.5px; }
.dz-inline strong { color: var(--gold); word-break: break-all; }

/* 本地视频预览起点播放器 */
.local-scrubber {
  margin: 0 0 14px; border-radius: 13px; overflow: hidden;
  border: 1px solid var(--border-strong); background: #020617;
}
.local-scrubber video { width: 100%; max-height: 240px; display: block; background: #000; }
.scrubber-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 9px 14px; background: var(--bg-input); border-top: 1px solid var(--border);
}

/* 表单网格 */
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.select-input, .text-input {
  width: 100%; background: var(--bg-input); border: 1px solid var(--border-strong);
  color: var(--text); font-size: 14px; padding: 10px 12px; border-radius: 10px; outline: none;
}
.select-input:focus, .text-input:focus { border-color: var(--gold); }
.check-field { display: flex; align-items: flex-end; padding-bottom: 8px; }
.checkbox-label { display: flex !important; align-items: center; gap: 8px; cursor: pointer; color: var(--text-2) !important; margin: 0 !important; }

.adv-box {
  margin-top: 12px; padding: 11px 14px; border-radius: 12px;
  background: var(--bg-soft); border: 1px solid var(--border);
}
.adv-box summary { font-size: 13px; font-weight: 600; color: var(--text-2); cursor: pointer; }

.dual-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.action-bar { display: flex; gap: 10px; }

/* 视频解析结果卡 */
.media-preview {
  display: grid; grid-template-columns: 260px 1fr; gap: 18px;
  margin-top: 18px; padding: 16px; border-radius: var(--radius-lg);
  background: var(--bg-input); border: 1px solid var(--border-strong);
}
.media-thumb-wrap {
  position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 16/9; background: #020617;
}
.media-thumb-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-dur {
  position: absolute; right: 8px; bottom: 8px; padding: 2px 8px; border-radius: 6px;
  background: rgba(0, 0, 0, 0.78); color: #fff; font-size: 12px; font-weight: 700;
}
.media-plat {
  position: absolute; left: 8px; top: 8px; padding: 3px 9px; border-radius: 6px;
  background: rgba(251, 191, 36, 0.92); color: #111827; font-size: 11.5px; font-weight: 800;
}
.media-meta h3 { font-size: 16px; font-weight: 800; line-height: 1.4; margin-bottom: 6px; }
.media-author { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.media-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* 任务进度 & 完成结果框 */
.job-box {
  margin-top: 16px; padding: 15px 17px; border-radius: var(--radius-lg);
  background: var(--bg-input); border: 1px solid var(--border-strong);
}
.job-box.is-error { border-color: rgba(248, 113, 113, 0.45); background: var(--danger-bg); }
.job-box.is-done { border-color: rgba(52, 211, 153, 0.45); }
.job-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.job-msg { font-size: 14px; font-weight: 700; }
.job-pct { font-size: 13px; color: var(--gold); font-weight: 800; }
.prog-track {
  height: 7px; border-radius: 99px; background: var(--bg-soft); overflow: hidden; margin-top: 10px;
}
.prog-bar {
  height: 100%; border-radius: 99px; background: var(--amber-grad); transition: width 0.35s ease;
}
.job-result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; align-items: center; }
.audio-player { width: 100%; margin-top: 12px; height: 40px; border-radius: 10px; }
.video-preview {
  width: 100%; max-height: 360px; border-radius: 12px; margin-top: 12px; background: #000; display: block;
}

.post-dl-promo {
  margin-top: 14px; padding: 11px 14px; border-radius: 11px;
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.1), rgba(99, 102, 241, 0.1));
  border: 1px solid rgba(251, 191, 36, 0.22);
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--text-2);
}

/* 文案工坊展示区 */
.copy-studio {
  margin-top: 16px; padding: 18px; border-radius: var(--radius-lg);
  background: var(--bg-input); border: 1px solid rgba(129, 140, 248, 0.35);
}
.copy-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-bottom: 12px;
}
.copy-head h3 { font-size: 16.5px; font-weight: 800; }
.copy-head-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.copy-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.copy-tab {
  border: 1px solid var(--border); background: var(--bg-soft); color: var(--text-2);
  font-size: 13px; font-weight: 700; padding: 7px 12px; border-radius: 9px; cursor: pointer;
}
.copy-tab.active { background: var(--ai-grad); border-color: transparent; color: #fff; }
.copy-textarea {
  width: 100%; border-radius: 12px; border: 1px solid var(--border-strong);
  background: var(--bg-solid); color: var(--text); padding: 14px; font-size: 14px;
  line-height: 1.75; resize: vertical; outline: none; font-family: inherit;
}
.timeline-list {
  max-height: 300px; overflow-y: auto; border-radius: 12px; border: 1px solid var(--border);
  background: var(--bg-solid); padding: 8px;
}
.tl-item { display: flex; gap: 10px; padding: 7px 10px; border-radius: 8px; font-size: 13.5px; cursor: pointer; }
.tl-item:hover { background: var(--bg-soft); }
.tl-ts { color: var(--gold); font-family: ui-monospace, SFMono-Regular, monospace; font-weight: 700; flex-shrink: 0; }

/* 聊天气泡预览器 */
.wechat-preview-box {
  display: grid; grid-template-columns: 260px 1fr; gap: 18px;
  margin-top: 16px; padding: 16px; border-radius: var(--radius-lg);
  background: var(--bg-input); border: 1px solid rgba(52, 211, 153, 0.35);
}
.wechat-sim { border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: #ededed; color: #111; }
.wechat-sim-bar {
  background: #f7f7f7; padding: 8px 12px; font-size: 12px; font-weight: 700; text-align: center;
  border-bottom: 1px solid #e5e5e5; color: #333;
}
.wechat-sim-body { padding: 16px 14px; min-height: 160px; display: flex; flex-direction: column; justify-content: center; }
.wx-row { display: flex; justify-content: flex-end; align-items: flex-start; gap: 8px; }
.wx-msg-wrap img { max-width: 140px; max-height: 140px; border-radius: 10px; display: block; }
.wx-avatar {
  width: 32px; height: 32px; border-radius: 7px; background: #07c160; color: #fff;
  font-size: 12.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.wx-badge {
  display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 800;
  background: var(--emerald-bg); color: var(--emerald); margin-bottom: 8px;
}
.wx-badge.warn { background: rgba(251, 191, 36, 0.16); color: var(--gold); }
.wx-btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* 表情包解析结果网格 */
.pack-result { margin-top: 18px; }
.pack-header {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  margin-bottom: 12px;
}
.pack-title-wrap { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; min-width: 0; }
.pack-title-wrap h3 { font-size: 16.5px; font-weight: 800; }
.pack-meta { font-size: 13px; color: var(--muted); }
.pack-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.sticker-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 11px;
}
.stk-card {
  position: relative; background: var(--bg-input); border: 1.5px solid var(--border);
  border-radius: 14px; padding: 9px; display: flex; flex-direction: column; gap: 8px;
  transition: transform 0.16s, border-color 0.16s, box-shadow 0.16s;
}
.stk-card:hover { transform: translateY(-2px); border-color: rgba(251, 191, 36, 0.5); }
.stk-card.is-selected { border-color: var(--gold); box-shadow: var(--shadow-glow); }
.stk-sel-badge {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(15, 23, 42, 0.65); border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: transparent; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 900; pointer-events: none;
}
.stk-card.is-selected .stk-sel-badge {
  background: var(--gold); border-color: var(--gold); color: #111827;
}
.stk-img-box {
  position: relative; aspect-ratio: 1/1; border-radius: 10px; overflow: hidden;
  background: var(--bg-soft); display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.stk-img-box img, .stk-img-box video { max-width: 100%; max-height: 100%; object-fit: contain; display: block; border-radius: 8px; }
.stk-gif-tag {
  position: absolute; top: 6px; right: 6px; padding: 2px 6px; border-radius: 5px;
  background: rgba(16, 185, 129, 0.92); color: #fff; font-size: 10px; font-weight: 800;
}
.sticker-grid.single-showcase { display: block; max-width: 560px; margin: 4px auto 0; }
.stk-single-card {
  background: var(--bg-input); border: 1.5px solid var(--border-strong);
  border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 14px;
}
.stk-single-stage {
  position: relative; border-radius: 12px; overflow: hidden; background: #090c14;
  display: flex; align-items: center; justify-content: center; min-height: 200px; max-height: 440px; cursor: pointer;
}
.stk-single-stage video, .stk-single-stage img {
  max-width: 100%; max-height: 420px; width: auto; height: auto; object-fit: contain; display: block;
}
.stk-dur-badge {
  position: absolute; top: 10px; left: 10px; padding: 3px 9px; border-radius: 99px;
  background: rgba(11, 15, 25, 0.78); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14); color: var(--gold); font-size: 11.5px; font-weight: 700;
}
.stk-single-actions {
  display: flex; flex-direction: column; gap: 8px;
}
.stk-single-actions .btn-primary,
.stk-single-actions .btn-secondary,
.stk-single-actions .btn-outline { width: 100%; text-align: center; justify-content: center; text-decoration: none; }
.stk-trim-link {
  background: transparent; border: none; color: var(--muted); font-size: 12.5px; font-weight: 600;
  cursor: pointer; padding: 4px 8px; align-self: center; transition: color 0.14s;
}
.stk-trim-link:hover { color: var(--gold); text-decoration: underline; }
.stk-card-btns { display: flex; gap: 6px; }
.stk-mini-btn {
  flex: 1; border: 1px solid var(--border-strong); background: var(--bg-soft); color: var(--text-2);
  font-size: 12px; font-weight: 700; padding: 7px 4px; border-radius: 8px; cursor: pointer;
  text-align: center; text-decoration: none; transition: all 0.14s;
}
.stk-mini-btn.single { width: 100%; padding: 8px 6px; }
.stk-mini-btn:hover { border-color: var(--gold); color: var(--gold); }
.stk-mini-btn.accent { background: rgba(251, 191, 36, 0.14); color: var(--gold); border-color: rgba(251, 191, 36, 0.34); }

/* 无水印图集卡片网格 */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.album-card {
  background: var(--bg-input); border: 1px solid var(--border); border-radius: 14px;
  padding: 9px; display: flex; flex-direction: column; gap: 8px;
}
.album-img-box {
  position: relative; aspect-ratio: 3/4; border-radius: 10px; overflow: hidden;
  background: var(--bg-soft); display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.album-img-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.album-idx-tag {
  position: absolute; top: 6px; left: 6px; padding: 2px 7px; border-radius: 6px;
  background: rgba(15, 23, 42, 0.78); color: #fff; font-size: 11px; font-weight: 700;
}

/* 画质无损压缩预设卡片 */
.cmp-file-pill {
  padding: 10px 14px; border-radius: 11px; margin-bottom: 14px;
  background: var(--emerald-bg); border: 1px solid rgba(52, 211, 153, 0.3);
  color: var(--emerald); font-size: 13px; font-weight: 700;
}
.cmp-presets { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 1fr; gap: 12px; }
.preset-card {
  text-align: left; padding: 14px 16px; border-radius: 14px; cursor: pointer;
  background: var(--bg-input); border: 1.5px solid var(--border); color: var(--text);
  transition: all 0.16s; display: flex; flex-direction: column; gap: 5px;
}
.preset-card:hover { border-color: var(--border-strong); }
.preset-card.active {
  border-color: var(--gold); background: rgba(251, 191, 36, 0.08); box-shadow: var(--shadow-glow);
}
.preset-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.preset-top strong { font-size: 14.5px; font-weight: 800; }
.preset-card p { font-size: 12.5px; color: var(--muted); line-height: 1.45; margin: 0; text-wrap: balance; }

/* 商业化预留 */
.ad-slot-banner {
  margin-top: 20px; padding: 14px 18px; border-radius: var(--radius-lg);
  background: var(--bg-elev); border: 1px solid var(--border-strong);
}
.ad-banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.ad-banner-left { display: flex; align-items: center; gap: 12px; }
.ad-badge {
  font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 6px;
  background: rgba(251, 191, 36, 0.16); color: var(--gold);
}
.affiliate-section { margin-top: 20px; }
.sec-head h3 { font-size: 16px; font-weight: 800; margin-bottom: 10px; }
.affiliate-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.aff-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 8px;
  padding: 15px; border-radius: var(--radius-lg);
  background: var(--bg-elev); border: 1px solid var(--border); text-decoration: none; color: var(--text);
}
.aff-tag { font-size: 11px; font-weight: 800; color: var(--gold); }
.aff-cta { font-size: 13px; font-weight: 700; color: var(--gold); }

/* 极简页脚 */
.footer { max-width: 920px; margin: 22px auto 0; padding: 18px 18px 24px; border-top: 1px solid var(--border); }
.footer-inner { display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 13px; }
.footer-links a:hover { color: var(--gold); }
.footer-status { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; }
.status-pill {
  font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px;
  background: var(--emerald-bg); color: var(--emerald);
}
.quota-pill {
  font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px;
  background: var(--bg-soft); border: 1px solid var(--border); color: var(--text-2); cursor: pointer;
}
.quota-pill.is-pro { background: rgba(251, 191, 36, 0.16); border-color: rgba(251, 191, 36, 0.4); color: var(--gold); }
.quota-upsell-row { margin-top: 10px; display: flex; gap: 10px; }

/* 弹窗 & 抽屉 & 多选悬浮条 */
.modal-backdrop, .drawer-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(2, 6, 23, 0.72); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.drawer-backdrop { justify-content: flex-end; padding: 0; }
.modal-card {
  width: 100%; max-width: 500px; max-height: 90vh; overflow-y: auto;
  background: var(--bg-solid); border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl); padding: 22px; box-shadow: var(--shadow-lg);
}
.modal-card.modal-lg { max-width: 760px; }
.drawer-card {
  width: 100%; max-width: 380px; height: 100%; overflow-y: auto;
  background: var(--bg-solid); border-left: 1px solid var(--border-strong); padding: 22px;
}
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.modal-head h3 { font-size: 17.5px; font-weight: 800; }
.modal-close {
  border: 1px solid var(--border); background: var(--bg-soft); color: var(--text);
  width: 32px; height: 32px; border-radius: 9px; cursor: pointer; font-size: 14px; flex-shrink: 0;
}

.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 14px 0; }
.plan-card { padding: 16px; border-radius: 14px; background: var(--bg-input); border: 1px solid var(--border); position: relative; }
.plan-card.highlight { border-color: rgba(251, 191, 36, 0.6); }
.plan-badge { position: absolute; top: -9px; right: 12px; background: var(--amber-grad); color: #111827; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 99px; }
.plan-name { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.plan-price { font-size: 24px; font-weight: 900; color: var(--gold); margin-bottom: 8px; }
.plan-price span { font-size: 12px; color: var(--muted); }
.plan-feats { list-style: none; font-size: 12.5px; color: var(--text-2); display: flex; flex-direction: column; gap: 5px; }

.redeem-box { padding: 14px; border-radius: 13px; background: var(--bg-soft); border: 1px solid var(--border); }
.redeem-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; font-size: 13px; }
.redeem-row { display: flex; gap: 8px; flex-wrap: wrap; }
.redeem-row .text-input { flex: 1; min-width: 190px; }
.redeem-msg { margin-top: 8px; font-size: 13px; font-weight: 700; }
.vip-active-banner {
  padding: 10px 14px; border-radius: 11px; margin-bottom: 12px;
  background: var(--emerald-bg); color: var(--emerald); font-size: 13px; font-weight: 700;
}
.qr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.qr-card { padding: 14px; border-radius: 13px; border: 1px solid var(--border); background: var(--bg-input); text-align: center; }
.qr-card img { width: 140px; height: 140px; object-fit: contain; border-radius: 10px; margin-bottom: 6px; }
.qr-placeholder { width: 140px; height: 140px; margin: 0 auto 6px; border-radius: 10px; border: 1.5px dashed var(--border-strong); display: flex; align-items: center; justify-content: center; padding: 10px; font-size: 12px; color: var(--muted); }

.history-list { display: flex; flex-direction: column; gap: 10px; }
.hist-item { padding: 12px; border-radius: 12px; background: var(--bg-input); border: 1px solid var(--border); }
.hist-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.hist-title { font-size: 13.5px; font-weight: 700; margin-bottom: 8px; word-break: break-all; }

.batch-select-bar {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 65;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 14px; border-radius: 999px; width: max-content; max-width: calc(100vw - 24px);
  background: rgba(17, 20, 29, 0.94); backdrop-filter: blur(18px);
  border: 1px solid rgba(251, 191, 36, 0.45); box-shadow: var(--shadow-lg);
}
html[data-theme="light"] .batch-select-bar { background: rgba(255, 255, 255, 0.96); }
.batch-sel-count { font-size: 13px; font-weight: 800; color: var(--gold); white-space: nowrap; padding-left: 4px; }
.batch-sel-btns { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; }

/* 通用快捷保存弹窗 */
.save-sheet-card { max-width: 460px; padding: 20px; }
#saveSheetModal .modal-head { margin-bottom: 10px; }
#saveModalTargets { margin-bottom: 12px; }
.save-sheet-stage {
  position: relative; min-height: 210px; max-height: 300px; border-radius: 14px;
  border: 1px solid var(--border-strong); overflow: hidden;
  display: flex; align-items: center; justify-content: center; padding: 12px;
  background-color: #111520;
  background-image:
    linear-gradient(45deg, rgba(255,255,255,0.045) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,255,255,0.045) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.045) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.045) 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
}
html[data-theme="light"] .save-sheet-stage {
  background-color: #f3f5f9;
  background-image:
    linear-gradient(45deg, rgba(15,23,42,0.045) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(15,23,42,0.045) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(15,23,42,0.045) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(15,23,42,0.045) 75%);
}
.save-sheet-stage img, .save-sheet-stage video {
  max-width: 100%; max-height: 275px; width: auto; height: auto;
  object-fit: contain; display: block; border-radius: 8px;
  -webkit-touch-callout: default; user-select: none;
}
.save-spinner {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(15, 23, 42, 0.72); color: #fbbf24; font-size: 13px; font-weight: 700;
  pointer-events: none; z-index: 2;
}
.save-sheet-status {
  margin-top: 10px; text-align: center; font-size: 13px; font-weight: 700; color: var(--emerald);
}
.save-sheet-status.is-loading { color: var(--gold); }
.save-sheet-status.is-error { color: var(--danger); }
.save-sheet-actions { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.save-sheet-actions .btn-primary { flex: 1; min-width: 120px; }
.save-sheet-nav {
  margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}

/* Toast */
.toast {
  position: fixed; bottom: 86px; left: 50%; transform: translateX(-50%); z-index: 120;
  padding: 10px 18px; border-radius: 999px;
  background: rgba(17, 20, 29, 0.96); color: #fff; border: 1px solid rgba(251, 191, 36, 0.4);
  font-size: 13.5px; font-weight: 700; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

/* 移动端底部固定 4 Tab 导航 */
.mobile-dock { display: none; }

@media (max-width: 860px) {
  .topbar-inner { display: flex; justify-content: space-between; }
  .nav-pills { display: none; }
  .mobile-dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: rgba(8, 10, 15, 0.9); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid var(--border);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  html[data-theme="light"] .mobile-dock { background: rgba(255, 255, 255, 0.95); }
  .dock-btn {
    border: none; background: transparent; color: var(--muted);
    display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 5px 2px; cursor: pointer;
  }
  .dock-btn small { font-size: 11px; font-weight: 700; }
  .dock-btn.active { color: var(--gold); }
  body { padding-bottom: 84px; }
  .batch-select-bar { bottom: calc(70px + env(safe-area-inset-bottom)); }
  .media-preview, .wechat-preview-box { grid-template-columns: 1fr; }
  .form-grid-3, .affiliate-grid, .plan-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .glass-card { padding: 18px 14px; }
  .url-deck { flex-direction: column; }
  .sub-tabs { max-width: 100%; }
  .sub-tab { font-size: 13px; padding: 8px 6px; }
  .seg-group { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; }
  .seg-btn { padding: 7px 4px; text-align: center; font-size: 12px; }
  .direct-dl-btn { width: 100%; }
  .dual-cta, .qr-grid { grid-template-columns: 1fr; }
  .hide-xs { display: none; }
  #saveSheetModal { align-items: flex-end; padding: 0; }
  .save-sheet-card {
    max-width: 100%; width: 100%; border-radius: 20px 20px 0 0;
    max-height: 90vh; padding: 18px 15px calc(20px + env(safe-area-inset-bottom));
  }
  .save-sheet-stage { min-height: 180px; max-height: 235px; }
  .save-sheet-stage img, .save-sheet-stage video { max-height: 210px; }
  .cmp-presets { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .preset-card { padding: 11px 10px; gap: 4px; }
  .preset-top { flex-direction: column; align-items: flex-start; gap: 4px; }
  .preset-top strong { font-size: 13px; }
  .preset-top .tag-pill { font-size: 10.5px; padding: 1px 7px; }
  .preset-card p { font-size: 11.5px; line-height: 1.35; }
  .sticker-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stk-mini-btn { padding: 8px 4px; font-size: 12px; }
  .batch-select-bar { padding: 8px 12px; gap: 8px; }
  .batch-sel-btns .sm { padding: 6px 9px; font-size: 12px; }
  .topbar-inner { padding: 10px 14px; gap: 8px; }
  .brand-badge { display: none; }
  .brand-name { font-size: 16.5px; }
  .icon-btn { width: 38px; height: 38px; }
  .target-pills { flex-wrap: wrap; overflow: visible; }
  .target-pill { padding: 9px 13px; }
  .url-input::placeholder { font-size: 13px; }
}

.stk-img-box, .stk-single-stage {
  background-image: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: stk-shimmer 1.4s linear infinite;
}
@keyframes stk-shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }
@media (prefers-reduced-motion: reduce) { .stk-img-box, .stk-single-stage { animation: none; } }
.stk-img-box.is-loaded, .stk-single-stage.is-loaded { animation: none; background-image: none; }
