/* ==========================================================================
   AI 创作工作室 · 设计系统（浅色主题 · 白色背景）
   ========================================================================== */
:root {
  --bg: #ffffff;
  --bg-1: #f8fafc;
  --bg-2: #f1f5f9;
  --bg-3: #e2e8f0;
  --surface: #f8fafc;
  --panel: #ffffff;
  --panel-solid: #ffffff;
  --line: rgba(15, 23, 42, 0.08);
  --line-strong: rgba(15, 23, 42, 0.16);
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #64748b;
  --brand: #4f46e5;
  --brand-2: #0891b2;
  --brand-3: #db2777;
  --ok: #059669;
  --warn: #d97706;
  --danger: #dc2626;
  --info: #2563eb;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --page-w: 1240px;      /* 页头 / 页脚 / 正文 统一最大宽度 */
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  --shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.06);
  --grad: linear-gradient(120deg, #4f46e5 0%, #0891b2 100%);
  --grad-2: linear-gradient(120deg, #db2777 0%, #4f46e5 100%);
  --grad-text: linear-gradient(120deg, #4338ca 0%, #0e7490 100%);
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(1100px 600px at 12% -8%, rgba(79, 70, 229, 0.05), transparent 60%),
    radial-gradient(900px 520px at 88% 4%, rgba(8, 145, 178, 0.04), transparent 62%),
    radial-gradient(700px 500px at 60% 100%, rgba(219, 39, 119, 0.03), transparent 65%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img, video { max-width: 100%; display: block; }
::selection { background: rgba(79, 70, 229, 0.18); }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(15, 23, 42, 0.18); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgba(15, 23, 42, 0.3); }
::-webkit-scrollbar-track { background: transparent; }

/* ------------------------------ 布局 ------------------------------ */
.shell { min-height: 100vh; display: flex; flex-direction: column; }
.container { width: min(var(--page-w), 100% - 40px); margin: 0 auto; }
.container-narrow { width: min(var(--page-w), 100% - 40px); margin: 0 auto; }
.app-layout { display: grid; grid-template-columns: 232px 1fr; gap: 22px; width: min(var(--page-w), 100% - 40px); margin: 22px auto 60px; }
@media (max-width: 1000px) { .app-layout { grid-template-columns: 1fr; } }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.page-title { font-size: 22px; font-weight: 700; letter-spacing: 0.2px; margin: 0; }
.page-sub { color: var(--text-2); font-size: 13px; margin-top: 4px; }
.section { margin-top: 46px; margin-bottom: 46px; }  /* 不可用 margin 简写，否则会覆盖 .container 的 margin:0 auto 导致靠左 */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-title { font-size: 20px; font-weight: 700; margin: 0; }
.section-desc { color: var(--text-2); font-size: 13px; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1100px) { .g4, .g5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .g2, .g3 { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .g4, .g5 { grid-template-columns: 1fr; } }
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.small { font-size: 12px; }
.mono { font-family: var(--mono); }
.center { text-align: center; }
.right { text-align: right; }
.mt0 { margin-top: 0; } .mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; }
.mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; } .mt32 { margin-top: 32px; }
.mb0 { margin-bottom: 0; } .mb8 { margin-bottom: 8px; } .mb16 { margin-bottom: 16px; }
.hide { display: none !important; }

/* ------------------------------ 卡片与面板 ------------------------------ */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.card.tight { padding: 14px; }
.card.hover { transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease; }
.card.hover:hover { transform: translateY(-3px); border-color: rgba(79, 70, 229, 0.35); box-shadow: var(--shadow); }
.card-title { font-size: 15px; font-weight: 650; margin: 0 0 4px; }
.card-desc { color: var(--text-2); font-size: 12.5px; }
.panel-flat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-label { color: var(--text-3); font-size: 12px; }
.stat-value { font-size: 20px; font-weight: 700; letter-spacing: 0.3px; }
.gradient-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.divider { height: 1px; background: var(--line); margin: 14px 0; border: 0; }

/* ------------------------------ 按钮 ------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 16px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: #ffffff; color: var(--text);
  font-size: 13.5px; font-weight: 550; cursor: pointer; white-space: nowrap;
  transition: all 0.16s ease;
}
.btn:hover { background: var(--bg-1); border-color: rgba(79, 70, 229, 0.45); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn.disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--grad); border-color: transparent; color: #ffffff; font-weight: 650; }
.btn-primary:hover { filter: brightness(1.06); background: var(--grad); color: #ffffff; }
.btn-pink { background: var(--grad-2); border-color: transparent; color: #ffffff; font-weight: 650; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--bg-2); color: var(--text); }
.btn-danger { border-color: rgba(220, 38, 38, 0.45); color: var(--danger); }
.btn-danger:hover { background: rgba(220, 38, 38, 0.06); }
.btn-ok { border-color: rgba(5, 150, 105, 0.45); color: var(--ok); }
.btn-ok:hover { background: rgba(5, 150, 105, 0.07); }
.btn-sm { padding: 6px 11px; font-size: 12.5px; border-radius: 8px; }
.btn-lg { padding: 12px 24px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-icon { padding: 7px 9px; }
.btn-group { display: inline-flex; gap: 8px; flex-wrap: wrap; }

/* ------------------------------ 表单 ------------------------------ */
.field { margin-bottom: 14px; }
.label { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 6px; font-weight: 550; }
.label .req { color: var(--danger); margin-left: 3px; }
.input, .select, .textarea {
  width: 100%; padding: 10px 12px; border-radius: 10px;
  background: #ffffff; border: 1px solid var(--line-strong);
  color: var(--text); font-size: 13.5px; font-family: inherit; outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.textarea { min-height: 92px; resize: vertical; line-height: 1.6; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.14); }
.input::placeholder, .textarea::placeholder { color: #94a3b8; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.select option { background: #ffffff; }
.hint { font-size: 12px; color: var(--text-3); margin-top: 5px; }
.err-text { font-size: 12.5px; color: var(--danger); margin-top: 5px; }
.check { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--text-2); cursor: pointer; user-select: none; }
.check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; flex: none; }
.inline-form { display: flex; gap: 8px; }
.inline-form .input { flex: 1; }
.seg { display: inline-flex; padding: 3px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; gap: 3px; flex-wrap: wrap; }
.seg button { padding: 6px 13px; border-radius: 7px; border: 0; background: transparent; color: var(--text-2); font-size: 12.5px; cursor: pointer; font-weight: 550; }
.seg button.on { background: var(--grad); color: #ffffff; font-weight: 650; }
.swatch { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch button { padding: 7px 13px; border-radius: 9px; border: 1px solid var(--line-strong); background: #ffffff; color: var(--text-2); font-size: 12.5px; cursor: pointer; transition: all 0.15s; }
.swatch button:hover { border-color: var(--brand); color: var(--text); }
.swatch button.on { background: rgba(79, 70, 229, 0.1); border-color: var(--brand); color: var(--brand); font-weight: 650; }
.swatch button:disabled { opacity: 0.4; cursor: not-allowed; text-decoration: line-through; }

/* ------------------------------ 徽标与状态 ------------------------------ */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
.badge-brand { background: rgba(79, 70, 229, 0.08); color: #4338ca; border-color: rgba(79, 70, 229, 0.25); }
.badge-ok { background: rgba(5, 150, 105, 0.08); color: #047857; border-color: rgba(5, 150, 105, 0.25); }
.badge-warn { background: rgba(217, 119, 6, 0.1); color: #b45309; border-color: rgba(217, 119, 6, 0.28); }
.badge-danger { background: rgba(220, 38, 38, 0.08); color: #b91c1c; border-color: rgba(220, 38, 38, 0.25); }
.badge-info { background: rgba(37, 99, 235, 0.08); color: #1d4ed8; border-color: rgba(37, 99, 235, 0.25); }
.badge-muted { background: var(--bg-2); color: var(--text-2); border-color: var(--line); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }
.pulse { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ------------------------------ 进度 ------------------------------ */
.progress { height: 7px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 99px; background: var(--grad); transition: width 0.4s ease; }
.progress.warn > i { background: linear-gradient(90deg, #f59e0b, #ea580c); }
.progress.danger > i { background: linear-gradient(90deg, #ef4444, #dc2626); }
.progress.ok > i { background: linear-gradient(90deg, #10b981, #059669); }

/* ------------------------------ 表格 ------------------------------ */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 640px; }
table.tbl th { text-align: left; padding: 11px 14px; color: var(--text-3); font-weight: 600; font-size: 12px; border-bottom: 1px solid var(--line); background: var(--bg-1); white-space: nowrap; }
table.tbl td { padding: 11px 14px; border-bottom: 1px solid rgba(15, 23, 42, 0.06); vertical-align: middle; }
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl tbody tr:hover { background: var(--bg-1); }
.nowrap { white-space: nowrap; }
/* 需要单行省略的单元格（长文本用 title 提供全文） */
.td-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ------------------------------ 顶部导航 ------------------------------ */
.topbar {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 18px; height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 750; font-size: 15.5px; letter-spacing: 0.2px; flex: none; }
.brand-logo { width: 28px; height: 28px; border-radius: 9px; background: var(--grad); display: grid; place-items: center; color: #ffffff; font-weight: 900; font-size: 14px; }
.nav { display: flex; align-items: center; gap: 2px; flex: 1; overflow: hidden; }
.nav a { padding: 7px 12px; border-radius: 9px; color: var(--text-2); font-size: 13.5px; font-weight: 550; white-space: nowrap; }
.nav a:hover { color: var(--text); background: var(--bg-2); }
.nav a.on { color: #4338ca; background: rgba(79, 70, 229, 0.1); }
.topbar-actions { display: flex; align-items: center; gap: 9px; flex: none; }
.balance-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px;
  background: rgba(79, 70, 229, 0.08); border: 1px solid rgba(79, 70, 229, 0.25);
  font-size: 12.5px; font-weight: 650; color: #4338ca; cursor: pointer;
}
.balance-chip:hover { background: rgba(79, 70, 229, 0.14); }
.icon-btn { position: relative; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; border: 1px solid var(--line); background: #ffffff; cursor: pointer; color: var(--text-2); }
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); }
.icon-btn .dot-badge { position: absolute; top: -3px; right: -3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--danger); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--grad-2); display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #ffffff; cursor: pointer; flex: none; }
.avatar.lg { width: 56px; height: 56px; font-size: 20px; }
.dropdown { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: var(--panel-solid); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: var(--shadow); padding: 7px; z-index: 100; }
.dropdown a, .dropdown button { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 11px; border-radius: 8px; border: 0; background: transparent; color: var(--text-2); font-size: 13px; cursor: pointer; text-align: left; }
.dropdown a:hover, .dropdown button:hover { background: var(--bg-1); color: var(--text); }
.dropdown .sep { height: 1px; background: var(--line); margin: 5px 0; }
.rel { position: relative; }

/* 移动端菜单 */
.menu-toggle { display: none; width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line); background: #ffffff; color: var(--text); cursor: pointer; place-items: center; }
.mobile-menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #ffffff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px 20px 14px; }
.mobile-menu a { display: block; padding: 11px 12px; border-radius: 9px; color: var(--text-2); font-size: 14px; font-weight: 550; }
.mobile-menu a:hover { background: var(--bg-1); color: var(--text); }
.mobile-menu a.on { background: rgba(79, 70, 229, 0.08); color: #4338ca; }
/* 英文导航文案更长（约需 426px），低于 980px 即收进汉堡菜单，避免文字被裁剪 */
@media (max-width: 980px) {
  .nav { display: none; }
  .menu-toggle { display: grid; }
  .mobile-menu:not(.hide) { display: block; }
  .topbar-inner { gap: 10px; }
}
/* 窄屏收纳顶栏次要操作，防止溢出（登录/注册入口保留在移动端菜单里） */
@media (max-width: 560px) {
  [data-auth-btn] { display: none; }
  .lang-switch button { padding: 5px 8px; }
}

/* 侧边栏 */
.sidebar { position: sticky; top: 82px; align-self: start; display: flex; flex-direction: column; gap: 6px; }
.side-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.side-title { font-size: 11px; text-transform: uppercase; letter-spacing: 0.9px; color: var(--text-3); padding: 8px 10px 4px; font-weight: 700; }
.side-link { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 9px; color: var(--text-2); font-size: 13.5px; font-weight: 550; }
.side-link:hover { background: var(--bg-1); color: var(--text); }
.side-link.on { background: rgba(79, 70, 229, 0.1); color: #4338ca; }
.side-link .ico { width: 18px; text-align: center; opacity: 0.9; }
.side-link .count { margin-left: auto; font-size: 11px; color: var(--text-3); }

/* ------------------------------ 提示条 ------------------------------ */
.banner { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-radius: 11px; font-size: 13px; border: 1px solid rgba(37, 99, 235, 0.25); background: rgba(37, 99, 235, 0.06); color: #1e40af; }
.banner.warn { background: rgba(217, 119, 6, 0.07); border-color: rgba(217, 119, 6, 0.3); color: #92400e; }
.banner.danger { background: rgba(220, 38, 38, 0.06); border-color: rgba(220, 38, 38, 0.28); color: #991b1b; }
.banner.ok { background: rgba(5, 150, 105, 0.07); border-color: rgba(5, 150, 105, 0.28); color: #065f46; }
.banner .btn { margin-left: auto; flex: none; }

/* ------------------------------ 弹窗 ------------------------------ */
.modal-mask { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.45); backdrop-filter: blur(4px); z-index: 200; display: grid; place-items: center; padding: 20px; animation: fade 0.15s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal { width: min(560px, 100%); max-height: 88vh; overflow: auto; background: var(--panel-solid); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow); animation: pop 0.18s ease; }
.modal.wide { width: min(860px, 100%); }
.modal.narrow { width: min(430px, 100%); }
@keyframes pop { from { transform: scale(0.96) translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 17px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel-solid); z-index: 2; }
.modal-title { font-size: 16px; font-weight: 700; margin: 0; flex: 1; }
.modal-body { padding: 20px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 15px 20px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: var(--panel-solid); flex-wrap: wrap; }
.modal-close { border: 0; background: transparent; color: var(--text-3); font-size: 20px; cursor: pointer; line-height: 1; padding: 2px 6px; border-radius: 6px; }
.modal-close:hover { color: var(--text); background: var(--bg-2); }

/* ------------------------------ Toast ------------------------------ */
.toast-wrap { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 9px; align-items: center; pointer-events: none; }
.toast { pointer-events: auto; min-width: 260px; max-width: 460px; padding: 11px 16px; border-radius: 11px; background: #ffffff; border: 1px solid var(--line-strong); box-shadow: var(--shadow); font-size: 13.5px; display: flex; gap: 10px; align-items: flex-start; animation: toastIn 0.2s ease; }
@keyframes toastIn { from { transform: translateY(-10px); opacity: 0; } to { transform: none; opacity: 1; } }
.toast.ok { border-color: rgba(5, 150, 105, 0.45); }
.toast.err { border-color: rgba(220, 38, 38, 0.5); }
.toast.warn { border-color: rgba(217, 119, 6, 0.45); }

/* ------------------------------ 首页 ------------------------------ */
.hero { padding: 74px 0 54px; position: relative; overflow: hidden; }
.hero h1 { font-size: clamp(30px, 5vw, 54px); line-height: 1.1; margin: 0 0 16px; font-weight: 800; letter-spacing: -0.5px; }
.hero p.lead { font-size: clamp(14px, 1.6vw, 17px); color: var(--text-2); max-width: 640px; margin: 0 0 26px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(79, 70, 229, 0.07); border: 1px solid rgba(79, 70, 229, 0.25); font-size: 12.5px; color: #4338ca; margin-bottom: 20px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-visual { position: relative; border-radius: var(--radius-lg); border: 1px solid var(--line-strong); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; background: #eef2f7; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 30px; }
.feature-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 18px; background: rgba(79, 70, 229, 0.08); border: 1px solid rgba(79, 70, 229, 0.2); color: #4338ca; margin-bottom: 12px; }
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .steps { grid-template-columns: repeat(2, 1fr); } }
.step { padding: 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.step-n { font-size: 11px; color: var(--brand); font-weight: 800; letter-spacing: 1px; }
.case-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #ffffff; box-shadow: var(--shadow-sm); }
.case-media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #eef2f7; }
.case-media img, .case-media video { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.case-card:hover .case-media img, .case-card:hover .case-media video { transform: scale(1.04); }
.case-body { padding: 12px 14px; }
.marquee-logos { display: flex; gap: 26px; flex-wrap: wrap; align-items: center; opacity: 0.75; font-weight: 650; letter-spacing: 0.4px; }

/* 金额/点数 */
.points { font-variant-numeric: tabular-nums; font-weight: 700; }
.points .unit { font-size: 0.78em; font-weight: 600; color: var(--text-2); margin-left: 3px; }
.price-tag { font-size: 26px; font-weight: 800; letter-spacing: -0.4px; }
.old-price { text-decoration: line-through; color: var(--text-3); font-size: 13px; }

/* 空状态 */
.empty { padding: 44px 20px; text-align: center; color: var(--text-3); }
.empty .ico { font-size: 34px; opacity: 0.5; margin-bottom: 10px; }

/* 骨架 */
.skeleton { background: linear-gradient(90deg, #f1f5f9, #e2e8f0, #f1f5f9); background-size: 200% 100%; animation: sk 1.3s infinite; border-radius: 8px; }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.spinner { width: 15px; height: 15px; border: 2px solid rgba(15, 23, 42, 0.15); border-top-color: var(--brand); border-radius: 50%; animation: spin 0.75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 文件卡片 */
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 13px; }
.file-tile { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #ffffff; cursor: pointer; transition: all 0.16s; position: relative; }
.file-tile:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.file-tile.sel { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.3); }
.file-thumb { aspect-ratio: 4/3; background: #eef2f7; display: grid; place-items: center; overflow: hidden; position: relative; }
.file-thumb img, .file-thumb video { width: 100%; height: 100%; object-fit: cover; }
.file-meta { padding: 9px 11px; }
.file-name { font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-sub { font-size: 11px; color: var(--text-3); display: flex; justify-content: space-between; gap: 6px; }
.tile-check { position: absolute; top: 7px; left: 7px; width: 20px; height: 20px; border-radius: 6px; background: rgba(255, 255, 255, 0.92); border: 1px solid var(--line-strong); display: grid; place-items: center; font-size: 12px; }
.file-tile.sel .tile-check { background: var(--brand); border-color: var(--brand); color: #fff; }
.tile-tag { position: absolute; top: 7px; right: 7px; }

/* 上传队列 */
.upload-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.upload-row:last-child { border-bottom: 0; }
.drop-zone { border: 1.5px dashed var(--line-strong); border-radius: var(--radius); padding: 30px; text-align: center; cursor: pointer; transition: all 0.16s; color: var(--text-2); }
.drop-zone:hover, .drop-zone.over { border-color: var(--brand); background: rgba(79, 70, 229, 0.04); }

/* 价格明细 */
.calc-box { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.calc-row { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; padding: 5px 0; color: var(--text-2); }
.calc-row.total { border-top: 1px dashed var(--line-strong); margin-top: 7px; padding-top: 10px; font-size: 15px; color: var(--text); font-weight: 700; }
.notice-danger { background: rgba(220, 38, 38, 0.05); border: 1px solid rgba(220, 38, 38, 0.3); color: #b91c1c; border-radius: 10px; padding: 11px 13px; font-size: 12.5px; line-height: 1.65; }

/* 预览（媒体查看器保留深色遮罩，便于观察素材） */
.viewer { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.92); z-index: 250; display: grid; grid-template-rows: auto 1fr auto; }
.viewer-head { display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); color: #e2e8f0; }
.viewer-body { display: grid; place-items: center; padding: 20px; overflow: auto; }
.viewer-body img, .viewer-body video { max-height: 76vh; border-radius: 10px; box-shadow: var(--shadow); }
.viewer-foot { padding: 12px 18px; border-top: 1px solid rgba(255, 255, 255, 0.12); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; color: #e2e8f0; }

/* 时间线 */
.timeline { position: relative; padding-left: 20px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1.5px; background: var(--line-strong); }
.tl-item { position: relative; padding: 0 0 16px 0; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: -19px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15); }
.tl-item.ok::before { background: var(--ok); box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15); }
.tl-item.err::before { background: var(--danger); box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15); }
.tl-item .tl-t { font-size: 13px; font-weight: 600; }
.tl-item .tl-d { font-size: 11.5px; color: var(--text-3); }

/* 支付 */
.pay-method { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border: 1px solid var(--line-strong); border-radius: 12px; cursor: pointer; transition: all 0.16s; background: #ffffff; }
.pay-method:hover { border-color: var(--brand); }
.pay-method.on { border-color: var(--brand); background: rgba(79, 70, 229, 0.05); box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.18); }
.pay-method.disabled { opacity: 0.45; cursor: not-allowed; }
.card-brand { display: inline-flex; align-items: center; }
.card-brand svg { height: 24px; width: auto; display: block; border-radius: 4px; }
.pay-brand svg { width: auto; display: block; }
.badge.pay-brand { padding-left: 7px; }
.qr { width: 172px; height: 172px; border-radius: 12px; background: #fff; padding: 9px; border: 1px solid var(--line); }
.addr-box { font-family: var(--mono); font-size: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; word-break: break-all; }
.pkg { position: relative; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 18px; cursor: pointer; transition: all 0.16s; background: #ffffff; }
.pkg:hover { border-color: var(--brand); transform: translateY(-2px); }
.pkg.on { border-color: var(--brand); background: rgba(79, 70, 229, 0.04); box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.18); }
.pkg.locked { opacity: 0.5; cursor: not-allowed; transform: none; }
.pkg-tag { position: absolute; top: -10px; right: 14px; padding: 2px 9px; border-radius: 99px; font-size: 10.5px; font-weight: 800; background: var(--grad-2); color: #ffffff; }
.pkg-tag.first { background: var(--grad); color: #ffffff; }

/* 页脚 */
.footer { margin-top: auto; border-top: 1px solid var(--line); padding: 34px 0 26px; color: var(--text-3); font-size: 12.5px; background: var(--bg-1); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 24px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer h4 { color: var(--text-2); font-size: 12.5px; margin: 0 0 10px; }
.footer a { display: block; padding: 3px 0; color: var(--text-3); }
.footer a:hover { color: var(--text); }

/* 代码/参数 */
.kv { display: grid; grid-template-columns: 132px 1fr; gap: 8px 14px; font-size: 13px; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; word-break: break-word; }
@media (max-width: 620px) { .kv { grid-template-columns: 1fr; gap: 2px 0; } .kv dd { margin-bottom: 8px; } }

/* 语言切换 */
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.lang-switch button { padding: 5px 10px; border: 0; background: transparent; color: var(--text-2); font-size: 12px; cursor: pointer; font-weight: 600; }
.lang-switch button.on { background: rgba(79, 70, 229, 0.12); color: #4338ca; }

/* 会员对比 */
.tier-card { border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 20px; background: #ffffff; position: relative; }
.tier-card.on { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2); }
.tier-card.gold { background: linear-gradient(180deg, rgba(217, 119, 6, 0.06), #ffffff 60%); }
.tier-card.silver { background: linear-gradient(180deg, rgba(100, 116, 139, 0.08), #ffffff 60%); }
.price-row { display: flex; align-items: baseline; gap: 6px; }

/* 认证页 */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr); }
.auth-side {
  background:
    radial-gradient(760px 520px at 18% 12%, rgba(79, 70, 229, 0.13), transparent 62%),
    radial-gradient(620px 520px at 82% 88%, rgba(8, 145, 178, 0.11), transparent 62%),
    #f8fafc;
  padding: 54px 58px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 44px;
  border-right: 1px solid var(--line);
}
.auth-side-top { max-width: 560px; }
.auth-side-title {
  font-size: clamp(26px, 2.5vw, 38px); line-height: 1.2; letter-spacing: -0.6px;
  font-weight: 800; margin: 36px 0 24px; color: var(--text);
}
.auth-points { display: flex; flex-direction: column; gap: 2px; }
.auth-point { display: flex; align-items: flex-start; gap: 11px; padding: 9px 0;
  color: var(--text-2); font-size: 14.5px; line-height: 1.55; }
.auth-point-ico { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(5, 150, 105, 0.1); border: 1px solid rgba(5, 150, 105, 0.28); color: var(--ok); margin-top: 1px; }
.auth-side-foot { max-width: 560px; }
/* 移动端：隐藏左侧品牌栏，改为单栏（必须放在 .auth-side 规则之后，否则会被 display:flex 覆盖） */
@media (max-width: 920px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-main { min-height: 100vh; }
}
/* flex + margin:auto 居中；内容高于视口时贴顶显示，不会被裁切 */
.auth-main { display: flex; padding: 64px 24px 40px; min-height: 100vh; }  /* 顶部留出语言切换的位置 */
.auth-card {
  margin: auto; width: min(432px, 100%);
  background: #ffffff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 26px 30px 30px;
}
.auth-card .page-title { font-size: 23px; letter-spacing: -0.3px; }
/* 认证页没有顶部导航，语言入口固定在右上角 */
.auth-lang { position: fixed; top: 16px; right: 18px; z-index: 30;
  background: #ffffff; border-radius: 10px; box-shadow: var(--shadow-sm); }
.status-card { max-width: 560px; margin: 0 auto; }
.auth-tabs { display: flex; gap: 4px; padding: 4px; background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 12px; margin-bottom: 22px; }
.auth-tabs a { flex: 1; text-align: center; padding: 8px 10px; border-radius: 9px;
  color: var(--text-2); font-size: 13.5px; font-weight: 600; border: 0; background: transparent; transition: all 0.15s ease; }
.auth-tabs a:hover { color: var(--text); }
.auth-tabs a.on { background: #ffffff; color: #4338ca; box-shadow: var(--shadow-sm); }
@media (max-width: 560px) {
  .auth-main { padding: 60px 16px 24px; }
  .auth-card { padding: 20px 18px 24px; border-radius: 16px; }
  .auth-card .page-title { font-size: 21px; }
}
.code-row { display: flex; gap: 8px; }
.code-row .input { flex: 1; }
.demo-code { font-family: var(--mono); background: rgba(5, 150, 105, 0.08); border: 1px dashed rgba(5, 150, 105, 0.4); color: #047857; padding: 3px 9px; border-radius: 7px; font-size: 13px; letter-spacing: 1px; }
.trust-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; color: var(--text-3); font-size: 12px; }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs button { padding: 10px 15px; border: 0; background: transparent; color: var(--text-2); font-size: 13.5px; font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.on { color: #4338ca; border-bottom-color: var(--brand); }
.tabs button:hover { color: var(--text); }

/* ==========================================================================
   补充：管理后台图表、支付表单、开关、启动屏等
   ========================================================================== */

/* 启动屏 */
.boot-splash {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px;
}
.boot-splash .brand-logo { width: 56px; height: 56px; font-size: 22px; border-radius: 16px; }
.boot-text { color: var(--text-2); font-size: 13px; }
.boot-bar { width: 160px; height: 3px; border-radius: 3px; background: var(--bg-2); overflow: hidden; }
.boot-bar > i { display: block; height: 100%; width: 40%; border-radius: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  animation: bootSlide 1.1s ease-in-out infinite; }
@keyframes bootSlide { 0% { transform: translateX(-100%); } 100% { transform: translateX(320%); } }

/* 管理后台容器 */
.admin-wrap { max-width: 100%; }

/* 横向条形图 */
.bar-chart { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 130px 1fr 48px; align-items: center; gap: 10px; }
.bar-label { font-size: 12.5px; color: var(--text-2); overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.bar { height: 8px; border-radius: 6px; background: var(--bg-2); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 6px;
  background: linear-gradient(90deg, rgba(100, 116, 139, 0.55), rgba(100, 116, 139, 0.35)); transition: width .4s ease; }
.bar > i.brand { background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.bar > i.ok { background: linear-gradient(90deg, #10b981, #34d399); }
.bar > i.err { background: linear-gradient(90deg, #ef4444, #f87171); }
.bar-num { font-size: 12.5px; text-align: right; font-variant-numeric: tabular-nums; }

/* 支付渠道选择卡 */
.channel-card {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  padding: 13px 14px; border-radius: 12px; transition: .16s;
  border: 1px solid var(--line); background: #ffffff;
}
.channel-card:hover { border-color: rgba(79, 70, 229, 0.5); background: rgba(79, 70, 229, 0.03); }
.channel-card:has(input:checked) { border-color: var(--brand); background: rgba(79, 70, 229, 0.05);
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.16); }
.channel-card input { accent-color: var(--brand); }

/* 卡支付表单 */
.card-form { padding: 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); }
.card-form .field:last-of-type { margin-bottom: 4px; }

/* 开关 */
.switch { position: relative; display: inline-block; width: 40px; height: 22px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch > i { position: absolute; inset: 0; border-radius: 999px; cursor: pointer; transition: .2s;
  background: var(--bg-3); border: 1px solid var(--line); }
.switch > i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px;
  border-radius: 50%; background: #ffffff; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25); transition: .2s; }
.switch input:checked + i { background: var(--brand); border-color: var(--brand); }
.switch input:checked + i::after { transform: translateX(18px); background: #fff; }

/* 套餐强调态 */
.pkg.hot { border-color: rgba(219, 39, 119, 0.45); }
.pkg.best { border-color: rgba(8, 145, 178, 0.45); }
.pkg.hot .pkg-tag { background: linear-gradient(135deg, var(--brand-3), #f472b6); color: #ffffff; }
.pkg.best .pkg-tag { background: linear-gradient(135deg, var(--brand-2), #22d3ee); color: #ffffff; }

/* 头像尺寸 */
.avatar.xl { width: 60px; height: 60px; font-size: 24px; }

/* 素材预览遮罩补充 */
.viewer-head .spacer, .viewer-foot .spacer { flex: 1; }

/* 表格空态 */
.tbl .empty { border: none; background: transparent; }

/* 任务详情描述列表 */
.kv dd { margin-bottom: 10px; }

.m { margin: 0; } .mb24 { margin-bottom: 24px; } .mb12 { margin-bottom: 12px; } .mt32 { margin-top: 32px; }

/* 关于/协议等长文页面 */
.prose { line-height: 1.75; font-size: 13.5px; }
.prose h2 { font-size: 15px; margin: 24px 0 8px; color: var(--text); }
.prose h2:first-of-type { margin-top: 8px; }
.prose p { margin: 0 0 10px; color: var(--text-2); }
.prose-list { margin: 0; padding-left: 18px; color: var(--text-2); line-height: 1.8; font-size: 13px; }
.prose-list li { margin-bottom: 6px; }
