/* ============ 全局设计系统 ============ */
/* 默认主题 = 白色（浅色），深色主题通过 html[data-theme=...] 覆盖 */
:root {
  --bg: #f3f5fa;
  --bg-soft: #e9edf5;
  --bg-card: #ffffff;
  --bg-elev: #f0f2f9;
  --border: #dfe3ee;
  --border-strong: #c5ccdf;
  --text: #1f2534;
  --text-dim: #4f576c;
  --text-faint: #858da3;
  --primary: #7c5cff;
  --primary-strong: #6a46f5;
  --primary-soft: rgba(124, 92, 255, 0.12);
  --accent: #0891b2;
  --accent-soft: rgba(8, 145, 178, 0.12);
  --success: #0e9f70;
  --warning: #b45309;
  --danger: #dc4b4b;
  --gold: #c08416;
  --nav-bg: rgba(255, 255, 255, 0.9);
  --primary-text: #6a46f5;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 10px 40px rgba(50, 60, 110, 0.12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  /* ===== 统一布局基准（即梦风格）===== */
  --page-width: 1560px;          /* 全站内容统一最大宽度（加宽） */
  --page-gutter: 24px;           /* 页面左右留白 */
  --sidebar-width: 240px;        /* 统一侧栏宽度 */
  --navbar-height: 64px;         /* 统一导航栏高度 */
  --panel-pad: 26px;             /* 统一面板内边距 */
  --card-gap: 20px;              /* 统一卡片间距 */
  --tool-min-height: 640px;      /* 创作工具输入/输出区统一最小高度（加高） */
}

/* ============ 主题模式（白色/灰色/蓝色/粉色/金色，导航栏处切换） ============ */
html[data-theme="t_blue"] {
  /* 蓝色 = 深空蓝黑（手动切换） */
  --bg: #0b0d14; --bg-soft: #11141f; --bg-card: #171b2a; --bg-elev: #1e2337;
  --border: #262c42; --border-strong: #343b58;
  --text: #e8eaf2; --text-dim: #9aa1bd; --text-faint: #6b7290;
  --primary: #7c5cff; --primary-strong: #6a46f5; --primary-soft: rgba(124, 92, 255, 0.14);
  --accent: #22d3ee; --accent-soft: rgba(34, 211, 238, 0.14);
  --success: #34d399; --warning: #fbbf24; --danger: #f87171; --gold: #f5c76a;
  --nav-bg: rgba(11, 13, 20, 0.82); --primary-text: #a98cff;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}
html[data-theme="t_white"] {
  --bg: #f3f5fa; --bg-soft: #e9edf5; --bg-card: #ffffff; --bg-elev: #f0f2f9;
  --border: #dfe3ee; --border-strong: #c5ccdf;
  --text: #1f2534; --text-dim: #4f576c; --text-faint: #858da3;
  --primary: #7c5cff; --primary-strong: #6a46f5; --primary-soft: rgba(124, 92, 255, 0.12);
  --accent: #0891b2; --accent-soft: rgba(8, 145, 178, 0.12);
  --success: #0e9f70; --warning: #b45309; --danger: #dc4b4b; --gold: #c08416;
  --nav-bg: rgba(255, 255, 255, 0.9); --primary-text: #6a46f5;
  --shadow: 0 10px 40px rgba(50, 60, 110, 0.12);
}
html[data-theme="t_gray"] {
  --bg: #131419; --bg-soft: #1a1c22; --bg-card: #21232b; --bg-elev: #2a2c36;
  --border: #31343f; --border-strong: #434654;
  --text: #e9eaf0; --text-dim: #a2a6b5; --text-faint: #71758a;
  --primary: #7c5cff; --primary-strong: #6a46f5; --primary-soft: rgba(124, 92, 255, 0.14);
  --accent: #22d3ee; --accent-soft: rgba(34, 211, 238, 0.14);
  --nav-bg: rgba(19, 20, 25, 0.85); --primary-text: #a98cff;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
html[data-theme="t_pink"] {
  --bg: #fbf3f7; --bg-soft: #f6e7ee; --bg-card: #ffffff; --bg-elev: #faeef3;
  --border: #f0d9e4; --border-strong: #e3bccd;
  --text: #40222f; --text-dim: #8a5f72; --text-faint: #b391a1;
  --primary: #ec4899; --primary-strong: #db2777; --primary-soft: rgba(236, 72, 153, 0.12);
  --accent: #b45fc9; --accent-soft: rgba(180, 95, 201, 0.12);
  --success: #0e9f70; --warning: #b45309; --danger: #dc4b4b; --gold: #c08416;
  --nav-bg: rgba(255, 255, 255, 0.9); --primary-text: #db2777;
  --shadow: 0 10px 40px rgba(180, 80, 130, 0.14);
}
html[data-theme="t_gold"] {
  --bg: #100e08; --bg-soft: #171409; --bg-card: #1e1a0d; --bg-elev: #282211;
  --border: #332b14; --border-strong: #4a3d1c;
  --text: #f4ecd6; --text-dim: #c4b894; --text-faint: #8f855f;
  --primary: #d9a83f; --primary-strong: #c08e2a; --primary-soft: rgba(217, 168, 63, 0.14);
  --accent: #6fc2b0; --accent-soft: rgba(111, 194, 176, 0.13);
  --gold: #f0c96a;
  --nav-bg: rgba(16, 14, 8, 0.85); --primary-text: #e8c26a;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select {
  font-family: inherit; color: var(--text);
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 14px; font-size: 14px; outline: none;
  transition: border .2s;
}
input:focus, textarea:focus, select:focus { border-color: var(--primary); }
textarea { resize: vertical; min-height: 120px; line-height: 1.7; }
::placeholder { color: var(--text-faint); }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #4a5274; }

/* ============ 布局 ============ */
#app { min-height: 100vh; display: flex; flex-direction: column; }
/* 全站统一内容容器：所有页面共用同一宽度，杜绝宽窄不一 */
.container { width: 100%; max-width: var(--page-width); margin: 0 auto; padding: 0 var(--page-gutter); }

/* ============ 顶部导航（即梦风格顶栏） ============ */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.navbar-inner { display: flex; align-items: center; height: var(--navbar-height); gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; flex-shrink: 0; }
.brand .logo {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid; place-items: center; font-size: 18px;
  box-shadow: 0 4px 16px rgba(124, 92, 255, 0.4);
}
.brand .logo span { transform: translateY(-1px); }
.nav-links { display: flex; gap: 4px; flex: 1; justify-content: center; }
.nav-links a, .nav-links button {
  padding: 8px 16px; border-radius: 10px; font-size: 14px; color: var(--text-dim);
  transition: .18s; font-weight: 500;
}
.nav-links a:hover, .nav-links button:hover { color: var(--text); background: var(--bg-elev); }
.nav-links a.active { color: var(--text); background: var(--primary-soft); font-weight: 600; }
.nav-auth { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-burger {
  display: none; background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: 8px; width: 40px; height: 40px; font-size: 20px; color: var(--text);
  cursor: pointer; flex-shrink: 0; line-height: 1;
}
.nav-back {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: 8px; height: 36px; padding: 0 12px; font-size: 13px;
  color: var(--text-dim); cursor: pointer; font-weight: 500;
  transition: color .15s, background .15s, border-color .15s;
}
.nav-back:hover { color: var(--text); background: var(--primary-soft); border-color: var(--primary); }
.nav-back-label { white-space: nowrap; }
.nav-mobile {
  display: none; flex-direction: column; padding: 10px 16px 16px;
  background: var(--nav-bg); border-top: 1px solid var(--border);
}
.nav-mobile a, .nav-mobile button {
  display: block; padding: 12px 14px; border-radius: 10px; font-size: 15px;
  color: var(--text-dim); font-weight: 500;
}
.nav-mobile a:hover { color: var(--text); background: var(--bg-elev); }
.nav-mobile a.active { color: var(--text); background: var(--primary-soft); }
.nav-user {
  display: flex; align-items: center; gap: 10px; padding: 5px 12px 5px 6px;
  background: var(--bg-elev); border-radius: 30px; cursor: pointer; position: relative;
}
.nav-user .avatar {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-size: 14px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}
.nav-user .uname { font-size: 13px; font-weight: 600; max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vip-badge {
  font-size: 10px; padding: 2px 7px; border-radius: 20px; font-weight: 700;
  background: linear-gradient(135deg, #f5c76a, #e6a23c); color: #3a2600;
}

/* 下拉菜单 */
.dropdown-menu {
  position: absolute; top: 110%; right: 0; min-width: 200px;
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: 12px; padding: 8px; box-shadow: var(--shadow); z-index: 200;
  animation: dropIn .16s ease;
}
@keyframes dropIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.dropdown-menu button {
  display: block; width: 100%; text-align: left; padding: 9px 12px;
  border-radius: 8px; font-size: 14px; color: var(--text-dim);
}
.dropdown-menu button:hover { background: var(--bg-card); color: var(--text); }
.dropdown-menu .divider { height: 1px; background: var(--border); margin: 6px 4px; }
.dropdown-menu button.danger { color: var(--danger); }

/* ============ 按钮 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 10px; font-size: 14px; font-weight: 600;
  transition: .18s; white-space: nowrap;
}
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-strong)); color: #fff; box-shadow: 0 4px 16px rgba(124,92,255,.35); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(124,92,255,.5); }
.btn-accent { background: linear-gradient(135deg, var(--accent), #0ea5c9); color: #062229; }
.btn-accent:hover { filter: brightness(1.08); }
.btn-ghost { background: var(--bg-elev); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--border-strong); }
.btn-gold { background: linear-gradient(135deg, #f5c76a, #e6a23c); color: #3a2600; }
.btn-gold:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn-danger { background: rgba(248,113,113,.15); color: var(--danger); border: 1px solid rgba(248,113,113,.3); }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 13px 28px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ============ 徽章 / 标签 ============ */
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; padding: 3px 10px; border-radius: 20px; font-weight: 600;
}
.tag-primary { background: var(--primary-soft); color: var(--primary-text); }
.tag-accent { background: var(--accent-soft); color: #5ee0f5; }
.tag-success { background: rgba(52,211,153,.14); color: var(--success); }
.tag-warning { background: rgba(251,191,36,.14); color: var(--warning); }
.tag-danger { background: rgba(248,113,113,.14); color: var(--danger); }

/* ============ Hero ============ */
.hero {
  position: relative; padding: 96px 0 80px; text-align: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 300px at 20% 10%, rgba(124,92,255,.22), transparent 60%),
    radial-gradient(500px 280px at 80% 20%, rgba(34,211,238,.18), transparent 60%),
    radial-gradient(700px 400px at 50% 100%, rgba(124,92,255,.1), transparent 60%);
}
.hero h1 { font-size: 52px; font-weight: 800; line-height: 1.15; letter-spacing: -1px; }
.hero h1 .grad {
  background: linear-gradient(120deg, #a98cff, #5ee0f5, #a98cff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% auto; animation: shine 4s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }
.hero .sub { margin: 22px auto 0; font-size: 18px; color: var(--text-dim); max-width: 640px; }
.hero .cta { margin-top: 40px; display: flex; gap: 16px; justify-content: center; }
.hero .stats { margin-top: 64px; display: flex; justify-content: center; gap: 60px; }
.hero .stat .num { font-size: 32px; font-weight: 800; }
.hero .stat .num.grad { background: linear-gradient(120deg, #a98cff, #5ee0f5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .stat .label { font-size: 13px; color: var(--text-faint); margin-top: 4px; }

/* ============ 分区标题 ============ */
.section { padding: 72px 0; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { font-size: 34px; font-weight: 800; }
.section-head p { color: var(--text-dim); margin-top: 10px; font-size: 15px; }

/* ============ 功能卡片网格 ============ */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 30px; transition: .22s; position: relative; overflow: hidden;
}
.feature-card:hover { transform: translateY(-5px); border-color: var(--primary); box-shadow: 0 14px 40px rgba(124,92,255,.18); }
.feature-card .icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-size: 24px; margin-bottom: 18px;
}
.feature-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--text-dim); font-size: 14px; }
.feature-card .flow { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-faint); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.feature-card .flow b { color: var(--text-dim); font-weight: 600; }

/* ============ 流程步骤 ============ */
.flow-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 24px; }
.flow-step {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 16px; text-align: center; position: relative;
}
.flow-step .step-num {
  width: 28px; height: 28px; margin: 0 auto 12px; border-radius: 50%;
  background: var(--primary-soft); color: #a98cff; display: grid; place-items: center;
  font-weight: 700; font-size: 14px;
}
.flow-step h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.flow-step p { font-size: 12px; color: var(--text-faint); }

/* ============ 卡片通用 ============ */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--panel-pad);
}
.card-title { font-size: 18px; font-weight: 700; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.card-collapse {
  margin-left: auto; flex-shrink: 0;
  border: 1px solid var(--border); background: var(--bg-soft);
  color: var(--text-dim); font-size: 12px; font-weight: 600;
  padding: 3px 10px; border-radius: 8px; cursor: pointer;
  transition: .15s;
}
.card-collapse:hover { color: var(--primary); border-color: var(--primary); }
.card-collapsed > .card-title { margin-bottom: 0; }
.card-desc { color: var(--text-dim); font-size: 14px; margin-bottom: 20px; }

/* ============ 表单 ============ */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--text-dim); }
.form-group input, .form-group textarea, .form-group select { width: 100%; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { font-size: 12px; color: var(--text-faint); margin-top: 6px; }
.form-error { color: var(--danger); font-size: 13px; margin-top: 6px; }

/* ============ 认证页面 ============ */
.auth-wrap { display: grid; place-items: center; padding: 60px 20px; min-height: calc(100vh - 64px); }
.auth-card { width: 100%; max-width: 440px; }
.auth-tabs { display: flex; background: var(--bg-soft); border-radius: 12px; padding: 4px; margin-bottom: 24px; }
.auth-tabs button { flex: 1; padding: 10px; border-radius: 9px; font-weight: 600; color: var(--text-dim); }
.auth-tabs button.active { background: var(--primary); color: #fff; }

/* ============ 会员定价 ============ */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pricing-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 34px 28px; text-align: center; position: relative;
  transition: .22s;
}
.pricing-card.hot { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 16px 50px rgba(245,199,106,.15); }
.pricing-card .pop {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, #f5c76a, #e6a23c); color: #3a2600;
  font-size: 12px; font-weight: 700; padding: 4px 14px; border-radius: 20px;
}
.pricing-card h3 { font-size: 18px; font-weight: 700; }
.pricing-card .price { margin: 18px 0; }
.pricing-card .price .num { font-size: 44px; font-weight: 800; }
.pricing-card .price .unit { color: var(--text-faint); font-size: 14px; }
.pricing-card .price .price-original { color: var(--text-faint); font-size: 15px; text-decoration: line-through; margin-left: 8px; font-weight: 500; }
.pricing-card .price-save { display: inline-block; font-size: 12px; color: var(--gold); font-weight: 700; background: rgba(245,199,106,.12); padding: 2px 8px; border-radius: 6px; margin-top: 2px; }
.pricing-card ul { list-style: none; text-align: left; margin: 20px 0 28px; }
.pricing-card ul li { padding: 8px 0; font-size: 14px; color: var(--text-dim); border-bottom: 1px dashed var(--border); }
.pricing-card ul li:last-child { border: none; }
.pricing-card ul li::before { content: "✓ "; color: var(--success); font-weight: 700; }

/* ============ 工作台（工具页面） ============ */
.workspace { display: grid; grid-template-columns: 1fr 1fr; gap: var(--card-gap); align-items: start; }
.panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--panel-pad); }
.panel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.panel-header h3 { font-size: 16px; font-weight: 700; }
.panel .toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.output-box {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; min-height: 300px; max-height: 640px; overflow: auto;
  font-size: 13.5px; line-height: 1.8; white-space: pre-wrap; word-break: break-word;
}
.output-box.empty { display: grid; place-items: center; color: var(--text-faint); font-size: 14px; text-align: center; }
.script-title { font-size: 15px; font-weight: 700; color: var(--primary-text); }
.script-shot { color: var(--accent); font-weight: 700; }

/* ============ 分镜提取 ============ */
.extract-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.extract-kind-bar { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--bg-soft); flex-wrap: wrap; align-items: flex-end; }
.extract-item { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.extract-item h4 { font-size: 14px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.extract-item .chip { display: inline-flex; align-items: center; gap: 5px; background: var(--bg-elev); border: 1px solid var(--border); padding: 5px 10px; border-radius: 8px; font-size: 12px; margin: 3px 4px 3px 0; }
/* 分镜提取结果：纯文字列表展示（v28，不用小卡片） */
.extract-text-result { padding: 4px 2px; }
.extract-text-head { font-size: 14px; font-weight: 700; margin: 8px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
.extract-text-list { margin: 0; padding-left: 22px; line-height: 1.8; }
.extract-text-list li { margin: 6px 0; font-size: 14px; color: var(--text); word-break: break-word; }
.extract-text-raw { font-size: 14px; line-height: 1.8; color: var(--text); white-space: pre-wrap; word-break: break-word; }
.mp-model-names { margin-top: 4px; font-size: 12px; color: var(--text-dim); word-break: break-all; line-height: 1.5; }

/* ============ 生成结果（图片/视频） ============ */
.gen-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 18px; }
.gen-card { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.gen-card .media { aspect-ratio: 16/9; background: linear-gradient(135deg, #1a2036, #141829); display: grid; place-items: center; position: relative; }
.gen-card .media .placeholder { text-align: center; color: var(--text-faint); font-size: 13px; }
.gen-card .media .ph-icon { font-size: 34px; margin-bottom: 8px; }
.gen-card .info { padding: 12px 14px; font-size: 13px; color: var(--text-dim); }
.gen-card .info b { color: var(--text); }
.progress { height: 8px; background: var(--bg-elev); border-radius: 10px; overflow: hidden; margin-top: 12px; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 10px; transition: width .3s; }
.progress-label { font-size: 12px; color: var(--text-dim); margin-top: 8px; }

/* ============ 后台管理 ============ */
/* 后台独立页（admin.html）全屏布局 */
.admin-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.admin-topbar {
  position: sticky; top: 0; z-index: 100; height: var(--navbar-height);
  background: var(--bg-elev); border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.admin-topbar-inner {
  max-width: 1600px; margin: 0 auto; height: 100%; padding: 0 20px;
  display: flex; align-items: center; gap: 16px;
}
.admin-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; color: var(--text); }
.admin-topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.admin-user-info { display: flex; align-items: center; gap: 8px; color: var(--text-dim); font-size: 14px; }
.admin-page-layout {
  flex: 1; width: 100%; max-width: 1600px; margin: 0 auto;
  display: grid; grid-template-columns: var(--sidebar-width) 1fr; gap: var(--card-gap);
  padding: 24px 20px; align-items: start;
}
.admin-page-layout .admin-sidebar { position: sticky; top: calc(var(--navbar-height) + 24px); align-self: start; }
.admin-layout { display: grid; grid-template-columns: var(--sidebar-width) 1fr; gap: var(--card-gap); padding: 28px 0; align-items: start; }
.admin-sidebar { position: sticky; top: calc(var(--navbar-height) + 24px); align-self: start; }
.nav-back-admin {
  width: 100%; justify-content: center; height: 40px; margin-bottom: 12px;
  border-radius: 10px;
}
.admin-sidebar .menu { display: flex; flex-direction: column; gap: 4px; }
.admin-sidebar .menu button {
  text-align: left; padding: 12px 16px; border-radius: 10px; font-size: 14px;
  color: var(--text-dim); font-weight: 500; display: flex; align-items: center; gap: 10px;
}
.admin-sidebar .menu button:hover { background: var(--bg-card); color: var(--text); }
.admin-sidebar .menu button.active { background: var(--primary-soft); color: var(--primary-text); }
.admin-content { min-width: 0; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.admin-stat { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.admin-stat .num { font-size: 26px; font-weight: 800; }
.admin-stat .label { font-size: 13px; color: var(--text-faint); margin-top: 4px; }

/* ============ 表格 ============ */
.table-wrap { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 16px; text-align: left; font-size: 14px; }
th { background: var(--bg-elev); color: var(--text-dim); font-weight: 600; font-size: 13px; border-bottom: 1px solid var(--border); }
td { border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg-soft); }
.tb-actions { display: flex; gap: 8px; }

/* ============ API 配置卡片 ============ */
.api-card { display: flex; align-items: center; justify-content: space-between; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 14px; }
.api-card .api-icon { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; font-size: 20px; margin-right: 16px; }
.api-card .api-meta { flex: 1; }
.api-card .api-meta h4 { font-size: 15px; font-weight: 700; }
.api-card .api-meta p { font-size: 12.5px; color: var(--text-faint); margin-top: 2px; }
.api-status { display: flex; align-items: center; gap: 6px; font-size: 13px; }

/* 功能权限配置：一行 2 个卡片（v26） */
.perm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.perm-grid .api-card.perm-card { max-width: none !important; margin-bottom: 0; }
@media (max-width: 720px) { .perm-grid { grid-template-columns: 1fr; } }

/* ============ Toast ============ */
.toast-container { position: fixed; top: 88px; left: 50%; transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; align-items: center; gap: 10px; width: auto; max-width: 90vw; pointer-events: none; }
.toast {
  background: var(--bg-elev); border: 1px solid var(--border-strong);
  border-radius: 14px; padding: 12px 18px; font-size: 14px; min-width: 260px; max-width: 440px;
  box-shadow: 0 12px 40px rgba(0,0,0,.32), 0 2px 8px rgba(0,0,0,.12); display: flex; align-items: center; gap: 12px; animation: toastIn .28s ease;
  pointer-events: auto; backdrop-filter: blur(10px);
}
.toast .toast-ico { width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; font-size: 17px; }
.toast.success { border-left: 4px solid var(--success); }
.toast.success .toast-ico { background: color-mix(in srgb, var(--success) 16%, transparent); color: var(--success); }
.toast.error { border-left: 4px solid var(--danger); }
.toast.error .toast-ico { background: color-mix(in srgb, var(--danger) 16%, transparent); color: var(--danger); }
.toast.info { border-left: 4px solid var(--accent); }
.toast.info .toast-ico { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.toast.warning { border-left: 4px solid var(--gold, #f5a623); }
.toast.warning .toast-ico { background: color-mix(in srgb, var(--gold, #f5a623) 16%, transparent); color: var(--gold, #f5a623); }
.toast .toast-msg { flex: 1; line-height: 1.5; word-break: break-word; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }

/* ============ 模态框 ============ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(4px);
  display: grid; place-items: center; z-index: 9000; animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal { background: var(--bg-card); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); padding: 28px; width: 90%; max-width: 520px; max-height: 88vh; overflow: auto; animation: popIn .22s ease; }
@keyframes popIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.modal h3 { font-size: 19px; font-weight: 700; margin-bottom: 20px; }
.modal .modal-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; }

/* ============ 空状态 ============ */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-faint); }
.empty-state .icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h3 { font-size: 18px; color: var(--text-dim); margin-bottom: 8px; }

/* ============ 响应式 ============ */
@media (max-width: 960px) {
  .features-grid, .pricing-grid, .workspace, .admin-layout { grid-template-columns: 1fr; }
  .flow-steps { grid-template-columns: 1fr 1fr; }
  .extract-grid, .gen-grid, .admin-stats { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
  .nav-links { display: none; }
  .nav-burger { display: grid; place-items: center; }
  .nav-auth { margin-left: auto; }
}

/* ============ 积分徽章 ============ */
.points-badge {
  font-size: 11px; padding: 3px 9px; border-radius: 20px; font-weight: 700;
  background: rgba(245, 199, 106, 0.16); color: var(--gold); white-space: nowrap;
}

/* ============ 创作中心（导航模式） ============ */
/* 铺满全宽（不居中、不缩窄），主体区域最大化 */
.create-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: var(--card-gap);
  padding: 24px 28px;
  width: 100%;
  max-width: none;
  margin: 0;
  align-items: start;
}
.create-sidebar { position: sticky; top: calc(var(--navbar-height) + 24px); align-self: start; display: flex; flex-direction: column; gap: 14px; }
.create-sidebar-head {
  padding: 16px 18px; background: linear-gradient(135deg, var(--primary-soft), transparent 70%), var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.create-sidebar-head .csh-title { font-weight: 800; font-size: 16px; letter-spacing: .5px; }
.create-sidebar-head .csh-sub { font-size: 12px; color: var(--text-faint); margin-top: 3px; }
.create-tabs { display: flex; flex-direction: column; gap: 14px; }
.ct-group { display: flex; flex-direction: column; gap: 6px; }
.ct-group-label {
  font-size: 11px; font-weight: 700; color: var(--text-faint); letter-spacing: 2px;
  padding: 0 6px 4px; display: flex; align-items: center; gap: 8px;
}
.ct-group-label::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.create-tab {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; border-radius: 12px;
  background: var(--bg-card); border: 1px solid var(--border); text-align: left;
  transition: .18s; cursor: pointer; overflow: hidden;
}
.create-tab::before {
  content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, var(--primary), var(--accent)); opacity: 0; transition: .18s;
}
.create-tab:hover { border-color: var(--border-strong); background: var(--bg-elev); }
.create-tab:hover .ct-arrow { opacity: 1; transform: translateX(0); }
.create-tab.active { background: var(--primary-soft); border-color: var(--primary); box-shadow: 0 6px 22px rgba(124, 92, 255, .14); }
.create-tab.active::before { opacity: 1; }
.create-tab .ct-icon {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-size: 20px; flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}
.create-tab .ct-body { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 3px; }
.create-tab .ct-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.create-tab .ct-title { font-size: 14px; font-weight: 700; color: var(--text); white-space: nowrap; }
.create-tab .ct-cost {
  font-size: 10px; font-weight: 700; color: var(--gold); background: rgba(245,199,106,.13);
  border: 1px solid rgba(245,199,106,.25); padding: 2px 8px; border-radius: 20px; white-space: nowrap; flex-shrink: 0;
}
.create-tab .ct-desc {
  font-size: 11px; color: var(--text-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block;
}
.create-tab.active .ct-desc { color: var(--text-dim); }
.create-tab .ct-arrow {
  font-size: 18px; color: var(--text-faint); flex-shrink: 0; opacity: 0; transform: translateX(-4px); transition: .18s;
}
.create-tab.active .ct-arrow { opacity: .8; transform: none; color: var(--primary); }
.lock-mini { font-size: 12px; }
.create-sidebar-foot { padding: 14px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); }
.points-mini-card { display: flex; align-items: center; gap: 12px; }
.pm-left { display: flex; align-items: center; gap: 10px; flex: 1; }
.pm-coin {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 19px;
  background: rgba(245,199,106,.12); border: 1px solid rgba(245,199,106,.28);
}
.create-main { min-width: 0; }
/* 工具面板：撑满视口高度，铺满宽度，精致卡片质感 */
.create-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--panel-pad);
  min-height: calc(100vh - var(--navbar-height) - 48px);
  display: flex; flex-direction: column;
  box-shadow: 0 8px 30px rgba(50, 60, 110, 0.05);
  position: relative; overflow: hidden;
}
.create-panel::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent), transparent 70%);
  opacity: .6; pointer-events: none;
}
.create-panel-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.create-panel-head .cph-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 28px; flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 6px 18px rgba(124, 92, 255, .12);
}
.create-panel-head h2 { font-size: 24px; font-weight: 800; }
.create-panel-head p { font-size: 13px; color: var(--text-dim); margin-top: 2px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
/* 模型选择器（创作中心头部右侧） */
.model-select-wrap { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.model-select-label { font-size: 12px; color: var(--text-faint); font-weight: 600; white-space: nowrap; }
.model-select-wrap select { min-width: 200px; max-width: 320px; }
/* 左右双栏等高：输入框自动撑满剩余空间 */
.create-tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--card-gap); align-items: start; }
.create-tool-grid.equal { align-items: stretch; flex: 1; min-height: 0; }
.tool-panel { display: flex; flex-direction: column; min-height: 0; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.tool-panel .panel-header { margin-bottom: 14px; }
.ph-hint { font-size: 12px; color: var(--text-faint); font-weight: 400; }
.tool-input-area { flex: 1; display: flex; min-height: 0; }
.tool-input-area textarea {
  flex: 1; width: 100%; min-height: var(--tool-min-height); line-height: 1.9; font-size: 15px;
  border-radius: 12px; background: var(--bg-card); border: 1px solid var(--border);
  padding: 18px; resize: vertical; transition: border-color .18s, box-shadow .18s;
}
.tool-input-area textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); outline: none; }
.tool-input-area.sm textarea { min-height: 280px; flex: 1; }
.output-box.grow { flex: 1; min-height: var(--tool-min-height); background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 18px; overflow-y: auto; }
.tool-toolbar { margin-top: 14px; margin-bottom: 0; }
.tool-panel .form-group { margin-bottom: 14px; }
/* 小说正文输出 */
.novel-output { font-size: 15px; line-height: 2; color: var(--text); }

/* ============ 主题模式选择器（导航栏用户名旁） ============ */
.theme-picker { position: relative; }
.theme-btn {
  display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 30px;
  background: var(--bg-elev); border: 1px solid var(--border);
  font-size: 13px; font-weight: 600; color: var(--text-dim); transition: .18s;
}
.theme-btn:hover { border-color: var(--border-strong); color: var(--text); }
.theme-menu {
  position: absolute; top: 110%; right: 0; min-width: 160px;
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: 12px; padding: 8px; box-shadow: var(--shadow); z-index: 200;
  animation: dropIn .16s ease;
}
.theme-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 9px 12px; border-radius: 8px; font-size: 14px; color: var(--text-dim);
}
.theme-menu button:hover { background: var(--bg-card); color: var(--text); }
.theme-swatch { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--border-strong); flex-shrink: 0; }
@media (max-width: 700px) { .theme-btn .theme-btn-label { display: none; } }

/* ============ 积分充值页 ============ */
.points-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.points-balance { padding: 16px 24px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); text-align: center; }
.points-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.points-pack {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px 20px; text-align: center; position: relative; transition: .22s;
}
.points-pack:hover { transform: translateY(-4px); border-color: var(--gold); }
.points-pack.hot { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 14px 40px rgba(245,199,106,.12); }
.points-pack .pop {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, #f5c76a, #e6a23c); color: #3a2600;
  font-size: 11px; font-weight: 700; padding: 3px 12px; border-radius: 20px; white-space: nowrap;
}
.points-pack .pp-coin { font-size: 30px; }
.points-pack .pp-points { font-size: 34px; font-weight: 800; color: var(--gold); margin-top: 6px; }
.points-pack .pp-label { font-size: 12px; color: var(--text-faint); }
.points-pack .pp-price { font-size: 20px; font-weight: 700; margin: 12px 0 18px; }
.cost-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cost-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: var(--bg-soft); border-radius: 8px; font-size: 13px; }
.cost-row b { color: var(--gold); }

/* ============ 积分标签 ============ */
.tag-gold { background: rgba(245, 199, 106, 0.16); color: var(--gold); }

@media (max-width: 960px) {
  .create-layout { grid-template-columns: 1fr; }
  .create-sidebar { position: static; }
  .create-tabs { flex-direction: row; overflow-x: auto; padding-bottom: 6px; }
  .ct-group { min-width: 220px; }
  .create-tab { min-width: 150px; }
  .create-tab .ct-arrow { display: none; }
  .create-panel { min-height: 0; }
  .tool-input-area textarea { min-height: 240px; }
  .output-box.grow { min-height: 240px; }
  .create-tool-grid { grid-template-columns: 1fr; }
  .points-grid { grid-template-columns: repeat(2, 1fr); }
  .cost-list { grid-template-columns: 1fr; }
}

/* ============ 品牌 LOGO（自定义图片） ============ */
.brand .logo.logo-img,
.admin-brand .logo.logo-img { background: transparent; box-shadow: none; overflow: hidden; }
.brand .logo.logo-img img,
.admin-brand .logo.logo-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
/* 后台品牌 LOGO 尺寸（.brand 下已定义，.admin-brand 需补齐） */
.admin-brand .logo {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid; place-items: center; font-size: 18px;
  box-shadow: 0 4px 16px rgba(124, 92, 255, 0.4);
}
.admin-brand .logo span { transform: translateY(-1px); }
.brand-name { white-space: nowrap; }

/* ============ 用户中心（个人中心）美化 ============ */
.profile-wrap { padding-top: 40px; }
.profile-container { max-width: var(--page-width); }
.profile-hero {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 24px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px; margin-bottom: 20px;
}
.profile-hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(400px 200px at 15% 0%, var(--primary-soft), transparent 60%),
    radial-gradient(400px 200px at 85% 100%, var(--accent-soft), transparent 60%);
}
.profile-hero > * { position: relative; z-index: 1; }
.ph-avatar {
  width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  font-size: 34px; font-weight: 800; color: #fff; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}
.glow-avatar { box-shadow: 0 0 0 4px var(--bg-card), 0 0 28px rgba(124, 92, 255, .5); animation: avatarGlow 3s ease-in-out infinite; }
@keyframes avatarGlow { 0%,100% { box-shadow: 0 0 0 4px var(--bg-card), 0 0 24px rgba(124,92,255,.4); } 50% { box-shadow: 0 0 0 4px var(--bg-card), 0 0 38px rgba(34,211,238,.55); } }
.ph-info { flex: 1; min-width: 0; }
.ph-name { font-size: 24px; font-weight: 800; }
.ph-username { color: var(--text-faint); font-size: 14px; margin-top: 2px; }
.ph-badges { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.ph-actions { display: flex; gap: 10px; flex-shrink: 0; }

.profile-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.pstat {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; text-align: center; transition: .2s;
}
.pstat:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.pstat-icon {
  width: 42px; height: 42px; margin: 0 auto 10px; border-radius: 12px;
  display: grid; place-items: center; font-size: 20px;
}
.pstat-num { font-size: 24px; font-weight: 800; }
.pstat-label { font-size: 12px; color: var(--text-faint); margin-top: 4px; }

.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.profile-card { animation: fadeSlide .4s ease; }
@keyframes fadeSlide { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.pf-field { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--border); }
.pf-field:last-child { border-bottom: none; }
.pf-label { font-size: 13px; color: var(--text-faint); font-weight: 600; }
.pf-value { font-size: 14px; font-weight: 600; }

.redeem-box { display: flex; gap: 10px; }
.redeem-box input { flex: 1; }

.quick-links { display: flex; flex-direction: column; gap: 10px; }
.quick-link {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; text-align: left;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px;
  transition: .18s; cursor: pointer;
}
.quick-link:hover { background: var(--bg-elev); border-color: var(--primary); transform: translateX(4px); }
.quick-link .ql-icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-size: 20px; background: var(--primary-soft); flex-shrink: 0; }
.quick-link div { flex: 1; display: flex; flex-direction: column; }
.quick-link b { font-size: 14px; }
.quick-link span { font-size: 12px; color: var(--text-faint); }
.quick-link .ql-arrow { font-size: 20px; color: var(--text-faint); }

/* ============ 后台：卡密类型切换 ============ */
.code-type-tabs { display: flex; gap: 8px; margin-bottom: 18px; background: var(--bg-soft); padding: 4px; border-radius: 12px; width: fit-content; }
.code-type-tab { padding: 9px 18px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--text-dim); transition: .18s; }
.code-type-tab.active { background: var(--primary); color: #fff; box-shadow: 0 4px 14px rgba(124,92,255,.35); }

.code-cell { cursor: pointer; transition: .15s; user-select: all; }
.code-cell:hover { background: var(--primary-soft); border-radius: 4px; padding: 2px 4px; }

/* ============ 后台：API Key 显示/隐藏 ============ */
.key-input-wrap { position: relative; display: flex; align-items: center; }
.key-input-wrap input { padding-right: 42px; }
.key-toggle {
  position: absolute; right: 6px; width: 32px; height: 32px; border-radius: 8px;
  display: grid; place-items: center; font-size: 16px; color: var(--text-dim);
  transition: .15s; cursor: pointer;
}
.key-toggle:hover { background: var(--bg-elev); color: var(--text); }
.api-card-block { flex-direction: column; align-items: stretch; }

/* ============ 后台：LOGO 上传 ============ */
.logo-upload { display: flex; align-items: center; gap: 20px; }
.logo-preview {
  width: 84px; height: 84px; border-radius: 16px; border: 2px dashed var(--border-strong);
  display: grid; place-items: center; overflow: hidden; background: var(--bg-soft); flex-shrink: 0;
}
.logo-preview img { width: 100%; height: 100%; object-fit: contain; }
.logo-preview .logo-ph { font-size: 34px; opacity: .6; }
.logo-upload-btns { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }

/* ============ 后台按钮补充 ============ */
.btn-warning { background: rgba(251,191,36,.14); color: var(--warning); border: 1px solid rgba(251,191,36,.3); }
.btn-warning:hover { background: rgba(251,191,36,.22); }
.btn-success { background: rgba(52,211,153,.14); color: var(--success); border: 1px solid rgba(52,211,153,.3); }
.btn-success:hover { background: rgba(52,211,153,.22); }

/* ============ 后台统计卡片动态特效 ============ */
.admin-stat { position: relative; overflow: hidden; transition: .2s; }
.admin-stat:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.admin-stat::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent)); opacity: 0; transition: .2s;
}
.admin-stat:hover::before { opacity: 1; }
.admin-stat .stat-ico {
  position: absolute; top: 12px; right: 14px; font-size: 26px; opacity: .18; transition: .2s;
}
.admin-stat:hover .stat-ico { opacity: .5; transform: scale(1.15) rotate(-6deg); }

/* 后台菜单项小图标动画 */
.admin-sidebar .menu button { transition: .18s; }
.admin-sidebar .menu button:hover { transform: translateX(3px); }
.admin-sidebar .menu .menu-icon {
  display: inline-block; font-size: 16px; margin-right: 4px; transition: .2s;
}
.admin-sidebar .menu button:hover .menu-icon { transform: scale(1.2); }

/* ============ 响应式补充 ============ */
@media (max-width: 960px) {
  .profile-stats { grid-template-columns: repeat(2, 1fr); }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-hero { flex-direction: column; text-align: center; }
  .ph-actions { width: 100%; justify-content: center; }
  .logo-upload { flex-direction: column; align-items: flex-start; }
}

/* ============ 资产库 ============ */
.assets-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.assets-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--card-gap); }
.asset-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: .2s; display: flex; flex-direction: column;
}
.asset-card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: var(--shadow); }
.asset-media {
  aspect-ratio: 1/1; background: var(--bg-soft); display: grid; place-items: center; overflow: hidden;
}
.asset-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
/* 鼠标移动到图片上自动放大 */
.asset-media-zoom:hover img { transform: scale(1.35); }
.asset-media-zoom { cursor: zoom-in; }
.asset-info { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.asset-name { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asset-prompt {
  font-size: 12px; color: var(--text-dim); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  flex: 1;
}
.asset-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.asset-foot-btns { display: flex; gap: 6px; flex-shrink: 0; }
.asset-upload-drop {
  border: 2px dashed var(--border-strong); border-radius: var(--radius); padding: 28px;
  text-align: center; cursor: pointer; transition: .2s; background: var(--bg-soft);
}
.asset-upload-drop:hover { border-color: var(--primary); background: var(--bg-elev); }

@media (max-width: 960px) {
  .assets-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============ 个人中心：积分流水 / 兑换记录 ============ */
.point-log-list { display: flex; flex-direction: column; }
.point-log-row {
  display: flex; align-items: center; gap: 14px; padding: 13px 16px;
  border-bottom: 1px dashed var(--border); font-size: 14px;
}
.point-log-row:last-child { border-bottom: none; }
.point-log-row .plr-reason { flex: 1; min-width: 0; font-weight: 600; }
.point-log-row .plr-ref { display: block; font-size: 12px; color: var(--text-faint); margin-top: 2px; font-family: monospace; }
.point-log-row .plr-time { color: var(--text-faint); font-size: 12px; white-space: nowrap; }
.point-log-row .plr-delta { font-weight: 800; font-size: 15px; white-space: nowrap; }
.point-log-row .plr-delta.pos { color: var(--success); }
.point-log-row .plr-delta.neg { color: var(--danger); }
.point-log-row .plr-delta.zero { color: var(--text-faint); }

/* ============ 会员等级徽章美化 ============ */
.vip-badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 20px;
  background: linear-gradient(135deg, rgba(245,199,106,.2), rgba(245,199,106,.08));
  color: var(--gold); font-size: 12px; font-weight: 700; border: 1px solid rgba(245,199,106,.35);
}
.vip-badge-lg { font-size: 14px; padding: 5px 14px; }
.pstat .vip-badge-icon {
  background: linear-gradient(135deg, rgba(245,199,106,.25), rgba(245,199,106,.1));
  border: 1px solid rgba(245,199,106,.4);
}

/* ============ 后台：多API类型块 ============ */
.api-type-block { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 22px; background: var(--bg-soft); }
.api-type-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.api-type-head .api-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.api-empty { padding: 22px; text-align: center; color: var(--text-faint); font-size: 13px; border: 1px dashed var(--border-strong); border-radius: 10px; }


/* ============ 视频工坊（即梦风格布局） ============ */
.video-studio {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow);
}
.video-studio .studio-input {
  width: 100%;
  min-height: 130px;
  max-height: 320px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14.5px;
  line-height: 1.7;
  resize: vertical;
}
.video-studio .studio-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.ref-strip { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ref-thumb {
  position: relative;
  width: 86px; height: 86px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  animation: refPop .2s ease;
}
@keyframes refPop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
.ref-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ref-del {
  position: absolute; top: 5px; right: 5px;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(0, 0, 0, .62); color: #fff;
  font-size: 11px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: .15s;
}
.ref-del:hover { background: var(--danger); }
.ref-add {
  width: 86px; height: 86px;
  border-radius: 12px;
  border: 1.5px dashed var(--border-strong);
  background: var(--bg-soft);
  color: var(--text-faint);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font-size: 12px; transition: .2s;
}
.ref-add:hover { border-color: var(--primary); color: var(--primary-text); background: var(--primary-soft); }
.vm-toolbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.vm-chip {
  display: flex; align-items: center; gap: 7px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 12px; height: 40px;
  transition: .18s;
}
.vm-chip:hover, .vm-chip:focus-within { border-color: var(--primary); }
.vm-chip .ic { font-size: 14px; opacity: .9; flex-shrink: 0; }
.vm-chip select {
  border: none; background: transparent;
  padding: 0; height: 100%;
  font-size: 13.5px; font-weight: 600;
  cursor: pointer; outline: none; max-width: 220px;
}
.vm-chip select option { background: var(--bg-card); color: var(--text); }
.vm-spacer { flex: 1; }
.vm-cost { font-size: 14px; color: var(--gold); font-weight: 800; white-space: nowrap; }
.btn-gen-round {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff; font-size: 19px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(124, 92, 255, .4);
  transition: .2s; flex-shrink: 0;
}
.btn-gen-round:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 8px 24px rgba(124, 92, 255, .55); }
.btn-gen-round:disabled { opacity: .5; cursor: not-allowed; transform: none; }
@media (max-width: 768px) {
  .vm-toolbar { gap: 8px; }
  .vm-chip { height: 36px; padding: 0 8px; }
  .vm-chip select { font-size: 12.5px; max-width: 130px; }
  .btn-gen-round { width: 42px; height: 42px; }
}

/* ============ 工具按钮旁模型选择 + 积分徽标 ============ */
.tool-toolbar .model-select-wrap { display: inline-flex; align-items: center; gap: 6px; }
.toolbar-spacer { flex: 1; }
.cost-badge { display: inline-flex; align-items: center; white-space: nowrap; }
.vm-cost.free { color: var(--success); }
/* 后台 API 配置：按模型计费的输入网格 */
.model-cost-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}
.model-cost-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-dim);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
}
.model-cost-row input {
  width: 90px; text-align: right;
  padding: 4px 8px; margin-left: auto;
}
.video-cost-block {
  margin-top: 8px;
  padding: 8px 10px;
  background: var(--bg-soft);
  border: 1px dashed var(--border);
  border-radius: 8px;
}
.video-cost-block .vc-title { font-size: 12px; color: var(--text-faint); margin-bottom: 6px; font-weight: 700; }
.video-cost-row {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--text-dim); margin-bottom: 4px;
}
.video-cost-row label { min-width: 42px; }
.video-cost-row input { width: 80px; text-align: right; padding: 3px 6px; }

/* 后台视频 API：最大秒数 + 每秒积分 输入行 */
.video-dur-row {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: var(--text-dim); padding: 6px 0;
  border-bottom: 1px dashed var(--border);
}
.video-dur-row:last-child { border-bottom: none; }
.video-dur-row .vd-model { font-weight: 700; color: var(--text); min-width: 120px; }
.video-dur-row .vd-field { display: inline-flex; align-items: center; gap: 6px; }
.video-dur-row .vd-field label { font-size: 12px; color: var(--text-faint); }
.video-dur-row .vd-field input { width: 80px; text-align: right; padding: 4px 8px; }

/* 视频工坊：时长滑块 */
.vm-dur-chip { min-width: 180px; }
.dur-slider-wrap { display: flex; align-items: center; gap: 8px; }
.dur-slider-wrap input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 120px; height: 5px; border-radius: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  outline: none; cursor: pointer;
}
.dur-slider-wrap input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 3px solid var(--primary);
  box-shadow: 0 2px 6px rgba(0,0,0,.3); cursor: grab;
}
.dur-slider-wrap input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 3px solid var(--primary);
  box-shadow: 0 2px 6px rgba(0,0,0,.3); cursor: grab;
}
.dur-val { font-size: 13px; font-weight: 800; color: var(--primary-text); min-width: 30px; text-align: center; }

/* AI 对话：输入框下方的模型选择栏 */
.chat-model-bar {
  display: flex; align-items: center; gap: 10px;
}
.chat-model-bar .model-select-label { font-size: 13px; color: var(--text-faint); font-weight: 600; }
.chat-model-bar select {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); padding: 6px 10px; font-size: 13px; font-weight: 600; cursor: pointer;
  max-width: 320px;
}
/* AI 对话卡片：宽度减 100px 居中（v25），移动端恢复全宽 */
.chat-card-narrow { max-width: calc(100% - 100px); margin-left: auto; margin-right: auto; }
@media (max-width: 720px) { .chat-card-narrow { max-width: 100%; } }
.chat-image-strip { display: flex; gap: 8px; flex-wrap: wrap; }
.chat-image-strip:empty { display: none; }
.chat-strip-thumb { position: relative; width: 56px; height: 56px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
.chat-strip-thumb img { width: 100%; height: 100%; object-fit: cover; }
.chat-strip-del {
  position: absolute; top: 0; right: 0; width: 18px; height: 18px;
  border: none; border-radius: 0 0 0 8px; background: rgba(0,0,0,.65); color: #fff;
  font-size: 12px; line-height: 18px; cursor: pointer; padding: 0;
}
.chat-bubble-imgs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.chat-bubble-imgs img { max-width: 180px; max-height: 180px; border-radius: 8px; object-fit: cover; }

/* 个人中心：菜单小卡片（两行每行三个） */
.profile-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.pm-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 12px;
  cursor: pointer;
  transition: .18s;
  color: var(--text);
}
.pm-card:hover {
  border-color: var(--primary);
  background: var(--bg-elev);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
}
.pm-card .pmc-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; font-size: 22px;
}
.pm-card b { font-size: 14px; font-weight: 700; }
.pm-card span { font-size: 12px; color: var(--text-faint); }
@media (max-width: 768px) {
  .profile-menu-grid { grid-template-columns: repeat(2, 1fr); }
  .vm-dur-chip { min-width: 150px; }
  .dur-slider-wrap input[type="range"] { width: 80px; }
}



/* ============ 自定义风格管理页（小卡片图片网格，每行 5 个） ============ */
.style-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
@media (max-width: 1100px) { .style-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 860px) { .style-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .style-grid { grid-template-columns: repeat(2, 1fr); } }
.style-cell {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  transition: transform .18s, box-shadow .18s, border-color .18s;
  cursor: pointer;
}
.style-cell:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
}
.style-cell-img { position: absolute; inset: 0; }
.style-cell-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.style-cell-ph {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--primary-soft, rgba(124,92,255,.16)), var(--accent-soft, rgba(236,72,153,.14)));
}
.style-cell-name {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 10px 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .74));
  color: #fff;
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sc-official {
  font-size: 10px; font-weight: 600; flex-shrink: 0;
  background: var(--primary, #7c5cff); color: #fff;
  padding: 1px 6px; border-radius: 8px;
}
.style-cell-acts {
  position: absolute; top: 8px; right: 8px;
  display: flex; gap: 6px;
  opacity: 0; transition: opacity .15s;
}
.style-cell:hover .style-cell-acts { opacity: 1; }

/* ============ @ 引用参考图选择面板 ============ */
.at-picker-modal { max-width: 460px; }
.at-picker-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.at-img {
  position: relative;
  border: 2px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-elev);
  transition: .15s;
}
.at-img:hover { border-color: var(--primary); transform: translateY(-2px); }
.at-img img { width: 100%; height: 96px; object-fit: cover; display: block; }
.at-img span {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(0, 0, 0, .55); color: #fff;
  font-size: 12px; text-align: center; padding: 3px 0;
}

/* ============ 全站公告弹窗 ============ */
.notice-modal { max-width: 480px; padding: 0; overflow: hidden; }
.notice-banner {
  display: flex; align-items: center; gap: 14px;
  padding: 22px 26px 18px;
  background: linear-gradient(135deg, var(--primary-soft), transparent);
  border-bottom: 1px solid var(--border);
}
.notice-badge {
  width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: #fff;
  box-shadow: 0 6px 18px rgba(124, 92, 255, .35);
}
.notice-banner h3 { margin: 0; font-size: 18px; font-weight: 800; }
.notice-body {
  padding: 20px 26px; font-size: 14.5px; line-height: 1.8;
  color: var(--text); max-height: 42vh; overflow: auto;
}
.notice-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 26px 20px; gap: 12px;
  border-top: 1px solid var(--border);
}
.notice-once {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-faint); cursor: pointer; user-select: none;
}
.notice-once input { cursor: pointer; }

/* 后台开关 */
.switch-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 10px;
  background: var(--bg-soft); border: 1px solid var(--border);
  cursor: pointer; font-size: 13.5px; color: var(--text-dim);
}
.switch-row input { width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer; }

/* ============ 自定义风格卡片（图片缩略图 + 编辑） ============ */
.style-card { display: flex; align-items: center; gap: 16px; }
.style-thumb {
  width: 64px; height: 64px; border-radius: 12px; overflow: hidden; flex-shrink: 0;
  border: 1px solid var(--border); background: var(--bg-elev);
  display: flex; align-items: center; justify-content: center;
}
.style-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.style-thumb-ph { font-size: 28px; }
.style-actions { display: flex; gap: 8px; flex-shrink: 0; align-items: center; }

/* ============ 视频工坊参考音频/参考视频缩略块 ============ */
.ref-thumb-media {
  display: flex; align-items: center; gap: 6px;
  width: auto; min-width: 96px; height: 44px;
  padding: 0 22px 0 8px;
  border-radius: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}
.ref-thumb-media .rt-ic { font-size: 16px; flex-shrink: 0; }
.ref-thumb-media .rt-name {
  font-size: 11.5px; color: var(--text-dim);
  max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ============ 登录页大标题 / 红色星号 / 邮箱行 ============ */
.auth-title {
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.4;
}
.req { color: #e5484d; font-weight: 700; margin-left: 2px; }
.email-row { display: flex; gap: 8px; }
.email-row input { flex: 1; }
.email-row .btn { flex-shrink: 0; white-space: nowrap; }

/* ============ 导航图标 ============ */
.nav-icon { margin-right: 5px; font-size: 15px; }

/* ============ 图标选择器 ============ */
.icon-picker-select {
  width: 100%; min-width: 64px;
  padding: 8px 10px;
  font-size: 16px;
}

/* ============ 自由画布 ============ */
.canvas-mode-tabs {
  display: flex; gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.canvas-mode {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text-dim);
  cursor: pointer;
  font-size: 13.5px;
  transition: .15s;
}
.canvas-mode:hover { border-color: var(--primary); }
.canvas-mode.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  font-weight: 600;
}

/* ============ 视频结果小卡片网格（每行5个） ============ */
.video-result-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  min-height: 120px;
  padding: 4px;
}
.video-result-grid.empty { display: block; }
.video-result-grid .vr-empty {
  text-align: center;
  color: var(--text-faint);
  padding: 40px 0;
}
.vr-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: .15s;
}
.vr-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.15); }
.vr-media {
  aspect-ratio: 16/9;
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.vr-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.vr-loading {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; color: var(--text-dim);
}
.vr-status { font-size: 13px; font-weight: 600; }
.vr-timer { font-size: 12px; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.vr-err { font-size: 11px; color: var(--danger); padding: 0 8px; text-align: center; word-break: break-word; }
.vr-info {
  padding: 10px 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.vr-info b {
  font-size: 12px; font-weight: 600; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.vr-download { font-size: 12px; padding: 4px 10px; }
.spinner {
  width: 28px; height: 28px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: vr-spin .8s linear infinite;
}
@keyframes vr-spin { to { transform: rotate(360deg); } }
@media (max-width: 1100px) { .video-result-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .video-result-grid { grid-template-columns: repeat(2, 1fr); } }

/* ============ 模型广场（美化版：渐变顶条/分类标签/价格高亮/入场动效） ============ */
.mp-pills {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 22px;
}
.mp-pill {
  padding: 8px 18px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text-dim);
  font-size: 13.5px;
  cursor: pointer;
  transition: .15s;
}
.mp-pill span {
  display: inline-block; margin-left: 6px;
  font-size: 11.5px;
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 1px 8px;
}
.mp-pill:hover { border-color: var(--primary); color: var(--text); }
.mp-pill.active {
  background: linear-gradient(135deg, var(--primary), var(--accent, #ec4899));
  color: #fff; border-color: transparent; font-weight: 700;
}
.mp-pill.active span { background: rgba(255,255,255,.22); color: #fff; }
.mp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}
.mp-card {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 20px 18px;
  text-align: center;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  animation: mp-in .4s ease both;
}
@keyframes mp-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.mp-card-top {
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent, #ec4899), var(--gold, #f5c76a));
  opacity: .9;
}
.mp-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(0,0,0,.18);
  border-color: var(--primary);
}
.mp-icon {
  width: 62px; height: 62px; margin: 0 auto 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary-soft), rgba(236,72,153,.10));
  display: grid; place-items: center;
  font-size: 30px;
  box-shadow: inset 0 0 0 1px var(--border);
}
.mp-cat-tag {
  display: inline-block;
  font-size: 11px;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 2px 10px;
  border-radius: 10px;
  margin-bottom: 8px;
}
.mp-name { font-size: 17px; font-weight: 800; margin-bottom: 8px; letter-spacing: .3px; }
.mp-price {
  color: var(--gold, #d4a017);
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 10px;
}
.mp-price-unit { font-size: 11.5px; font-weight: 500; opacity: .75; margin-left: 2px; }
.mp-price-free {
  color: var(--text-dim);
  font-size: 12.5px;
  font-weight: 600;
  background: var(--bg-soft);
  display: inline-block;
  padding: 3px 12px;
  border-radius: 12px;
}
.mp-desc {
  font-size: 12.5px; color: var(--text-dim); line-height: 1.7;
  min-height: 34px;
  margin-bottom: 12px;
}
.mp-foot {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 11px; color: var(--text-faint);
  border-top: 1px dashed var(--border);
  padding-top: 12px;
}
.mp-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 6px rgba(52,211,153,.8);
}
/* 模型广场接入状态：已接入（绿）/ 未接入（红） */
.mp-foot-on { color: #16a34a; font-weight: 600; }
.mp-foot-off { color: #ef4444; font-weight: 600; }
.mp-dot.on { background: #22c55e; box-shadow: 0 0 6px rgba(34,197,94,.9); }
.mp-dot.off { background: #ef4444; box-shadow: 0 0 6px rgba(239,68,68,.9); }
.mp-card.mp-on { border-color: rgba(34,197,94,.35); }
.mp-card.mp-off { border-color: rgba(239,68,68,.35); }

/* ============ 授权码输入行（显示/隐藏） ============ */
.pass-input-row { display: flex; gap: 8px; align-items: stretch; }
.pass-input-row input { flex: 1; }
.pass-input-row .btn { flex-shrink: 0; }

/* ============ AI 画布（即梦式无限画布） ============ */
.cv-wrap {
  position: fixed;
  top: var(--navbar-height, 64px);
  left: 0; right: 0; bottom: 0;
  background: var(--bg);
  overflow: hidden;
  z-index: 50;
}
.cv-viewport {
  position: absolute; inset: 0;
  overflow: hidden;
  cursor: grab;
  background-image: radial-gradient(circle, var(--border) 1px, transparent 1px);
  background-size: 26px 26px;
}
.cv-world { position: absolute; top: 0; left: 0; transform-origin: 0 0; will-change: transform; }
.cv-node {
  position: absolute;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
  transition: box-shadow .15s;
  user-select: none;
  display: flex; flex-direction: column;
}
/* 固定高度（拖拽调整后）时，媒体区域撑满并可滚动（inline height 优先，class 仅控制内部布局） */
.cv-node.resized .cv-node-media { flex: 1; min-height: 0; overflow: auto; }
.cv-node.resized .cv-note { height: 100%; resize: none; }
.cv-node:hover { box-shadow: 0 10px 28px rgba(0,0,0,.2); border-color: var(--primary); }
.cv-node.generating { border-style: dashed; }
.cv-node-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  cursor: grab;
}
.cv-node-title { font-size: 12px; font-weight: 700; color: var(--text-dim); }
.cv-node-acts { display: flex; gap: 6px; }
.cv-node-btn {
  border: none; background: transparent;
  color: var(--text-dim);
  font-size: 11.5px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 8px;
}
.cv-node-btn:hover { background: var(--primary-soft); color: var(--text); }
.cv-node-btn.danger:hover { background: rgba(229,72,77,.14); color: var(--danger, #e5484d); }
.cv-node-media { background: var(--bg-soft); display: flex; align-items: center; justify-content: center; min-height: 120px; }
/* 节点右下角缩放手柄（v25：拖动自由调整节点大小） */
.cv-resize {
  position: absolute; right: 0; bottom: 0;
  width: 18px; height: 18px;
  cursor: nwse-resize;
  z-index: 5;
  opacity: 0;
  transition: opacity .15s;
}
.cv-resize::after {
  content: "";
  position: absolute; right: 3px; bottom: 3px;
  width: 9px; height: 9px;
  border-right: 2.5px solid var(--text-faint);
  border-bottom: 2.5px solid var(--text-faint);
  border-bottom-right-radius: 3px;
}
.cv-node:hover .cv-resize, .cv-node.selected .cv-resize { opacity: 1; }
.cv-resize:hover::after { border-color: var(--primary); }
.cv-media { width: 100%; display: block; max-height: 400px; object-fit: contain; }
.cv-loading {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 46px 0; width: 100%;
  color: var(--text-dim);
}
.cv-status { font-size: 13px; font-weight: 600; }
.cv-timer { font-size: 12px; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.cv-err { padding: 30px 16px; text-align: center; color: var(--danger, #e5484d); }
.cv-err-msg { font-size: 12px; margin-top: 8px; word-break: break-all; }
.cv-prompt {
  padding: 8px 12px;
  font-size: 11.5px; color: var(--text-faint);
  border-top: 1px solid var(--border);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cv-note {
  width: 100%; min-height: 120px;
  border: none; resize: vertical;
  background: rgba(245,199,106,.10);
  padding: 12px;
  font-size: 13px; line-height: 1.7;
  color: var(--text);
  outline: none;
  font-family: inherit;
}
/* 左侧工具栏 */
.cv-toolbar {
  position: absolute; left: 14px; top: 18px;
  display: flex; flex-direction: column; gap: 8px;
  z-index: 5;
}
.cv-tb-btn {
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  font-size: 17px;
  cursor: pointer;
  transition: .15s;
  box-shadow: 0 3px 10px rgba(0,0,0,.10);
}
.cv-tb-btn:hover { border-color: var(--primary); transform: translateY(-2px); }
/* 缩放控件 */
.cv-zoombar {
  position: absolute; left: 14px; bottom: 18px;
  display: flex; align-items: center; gap: 4px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px 8px;
  z-index: 5;
  box-shadow: 0 3px 10px rgba(0,0,0,.10);
}
.cv-zoombar button {
  border: none; background: transparent;
  width: 28px; height: 26px;
  font-size: 15px; color: var(--text-dim);
  cursor: pointer; border-radius: 8px;
}
.cv-zoombar button:hover { background: var(--bg-soft); color: var(--text); }
.cv-zoombar span { font-size: 12px; color: var(--text-dim); min-width: 44px; text-align: center; font-variant-numeric: tabular-nums; }
/* 底部悬浮输入条 */
.cv-promptbar {
  position: absolute;
  left: 50%; bottom: 22px;
  transform: translateX(-50%);
  width: min(840px, calc(100% - 120px));
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(0,0,0,.22);
  padding: 12px 14px 10px;
  z-index: 6;
}
.cv-refstrip { display: none; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.cv-ref-thumb { position: relative; width: 44px; height: 44px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.cv-ref-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cv-ref-del {
  position: absolute; top: 0; right: 0;
  width: 16px; height: 16px;
  border: none; border-radius: 0 0 0 8px;
  background: rgba(0,0,0,.6); color: #fff;
  font-size: 11px; line-height: 16px;
  cursor: pointer; padding: 0;
}
.cv-inputrow { display: flex; align-items: flex-end; gap: 8px; }
.cv-add-btn {
  width: 34px; height: 34px; flex-shrink: 0;
  border-radius: 10px;
  border: 1px dashed var(--border);
  background: var(--bg-soft);
  color: var(--text-dim);
  font-size: 15px;
  cursor: pointer;
}
.cv-add-btn:hover { border-color: var(--primary); color: var(--primary); }
.cv-inputrow textarea {
  flex: 1;
  border: none; outline: none; resize: none;
  background: transparent;
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.5;
  min-height: 34px;
  max-height: 120px;
  padding: 7px 0;
  font-family: inherit;
}
.cv-gen-round {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--accent, #ec4899));
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(124,92,255,.4);
  transition: .15s;
}
.cv-gen-round:hover { transform: scale(1.08); }
.cv-optrow {
  display: flex; align-items: center; gap: 8px;
  margin-top: 8px; padding-top: 8px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.cv-mode-pills { display: flex; gap: 4px; background: var(--bg-soft); border-radius: 10px; padding: 3px; }
.cv-pill {
  border: none; background: transparent;
  padding: 5px 12px;
  font-size: 12px;
  color: var(--text-dim);
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}
.cv-pill.active { background: var(--primary); color: #fff; font-weight: 700; }
.cv-chip { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-dim); }
.cv-chip .ic { font-size: 13px; }
.cv-chip select {
  max-width: 130px;
  font-size: 12px;
  padding: 4px 6px;
}
.cv-spacer { flex: 1; }
@media (max-width: 700px) {
  .cv-promptbar { width: calc(100% - 20px); }
  .cv-toolbar { flex-direction: row; top: auto; bottom: 150px; }
}

/* ============ 会员赠送积分提示 ============ */
.price-bonus {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  color: #b8860b;
  background: rgba(245,199,106,.16);
  padding: 3px 10px; border-radius: 20px;
  margin-bottom: 10px;
}

/* ============ AI 画布：连线 / 端口 / 右键菜单 / 空节点 / 节点提示词 ============ */
.cv-edges { position: absolute; overflow: visible; pointer-events: none; z-index: 0; }
.cv-edge {
  fill: none;
  stroke: var(--primary, #7c5cff);
  stroke-width: 2.4;
  stroke-linecap: round;
  filter: drop-shadow(0 2px 4px rgba(124, 92, 255, .35));
  pointer-events: none;
  transition: stroke .15s;
}
.cv-edge.selected { stroke: #f59e0b; stroke-width: 3.2; }
.cv-edge.linking { stroke-dasharray: 7 6; opacity: .85; }
.cv-edge-hit {
  fill: none; stroke: transparent; stroke-width: 16;
  pointer-events: stroke; cursor: pointer;
}
.cv-edge-del {
  fill: #f59e0b; stroke: #fff; stroke-width: 1.6;
  pointer-events: all; cursor: pointer;
}
.cv-edge-del-x { fill: #fff; font-size: 14px; font-weight: 700; pointer-events: all; cursor: pointer; }
.cv-node.selected { border-color: #f59e0b; box-shadow: 0 0 0 2px rgba(245, 158, 11, .35), 0 10px 28px rgba(0,0,0,.2); }
/* 连接端口 */
.cv-port {
  position: absolute; top: 84px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg-elev);
  border: 2.5px solid var(--primary, #7c5cff);
  cursor: crosshair;
  opacity: 0;
  transition: opacity .15s, transform .15s;
  z-index: 3;
}
.cv-node:hover .cv-port { opacity: 1; }
.cv-port:hover { transform: scale(1.35); background: var(--primary, #7c5cff); }
.cv-port.in { left: -8px; }
.cv-port.out { right: -8px; border-color: var(--accent, #ec4899); }
.cv-port.out:hover { background: var(--accent, #ec4899); }
/* 右键菜单 */
.cv-context-menu {
  position: fixed; z-index: 300;
  min-width: 172px;
  background: var(--bg-elev, #fff);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .22);
  padding: 6px;
  animation: cvMenuIn .12s ease-out;
}
@keyframes cvMenuIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
.cv-context-menu button {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  border: none; background: transparent;
  padding: 9px 12px;
  font-size: 13.5px; color: var(--text, #222);
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
}
.cv-context-menu button:hover { background: var(--primary-soft, rgba(124,92,255,.12)); }
.cv-context-menu button span { font-size: 16px; }
/* 空节点（待上传/待生成） */
.cv-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 7px; padding: 34px 14px; width: 100%;
  color: var(--text-dim);
  background: repeating-linear-gradient(45deg, transparent, transparent 8px, rgba(124,92,255,.05) 8px, rgba(124,92,255,.05) 16px);
}
.cv-empty-title { font-size: 14px; font-weight: 700; color: var(--text); }
.cv-empty-hint { font-size: 11.5px; color: var(--text-faint); text-align: center; line-height: 1.6; }
/* 节点内提示词输入条 */
.cv-node-prompt {
  display: flex; align-items: flex-end; gap: 8px;
  padding: 8px 10px;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}
.cv-node-prompt textarea {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-elev);
  color: var(--text);
  font-size: 12px; line-height: 1.5;
  padding: 6px 8px;
  resize: none;
  outline: none;
  font-family: inherit;
  min-height: 44px;
}
.cv-node-prompt textarea:focus { border-color: var(--primary); }
.cv-node-gen {
  flex-shrink: 0;
  border: none; border-radius: 8px;
  background: linear-gradient(135deg, var(--primary, #7c5cff), var(--accent, #ec4899));
  color: #fff;
  font-size: 12px; font-weight: 700;
  padding: 8px 14px;
  cursor: pointer;
  transition: transform .15s;
}
.cv-node-gen:hover { transform: scale(1.06); }
.cv-node-prompt-done { display: flex; align-items: center; gap: 8px; padding: 6px 10px; }
.cv-node-prompt-done .cv-prompt { flex: 1; border-top: none; padding: 2px 0; }

/* ============ 小说创作 ============ */
.nv-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 18px;
  align-items: start;
}
@media (max-width: 1000px) { .nv-grid { grid-template-columns: 1fr; } }
.nv-form-panel { display: flex; flex-direction: column; }
.nv-form-foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 14px; }
.nv-catalog-panel { display: flex; flex-direction: column; max-height: 72vh; }
.nv-catalog-panel > .nv-catalog-head { flex-shrink: 0; }
.nv-catalog-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--primary-soft, rgba(124,92,255,.12)), transparent);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
}
.nv-book-title { font-size: 16px; font-weight: 800; }
.nv-book-meta { font-size: 12px; color: var(--text-faint); margin-top: 3px; }
.nv-ch-list { overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 8px; padding-right: 2px; }
.nv-ch-row {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-soft);
  overflow: hidden;
  transition: border-color .15s;
}
.nv-ch-row:hover { border-color: var(--primary); }
.nv-ch-row.open { border-color: var(--primary); }
.nv-ch-row.generating { border-style: dashed; border-color: var(--primary); }
.nv-ch-row.failed { border-color: rgba(229, 72, 77, .5); }
.nv-ch-head { display: flex; align-items: center; gap: 10px; padding: 9px 12px; }
.nv-ch-idx {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--primary-soft, rgba(124,92,255,.14));
  color: var(--primary, #7c5cff);
  font-size: 12.5px; font-weight: 800;
  display: grid; place-items: center;
}
.nv-ch-title {
  flex: 1; min-width: 0;
  font-size: 13.5px; font-weight: 600;
  cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nv-ch-title:hover { color: var(--primary); }
.nv-ch-words { flex-shrink: 0; font-size: 11px; color: var(--text-faint); background: var(--bg-soft, #f2f3f7); border-radius: 6px; padding: 2px 7px; }
.nv-ch-status { flex-shrink: 0; font-size: 11.5px; font-weight: 600; }
.nv-ch-status.done { color: #16a34a; }
.nv-ch-status.pending { color: var(--text-faint); }
.nv-ch-status.generating { color: var(--primary, #7c5cff); }
.nv-ch-status.error { color: var(--danger, #e5484d); }
.nv-ch-head .btn { flex-shrink: 0; }
.nv-ch-body {
  padding: 12px 16px 16px;
  border-top: 1px solid var(--border);
  font-size: 13.5px; line-height: 1.9;
  color: var(--text);
  max-height: 340px; overflow-y: auto;
  background: var(--bg-elev);
}
/* 我的小说弹窗 */
.nv-mine-list { display: flex; flex-direction: column; gap: 8px; max-height: 52vh; overflow-y: auto; }
.nv-mine-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-soft);
  cursor: pointer;
  transition: border-color .15s, transform .15s;
}
.nv-mine-row:hover { border-color: var(--primary); transform: translateX(3px); }

/* ================= AI 生图结果卡片操作 + 图片历史 ================= */
.gen-card .media { aspect-ratio: 1/1; }
.gen-card .media img { display: block; }
.gen-card-acts { display: flex; gap: 6px; padding: 0 14px 12px; flex-wrap: wrap; }
.gen-card-acts .btn { flex: 1; min-width: 0; font-size: 12px; padding: 5px 8px; }

.ih-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-height: 56vh; overflow-y: auto; padding: 2px; }
.img-history-card {
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
  background: var(--bg-soft); display: flex; flex-direction: column;
}
.ih-media { aspect-ratio: 1/1; background: var(--bg-elev); display: grid; place-items: center; overflow: hidden; }
.ih-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ih-meta { padding: 8px 10px; }
.ih-prompt { font-size: 12px; color: var(--text-dim); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ih-time { font-size: 11px; color: var(--text-faint); margin-top: 4px; }
.ih-acts { display: flex; gap: 6px; padding: 0 10px 10px; }
.ih-acts .btn { flex: 1; min-width: 0; font-size: 12px; padding: 5px 8px; }

/* 提取历史列表（v34） */
.extract-hist-list { display: flex; flex-direction: column; gap: 10px; max-height: 56vh; overflow-y: auto; padding: 2px; }
.extract-hist-item {
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg-soft); padding: 10px 12px;
}
.eh-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.eh-kind { font-size: 13px; font-weight: 600; color: var(--text); }
.eh-time { font-size: 11px; color: var(--text-faint); }
.eh-preview {
  font-size: 12px; color: var(--text-dim); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  word-break: break-word;
}
.eh-acts { display: flex; justify-content: flex-end; margin-top: 8px; }
.eh-acts .btn { font-size: 12px; padding: 5px 10px; }

@media (max-width: 640px) {
  .ih-grid { grid-template-columns: 1fr; }
  .gen-card-acts { flex-wrap: wrap; }
}

/* ============ 全站移动端适配（v22） ============ */
@media (max-width: 640px) {
  .container { padding: 0 14px; }
  .navbar-inner { gap: 10px; }
  .brand .brand-name { display: none; }
  .nav-user .uname { display: none; }
  .nav-user .vip-badge { display: none; }
  .nav-auth { gap: 8px; }
  .nav-auth .theme-btn .theme-btn-label { display: none; }
  .hero { padding: 40px 0 32px; }
  .hero h1 { font-size: 27px; line-height: 1.3; }
  .hero .hero-btns { flex-direction: column; align-items: stretch; }
  .hero .hero-btns .btn { width: 100%; }
  .form-row { grid-template-columns: 1fr !important; }
  .form-row, .form-grid { gap: 12px; }
  .section { padding: 24px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .panel-header { flex-wrap: wrap; gap: 8px; }
  .create-panel-head { flex-wrap: wrap; }
  .create-panel-head .btn { margin-left: 0 !important; }
  .create-tabs { gap: 8px; }
  .vm-toolbar { gap: 6px; }
  .vm-chip { flex: 1 1 auto; min-width: 0; }
  .vm-chip select { max-width: 100%; }
  .vm-spacer { display: none; }
  .vm-cost { font-size: 13px; }
  .btn-gen-round { width: 40px; height: 40px; }
  .studio-input { font-size: 14px; min-height: 96px; }
  .nv-grid { grid-template-columns: 1fr; }
  .nv-ch-head { flex-wrap: wrap; gap: 6px; }
  .nv-catalog-head { flex-direction: column; gap: 10px; }
  .profile-menu-grid { grid-template-columns: 1fr 1fr; }
  .profile-hero { flex-direction: column; text-align: center; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-page-layout { grid-template-columns: 1fr; padding: 16px 12px; }
  .admin-page-layout .admin-sidebar { position: static; }
  .admin-sidebar { position: static; display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .admin-sidebar button { flex: 1 1 auto; }
  .modal { padding: 20px; width: 94%; }
  .model-cost-grid { grid-template-columns: 1fr; }
}

/* ============ 网站关闭通知页 ============ */
.site-closed-wrap {
  min-height: calc(100vh - var(--navbar-height, 64px));
  display: grid; place-items: center;
  padding: 40px 16px;
}
.site-closed-card {
  max-width: 560px; width: 100%;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  padding: 48px 36px;
  box-shadow: 0 20px 60px rgba(0,0,0,.28);
  animation: popIn .3s ease;
}
.site-closed-icon { font-size: 64px; margin-bottom: 16px; }
.site-closed-title { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.site-closed-sub { color: var(--text-dim); font-size: 15px; margin-bottom: 24px; }
.site-closed-notice {
  background: var(--primary-soft, rgba(124,92,255,.12));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 24px;
  color: var(--text);
  font-size: 15px; line-height: 1.8;
  text-align: left; white-space: pre-wrap; word-break: break-word;
}
.site-closed-footer { margin-top: 24px; color: var(--text-faint); font-size: 13px; }

/* ============ 功能关闭提示卡片 ============ */
.feature-off-card {
  max-width: 560px; margin: 0 auto; text-align: center;
  padding: 48px 36px;
}
.feature-off-icon { font-size: 60px; margin-bottom: 16px; }
.feature-off-card h2 { font-size: 24px; font-weight: 800; margin-bottom: 12px; }
.feature-off-notice {
  background: var(--primary-soft, rgba(124,92,255,.12));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 22px;
  color: var(--text);
  font-size: 14.5px; line-height: 1.8;
  text-align: left; white-space: pre-wrap; word-break: break-word;
  margin-top: 8px;
}

/* ============ GPT 对接指引 ============ */
.gpt-guide {
  margin: 6px 0 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-soft);
  padding: 16px 18px;
}
.gpt-guide-title { font-size: 14px; font-weight: 800; margin-bottom: 10px; }
.gpt-guide-body { font-size: 13px; color: var(--text-dim); line-height: 1.7; }
.gpt-guide-body ol { margin: 8px 0 8px 20px; padding: 0; }
.gpt-guide-body li { margin-bottom: 4px; }
.gpt-guide-body code {
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: 5px; padding: 1px 6px; font-size: 12px; color: var(--primary, #7c5cff);
}
.gpt-guide-tip { margin-top: 8px; color: var(--gold, #d9a441); }

/* ================= 代理中心 ================= */
.agent-banner {
  display: flex; align-items: center; gap: 14px;
  padding: 16px; border-radius: 12px; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(245,199,106,.16), rgba(245,199,106,.06));
  border: 1px solid rgba(245,199,106,.3);
}
.agent-banner-icon { font-size: 40px; line-height: 1; }
.agent-banner-title { font-size: 16px; font-weight: 700; color: var(--text-primary, #222); margin-bottom: 4px; }
.agent-banner-desc { font-size: 13px; color: var(--text-secondary, #666); }
.agent-banner-desc b { color: #b8860b; }
.agent-code-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.agent-code {
  font-family: var(--font-mono, monospace); font-size: 20px; font-weight: 700;
  letter-spacing: 2px; color: #b8860b; padding: 6px 14px; border-radius: 8px;
  background: rgba(245,199,106,.12); border: 1px dashed #d9a441;
}
.agent-section { margin-top: 16px; }
.agent-section-title { font-size: 14px; font-weight: 700; margin-bottom: 8px; color: var(--text-primary, #222); }
.agent-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.agent-table th, .agent-table td {
  text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border, #eee);
}
.agent-table th { color: var(--text-secondary, #888); font-weight: 600; font-size: 12px; }
.agent-table td { color: var(--text-primary, #333); }
.form-input {
  width: 100%; padding: 10px 12px; border-radius: 8px;
  border: 1px solid var(--border, #ddd); background: var(--bg-elev, #fafafa);
  font-size: 13px; color: var(--text-secondary, #888);
}

/* 易支付支付方式选择按钮 */
.epay-type-btn {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  min-width: 96px; padding: 14px 10px; border-radius: 12px; cursor: pointer;
  border: 2px solid var(--border, #ddd); background: var(--bg-elev, #fafafa);
  font-size: 13px; font-weight: 700; color: var(--text-primary, #333);
  transition: all .15s ease;
}
.epay-type-btn:hover { border-color: var(--gold, #d9a441); }
.epay-type-btn.active {
  border-color: var(--gold, #d9a441); background: rgba(245,199,106,.12);
  box-shadow: 0 0 0 3px rgba(245,199,106,.15);
}

/* ============ 订单管理 ============ */
.order-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.order-stat {
  background: var(--bg-elev, #fafafa);
  border: 1px solid var(--border, #ddd);
  border-radius: 10px;
  padding: 14px 12px;
  text-align: center;
}
.order-stat b { display: block; font-size: 22px; line-height: 1.2; }
.order-stat span { font-size: 12px; color: var(--text-dim, #888); }
.order-filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  align-items: center;
}
.order-filter-bar select,
.order-filter-bar input {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border, #ddd);
  background: var(--bg-elev, #fafafa);
  font-size: 13px;
  color: var(--text-primary, #333);
}
.order-filter-bar input { flex: 1; min-width: 160px; }
.table-wrap { overflow-x: auto; }
.order-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.order-table th,
.order-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border, #eee);
  white-space: nowrap;
}
.order-table thead th {
  font-weight: 600;
  color: var(--text-dim, #888);
  font-size: 12px;
  background: var(--bg-elev, #fafafa);
}
.order-table tbody tr:hover { background: rgba(0,0,0,.02); }
.order-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-dim, #888);
}
.order-act { margin-right: 6px; }
.order-act:last-child { margin-right: 0; }

/* ============ 会员/积分 购买切换器（v47） ============ */
.bill-switch-wrap { display: flex; justify-content: center; margin: -8px 0 38px; }
.bill-switch {
  position: relative; display: inline-flex; align-items: stretch;
  padding: 6px; border-radius: 999px;
  background: var(--bg-card); border: 1px solid var(--border);
  box-shadow: 0 8px 30px rgba(50, 60, 110, 0.10);
}
.bs-thumb {
  position: absolute; top: 6px; bottom: 6px; left: 6px;
  width: calc(50% - 6px); border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  box-shadow: 0 6px 20px rgba(124, 92, 255, 0.42);
  transition: transform 0.38s cubic-bezier(0.55, 0.06, 0.28, 1.35), background 0.3s, box-shadow 0.3s;
  will-change: transform;
}
.bill-switch.on-points .bs-thumb {
  transform: translateX(100%);
  background: linear-gradient(135deg, #f2b135, var(--gold));
  box-shadow: 0 6px 20px rgba(245, 177, 53, 0.40);
}
.bs-tab {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 158px; padding: 11px 30px;
  border: none; background: transparent; border-radius: 999px;
  font-family: inherit; font-size: 15px; font-weight: 700;
  color: var(--text-dim); cursor: pointer;
  transition: color 0.3s, transform 0.2s;
}
.bs-tab:hover { color: var(--text); transform: translateY(-1px); }
.bs-tab.active { color: #fff; }
.bs-ico { font-size: 17px; line-height: 1; display: inline-block; }
.bs-tab.active .bs-ico { animation: bsFloat 2.4s ease-in-out infinite; }
@keyframes bsFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-3px) rotate(8deg); }
}
@media (max-width: 560px) {
  .bs-tab { min-width: 0; padding: 10px 20px; font-size: 14px; }
}

/* ============ 购买卡片入场 + 悬停 + 扫光特效 ============ */
@keyframes cardIn {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
.pricing-grid .pricing-card,
.points-grid .points-pack { animation: cardIn 0.55s cubic-bezier(0.22, 0.9, 0.34, 1) backwards; }
.pricing-grid .pricing-card:nth-child(1), .points-grid .points-pack:nth-child(1) { animation-delay: 0.05s; }
.pricing-grid .pricing-card:nth-child(2), .points-grid .points-pack:nth-child(2) { animation-delay: 0.12s; }
.pricing-grid .pricing-card:nth-child(3), .points-grid .points-pack:nth-child(3) { animation-delay: 0.19s; }
.pricing-grid .pricing-card:nth-child(4), .points-grid .points-pack:nth-child(4) { animation-delay: 0.26s; }
.pricing-grid .pricing-card:nth-child(5), .points-grid .points-pack:nth-child(5) { animation-delay: 0.33s; }
.pricing-grid .pricing-card:nth-child(6), .points-grid .points-pack:nth-child(6) { animation-delay: 0.40s; }

.pricing-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: 0 20px 50px rgba(50, 60, 110, 0.18);
}
.pricing-card.hot:hover { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 20px 50px rgba(245, 199, 106, 0.22); }

/* 热门卡片扫光（用 background-position 动画，避免 overflow 裁剪掉 pop 徽标） */
.pricing-card.hot::before,
.points-pack.hot::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(245, 199, 106, 0.16) 47%, rgba(255, 255, 255, 0.30) 50%, rgba(245, 199, 106, 0.16) 53%, transparent 62%);
  background-size: 220% 100%;
  background-position: 200% 0;
  animation: hotShine 3.4s ease-in-out infinite;
}
@keyframes hotShine {
  0% { background-position: 200% 0; }
  55%, 100% { background-position: -200% 0; }
}

/* 积分金币浮动动画（逐卡错拍） */
.points-pack .pp-coin { animation: coinFloat 3s ease-in-out infinite; }
.points-grid .points-pack:nth-child(2) .pp-coin { animation-delay: 0.3s; }
.points-grid .points-pack:nth-child(3) .pp-coin { animation-delay: 0.6s; }
.points-grid .points-pack:nth-child(4) .pp-coin { animation-delay: 0.9s; }
.points-grid .points-pack:nth-child(5) .pp-coin { animation-delay: 1.2s; }
.points-grid .points-pack:nth-child(6) .pp-coin { animation-delay: 1.5s; }
@keyframes coinFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-5px) scale(1.08); }
}

/* 会员卡片价格轻微呼吸发光 */
.pricing-card.hot .price .num {
  text-shadow: 0 0 18px rgba(245, 199, 106, 0.45);
  animation: priceGlow 2.6s ease-in-out infinite;
}
@keyframes priceGlow {
  0%, 100% { text-shadow: 0 0 12px rgba(245, 199, 106, 0.30); }
  50% { text-shadow: 0 0 22px rgba(245, 199, 106, 0.55); }
}

/* 尊重系统减弱动效设置 */
@media (prefers-reduced-motion: reduce) {
  .bs-thumb, .bs-tab .bs-ico, .pp-coin,
  .pricing-grid .pricing-card, .points-grid .points-pack,
  .pricing-card.hot .price .num,
  .pricing-card.hot::before, .points-pack.hot::before { animation: none !important; transition: none !important; }
}








/* ============ 支付确认弹窗（v49 重构） ============ */
.pay-sub { text-align:center; font-size:13px; color:var(--text-dim); margin:2px 0 16px; }
.pay-grid { display:grid; grid-template-columns:1fr 1fr; border:1px solid var(--border); border-radius:14px; overflow:hidden; background:var(--bg-elev); }
.pg-cell { padding:13px 18px; border-bottom:1px solid var(--border); display:flex; flex-direction:column; gap:4px; }
.pg-cell:nth-child(odd) { border-right:1px solid var(--border); }
.pg-cell.pg-amount { grid-column:1 / -1; border-bottom:none; flex-direction:row; align-items:center; justify-content:space-between; background:var(--bg-card); }
.pg-l { font-size:12px; color:var(--text-faint); }
.pg-v { font-size:17px; font-weight:800; color:var(--text); }
.pg-price { font-size:32px; color:var(--gold); line-height:1; }
.pg-price i { font-style:normal; font-size:16px; font-weight:700; margin-right:2px; }
.pay-sec { margin-top:18px; }
.pay-sec-head { display:flex; align-items:baseline; justify-content:space-between; margin-bottom:10px; }
.pay-sec-head b { font-size:14px; font-weight:800; }
.pay-sec-head span { font-size:12px; color:var(--text-faint); }
.pay-types { display:flex; flex-direction:column; gap:10px; }
.pay-type { display:flex; align-items:center; gap:12px; padding:12px 16px; border:1.5px solid var(--border); border-radius:12px; background:var(--bg-card); cursor:pointer; font-family:inherit; text-align:left; transition:border-color .2s, box-shadow .2s, transform .15s; }
.pay-type:hover { transform:translateY(-1px); border-color:var(--border-strong); }
.pay-type.active { border-color:var(--success); box-shadow:0 0 0 1px var(--success), 0 6px 18px rgba(14,159,112,.12); }
.pt-ico { font-size:22px; width:34px; text-align:center; }
.pt-tx { display:flex; flex-direction:column; gap:2px; flex:1; }
.pt-tx b { font-size:14px; font-weight:700; color:var(--text); }
.pt-tx i { font-style:normal; font-size:12px; color:var(--text-faint); }
.pt-badge { font-size:12px; font-weight:700; padding:3px 12px; border-radius:999px; background:var(--bg-soft); color:var(--text-faint); }
.pay-type.active .pt-badge { background:rgba(14,159,112,.14); color:var(--success); }
.pay-notice { display:flex; gap:10px; margin-top:16px; padding:12px 14px; background:var(--bg-elev); border:1px dashed var(--border-strong); border-radius:10px; }
.pay-notice .pn-ico { font-size:16px; line-height:1.4; }
.pay-notice p { margin:0; font-size:12px; line-height:1.7; color:var(--text-dim); }
.pay-result { margin-top:16px; padding:16px; border:1px solid var(--border); border-radius:12px; text-align:center; }
.pr-tip { font-weight:800; margin:0 0 12px; font-size:14px; }
.pr-qrcode { width:210px; height:210px; border:1px solid var(--border); border-radius:12px; display:block; margin:0 auto; background:#fff; }
.pr-hint { font-size:12px; color:var(--text-faint); margin:10px 0 0; }
.pay-foot { display:flex; justify-content:flex-end; gap:12px; margin-top:20px; }

/* ============ 首页创作案例画廊（v49） ============ */
.gal-tabs { display:flex; gap:10px; flex-wrap:wrap; justify-content:center; margin:-18px 0 30px; }
.gal-tab { padding:9px 22px; border-radius:999px; border:1px solid var(--border); background:var(--bg-card); color:var(--text-dim); font-family:inherit; font-size:14px; font-weight:700; cursor:pointer; transition:.22s; }
.gal-tab:hover { border-color:var(--primary); color:var(--primary-text); transform:translateY(-1px); }
.gal-tab.active { background:linear-gradient(135deg,var(--primary),var(--primary-strong)); border-color:transparent; color:#fff; box-shadow:0 6px 18px rgba(124,92,255,.35); }
.gal-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
@media (max-width:1100px){ .gal-grid{grid-template-columns:repeat(3,1fr);} }
@media (max-width:760px){ .gal-grid{grid-template-columns:repeat(2,1fr);} }
.gal-card { margin:0; border:1px solid var(--border); border-radius:var(--radius-lg); overflow:hidden; background:var(--bg-card); cursor:pointer; transition:transform .28s cubic-bezier(.22,.9,.34,1), box-shadow .28s, border-color .28s; animation:cardIn .5s cubic-bezier(.22,.9,.34,1) backwards; }
.gal-card:nth-child(2){animation-delay:.06s} .gal-card:nth-child(3){animation-delay:.12s} .gal-card:nth-child(4){animation-delay:.18s} .gal-card:nth-child(5){animation-delay:.24s} .gal-card:nth-child(6){animation-delay:.3s} .gal-card:nth-child(7){animation-delay:.36s} .gal-card:nth-child(8){animation-delay:.42s}
.gal-card:hover { transform:translateY(-6px); border-color:var(--primary); box-shadow:0 18px 44px rgba(50,60,110,.20); }
.gal-cover { position:relative; aspect-ratio:4/3; background:var(--bg-soft); overflow:hidden; }
.gal-cover img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .5s cubic-bezier(.22,.9,.34,1); }
.gal-card:hover .gal-cover img { transform:scale(1.07); }
.gal-ph { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:40px; opacity:.5; }
.gal-tag { position:absolute; top:10px; left:10px; z-index:2; font-size:11px; font-weight:800; padding:3px 10px; border-radius:999px; background:rgba(0,0,0,.55); color:#fff; backdrop-filter:blur(4px); }
.gal-mask { position:absolute; inset:0; display:flex; align-items:flex-end; justify-content:flex-end; padding:12px; background:linear-gradient(180deg,transparent 55%,rgba(0,0,0,.45)); opacity:0; transition:opacity .28s; }
.gal-mask span { font-size:12px; font-weight:700; color:#fff; background:rgba(0,0,0,.5); padding:5px 12px; border-radius:999px; backdrop-filter:blur(4px); transform:translateY(6px); transition:transform .28s; }
.gal-card:hover .gal-mask { opacity:1; }
.gal-card:hover .gal-mask span { transform:translateY(0); }
.gal-card figcaption { padding:12px 14px; font-size:14px; font-weight:700; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.gal-preview { border-radius:14px; overflow:hidden; background:var(--bg-soft); text-align:center; }
.gal-preview img { max-width:100%; max-height:62vh; display:block; margin:0 auto; }
/* 后台案例封面缩略图 */
.sc-thumb { width:150px; height:100px; border:1px solid var(--border); border-radius:10px; overflow:hidden; background:var(--bg-soft); display:flex; align-items:center; justify-content:center; }
.sc-thumb img { width:100%; height:100%; object-fit:cover; }


/* ============ 积分充值大弹窗（v50） ============ */
.modal-wide { max-width: 880px; width: 94vw; max-height: 88vh; overflow-y: auto; }
.rp-modal h3 { font-size: 20px; margin-bottom: 2px; }
.rp-account { display: flex; align-items: center; justify-content: space-between; padding: 13px 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-elev); margin: 14px 0 18px; }
.rpa-left { font-size: 14px; color: var(--text-dim); }
.rpa-left b { color: var(--text); font-weight: 800; margin-left: 2px; }
.rpa-right { font-size: 22px; font-weight: 800; color: var(--accent); }
.rpa-right i { font-style: normal; font-size: 12px; font-weight: 600; color: var(--text-faint); margin-left: 4px; }
.rp-sec-head { display: flex; align-items: baseline; justify-content: space-between; margin: 4px 0 12px; }
.rp-sec-head b { font-size: 14px; font-weight: 800; }
.rp-sec-head span { font-size: 12px; color: var(--text-faint); }
.rp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 720px) { .rp-grid { grid-template-columns: repeat(2, 1fr); } }
.rp-pkg { position: relative; border: 1.5px solid var(--border); border-radius: 14px; background: var(--bg-card); padding: 16px 14px 13px; cursor: pointer; transition: border-color .18s, box-shadow .18s, transform .18s; text-align: left; }
.rp-pkg:hover { transform: translateY(-2px); border-color: var(--accent); }
.rp-pkg.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 8px 24px rgba(34,211,238,.14); }
.rp-pkg .rp-hot { position: absolute; top: -9px; right: 10px; font-size: 11px; font-weight: 800; padding: 2px 9px; border-radius: 999px; background: var(--gold); color: #fff; }
.rp-price { font-size: 24px; font-weight: 800; color: var(--accent); line-height: 1.15; }
.rp-pts { font-size: 13px; margin-top: 5px; color: var(--text-dim); }
.rp-pts b { font-size: 15px; font-weight: 800; color: var(--text); }
.rp-sub { font-size: 11.5px; color: var(--text-faint); margin-top: 5px; }
.rp-arrive { display: flex; align-items: baseline; justify-content: space-between; margin: 14px 0 4px; font-size: 13px; color: var(--text-dim); }
.rp-arrive b { font-size: 17px; font-weight: 800; color: var(--accent); margin: 0 2px; }
.rp-arrive-r { font-size: 12px; color: var(--text-faint); }

/* ============ 视频工坊（映界风格，v50） ============ */
.vi-hero { text-align: center; padding: 26px 0 22px; }
.vi-hero h2 { font-size: 26px; font-weight: 800; line-height: 1.4; }
.vi-hl { color: var(--accent); background: linear-gradient(120deg, var(--accent), var(--primary)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
@media (max-width: 720px) { .vi-hero h2 { font-size: 20px; } }
.vi-box { border: 1px solid var(--border); border-radius: 18px; background: var(--bg-card); padding: 16px 18px 14px; box-shadow: 0 10px 40px rgba(30,40,80,.10); transition: border-color .25s, box-shadow .25s; }
.vi-box:focus-within { border-color: var(--accent); box-shadow: 0 10px 44px rgba(34,211,238,.12); }
.vi-input { border: none !important; background: transparent !important; min-height: 96px; resize: vertical; font-size: 14.5px; padding: 4px 2px !important; }
.vi-input:focus { outline: none; box-shadow: none !important; }
.vi-count-row { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 10px; }
.vi-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 12px; }
.vi-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-elev); padding: 5px 9px; font-size: 13px; color: var(--text-dim); }
.vi-chip .ic { font-size: 14px; }
.vi-chip select { border: none; background: transparent; color: var(--text); font-size: 13px; font-weight: 700; padding: 0 2px; cursor: pointer; }
.vi-chip select:focus { outline: none; }
.vi-chip select option { background: var(--bg-card); color: var(--text); }
.vi-chip-solid { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 800; }
.vi-cost { font-weight: 800; color: var(--accent); font-size: 14px; }
.vi-gen { background: linear-gradient(135deg, var(--accent), var(--primary)) !important; box-shadow: 0 6px 20px rgba(34,211,238,.35) !important; }
.vi-gen:hover { transform: translateY(-2px) scale(1.05); }
.vi-mode-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
@media (max-width: 900px) { .vi-mode-grid { grid-template-columns: repeat(2, 1fr); } }
.vi-mode { position: relative; border: 1.5px solid var(--border); border-radius: 16px; background: var(--bg-card); padding: 18px 16px 15px; cursor: pointer; transition: border-color .2s, transform .2s, box-shadow .2s; }
.vi-mode:hover { transform: translateY(-3px); border-color: var(--accent); }
.vi-mode.active { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 8px 26px rgba(34,211,238,.13); }
.vi-mode .vi-cur { position: absolute; top: -10px; right: 12px; font-size: 11px; font-weight: 800; font-style: normal; padding: 2px 10px; border-radius: 999px; background: var(--accent); color: #fff; }
.vim-ic { width: 38px; height: 38px; border-radius: 11px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; font-size: 19px; margin-bottom: 10px; }
.vi-mode b { display: block; font-size: 14.5px; font-weight: 800; color: var(--text); }
.vi-mode i { display: block; font-style: normal; font-size: 12px; color: var(--text-faint); margin-top: 4px; }
.vi-warn { margin: 8px 0 2px; padding: 8px 12px; font-size: 12.5px; color: var(--warning); background: rgba(251,191,36,.10); border: 1px dashed rgba(251,191,36,.4); border-radius: 9px; display: inline-block; }
/* 首尾帧上传 */
.fl-frames { display: flex; align-items: center; gap: 14px; margin: 4px 0 10px; }
.fl-frame { position: relative; width: 148px; height: 92px; border: 1.5px dashed var(--border-strong); border-radius: 12px; background: var(--bg-elev); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 12.5px; color: var(--text-faint); cursor: pointer; overflow: hidden; transition: border-color .2s; }
.fl-frame:hover { border-color: var(--accent); color: var(--accent); }
.fl-frame.has { border-style: solid; }
.fl-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fl-plus { font-size: 22px; line-height: 1; }
.fl-arrow { font-size: 20px; color: var(--text-faint); }
.fl-del { position: absolute; top: 5px; right: 5px; z-index: 2; width: 22px; height: 22px; border-radius: 50%; border: none; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center; }


/* ============ 会员套餐月付/年付切换（v51） ============ */
.cycle-switch { display: inline-flex; gap: 0; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; margin: 2px 0 6px; }
.cy-btn { border: none; background: transparent; color: var(--text-faint); font-family: inherit; font-size: 12.5px; font-weight: 700; padding: 6px 16px; cursor: pointer; transition: .18s; }
.cy-btn:hover { color: var(--text); }
.cy-btn.active { background: var(--primary); color: #fff; }
.pricing-card.hot .cy-btn.active { background: var(--gold); }


/* ============ 创作中心 UI 重设计（v54）============ */
/* 侧边栏头部 */
.create-sidebar-head { position: relative; overflow: hidden; }
.create-sidebar-head::after {
  content: ''; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px;
  background: radial-gradient(circle, var(--primary-soft), transparent 70%); border-radius: 50%;
}
.csh-ico {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), var(--accent)); margin-right: 6px;
  font-size: 15px; box-shadow: 0 4px 14px rgba(124,92,255,.35);
  animation: cshFloat 3s ease-in-out infinite;
}
@keyframes cshFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-3px)} }
/* 功能卡片 */
.create-tab { isolation: isolate; }
.create-tab .ct-glow {
  position: absolute; left: -30%; top: -60%; width: 60%; height: 200%;
  background: inherit; opacity: 0; filter: blur(22px); z-index: -1; transition: opacity .3s;
}
.create-tab:hover .ct-glow { opacity: .28; }
.create-tab .ct-icon { transition: transform .25s cubic-bezier(.22,.9,.34,1), box-shadow .25s; }
.create-tab:hover .ct-icon { transform: scale(1.12) rotate(-4deg); box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.create-tab.active .ct-icon { animation: ctIconPop .4s cubic-bezier(.22,.9,.34,1); }
@keyframes ctIconPop { 0%{transform:scale(1)} 45%{transform:scale(1.18)} 100%{transform:scale(1)} }
.create-tab { transition: border-color .18s, background .18s, transform .18s, box-shadow .18s; }
.create-tab:hover { transform: translateX(4px); }
.create-tab .ct-cost { transition: transform .18s; }
.create-tab:hover .ct-cost { transform: scale(1.05); }
/* 入场交错动画 */
.create-tab { animation: ctIn .45s cubic-bezier(.22,.9,.34,1) backwards; }
.create-tab:nth-child(1){animation-delay:.03s} .create-tab:nth-child(2){animation-delay:.08s}
.create-tab:nth-child(3){animation-delay:.13s} .create-tab:nth-child(4){animation-delay:.18s}
@keyframes ctIn { from{opacity:0;transform:translateX(-10px)} to{opacity:1;transform:none} }
/* 积分卡金币浮动 */
.pm-coin { animation: pmCoinFloat 2.6s ease-in-out infinite; }
@keyframes pmCoinFloat { 0%,100%{transform:translateY(0) rotate(0)} 50%{transform:translateY(-4px) rotate(6deg)} }
/* 分组标签渐变 */
.ct-group-label { color: var(--text-dim); }
.ct-group-label::after { background: linear-gradient(90deg, var(--border), transparent); }


/* ============ 后台整体 UI 重设计（v54）============ */
/* 顶部栏：渐变 + 毛玻璃 + 底部发光 */
.admin-topbar {
  background: linear-gradient(180deg, var(--bg-card), var(--bg-elev));
  backdrop-filter: blur(14px); box-shadow: 0 2px 20px rgba(50,60,110,.06);
}
/* 后台信息卡（侧边栏头部） */
.admin-side-head {
  position: relative; overflow: hidden; margin-bottom: 16px;
  display: flex; align-items: center; gap: 12px; padding: 16px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius); color: #fff; box-shadow: 0 8px 26px rgba(124,92,255,.28);
}
.admin-side-head::after {
  content: ''; position: absolute; right: -26px; top: -26px; width: 100px; height: 100px;
  background: rgba(255,255,255,.14); border-radius: 50%;
}
.ash-badge {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  font-size: 20px; background: rgba(255,255,255,.18); flex-shrink: 0; backdrop-filter: blur(4px);
  animation: ashPulse 2.8s ease-in-out infinite;
}
@keyframes ashPulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.08)} }
.ash-title { font-weight: 800; font-size: 16px; letter-spacing: .5px; }
.ash-sub { font-size: 12px; opacity: .85; margin-top: 3px; }
/* 侧边栏菜单：左侧渐变指示条 + 悬浮 */
.admin-sidebar .menu button {
  position: relative; border: 1px solid transparent; transition: .2s; overflow: hidden;
}
.admin-sidebar .menu button::before {
  content: ''; position: absolute; left: 0; top: 20%; bottom: 20%; width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, var(--primary), var(--accent)); opacity: 0; transform: scaleY(.4); transition: .2s;
}
.admin-sidebar .menu button.active::before { opacity: 1; transform: scaleY(1); }
.admin-sidebar .menu button.active { background: var(--primary-soft); color: var(--primary-text); border-color: var(--primary); box-shadow: 0 6px 18px rgba(124,92,255,.14); font-weight: 600; }
/* 统计卡片：渐变顶部条 + 数字渐变 + 入场动画 */
.admin-stat { transition: transform .22s, box-shadow .22s, border-color .22s; animation: statIn .5s cubic-bezier(.22,.9,.34,1) backwards; }
.admin-stat:nth-child(1){animation-delay:.03s} .admin-stat:nth-child(2){animation-delay:.08s}
.admin-stat:nth-child(3){animation-delay:.13s} .admin-stat:nth-child(4){animation-delay:.18s}
.admin-stat:nth-child(5){animation-delay:.23s} .admin-stat:nth-child(6){animation-delay:.28s}
@keyframes statIn { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:none} }
.admin-stat .num {
  background: linear-gradient(120deg, var(--primary), var(--accent));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
/* 卡片 hover 上浮 + 边框光晕 */
.admin-content .card { transition: transform .22s, box-shadow .22s, border-color .22s; }
.admin-content .card:hover { transform: translateY(-3px); box-shadow: 0 14px 38px rgba(50,60,110,.10); border-color: var(--border-strong); }
/* 卡片标题加渐变下划线 */
.card-title { position: relative; padding-bottom: 4px; }
.card-title::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
/* api-card 图标动效 */
.api-card { transition: transform .2s, box-shadow .2s, border-color .2s; }
.api-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(50,60,110,.08); border-color: var(--border-strong); }
.api-card .api-icon { transition: transform .25s; }
.api-card:hover .api-icon { transform: scale(1.1) rotate(-6deg); }
/* 表格行 hover */
tbody tr { transition: background .15s; }
tbody tr:hover { background: var(--bg-soft); }
/* 后台内容区整体入场 */
#adminContent > .card, #adminContent > .admin-stats { animation: adminIn .4s ease backwards; }
@keyframes adminIn { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:none} }

/* ============================================================
 * v55：顶栏积分/会员独立卡片 + 图标系统 + 模型广场改版 + 图标设置
 * ============================================================ */

/* ---- 自定义图片图标：自动继承原 emoji 位置的大小 ---- */
.cico {
  width: 1em; height: 1em; object-fit: contain; vertical-align: -0.14em;
  display: inline-block; border-radius: 4px;
}
.nav-icon .cico { width: 17px; height: 17px; }
.ct-icon .cico { width: 22px; height: 22px; border-radius: 6px; }
.pm-coin .cico, .pstat-icon .cico, .pmc-icon .cico { width: 22px; height: 22px; }
.mp-icon .cico { width: 36px; height: 36px; border-radius: 9px; }
.mp-pill .cico, .mp-cat-tag .cico { width: 15px; height: 15px; }
.bs-ico .cico, .pop .cico, .rp-hot .cico { width: 15px; height: 15px; }
.pp-coin .cico { width: 32px; height: 32px; }
.dropdown-menu .cico { width: 16px; height: 16px; }
.csh-ico .cico { width: 19px; height: 19px; }
.theme-btn .cico { width: 16px; height: 16px; }
.top-chip .cico { width: 17px; height: 17px; }
.mph-icon .cico { width: 34px; height: 34px; border-radius: 9px; }

/* ---- 顶栏积分/会员独立小卡片 ---- */
.top-chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 13px; border-radius: 20px;
  font-size: 12.5px; font-weight: 700; white-space: nowrap;
  cursor: pointer; position: relative; flex-shrink: 0;
  transition: transform .18s, box-shadow .18s, filter .18s;
}
.top-chip:hover { transform: translateY(-1px); filter: brightness(1.06); }
.top-chip:active { transform: scale(.96); }
.top-chip.top-coin {
  background: rgba(245,199,106,.14);
  border: 1px solid rgba(245,199,106,.38);
  color: var(--gold, #d4a017);
}
.top-chip.top-coin b { font-weight: 800; letter-spacing: .2px; }
.top-chip.top-vip {
  background: linear-gradient(135deg, rgba(124,92,255,.16), rgba(236,72,153,.12));
  border: 1px solid rgba(124,92,255,.35);
  color: var(--primary);
}
.top-chip.top-vip.owned {
  background: linear-gradient(135deg, #f5c76a, #e6a23c);
  border-color: transparent; color: #3a2600;
  box-shadow: 0 3px 12px rgba(230,162,60,.35);
}
@media (max-width: 900px) { .top-chip.top-vip span { display: none; } .top-chip.top-vip { padding: 0 10px; } }

/* ---- 创作中心积分卡（可点击充值） ---- */
button.points-mini-card {
  width: 100%; text-align: left; cursor: pointer;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
button.points-mini-card:hover {
  transform: translateY(-2px);
  border-color: rgba(245,199,106,.55);
  box-shadow: 0 8px 22px rgba(245,199,106,.16);
}
button.points-mini-card .pm-go {
  font-size: 11px; font-weight: 700; color: var(--gold);
  background: rgba(245,199,106,.14); border: 1px solid rgba(245,199,106,.3);
  padding: 3px 9px; border-radius: 14px; white-space: nowrap; flex-shrink: 0;
  transition: .18s;
}
button.points-mini-card:hover .pm-go { background: var(--gold, #d4a017); color: #3a2600; }

/* ---- 模型广场改版 ---- */
.mp-section { padding-bottom: 60px; }
.mp-hero {
  position: relative; text-align: center; padding: 34px 20px 26px; margin-bottom: 20px;
  border-radius: 20px; overflow: hidden;
  background: linear-gradient(135deg, var(--primary-soft), transparent 60%), var(--bg-card);
  border: 1px solid var(--border);
}
.mph-glow {
  position: absolute; top: -80px; left: 50%; transform: translateX(-50%);
  width: 420px; height: 180px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(124,92,255,.20), transparent);
  animation: mphPulse 4.5s ease-in-out infinite;
}
@keyframes mphPulse { 0%,100% { opacity:.7; transform:translateX(-50%) scale(1);} 50% { opacity:1; transform:translateX(-50%) scale(1.12);} }
.mph-icon {
  width: 62px; height: 62px; margin: 0 auto 12px; border-radius: 18px;
  display: grid; place-items: center; font-size: 30px;
  background: linear-gradient(135deg, var(--primary), var(--accent, #ec4899));
  color: #fff; box-shadow: 0 10px 26px rgba(124,92,255,.35);
  animation: mphFloat 3.5s ease-in-out infinite;
}
@keyframes mphFloat { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-6px);} }
.mp-hero h2 { font-size: 26px; font-weight: 800; letter-spacing: 1px; }
.mp-hero p { color: var(--text-dim); margin-top: 8px; font-size: 13.5px; }
.mp-toolbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.mp-search {
  display: flex; align-items: center; gap: 8px;
  flex: 1; min-width: 220px; max-width: 360px;
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: 22px; padding: 0 14px; height: 40px;
  transition: border-color .18s, box-shadow .18s;
}
.mp-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.mp-search .mps-ico { font-size: 14px; opacity: .7; }
.mp-search input { border: none; background: transparent; height: 100%; flex: 1; font-size: 13.5px; padding: 0; }
.mp-search input:focus { outline: none; box-shadow: none; }
.mp-search .mps-clear {
  border: none; background: var(--bg-soft); color: var(--text-dim);
  width: 20px; height: 20px; border-radius: 50%; font-size: 11px; cursor: pointer; flex-shrink: 0;
}
.mp-search .mps-clear:hover { background: var(--danger); color: #fff; }
.mp-toolbar .mp-pills { margin-bottom: 0; }
/* 模型卡片增强 */
.mp-state {
  position: absolute; top: 12px; right: 12px;
  font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 12px;
}
.mp-state.on { background: rgba(34,197,94,.12); color: #16a34a; border: 1px solid rgba(34,197,94,.3); }
.mp-state.off { background: rgba(239,68,68,.10); color: #ef4444; border: 1px solid rgba(239,68,68,.3); }
.mp-tags { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; margin-bottom: 10px; }
.mp-tag {
  font-size: 10.5px; color: var(--text-dim);
  background: var(--bg-soft); border: 1px solid var(--border);
  padding: 2px 8px; border-radius: 10px;
}
.mp-card .mp-use-btn { margin: 0 auto 12px; display: flex; width: 80%; }
.mp-card .mp-use-btn:hover { transform: translateY(-1px); }
@media (max-width: 700px) { .mp-toolbar { flex-direction: column; align-items: stretch; } .mp-search { max-width: none; } }

/* ---- 会员购买弹窗内套餐网格 ---- */
.vip-modal .vip-modal-grid { grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 14px; }
.vip-modal .pricing-card { padding: 26px 16px 20px; }
.vip-modal .pricing-card .price .num { font-size: 34px; }
.vip-modal .pricing-card ul { margin: 14px 0 18px; }
.vip-modal .pricing-card ul li { font-size: 12.5px; padding: 6px 0; }

/* ---- 后台：图标设置 ---- */
.uiicon-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px;
}
.uiicon-cell {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 14px;
  padding: 16px 10px 12px; text-align: center; transition: .18s;
}
.uiicon-cell:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(50,60,110,.10); }
.ui-prev {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-size: 26px; background: var(--bg-elev); border: 1px dashed var(--border-strong);
  overflow: hidden;
}
.ui-prev img { width: 100%; height: 100%; object-fit: contain; }
.ui-label { font-size: 13px; font-weight: 700; }
.ui-note {
  font-size: 10.5px; color: var(--text-faint); line-height: 1.5; height: 30px; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.ui-btns { display: flex; gap: 6px; }
/* 图标选择器（emoji 下拉 + 上传） */
.icon-picker { display: flex; align-items: center; gap: 6px; }
.icon-picker .ip-prev {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  font-size: 16px; background: var(--bg-soft); border: 1px solid var(--border); overflow: hidden; flex-shrink: 0;
}
.icon-picker .ip-prev img { width: 100%; height: 100%; object-fit: contain; }
.icon-picker select { flex: 1; min-width: 64px; }
/* 角标预览 */
.pop-preview { box-shadow: 0 3px 10px rgba(230,162,60,.35); }
.pop-preview .cico { width: 13px; height: 13px; }

/* ================= v58 模型广场（左侧筛选面板 + 搜索工具栏 + 信息卡片网格） ================= */
.mp2-title-row { margin-bottom: 18px; }
.mp2-title-row h2 { font-size: 22px; font-weight: 800; display: inline-block; background: linear-gradient(120deg, var(--text), var(--primary)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.mp2-title-row p { color: var(--text-dim); font-size: 13px; margin-top: 4px; }
.mp2-layout { display: grid; grid-template-columns: 238px 1fr; gap: 18px; align-items: start; }
/* 左侧筛选面板 */
.mp2-side { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 16px 14px; position: sticky; top: 78px; animation: adminIn .4s ease backwards; }
.mp2-side-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.mp2-side-head b { font-size: 15px; font-weight: 800; }
.mp2-reset { margin-left: auto; background: none; border: 1px solid var(--border); color: var(--text-dim); font-size: 11px; padding: 3px 10px; border-radius: 999px; cursor: pointer; transition: all .2s; }
.mp2-reset:hover { color: var(--primary); border-color: var(--primary); }
.mp2-side-head p { width: 100%; font-size: 11px; color: var(--text-faint); margin-top: 2px; }
.mp2-fgroup { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--border); }
.mp2-flabel { font-size: 12px; color: var(--text-dim); font-weight: 700; margin-bottom: 8px; letter-spacing: .5px; }
.mp2-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.mp2-chip { display: inline-flex; align-items: center; gap: 4px; background: var(--bg-soft); border: 1px solid var(--border); color: var(--text-dim); font-size: 12px; padding: 5px 11px; border-radius: 999px; cursor: pointer; transition: all .18s; }
.mp2-chip span { font-size: 10px; opacity: .75; }
.mp2-chip .cico { width: 13px; height: 13px; }
.mp2-chip:hover { border-color: var(--primary); color: var(--text); transform: translateY(-1px); }
.mp2-chip.active { background: linear-gradient(120deg, var(--primary), var(--primary-2, var(--primary))); border-color: transparent; color: #fff; font-weight: 700; box-shadow: 0 3px 10px rgba(124,92,255,.3); }
.mp2-chip.active span { opacity: .9; }
/* 工具栏：搜索 + 计数 + 同步 */
.mp2-toolbar { display: flex; gap: 12px; margin-bottom: 16px; }
.mp2-search { flex: 1; display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 0 12px; height: 44px; transition: border-color .2s, box-shadow .2s; }
.mp2-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124,92,255,.15); }
.mp2-search .mps-ico { font-size: 14px; opacity: .6; }
.mp2-search input { flex: 1; border: none; background: transparent; outline: none; color: var(--text); font-size: 13px; min-width: 0; }
.mp2-count { flex-shrink: 0; font-size: 11px; color: var(--text-dim); background: var(--bg-soft); border: 1px solid var(--border); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.mp2-sync { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 18px; border: none; border-radius: 12px; background: linear-gradient(135deg, #ff9f43, #ff6b35); color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; box-shadow: 0 4px 14px rgba(255,107,53,.35); transition: all .2s; white-space: nowrap; }
.mp2-sync:hover { transform: translateY(-2px); box-shadow: 0 7px 18px rgba(255,107,53,.45); }
.mp2-sync .sync-ico { display: inline-block; font-size: 15px; }
.mp2-sync.syncing .sync-ico { animation: mp2Spin .8s linear infinite; }
@keyframes mp2Spin { to { transform: rotate(360deg); } }
/* 卡片网格 */
.mp2-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 14px; }
.mp2-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; animation: mp2In .45s ease backwards; transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; position: relative; overflow: hidden; }
.mp2-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, transparent, var(--primary), transparent); opacity: 0; transition: opacity .25s; }
.mp2-card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: 0 12px 28px rgba(0,0,0,.18); }
.mp2-card:hover::before { opacity: 1; }
@keyframes mp2In { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.mp2-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mp2-icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-size: 21px; background: linear-gradient(135deg, rgba(124,92,255,.16), rgba(96,165,250,.12)); border: 1px solid var(--border); overflow: hidden; flex-shrink: 0; }
.mp2-icon .cico { width: 100%; height: 100%; object-fit: contain; }
.mp2-icon.lg { width: 54px; height: 54px; font-size: 28px; border-radius: 14px; }
.mp2-badge { font-size: 11px; padding: 3px 10px; border-radius: 999px; font-weight: 600; background: var(--bg-soft); color: var(--text-faint); border: 1px solid var(--border); white-space: nowrap; }
.mp2-badge.on { background: rgba(52,211,153,.12); color: #2fbf8f; border-color: rgba(52,211,153,.35); }
.mp2-name { font-weight: 800; font-size: 15px; margin-top: 12px; line-height: 1.35; word-break: break-all; }
.mp2-name.lg { font-size: 18px; margin-top: 0; }
.mp2-price { margin-top: 6px; font-size: 12px; color: var(--text-dim); }
.mp2-price b { font-size: 17px; font-weight: 800; color: var(--gold); margin-right: 2px; }
.mp2-price.lg { margin-top: 10px; }
.mp2-price.lg b { font-size: 22px; }
.mp2-price-free { color: #2fbf8f; font-weight: 700; }
.mp2-desc { font-size: 12px; color: var(--text-dim); line-height: 1.55; margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 18px; }
.mp2-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.mp2-stat { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px; padding: 7px 10px; display: flex; flex-direction: column; gap: 2px; }
.mp2-stat .lbl { font-size: 10px; color: var(--text-faint); }
.mp2-stat b { font-size: 13px; font-weight: 800; color: var(--text); }
.mp2-stat b.ok { color: #2fbf8f; }
.mp2-stats.lg { margin-top: 12px; }
.mp2-foot { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 13px; padding-top: 12px; border-top: 1px dashed var(--border); margin-top: auto; }
.mp2-card .mp2-foot { margin-top: auto; padding-top: 12px; }
.mp2-tag { font-size: 11px; color: var(--text-dim); background: var(--bg-soft); border: 1px solid var(--border); padding: 2px 9px; border-radius: 6px; }
.mp2-billing { font-size: 11px; color: #b48cff; background: rgba(124,92,255,.12); border: 1px solid rgba(124,92,255,.3); padding: 2px 9px; border-radius: 6px; font-weight: 600; }
.mp2-detail { margin-left: auto; background: none; border: none; color: var(--primary); font-size: 12px; font-weight: 700; cursor: pointer; padding: 3px 4px; transition: transform .18s; }
.mp2-detail:hover { transform: translateX(2px); }
.mp2-empty { grid-column: 1 / -1; text-align: center; padding: 56px 0; color: var(--text-dim); }
.mp2-empty .icon { font-size: 40px; margin-bottom: 10px; }
.mp2-empty h3 { font-size: 16px; color: var(--text); }
.mp2-empty p { font-size: 12px; color: var(--text-faint); margin-top: 4px; }
/* 详情弹窗 */
.mp2-dhead { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }
.mp2-dsub { display: flex; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.mp2-ddesc { font-size: 13px; color: var(--text-dim); line-height: 1.7; margin-top: 12px; }
.mp2-tags-lg { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.mp2-dactions { display: flex; gap: 10px; margin-top: 20px; }
.mp2-dactions .btn { flex: 1; }
@media (max-width: 960px) {
  .mp2-layout { grid-template-columns: 1fr; }
  .mp2-side { position: static; }
  .mp2-toolbar { flex-direction: column; }
  .mp2-sync { justify-content: center; }
}

/* ============================================================
   v59 全站积分图标：浅蓝四角星（自动继承所在位置字号）
   ============================================================ */
.coin-svg { width: 1em; height: 1em; vertical-align: -0.12em; display: inline-block; flex-shrink: 0; }
.top-chip .coin-svg { width: 16px; height: 16px; }
.pp-coin .coin-svg { width: 34px; height: 34px; filter: drop-shadow(0 4px 10px rgba(77,184,255,.45)); }
.pm-coin .coin-svg { width: 20px; height: 20px; }
.pstat-icon .coin-svg, .pmc-icon .coin-svg { width: 22px; height: 22px; }
.menu-icon .coin-svg { width: 16px; height: 16px; }

/* ============================================================
   v59 套餐角标自定义：每个套餐可配文字 / 边框颜色 / 动态特效
   ============================================================ */
.pkg-pop { border: 1.5px solid #e6a23c; font-weight: 800; }
.pkg-c { border-color: var(--pkg-c, #e6a23c); }
.pricing-card.pkg-c.hot, .points-pack.pkg-c.hot { box-shadow: 0 0 0 1px var(--pkg-c, #e6a23c), 0 16px 50px var(--pkg-glow, rgba(245,199,106,.15)); }
.rp-pkg.pkg-c.hot, .rp-pkg.pkg-c.active { border-color: var(--pkg-c, #e6a23c); }
/* 动态特效：呼吸发光 */
.pkg-c.fx-glow { animation: pkgGlow 2.2s ease-in-out infinite; }
@keyframes pkgGlow {
  0%, 100% { box-shadow: 0 0 0 1px var(--pkg-c, #e6a23c), 0 0 0 0 var(--pkg-glow, rgba(230,162,60,0)); }
  50% { box-shadow: 0 0 0 1px var(--pkg-c, #e6a23c), 0 0 28px 5px var(--pkg-glow, rgba(230,162,60,.45)); }
}
/* 动态特效：流光扫过 */
.pkg-c.fx-shine { position: relative; overflow: hidden; }
.pkg-c.fx-shine::after {
  content: ""; position: absolute; top: -60%; bottom: -60%; left: -80%; width: 45%;
  transform: rotate(20deg); pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.30), transparent);
  animation: pkgShine 2.6s ease-in-out infinite;
}
@keyframes pkgShine { 0% { left: -80%; } 55%, 100% { left: 135%; } }
/* 动态特效：边框闪烁 */
.pkg-c.fx-blink { animation: pkgBlink 1.35s ease-in-out infinite; }
@keyframes pkgBlink { 0%, 100% { border-color: var(--pkg-c, #e6a23c); } 50% { border-color: transparent; } }
/* 动态特效：悬浮跳动 */
.pkg-c.fx-float { animation: pkgFloat 2.8s ease-in-out infinite; }
@keyframes pkgFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ============================================================
   v59 首页中间布局（参考 haomj.com；顶栏与底部不变）
   ============================================================ */
.hm-sec-tight { padding: 26px 0 0; }
/* —— Hero —— */
.hm-hero { text-align: center; position: relative; }
.hm-hero-chip {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 18px; border-radius: 999px;
  background: var(--primary-soft); border: 1px solid rgba(124,92,255,.28); color: var(--primary-text);
  font-size: 13px; font-weight: 600; margin-bottom: 24px;
}
.hm-chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); animation: hmPulse 2s infinite; }
@keyframes hmPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.hm-stats {
  margin-top: 56px; display: flex; justify-content: center; align-items: center; gap: 34px; flex-wrap: wrap;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px;
  padding: 20px 42px; max-width: 700px; margin-left: auto; margin-right: auto;
  box-shadow: var(--shadow);
}
.hm-stat { text-align: center; min-width: 92px; }
.hm-stat .num { font-size: 30px; font-weight: 800; }
.hm-stat .num.grad { background: linear-gradient(120deg, #a98cff, #5ee0f5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hm-stat .label { font-size: 12.5px; color: var(--text-faint); margin-top: 2px; }
.hm-stat-sep { width: 1px; height: 38px; background: var(--border); flex-shrink: 0; }
/* —— 快捷入口 —— */
.hm-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hm-quick-card {
  display: flex; align-items: center; gap: 14px; text-align: left; width: 100%;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px;
  padding: 18px; transition: .22s; cursor: pointer;
}
.hm-quick-card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: 0 14px 36px rgba(50,60,110,.16); }
.hmq-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 23px; flex-shrink: 0; }
.hmq-icon .coin-svg { width: 24px; height: 24px; }
.hmq-body { flex: 1; min-width: 0; }
.hmq-body b { display: block; font-size: 15px; margin-bottom: 3px; }
.hmq-body i { font-style: normal; font-size: 12px; color: var(--text-faint); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hmq-arrow { font-size: 22px; font-weight: 700; opacity: .5; transition: .2s; flex-shrink: 0; line-height: 1; }
.hm-quick-card:hover .hmq-arrow { transform: translateX(4px); opacity: 1; }
/* —— 核心功能卡片（增强） —— */
.hm-feat { display: flex; flex-direction: column; }
.hm-feat .icon { width: 52px; height: 52px; font-size: 26px; border-radius: 14px; }
.hm-feat-new {
  position: absolute; top: 14px; right: 14px; font-size: 10.5px; font-weight: 800; letter-spacing: .5px;
  color: #fff; background: linear-gradient(135deg, #ff7ab0, #ec4899);
  padding: 2.5px 9px; border-radius: 999px; box-shadow: 0 3px 10px rgba(236,72,153,.4);
}
.hm-feat-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hm-feat-foot .flow { margin: 0 !important; padding: 0 !important; border: none !important; }
.hm-feat-more { font-size: 12.5px; font-weight: 700; color: var(--primary-text); opacity: 0; transform: translateX(-6px); transition: .22s; white-space: nowrap; }
.hm-feat:hover .hm-feat-more { opacity: 1; transform: none; }
/* —— 创作全流程（横向连接步骤） —— */
.hm-flow { display: flex; align-items: stretch; gap: 6px; }
.hm-flow-step {
  flex: 1; text-align: center; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 22px 10px 18px; transition: .22s;
}
.hm-flow-step:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: 0 12px 30px rgba(50,60,110,.14); }
.hmf-num {
  width: 38px; height: 38px; margin: 0 auto 12px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 800; font-size: 16px; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent)); box-shadow: 0 5px 14px rgba(124,92,255,.35);
}
.hm-flow-step h4 { font-size: 14.5px; font-weight: 700; margin-bottom: 4px; }
.hm-flow-step p { font-size: 12px; color: var(--text-faint); line-height: 1.5; }
.hm-flow-arrow { display: grid; place-items: center; color: var(--text-faint); font-size: 22px; font-weight: 700; flex-shrink: 0; }
/* —— 平台优势 —— */
.hm-adv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hm-adv-card {
  display: flex; gap: 14px; align-items: flex-start; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 16px; padding: 20px; transition: .22s;
}
.hm-adv-card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: 0 14px 36px rgba(50,60,110,.16); }
.hma-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 21px; flex-shrink: 0; }
.hma-icon .coin-svg { width: 22px; height: 22px; }
.hma-body b { display: block; font-size: 15px; margin-bottom: 4px; }
.hma-body p { font-size: 12.5px; color: var(--text-dim); line-height: 1.6; }
/* —— 底部 CTA 横幅 —— */
.hm-cta {
  position: relative; overflow: hidden; text-align: center; border-radius: 24px; padding: 58px 30px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 55%, var(--accent) 130%); color: #fff;
  box-shadow: 0 20px 60px rgba(124,92,255,.35);
}
.hm-cta h2 { font-size: 34px; font-weight: 800; letter-spacing: -.5px; position: relative; }
.hm-cta p { margin-top: 10px; font-size: 15px; opacity: .88; position: relative; }
.hm-cta-btns { margin-top: 28px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }
.hm-cta-main { background: #fff; color: var(--primary-strong); font-weight: 700; }
.hm-cta-main:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.hm-cta .btn-ghost { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.35); color: #fff; }
.hm-cta .btn-ghost:hover { background: rgba(255,255,255,.24); border-color: rgba(255,255,255,.55); }
.hm-cta-glow { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; pointer-events: none; }
.hm-cta-glow.g1 { width: 320px; height: 320px; background: rgba(255,255,255,.25); top: -140px; right: -80px; }
.hm-cta-glow.g2 { width: 260px; height: 260px; background: rgba(94,224,245,.35); bottom: -130px; left: -60px; }
/* —— 响应式 —— */
@media (max-width: 1024px) {
  .hm-quick, .hm-adv { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hm-flow { flex-direction: column; gap: 10px; }
  .hm-flow-arrow { transform: rotate(90deg); padding: 2px 0; }
  .hm-quick, .hm-adv { grid-template-columns: 1fr; }
  .hm-stats { gap: 18px; padding: 16px 20px; }
  .hm-stat-sep { display: none; }
  .hm-cta h2 { font-size: 26px; }
  .hm-cta { padding: 44px 20px; }
}

/* ============================================================
   v60 电商专区（参考 haomj.com/ecommerce，独立页面 #ecommerce）
   ============================================================ */
.ec-section { min-height: 60vh; }
.ec-crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-dim); margin-bottom: 18px; }
.ec-crumb a { color: var(--text-dim); cursor: pointer; }
.ec-crumb a:hover { color: var(--primary); }
.ec-crumb .on { color: var(--text); font-weight: 600; }
.ec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.ec-head h1 { font-size: 30px; font-weight: 800; letter-spacing: -.5px; }
.ec-head p { color: var(--text-dim); margin-top: 8px; font-size: 15px; }
.ec-head-points { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-text); font-size: 15px; }
.ec-head-points b { font-size: 17px; }
/* 工具卡片 */
.ec-tools { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 26px; }
.ec-tool { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 10px; border-radius: 16px; background: var(--bg-card); border: 1px solid var(--border); cursor: pointer; transition: .2s; }
.ec-tool:hover { transform: translateY(-3px); border-color: var(--primary); box-shadow: 0 12px 30px rgba(50,60,110,.14); }
.ec-tool.active { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 1px var(--primary); }
.ec-tool-icon { font-size: 30px; line-height: 1; }
.ec-tool-icon img { width: 30px; height: 30px; object-fit: contain; }
.ec-tool-name { font-size: 13px; font-weight: 600; color: var(--text); }
/* 工作台 */
.ec-workbench { display: grid; grid-template-columns: 1fr; gap: 24px; }
.ec-steps { display: flex; flex-direction: column; gap: 20px; }
.ec-step { background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px; padding: 22px; }
.ec-step-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.ec-step-num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), #7c5cff); color: #fff; font-weight: 800; font-size: 15px; flex: none; }
.ec-step-head b { font-size: 17px; font-weight: 700; }
.ec-step-sub { font-size: 12px; color: var(--text-faint); margin-left: 4px; }
/* 服装图上传 */
.ec-clothes { display: flex; gap: 12px; flex-wrap: wrap; }
.ec-cloth { width: 128px; height: 160px; border-radius: 14px; border: 2px dashed var(--border); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--text-faint); cursor: pointer; transition: .18s; background: var(--bg); font-size: 12px; position: relative; overflow: hidden; }
.ec-cloth.add:hover { border-color: var(--primary); color: var(--primary); }
.ec-cloth.has { border-style: solid; border-color: var(--border); padding: 0; }
.ec-cloth.has img { width: 100%; height: 100%; object-fit: cover; }
.ec-cloth-x { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; cursor: pointer; }
/* 模特 / 场景选择卡片 */
.ec-models, .ec-scenes { display: flex; gap: 12px; flex-wrap: wrap; }
.ec-model-card, .ec-scene-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px; border-radius: 14px; border: 2px solid var(--border); background: var(--bg); cursor: pointer; transition: .18s; min-width: 96px; }
.ec-model-card:hover, .ec-scene-card:hover { border-color: var(--primary); }
.ec-model-card.active, .ec-scene-card.active { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.ec-model-card img, .ec-scene-card img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; }
.ec-ph { width: 84px; height: 84px; display: flex; align-items: center; justify-content: center; font-size: 32px; border-radius: 10px; background: var(--primary-soft); }
.ec-model-name, .ec-scene-name { font-size: 12px; color: var(--text-dim); max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ec-model-upload { margin-top: 12px; }
.ec-hint { font-size: 13px; color: var(--text-faint); padding: 12px; background: var(--bg); border-radius: 10px; }
/* 生成设置 */
.ec-count-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.ec-count-row label { font-size: 13px; font-weight: 600; color: var(--text-dim); min-width: 64px; }
.ec-count-pills { display: flex; gap: 8px; }
.ec-count-pill { padding: 7px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); cursor: pointer; font-size: 13px; font-weight: 600; transition: .15s; }
.ec-count-pill.active { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-text); }
.ec-model-select { max-width: 260px; }
.ec-generate { width: 100%; margin-top: 6px; }
/* 生成结果 */
.ec-results { border-top: 1px solid var(--border); padding-top: 22px; }
.ec-results-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.ec-results-head h3 { font-size: 18px; font-weight: 700; }
.ec-results-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ec-result-card { border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--bg); position: relative; }
.ec-result-card img, .ec-result-card video { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.ec-result-actions { padding: 10px; display: flex; justify-content: center; }
.ec-empty { grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: var(--text-faint); }
.ec-empty .icon { font-size: 44px; margin-bottom: 12px; }
.ec-loading { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 60px 20px; color: var(--text-dim); }
.spinner { width: 36px; height: 36px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: ecSpin 0.8s linear infinite; }
@keyframes ecSpin { to { transform: rotate(360deg); } }
/* 响应式 */
@media (max-width: 1024px) {
  .ec-tools { grid-template-columns: repeat(3, 1fr); }
  .ec-results-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .ec-tools { grid-template-columns: repeat(2, 1fr); }
  .ec-results-grid { grid-template-columns: repeat(2, 1fr); }
  .ec-head h1 { font-size: 24px; }
}


