/* =========================================================
 * OPC·AI 创客中心 — 深色青紫渐变主题（仿 huitao.uopcai.com）
 * 设计规范：
 *   背景 #0E121B ｜ 卡片 #1A2030 ｜ 主文字 #E5E9F0
 *   次要文字 #8F9BB3 ｜ 占位文字 #5A6577 ｜ 边框 white/10
 *   主渐变 90deg #22D3EE → #8B5CF6 ｜ 圆角 6/8/12/full
 * ========================================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }

:root {
  --bg: #0E121B;
  --card: #1A2030;
  --glass: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.2);
  --text: #E5E9F0;
  --dim: #8F9BB3;
  --mute: #5A6577;
  --cyan: #22D3EE;
  --purple: #8B5CF6;
  --violet: #7C3AED;
  --amber: #F59E0B;
  --grad: linear-gradient(90deg, #22D3EE, #8B5CF6);
  --r-md: 6px;
  --r-lg: 8px;
  --r-xl: 12px;
  --nav-h: 64px;
  --shadow: 0 8px 24px -12px rgba(139, 92, 246, 0.5);
}

html, body {
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

body {
  background:
    radial-gradient(1000px 420px at 85% -10%, rgba(34, 211, 238, 0.08), transparent 60%),
    radial-gradient(900px 460px at 8% 110%, rgba(139, 92, 246, 0.10), transparent 60%),
    var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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); }
img { display: block; max-width: 100%; }

/* ============ 顶部导航 ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 18, 27, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: var(--nav-h);
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-logo {
  width: 38px; height: 38px;
  border-radius: 12px;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: #fff;
  box-shadow: var(--shadow);
  object-fit: cover;
}
.nav-brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.nav-brand-text strong { font-size: 15px; font-weight: 700; letter-spacing: 0.2px; }
.nav-brand-text small { font-size: 11px; color: var(--dim); }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 12px; flex: 1; min-width: 0; }
.nav-link {
  height: 36px;
  padding: 0 13px;
  display: flex; align-items: center;
  font-size: 14px; color: var(--dim);
  border-radius: var(--r-xl);
  white-space: nowrap;
  transition: color .18s, background .18s;
}
.nav-link:hover { color: var(--text); }
.nav-link.active {
  background: rgba(139, 92, 246, 0.9);
  color: #fff;
  box-shadow: var(--shadow);
}
.nav-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.points-pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px; color: var(--dim);
}
.points-pill b { color: var(--amber); font-size: 14px; }

.user-pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 8px 0 4px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
}
.avatar {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--grad);
  color: #fff; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ============ 按钮 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 16px;
  border-radius: var(--r-md);
  font-size: 14px; font-weight: 500;
  transition: all .18s;
  user-select: none;
  white-space: nowrap;
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover:not(:disabled) { filter: brightness(1.1); }
.btn-ghost {
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--border-hover); background: rgba(255,255,255,.08); }
.btn-amber {
  background: linear-gradient(90deg, #FBBF24, #F59E0B);
  color: #0F172A;
  font-weight: 600;
}
.btn-amber:hover { filter: brightness(1.08); }
.btn-danger { background: rgba(239, 68, 68, 0.14); color: #FCA5A5; }
.btn-danger:hover { background: rgba(239, 68, 68, 0.24); }
.btn-sm { height: 30px; padding: 0 12px; font-size: 12px; }
.btn-lg { height: 46px; padding: 0 26px; font-size: 15px; border-radius: var(--r-lg); }
.btn-block { width: 100%; }
.btn-pill { border-radius: 999px; }
.btn-cyan-solid { background: #22D3EE; color: #0F172A; font-weight: 600; }
.btn-cyan-solid:hover:not(:disabled) { filter: brightness(1.08); }

/* ============ 布局 ============ */
.page { max-width: 1200px; margin: 0 auto; padding: 28px 20px 40px; width: 100%; flex: 1; }
.page-title { font-size: 22px; font-weight: 700; }
.page-sub { color: var(--dim); font-size: 14px; margin-top: 6px; line-height: 1.6; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }

.grad-text {
  background: linear-gradient(90deg, #22D3EE, #8B5CF6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ============ 工具卡片 ============ */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.tool-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 20px;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.tool-card:hover { border-color: var(--border-hover); transform: translateY(-2px); box-shadow: 0 12px 30px -18px rgba(0,0,0,.6); }
.tool-card-head { display: flex; align-items: center; justify-content: space-between; }
.tool-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.tool-icon img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; }
.badge-built {
  font-size: 11px; color: var(--cyan);
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.25);
  padding: 2px 8px; border-radius: 999px;
}
.tool-name { font-size: 15px; font-weight: 700; margin-top: 2px; }
.tool-desc { font-size: 13px; color: var(--dim); line-height: 1.55; flex: 1; }
.tool-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cost-badge {
  font-size: 12px; color: var(--amber);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.28);
  padding: 3px 10px; border-radius: 999px;
  white-space: nowrap;
}
.cost-badge.free { color: #4ADE80; border-color: rgba(74, 222, 128, .28); background: rgba(74, 222, 128, .1); }

/* ============ 表单 ============ */
.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 22px;
}
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.form-label .req { color: #F87171; margin-left: 2px; }
.hint { font-size: 12px; color: var(--mute); margin-top: 6px; line-height: 1.5; }
.input, .textarea, .select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
  transition: border-color .18s;
}
.input:focus, .textarea:focus, .select:focus { border-color: rgba(34, 211, 238, .6); }
.textarea { min-height: 92px; resize: vertical; line-height: 1.6; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238F9BB3' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
}
.select option { background: var(--card); color: var(--text); }
.chars { font-size: 12px; color: var(--mute); text-align: right; margin-top: 6px; }

/* 选项胶囊 */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 14px;
  font-size: 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--glass);
  color: var(--dim);
  transition: all .15s;
}
.chip:hover { border-color: var(--border-hover); color: var(--text); }
.chip.active {
  background: rgba(34, 211, 238, 0.15);
  border-color: rgba(34, 211, 238, 0.4);
  color: var(--cyan);
}

/* 开关 */
.switch-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.switch-row:last-child { border-bottom: none; }
.switch-row .t { font-size: 14px; }
.switch-row .d { font-size: 12px; color: var(--mute); margin-top: 2px; }
.switch {
  position: relative; width: 42px; height: 24px; flex-shrink: 0;
  border-radius: 999px; background: rgba(255,255,255,.12);
  transition: background .18s;
}
.switch::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; transition: left .18s;
}
.switch.on { background: var(--grad); }
.switch.on::after { left: 21px; }

/* 上传位 */
.upload-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.upload-slot {
  width: 92px; height: 92px;
  border: 1px dashed var(--border-hover);
  border-radius: var(--r-lg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: var(--mute); font-size: 11px;
  cursor: pointer; position: relative; overflow: hidden;
  background: var(--glass);
  transition: border-color .18s;
}
.upload-slot:hover { border-color: rgba(34,211,238,.5); }
.upload-slot .plus { font-size: 20px; line-height: 1; color: var(--dim); }
.upload-slot.has-img { border-style: solid; }
.upload-slot img { width: 100%; height: 100%; object-fit: cover; }
.upload-slot .rm {
  position: absolute; top: 4px; right: 4px;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(0,0,0,.65); color: #fff; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
}
.upload-slot input[type=file] { display: none; }

/* ============ 视频工具箱 ============ */
.video-picker {
  border: 1px dashed var(--border-hover);
  border-radius: var(--r-lg);
  padding: 28px 16px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  color: var(--mute); font-size: 13px; cursor: pointer;
  background: var(--bg);
}
.video-picker:hover { border-color: rgba(34,211,238,.5); }
.video-picker .plus { font-size: 26px; line-height: 1; color: var(--dim); }
.video-picker .hint-v { font-size: 11px; color: var(--dim); }
.video-preview { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); background: #000; }
.video-preview video { width: 100%; max-height: 320px; display: block; }
.video-preview .rm {
  position: absolute; top: 8px; right: 8px;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(0,0,0,.65); color: #fff; font-size: 12px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.audio-frame { width: 100%; margin-top: 12px; }
.result-links { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }

/* ============ 结果区 ============ */
.result-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 22px;
  margin-top: 20px;
}
.result-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 10px; }
.result-head h3 { font-size: 15px; font-weight: 700; }
.result-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.result-img { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); background: var(--bg); }
.result-img img { width: 100%; height: auto; }
.result-prompt {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 12px;
  font-size: 12px; color: var(--dim);
  line-height: 1.6; max-height: 140px; overflow-y: auto;
  white-space: pre-wrap; word-break: break-all;
}
.out-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px;
  font-size: 13px; color: var(--text);
  line-height: 1.7; white-space: pre-wrap; word-break: break-word;
  max-height: 480px; overflow-y: auto;
}
.status-line {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  font-size: 13px; color: var(--dim);
}
.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(34,211,238,.25);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ 弹窗 / Toast ============ */
.modal-mask {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal {
  background: var(--card);
  border: 1px solid var(--border-hover);
  border-radius: var(--r-xl);
  width: 100%;
  max-width: 560px;
  max-height: 86vh;
  overflow-y: auto;
  padding: 24px;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.7);
}
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.modal-head h3 { font-size: 17px; font-weight: 700; }
.modal-close { width: 30px; height: 30px; border-radius: 8px; background: var(--glass); color: var(--dim); font-size: 15px; }
.modal-close:hover { color: var(--text); }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

.toast {
  position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%);
  z-index: 200;
  background: rgba(26, 32, 48, 0.96);
  border: 1px solid var(--border-hover);
  color: var(--text);
  font-size: 14px;
  padding: 11px 22px;
  border-radius: 999px;
  box-shadow: 0 12px 32px -12px rgba(0,0,0,.6);
  animation: toastIn .22s ease;
  max-width: 86vw;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ============ 首页 Hero ============ */
.hero { text-align: center; padding: 64px 0 40px; }
.hero h1 { font-size: 42px; font-weight: 800; letter-spacing: 1px; line-height: 1.15; }
.hero p { color: var(--dim); font-size: 16px; margin-top: 14px; }
.hero-btns { display: flex; justify-content: center; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

.entry-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.entry-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 26px;
  backdrop-filter: blur(8px);
  transition: transform .18s, border-color .18s;
  display: flex; flex-direction: column; gap: 10px;
}
.entry-card:hover { transform: translateY(-3px); border-color: var(--border-hover); }
.entry-card h3 { font-size: 18px; font-weight: 700; }
.entry-card p { font-size: 13px; color: var(--dim); line-height: 1.6; flex: 1; }

.sec { margin-top: 52px; }
.sec h2 { font-size: 24px; font-weight: 700; text-align: center; }
.sec > .sec-sub { text-align: center; color: var(--dim); font-size: 14px; margin-top: 8px; }
.quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 24px; }
.quick-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 22px;
  text-align: center;
  transition: border-color .18s, transform .18s;
}
.quick-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.quick-card .ic { font-size: 28px; }
.quick-card .ic img, .ic-img { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; display: inline-block; vertical-align: -7px; }
.quick-card h4 { margin-top: 10px; font-size: 15px; font-weight: 700; }
.quick-card p { margin-top: 6px; font-size: 12px; color: var(--dim); }

.cta { text-align: center; background: linear-gradient(135deg, rgba(34,211,238,.10), rgba(139,92,246,.12)); border: 1px solid var(--border); border-radius: 20px; padding: 48px 24px; margin-top: 60px; }
.cta h2 { font-size: 26px; font-weight: 800; }
.cta p { color: var(--dim); margin-top: 10px; }
.cta .btn { margin-top: 22px; }

/* ============ 页脚 ============ */
.footer {
  border-top: 1px solid var(--border);
  padding: 22px;
  text-align: center;
  color: var(--mute);
  font-size: 13px;
}

/* ============ 个人中心 ============ */
.user-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 24px;
  display: flex; align-items: center; gap: 16px;
}
.user-card .avatar-lg { width: 56px; height: 56px; border-radius: 16px; font-size: 24px; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; }
.user-card .nm { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.level-badge { font-size: 11px; padding: 2px 9px; border-radius: 999px; background: rgba(139, 92, 246, 0.16); color: #A78BFA; border: 1px solid rgba(139, 92, 246, 0.3); }
.user-card .meta { font-size: 13px; color: var(--dim); margin-top: 6px; }
.user-card .meta b { color: var(--amber); }

.entry-grid2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-top: 18px; }
.entry-card2 {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 16px;
  transition: border-color .18s;
}
.entry-card2:hover { border-color: var(--border-hover); }
.entry-card2 .ic { font-size: 20px; }
.entry-card2 .ic img { width: 20px; height: 20px; border-radius: 6px; object-fit: cover; vertical-align: -4px; }
.sec-title .ic img { width: 22px; height: 22px; border-radius: 6px; object-fit: cover; vertical-align: -5px; }
.ic-title img { width: 22px; height: 22px; border-radius: 6px; object-fit: cover; vertical-align: -4px; }
.entry-card2 h4 { font-size: 14px; font-weight: 700; margin-top: 8px; }
.entry-card2 p { font-size: 12px; color: var(--dim); margin-top: 4px; }

.sec-title { display: flex; align-items: center; justify-content: space-between; margin: 28px 0 14px; }
.sec-title h3 { font-size: 17px; font-weight: 700; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab {
  padding: 7px 14px; font-size: 13px; border-radius: var(--r-lg);
  background: var(--glass); color: var(--dim);
  border: 1px solid var(--border);
}
.tab.active { background: var(--card); color: var(--text); border-color: var(--border-hover); }

.list-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  margin-bottom: 10px;
}
.list-item .t { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.list-item .d { font-size: 12px; color: var(--dim); margin-top: 6px; line-height: 1.6; white-space: pre-wrap; word-break: break-all; }
.list-item .m { font-size: 11px; color: var(--mute); margin-top: 8px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cost-tag { font-size: 11px; padding: 1px 8px; border-radius: 999px; background: rgba(245,158,11,.12); color: var(--amber); }
.status-tag { font-size: 11px; padding: 1px 8px; border-radius: 999px; }
.status-tag.following { background: rgba(34,211,238,.12); color: var(--cyan); }
.status-tag.done { background: rgba(74,222,128,.12); color: #4ADE80; }
.status-tag.expired { background: rgba(239,68,68,.12); color: #FCA5A5; }

/* ============ 登录页 ============ */
.auth-wrap { max-width: 420px; margin: 40px auto 20px; }
.auth-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 28px; }
.auth-card h2 { font-size: 20px; font-weight: 700; text-align: center; }
.auth-card .sub { text-align: center; color: var(--dim); font-size: 13px; margin-top: 8px; }
.auth-tabs { display: flex; margin: 20px 0; background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 4px; gap: 4px; }
.auth-tabs button { flex: 1; height: 34px; border-radius: 6px; font-size: 14px; color: var(--dim); }
.auth-tabs button.active { background: var(--card); color: var(--text); }
.auth-link { display: block; text-align: center; color: var(--dim); font-size: 13px; margin-top: 16px; }
.auth-link a { color: var(--cyan); }

/* ============ 充值套餐 ============ */
.recharge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 20px; }
.recharge-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 18px;
  cursor: pointer;
  transition: border-color .18s;
}
.recharge-card:hover { border-color: rgba(34,211,238,.5); }
.recharge-card.selected { border-color: rgba(34,211,238,.7); box-shadow: 0 0 0 1px rgba(34,211,238,.5); }
.recharge-card .price { font-size: 22px; font-weight: 800; }
.recharge-card .price small { font-size: 13px; color: var(--dim); font-weight: 400; margin-left: 2px; }
.recharge-card .pts { font-size: 13px; color: var(--dim); margin-top: 8px; }
.recharge-card .bonus { font-size: 12px; color: #4ADE80; margin-top: 4px; }
.tag-hot {
  position: absolute; top: -10px; right: 12px;
  background: var(--grad); color: #fff; font-size: 11px;
  padding: 3px 10px; border-radius: 999px;
  box-shadow: var(--shadow);
}

/* ============ 案例 ============ */
.case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin-top: 20px; }
.case-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; transition: border-color .18s; }
.case-card:hover { border-color: var(--border-hover); }
.case-cover { position: relative; aspect-ratio: 16/10; background: linear-gradient(135deg, rgba(34,211,238,.12), rgba(139,92,246,.14)); display: flex; align-items: center; justify-content: center; font-size: 30px; }
.case-badge { position: absolute; top: 10px; left: 10px; font-size: 11px; background: rgba(0,0,0,.55); padding: 2px 8px; border-radius: 6px; color: #fff; }
.case-body { padding: 14px 16px; }
.case-body h4 { font-size: 14px; font-weight: 700; }
.case-body .m { font-size: 12px; color: var(--dim); margin-top: 6px; display: flex; gap: 12px; }
.case-body .d { font-size: 12px; color: var(--mute); margin-top: 8px; line-height: 1.55; }
.case-card .foot { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-top: 1px solid var(--border); }
.like-btn { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--dim); }

/* ============ 书签 ============ */
.search-bar { display: flex; gap: 10px; margin-bottom: 18px; }
.bookmark-list { margin-top: 8px; }
.group-title { font-size: 14px; font-weight: 700; margin: 20px 0 10px; color: var(--dim); }

/* ============ 帮助中心 ============ */
.faq-item { margin-bottom: 10px; }
.faq-q {
  width: 100%; text-align: left;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  font-size: 14px; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-q .arrow { color: var(--dim); transition: transform .2s; }
.faq-item.open .faq-q .arrow { transform: rotate(90deg); }
.faq-a { padding: 12px 16px; font-size: 13px; color: var(--dim); line-height: 1.7; background: var(--glass); border: 1px solid var(--border); border-top: none; border-radius: 0 0 var(--r-lg) var(--r-lg); }

/* ============ 双栏工具布局 ============ */
.gen-layout { display: grid; grid-template-columns: 380px 1fr; gap: 20px; align-items: start; }
.gen-layout .result-col { position: sticky; top: calc(var(--nav-h) + 16px); }
@media (max-width: 980px) {
  .gen-layout { grid-template-columns: 1fr; }
  .gen-layout .result-col { position: static; }
}

/* ============ 视频工作台 ============ */
.v-tabs { display: flex; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 4px; gap: 4px; margin-bottom: 18px; }
.v-tabs button { flex: 1; height: 36px; border-radius: 6px; font-size: 14px; color: var(--dim); }
.v-tabs button.active { background: var(--card); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.video-frame { width: 100%; border-radius: var(--r-lg); border: 1px solid var(--border); background: #000; }
.range-row { display: flex; align-items: center; gap: 12px; }
.range-row input[type=range] { flex: 1; accent-color: #22D3EE; }
.range-val { font-size: 13px; color: var(--cyan); font-weight: 600; min-width: 32px; text-align: right; }

/* ============ AI 电影工作台 ============ */
.hint-v { font-size: 12px; color: var(--mute); margin-left: 8px; line-height: 1.5; }
.ok-line { margin-top: 10px; padding: 8px 12px; border-radius: var(--r-lg); background: rgba(74,222,128,.1); border: 1px solid rgba(74,222,128,.25); color: #4ADE80; font-size: 13px; }
.mv-step-head { display: flex; align-items: center; gap: 10px; }
.mv-step-no { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, #22D3EE, #3B82F6); color: #0F172A; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mv-step-head b { font-size: 15px; display: block; }
.mv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.mv-panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.mv-panel-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mv-panel-no { font-size: 13px; font-weight: 700; color: var(--cyan); }
.mv-tag { font-size: 11px; padding: 1px 8px; border-radius: 999px; background: rgba(34,211,238,.1); color: var(--cyan); }
.mv-tag-mute { background: var(--glass); color: var(--mute); }
.mv-scene { font-size: 12.5px; color: var(--text); line-height: 1.7; }
.mv-dialogue { font-size: 12px; color: var(--amber); line-height: 1.6; }
.mv-motion { font-size: 12px; color: var(--dim); line-height: 1.6; }
.mv-media { display: flex; flex-direction: column; gap: 8px; }
.mv-img { width: 100%; border-radius: var(--r-lg); border: 1px solid var(--border); object-fit: cover; }
.mv-vid { width: 100%; border-radius: var(--r-lg); border: 1px solid var(--border); background: #000; }
.mv-media-empty { border: 1px dashed var(--border); border-radius: var(--r-lg); padding: 18px 0; text-align: center; color: var(--mute); font-size: 12.5px; }
.mv-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.mv-actions .btn { display: inline-flex; align-items: center; gap: 6px; }
.mv-actions .btn .spinner { width: 12px; height: 12px; }
.mv-status :is(.status-line) { margin-top: 8px; }

/* ============ 历史记录表格 ============ */
.rec-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.rec-table th, .rec-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); }
.rec-table th { color: var(--dim); font-weight: 500; font-size: 12px; }
.rec-table td .thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; }

/* ============ 工具子页头 ============ */
.tool-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.tool-head .back { width: 34px; height: 34px; border-radius: 10px; background: var(--glass); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--dim); font-size: 15px; flex-shrink: 0; }
.tool-head .back:hover { color: var(--text); border-color: var(--border-hover); }

/* ============ 空态 ============ */
.empty { text-align: center; padding: 60px 20px; color: var(--mute); }
.empty .ic { font-size: 40px; margin-bottom: 12px; }

/* ============ 响应式导航 ============ */
@media (max-width: 1080px) {
  .nav-links { overflow-x: auto; }
  .nav-link { padding: 0 10px; font-size: 13px; }
  .nav-brand-text small { display: none; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .hero h1 { font-size: 30px; }
  .tool-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .tool-grid { grid-template-columns: 1fr; }
  .page { padding: 20px 14px 30px; }
}
