/* ============================================================
   星枢AI (StarPivot.ai) 平台样式
   设计语言严格提取自 hz.lk888.ai 原站 (深色主题 + cyan 强调色)
   布局构造：顶部导航 / 星环Hero / 卡片网格 / 页脚 (与原站一致)
   ============================================================ */

:root {
  /* 主题色板 (提取自原站 :root 变量) */
  --bg-deep: rgb(6, 8, 12);
  --bg-page: rgb(15, 15, 18);
  --bg-page-2: rgb(12, 12, 15);
  --bg-panel: rgb(20, 20, 25);
  --bg-card: rgb(28, 30, 34);
  --bg-card-2: rgb(30, 31, 37);
  --bg-input: rgb(27, 28, 33);
  --bg-hover: rgb(35, 37, 42);
  --bg-elevated: rgb(41, 43, 51);

  /* 强调色 (原站启动屏/加载动画用 cyan) */
  --accent: #22d3ee;
  --accent-deep: #0891b2;
  --accent-glow: rgba(34, 211, 238, 0.25);
  --accent-soft: rgba(34, 211, 238, 0.08);

  /* 文字 */
  --text-primary: #f2f4f8;
  --text-secondary: #a3a9b8;
  --text-muted: #6b7280;
  --text-on-accent: #04262e;

  /* 边框 */
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  /* 圆角 & 阴影 */
  --radius: 12px;
  --radius-lg: 16px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 40px var(--accent-glow);

  /* 布局 */
  --header-h: 64px;
  --container: 1200px;

  /* 字体 (提取自原站) */
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "PingFang SC", "HarmonyOS Sans", "Microsoft YaHei", sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", Consolas, "Courier New", monospace;
}

/* ---------- 基础 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }

button { font-family: inherit; }
input, select, textarea { font-family: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.hidden { display: none !important; }

/* 背景光晕 (仿原站 gradient-flow) */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 40% at 20% 0%, rgba(34, 211, 238, 0.08), transparent 60%),
    radial-gradient(ellipse 50% 35% at 85% 15%, rgba(99, 102, 241, 0.07), transparent 60%),
    var(--bg-page);
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(15, 15, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), #6366f1);
  display: grid;
  place-items: center;
  color: var(--text-on-accent);
  font-weight: 900;
  font-size: 17px;
  box-shadow: 0 0 20px var(--accent-glow);
  flex-shrink: 0;
}

.brand-name {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.02em;
}

.brand-name .brand-en {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  display: block;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* 主导航 */
.main-nav ul {
  display: flex;
  gap: 4px;
}

.main-nav a {
  display: block;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.main-nav a:hover { color: var(--text-primary); background: var(--bg-hover); }

.main-nav a.active {
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 600;
}

/* 头部右侧 */
.header-actions { display: flex; align-items: center; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #06b6d4);
  color: var(--text-on-accent);
  box-shadow: 0 2px 14px var(--accent-glow);
}

.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 22px var(--accent-glow); }

.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text-secondary);
}

.btn-ghost:hover { color: var(--text-primary); border-color: var(--accent); }

.btn-lg { padding: 12px 28px; font-size: 15px; border-radius: var(--radius); }
.btn-block { width: 100%; }

/* 头部用户区（登录后） */
.header-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-balance {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(34, 211, 238, 0.3);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.header-balance:hover { border-color: var(--accent); box-shadow: var(--shadow-glow); }

.header-balance .yen { font-size: 12px; opacity: 0.85; }

.header-user .nickname {
  font-size: 13.5px;
  color: var(--text-secondary);
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-logout {
  padding: 6px 12px;
  font-size: 13px;
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-logout:hover { color: #f87171; border-color: rgba(248, 113, 113, 0.4); }

/* ---------- Hero (首页) ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 76px 0 72px;
  overflow: hidden;
  text-align: center;
}

.hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
}

.hero-center {
  position: relative;
  width: 100%;
  max-width: 52rem;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(34, 211, 238, 0.3);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 28px;
}

.hero-h1 {
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-h1 .grad {
  background: linear-gradient(120deg, var(--accent), #818cf8, var(--accent));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradFlow 6s linear infinite;
}

@keyframes gradFlow {
  to { background-position: 200% center; }
}

.hero-sub {
  max-width: 640px;
  margin: 0 auto 40px;
  font-size: 17px;
  color: var(--text-secondary);
}

.hero-cta {
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: center;
  gap: 56px;
}

.stat-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text-primary);
}

.stat-num em { font-style: normal; color: var(--accent); }

.stat-label { font-size: 13.5px; color: var(--text-muted); margin-top: 4px; }

/* ---------- 星环 (模型环, 提取自原站) ---------- */
.orbit-container {
  --orbit-r: 26rem;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  z-index: -1;
  pointer-events: none;
  transform: scale(0) rotate(-360deg);
  opacity: 0;
}

.orbit-container.orbit-go {
  animation: orbitEntrance 2.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.orbit-spin {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  will-change: transform;
}

.orbit-go .orbit-spin {
  animation: orbitRotate 80s linear infinite;
}

.orbit-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  transform: rotate(var(--angle)) translateY(calc(var(--orbit-r) * -1));
}

.orbit-icon-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.18rem;
  transform: rotate(calc(var(--angle) * -1)) translate(-50%);
  pointer-events: auto;
  cursor: default;
  opacity: 0;
  transition: opacity 1.5s;
}

.orbit-go .orbit-icon-wrap {
  opacity: 0.5;
  animation: orbitCounterRotate 80s linear infinite;
}

.orbit-icon-wrap:hover {
  transition: opacity 0.3s;
  opacity: 1 !important;
}

.orbit-item-dim .orbit-icon-wrap {
  opacity: 0 !important;
  transition: opacity 0.3s !important;
}

.orbit-icon {
  width: 1.79rem;
  height: 1.79rem;
  max-width: none;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 0.48rem;
  background: rgb(26, 26, 34);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.24rem;
  filter: drop-shadow(rgba(0, 202, 224, 0.12) 0 0 0.48rem);
  transition: filter 0.3s, border-color 0.3s;
}

.orbit-icon-wrap:hover .orbit-icon {
  border-color: rgba(0, 202, 224, 0.3);
  filter: drop-shadow(rgba(0, 202, 224, 0.3) 0 0 0.71rem);
}

.orbit-name {
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.35);
  white-space: nowrap;
  letter-spacing: 0.02em;
  max-width: 3.81rem;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  transition: color 0.3s;
}

.orbit-icon-wrap:hover .orbit-name {
  color: rgba(0, 202, 224, 0.8);
}

@keyframes orbitEntrance {
  0%   { transform: scale(0) rotate(-360deg); opacity: 0; }
  15%  { opacity: 1; }
  100% { transform: scale(1.25) rotate(0deg); opacity: 1; }
}

@keyframes orbitRotate {
  to { transform: rotate(360deg); }
}

@keyframes orbitCounterRotate {
  from { transform: rotate(calc(var(--angle) * -1)) translate(-50%); }
  to   { transform: rotate(calc(var(--angle) * -1 - 360deg)) translate(-50%); }
}

/* 星环响应式：小屏缩小半径 */
@media (max-width: 900px) {
  .orbit-container { --orbit-r: 16rem; }
  .orbit-icon { width: 1.55rem; height: 1.55rem; }
  .orbit-name { max-width: 3.5rem; }
  .hero-stats { gap: 40px; }
}

@media (max-width: 640px) {
  /* 小屏排版优先：隐藏星环，避免与文字重叠 */
  .orbit-container { display: none; }
  .hero-stats { gap: 28px; }
  .stat-num { font-size: 1.7rem; }
  .hero { padding: 64px 0 56px; }
}

/* ---------- 区块标题 ---------- */
.sec { padding: 70px 0; }

.sec-head { text-align: center; margin-bottom: 48px; }

.sec-chip {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(34, 211, 238, 0.25);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.sec-h2 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.sec-p { color: var(--text-secondary); font-size: 15.5px; max-width: 560px; margin: 0 auto; }

/* ---------- 卡片网格 ---------- */
.grid {
  display: grid;
  gap: 20px;
  margin-top: 36px;
}

.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: var(--shadow), var(--shadow-glow);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 20px;
  margin-bottom: 16px;
  background: var(--accent-soft);
  color: var(--accent);
}

.card h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 8px; }

.card p { font-size: 13.5px; color: var(--text-secondary); line-height: 1.65; }

.card .tag {
  display: inline-block;
  margin-top: 12px;
  font-size: 11.5px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
}

/* ---------- 页面页头 ---------- */
.page-hero {
  padding: 64px 0 28px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.page-hero p { color: var(--text-secondary); max-width: 620px; margin: 0 auto; }

.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 36px 0 8px;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.filter-btn:hover { color: var(--text-primary); border-color: var(--accent); }

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text-on-accent);
  font-weight: 700;
}

/* ---------- 模型卡片 (大模型页) ---------- */
.model-card { display: flex; flex-direction: column; gap: 6px; }

.model-card .model-name {
  font-size: 16px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.model-card .model-desc { font-size: 12.5px; color: var(--text-muted); flex: 1; }

.model-card .model-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}

.model-card .price { font-size: 12.5px; color: var(--text-secondary); }
.model-card .price b { color: var(--accent); }

.model-badge {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 600;
}

.badge-hot { background: rgba(239, 68, 68, 0.12); color: #f87171; }
.badge-new { background: var(--accent-soft); color: var(--accent); }
.badge-pro { background: rgba(129, 140, 248, 0.12); color: #a5b4fc; }

.model-card .go-btn {
  margin-top: 4px;
  padding: 8px 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.model-card .go-btn:hover {
  color: var(--text-on-accent);
  background: linear-gradient(135deg, var(--accent), #06b6d4);
  border-color: transparent;
  box-shadow: 0 2px 14px var(--accent-glow);
}

/* ---------- 视频创作 (首页, 对应原站 /home?menu=shipin) ---------- */
.video-studio-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 36px;
  padding: 22px 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, rgba(34, 211, 238, 0.12), rgba(99, 102, 241, 0.1), transparent);
  border: 1px solid rgba(34, 211, 238, 0.25);
}

.video-studio-banner h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.video-studio-banner p { font-size: 13.5px; color: var(--text-secondary); }

.video-studio-banner .btn { flex-shrink: 0; }

/* ---------- 智能体页 ---------- */
.agent-card { position: relative; overflow: hidden; }

.agent-card::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -30%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  pointer-events: none;
}

.agent-avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 24px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.15), rgba(99, 102, 241, 0.15));
  border: 1px solid rgba(34, 211, 238, 0.25);
}

.agent-card .cap-list { margin-top: 12px; }

.agent-card .cap-list li {
  font-size: 12.5px;
  color: var(--text-muted);
  padding: 4px 0 4px 20px;
  position: relative;
}

.agent-card .cap-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 11px;
  top: 5px;
}

/* ---------- 灵感广场 ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }

@media (max-width: 1000px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr; } }

.work-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: all 0.25s;
  cursor: pointer;
  text-align: left;
}

.work-card:hover { transform: translateY(-4px); border-color: rgba(34, 211, 238, 0.4); box-shadow: var(--shadow); }

.work-media {
  aspect-ratio: 4/3;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.06), rgba(99, 102, 241, 0.06));
  font-size: 42px;
  position: relative;
}

.work-media .play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.25s;
  font-size: 34px;
  color: #fff;
}

.work-card:hover .play { opacity: 1; }

.work-body { padding: 16px 18px; }

.work-body h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }

.work-body p { font-size: 12.5px; color: var(--text-secondary); }

.work-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

.work-meta .author { display: flex; align-items: center; gap: 6px; }
.work-meta .author-avatar {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-size: 11px;
}

.work-card .prompt-hint {
  margin-top: 10px;
  font-size: 12px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}

/* ---------- API 页 ---------- */
.api-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  margin-top: 32px;
  align-items: start;
}

@media (max-width: 900px) { .api-layout { grid-template-columns: 1fr; } }

.api-side {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}

.api-side a {
  display: block;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--text-secondary);
  transition: all 0.15s;
}

.api-side a:hover { color: var(--text-primary); background: var(--bg-hover); }
.api-side a.active { color: var(--accent); background: var(--accent-soft); font-weight: 600; }

.api-content { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
/* 修复左侧栏占位后，长代码行/参数表把 1fr 内容列撑出屏幕造成整页横向滚动 */
.api-layout > .api-side { min-width: 0; }
.api-content .code-block { max-width: 100%; overflow-x: auto; }
.api-content .code-block pre,
.api-content .code-block code { white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; }
.api-content .param-table-wrap, .api-content .table-wrap { overflow-x: auto; max-width: 100%; }
.api-content .param-table { table-layout: fixed; }
.api-content .param-table td, .api-content .param-table th { word-break: break-word; overflow-wrap: anywhere; }

.api-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.api-block h2 { font-size: 19px; font-weight: 800; margin-bottom: 14px; }

.api-block h2 .num {
  color: var(--accent);
  margin-right: 8px;
  font-family: var(--font-mono);
}

.api-block p { color: var(--text-secondary); font-size: 14px; margin-bottom: 12px; }

.code-block {
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  overflow-x: auto;
  margin: 14px 0;
}

.code-block pre {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: #d4d8e2;
}

.code-block .c-comment { color: #6b7280; }
.code-block .c-key { color: #22d3ee; }
.code-block .c-str { color: #a5b4fc; }
.code-block .c-num { color: #fbbf24; }

/* 参数表格 */
.param-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 13.5px; }

.param-table th {
  text-align: left;
  padding: 10px 14px;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border-strong);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.param-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: top;
}

.param-table td:first-child { color: var(--text-primary); font-family: var(--font-mono); font-size: 12.5px; }
.param-table tr:last-child td { border-bottom: none; }

/* ---------- CTA ---------- */
.cta {
  text-align: center;
  padding: 90px 0;
  position: relative;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 60% at 50% 100%, var(--accent-glow), transparent 70%);
  pointer-events: none;
}

.cta h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900; margin-bottom: 18px; position: relative; }

.cta p { color: var(--text-secondary); margin-bottom: 32px; position: relative; }

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 44px 0 28px;
  background: var(--bg-page-2);
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand p { font-size: 13px; color: var(--text-muted); margin-top: 12px; max-width: 300px; }

.footer-col h4 {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  font-size: 13.5px;
  color: var(--text-secondary);
  padding: 5px 0;
  transition: color 0.15s;
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- 动画 ----------
   默认可见（无 JS 或 JS 出错时仍能看到内容）。
   JS 会在加载后给元素加 .reveal-pending 让其隐藏，
   IntersectionObserver 触发后移除 .reveal-pending 使其显示。
*/
.fade-up { opacity: 1; transform: none; transition: all 0.6s ease; }
.fade-up.reveal-pending { opacity: 0; transform: translateY(24px); }
.fade-up.reveal-visible { opacity: 1; transform: none; }

/* JS 加载完成后的兜底：500ms 内未触发仍要可见 */
body.reveal-ready .fade-up:not(.reveal-visible) { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
  .fade-up.reveal-pending { opacity: 1; transform: none; }
  .hero-h1 .grad { animation: none; }
  .orbit-container.orbit-go,
  .orbit-go .orbit-spin,
  .orbit-go .orbit-icon-wrap { animation: none; }
  .orbit-container.orbit-go { transform: scale(1.25); opacity: 1; }
  .orbit-go .orbit-icon-wrap { opacity: 0.5; }
}

/* ============================================================
   登录 / 注册弹窗
   ============================================================ */
.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(4, 6, 10, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 24px;
  overflow-y: auto;
}

.auth-modal {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: var(--bg-panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow), var(--shadow-glow);
  padding: 34px 32px 30px;
  animation: modalIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
  from { transform: translateY(18px) scale(0.97); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 2;
}

.modal-close:hover { color: var(--text-primary); border-color: var(--accent); }

.auth-modal .auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.auth-modal .auth-brand strong { font-size: 18px; font-weight: 800; }
.auth-modal .auth-brand small {
  display: block;
  font-size: 11.5px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auth-tabs {
  display: flex;
  gap: 6px;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 20px;
}

.auth-tabs button {
  flex: 1;
  padding: 8px 0;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-tabs button.active {
  background: var(--bg-elevated);
  color: var(--text-primary);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

.auth-field { margin-bottom: 14px; }

.auth-field span {
  display: block;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 600;
}

.auth-field input {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}

.auth-submit {
  width: 100%;
  margin-top: 6px;
  padding: 12px 0;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent), #06b6d4);
  color: var(--text-on-accent);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 14px var(--accent-glow);
  transition: all 0.2s;
}

.auth-submit:hover { transform: translateY(-1px); box-shadow: 0 4px 22px var(--accent-glow); }
.auth-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.auth-tip {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--text-muted);
  text-align: center;
}

.auth-tip b { color: var(--accent); }

.auth-error {
  margin-bottom: 12px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: #f87171;
  font-size: 13px;
  display: none;
}

.auth-error.show { display: block; }

/* ============================================================
   对话工作台 (chat.html)
   ============================================================ */
body.workspace-page { background: var(--bg-deep); }

.workspace-shell {
  height: calc(100vh - var(--header-h));
  display: flex;
  overflow: hidden;
}

/* 侧边栏 */
.ws-sidebar {
  width: 288px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-page-2);
  border-right: 1px solid var(--border);
}

.ws-sidebar .side-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}

.ws-sidebar .side-brand strong { font-size: 15px; font-weight: 800; }
.ws-sidebar .side-brand small {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ws-cats {
  display: flex;
  gap: 6px;
  padding: 12px 14px 4px;
  flex-wrap: wrap;
}

.ws-cats button {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.2s;
}

.ws-cats button:hover { color: var(--text-primary); border-color: var(--accent); }

.ws-cats button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text-on-accent);
  font-weight: 700;
}

.ws-search {
  margin: 10px 14px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  border: 1px solid var(--border);
}

.ws-search span { color: var(--text-muted); font-size: 14px; }

.ws-search input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
}

.ws-model-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 10px 12px;
}

.ws-model-list::-webkit-scrollbar { width: 6px; }
.ws-model-list::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: 3px; }

.ws-model {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: all 0.18s;
  margin-bottom: 2px;
}

.ws-model:hover { background: var(--bg-hover); }

.ws-model.active {
  background: var(--accent-soft);
  border-color: rgba(34, 211, 238, 0.3);
}

.ws-model .m-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.ws-model .m-main { flex: 1; min-width: 0; }

.ws-model .m-main h3 {
  font-size: 13.5px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ws-model .m-main p {
  font-size: 11.5px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ws-model .m-main small {
  font-size: 10.5px;
  color: var(--text-muted);
}

.ws-model .m-tag {
  flex-shrink: 0;
  font-size: 10px;
  font-style: normal;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(34, 211, 238, 0.2);
  padding: 2px 7px;
  border-radius: 999px;
}

.ws-empty {
  padding: 24px 12px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* 侧边栏底部用户卡 */
.ws-profile {
  border-top: 1px solid var(--border);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ws-profile .p-main {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  padding: 4px;
  border-radius: var(--radius-sm);
}

.ws-profile .p-main:hover { background: var(--bg-hover); }

.ws-profile .p-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #6366f1);
  display: grid;
  place-items: center;
  color: var(--text-on-accent);
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}

.ws-profile .p-main strong { font-size: 13.5px; display: block; }
.ws-profile .p-main small { font-size: 11.5px; color: var(--accent); }
.ws-profile .p-main small::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #34d399; margin-right: 5px; }

.ws-profile .p-main b { margin-left: auto; color: var(--text-muted); }

.ws-wallet {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s;
  width: 100%;
  color: var(--text-primary);
}

.ws-wallet:hover { border-color: rgba(34, 211, 238, 0.4); }

.ws-wallet .wt {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-on-accent);
  background: linear-gradient(135deg, var(--accent), #06b6d4);
  padding: 2px 8px;
  border-radius: 999px;
}

.ws-wallet b { font-size: 14px; flex: 1; }
.ws-wallet small { font-size: 11.5px; color: var(--text-muted); }

.ws-recharge {
  width: 100%;
  padding: 9px 0;
  border-radius: var(--radius-sm);
  border: none;
  background: linear-gradient(135deg, var(--accent), #06b6d4);
  color: var(--text-on-accent);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 12px var(--accent-glow);
  transition: all 0.2s;
}

.ws-recharge:hover { transform: translateY(-1px); }

/* 工作区 */
.ws-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--bg-deep);
}

.ws-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(15, 15, 18, 0.7);
  backdrop-filter: blur(10px);
}

.ws-topbar .tb-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.ws-topbar .tb-btn:hover { color: var(--text-primary); border-color: var(--accent); }

.ws-topbar .tb-spacer { flex: 1; }

.ws-topbar .tb-title {
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.ws-topbar .tb-idea {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--accent);
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
}

.ws-topbar .tb-idea:hover { border-color: var(--accent); box-shadow: var(--shadow-glow); }

.ws-topbar .tb-grid {
  display: grid;
  grid-template-columns: repeat(2, 5px);
  gap: 3px;
  width: 36px;
  height: 34px;
  place-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: transparent;
  cursor: pointer;
}

.ws-topbar .tb-grid span { width: 5px; height: 5px; border-radius: 1px; background: var(--text-secondary); }
.ws-topbar .tb-grid:hover { border-color: var(--accent); }

/* 应用中心弹层 */
.app-center-pop {
  position: absolute;
  top: 56px;
  right: 18px;
  z-index: 120;
  width: 220px;
  background: var(--bg-panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px;
  display: flex;
  flex-direction: column;
}

.app-center-pop button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  font-size: 13.5px;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s;
}

.app-center-pop button:hover { background: var(--bg-hover); color: var(--text-primary); }

/* 对话区 */
.ws-chat {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ws-chat::-webkit-scrollbar { width: 6px; }
.ws-chat::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: 3px; }

.ws-current-model {
  align-self: center;
  text-align: center;
  max-width: 640px;
  margin: 8px 0 4px;
}

.ws-current-model strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 6px;
}

.ws-current-model strong em {
  font-style: normal;
  color: var(--accent);
  font-family: var(--font-mono);
}

.ws-current-model p { font-size: 13px; color: var(--text-muted); }

.chat-bubble {
  max-width: 78%;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.chat-bubble strong {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 700;
}

.chat-bubble p {
  font-size: 14px;
  line-height: 1.75;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px 14px 14px 14px;
  padding: 12px 16px;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-bubble.user {
  align-self: flex-end;
  align-items: flex-end;
}

.chat-bubble.user p {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(99, 102, 241, 0.14));
  border-color: rgba(34, 211, 238, 0.25);
  border-radius: 14px 4px 14px 14px;
}

/* 输入区 */
.ws-composer {
  padding: 12px 20px 18px;
  border-top: 1px solid var(--border);
  background: rgba(15, 15, 18, 0.7);
}

.composer-box {
  max-width: 860px;
  margin: 0 auto;
  background: var(--bg-panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 12px 14px 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.composer-box:focus-within {
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.08), var(--shadow);
}

.composer-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.composer-toolbar button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.composer-toolbar button:hover { color: var(--text-primary); border-color: var(--accent); }

.composer-toolbar .file-input { display: none; }

.attachment-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }

.attachment-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
}

.attachment-pill strong { font-weight: 600; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment-pill small { color: var(--text-muted); }
.attachment-pill i { font-style: normal; color: #f87171; }

.composer-box textarea {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 14.5px;
  line-height: 1.6;
  resize: none;
  outline: none;
  min-height: 44px;
  max-height: 180px;
}

.composer-box textarea::placeholder { color: var(--text-muted); }

.composer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.mode-buttons { display: flex; gap: 6px; }

.mode-buttons button {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.mode-buttons button:hover { color: var(--accent); border-color: rgba(34, 211, 238, 0.4); }

.send-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--accent), #06b6d4);
  color: var(--text-on-accent);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 14px var(--accent-glow);
  transition: all 0.2s;
}

.send-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 20px var(--accent-glow); }
.send-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* 计费 chip */
.billing-chip {
  position: absolute;
  top: -11px;
  right: 18px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(34, 211, 238, 0.3);
  color: var(--accent);
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.2s;
}

.billing-chip:hover { border-color: var(--accent); box-shadow: var(--shadow-glow); }

.billing-chip b { color: var(--text-primary); }
.billing-chip span {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--text-on-accent);
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
}

.ws-composer { position: relative; }

/* toast */
.toast {
  position: fixed;
  top: calc(var(--header-h) + 16px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 400;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: var(--text-primary);
  font-size: 13.5px;
  box-shadow: var(--shadow);
  animation: modalIn 0.25s ease;
}

/* ============================================================
   弹窗组件 (钱包 / 充值 / 创作台 / 灵感 / 角色 / 历史 / 任务 / 数据)
   ============================================================ */
.ws-modal {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  background: var(--bg-panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  animation: modalIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.ws-modal::-webkit-scrollbar { width: 6px; }
.ws-modal::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: 3px; }

.ws-modal .wm-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 24px 0;
}

.ws-modal .wm-head strong { font-size: 17px; font-weight: 800; display: block; }
.ws-modal .wm-head span { font-size: 12.5px; color: var(--text-muted); }

.wm-body { padding: 18px 24px 24px; }

/* 钱包 */
.wallet-balance {
  margin-top: 16px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(99, 102, 241, 0.16));
  border: 1px solid rgba(34, 211, 238, 0.3);
  position: relative;
  overflow: hidden;
}

.wallet-balance::after {
  content: "✦";
  position: absolute;
  right: -10px;
  bottom: -24px;
  font-size: 110px;
  color: rgba(255, 255, 255, 0.05);
}

.wallet-balance small { font-size: 12px; color: var(--text-secondary); }

.wallet-balance b {
  display: block;
  font-size: 38px;
  font-weight: 900;
  line-height: 1.2;
  margin: 4px 0 6px;
}

.wallet-balance p { font-size: 12px; color: var(--text-secondary); margin-bottom: 12px; }

.wallet-balance .w-recharge {
  padding: 8px 18px;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent), #06b6d4);
  color: var(--text-on-accent);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 12px var(--accent-glow);
}

.wm-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0 10px;
}

.wm-subhead span { font-size: 13.5px; font-weight: 700; }

.wm-subhead button {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.wm-subhead button:hover { color: var(--accent); border-color: rgba(34, 211, 238, 0.4); }

.wallet-records { display: flex; flex-direction: column; gap: 8px; }

.wallet-record {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.wallet-record .record-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 14px;
  flex-shrink: 0;
}

.wallet-record.record-in .record-icon { background: rgba(52, 211, 153, 0.12); color: #34d399; }
.wallet-record.record-out .record-icon { background: rgba(251, 146, 60, 0.12); color: #fb923c; }

.wallet-record .record-main { flex: 1; min-width: 0; }

.wallet-record .record-main strong { font-size: 13px; display: block; }
.wallet-record .record-main small { font-size: 11.5px; color: var(--text-muted); }

.wallet-record em {
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
}

.wallet-record.record-in em { color: #34d399; }
.wallet-record.record-out em { color: #fb923c; }

.wallet-empty {
  padding: 30px 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* 充值 */
.recharge-packages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

@media (max-width: 640px) { .recharge-packages { grid-template-columns: 1fr; } }

.recharge-package {
  padding: 18px 14px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.recharge-package:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: var(--shadow), var(--shadow-glow);
}

.recharge-package strong { font-size: 14px; }
.recharge-package em { font-style: normal; font-size: 26px; font-weight: 900; color: var(--accent); }
.recharge-package p { font-size: 12.5px; color: var(--text-secondary); }
.recharge-package small { font-size: 11px; color: var(--text-muted); }

.recharge-order-box {
  margin-top: 16px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid rgba(34, 211, 238, 0.3);
}

.recharge-order-box strong { font-size: 14.5px; }
.recharge-order-box p { font-size: 13px; color: var(--text-secondary); margin: 6px 0; }
.recharge-order-box .recharge-tip { font-size: 12px; color: var(--text-muted); line-height: 1.7; }

.recharge-order-box button {
  margin-top: 12px;
  width: 100%;
  padding: 11px 0;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent), #06b6d4);
  color: var(--text-on-accent);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 12px var(--accent-glow);
}

/* 创作台 */
.studio-models {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.studio-model {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s;
}

.studio-model span { font-size: 16px; }
.studio-model strong { font-size: 13px; }
.studio-model small { font-size: 11px; color: var(--text-muted); }

.studio-model.active {
  background: var(--accent-soft);
  border-color: rgba(34, 211, 238, 0.5);
}

.studio-form { margin-top: 16px; display: flex; flex-direction: column; gap: 14px; }

.studio-field span {
  display: block;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 600;
}

.studio-field textarea,
.studio-field select {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 13.5px;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s;
}

.studio-field textarea:focus,
.studio-field select:focus { border-color: var(--accent); }

.studio-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .studio-options { grid-template-columns: 1fr; } }

.studio-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.studio-cost { font-size: 12.5px; color: var(--text-muted); }

.studio-actions button {
  padding: 10px 22px;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent), #06b6d4);
  color: var(--text-on-accent);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 12px var(--accent-glow);
}

.studio-actions button:disabled { opacity: 0.55; cursor: not-allowed; }

.studio-result {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.studio-result strong { font-size: 13px; color: #34d399; display: block; margin-bottom: 6px; }
.studio-result p { font-size: 13px; color: var(--text-secondary); line-height: 1.7; }

/* 灵感广场 (弹窗) */
.inspiration-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

@media (max-width: 560px) { .inspiration-grid { grid-template-columns: 1fr; } }

.inspiration-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
}

.inspiration-card:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: var(--shadow);
}

.inspiration-card .inspiration-icon { font-size: 22px; }

.inspiration-card strong { font-size: 14px; }

.inspiration-card p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.inspiration-card em {
  font-style: normal;
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 9px;
  border-radius: 999px;
}

/* 角色管理 */
.role-list { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }

.role-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
}

.role-item:hover { border-color: rgba(34, 211, 238, 0.4); }

.role-item .role-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 17px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.15), rgba(99, 102, 241, 0.15));
  border: 1px solid rgba(34, 211, 238, 0.25);
  flex-shrink: 0;
}

.role-item span:nth-child(2) { flex: 1; min-width: 0; }
.role-item strong { font-size: 13.5px; display: block; }
.role-item small { font-size: 11.5px; color: var(--text-muted); }
.role-item em {
  font-style: normal;
  font-size: 10.5px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 8px;
  border-radius: 999px;
}

.role-tabs {
  display: flex;
  gap: 6px;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-top: 14px;
}

.role-tabs button {
  flex: 1;
  padding: 7px 0;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
}

.role-tabs button.active { background: var(--bg-elevated); color: var(--text-primary); }

/* 历史会话 */
.history-panel {
  position: fixed;
  top: var(--header-h);
  right: 0;
  bottom: 0;
  width: 340px;
  z-index: 150;
  background: var(--bg-page-2);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 18px;
  animation: modalIn 0.25s ease;
}

.history-panel.hidden { display: none; }

.history-head { display: flex; align-items: flex-start; justify-content: space-between; }
.history-head strong { font-size: 15px; display: block; }
.history-head span { font-size: 11.5px; color: var(--text-muted); }
.history-head button {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}

.history-actions { display: flex; gap: 6px; margin: 14px 0 10px; flex-wrap: wrap; }

.history-actions button {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
}

.history-actions button:hover { color: var(--accent); border-color: rgba(34, 211, 238, 0.4); }

.history-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  border: 1px solid var(--border);
  margin-bottom: 12px;
}

.history-search span { color: var(--text-muted); }
.history-search input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
}

.history-section-title {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 10px 0 6px;
  font-weight: 700;
}

.history-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }

.history-item,
.history-project {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: all 0.15s;
}

.history-item:hover, .history-project:hover { background: var(--bg-hover); }
.history-item.active { background: var(--accent-soft); border-color: rgba(34, 211, 238, 0.25); }

.history-item span, .history-project span { color: var(--text-muted); }
.history-item strong { font-size: 13px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-item small { font-size: 11px; color: var(--text-muted); }
.history-project { flex-direction: column; align-items: flex-start; gap: 3px; }
.history-project strong { font-size: 13px; }
.history-project small { font-size: 11px; color: var(--text-muted); }

.history-empty { padding: 20px 0; text-align: center; font-size: 12.5px; color: var(--text-muted); }

/* 任务面板 */
.task-panel {
  position: fixed;
  top: var(--header-h);
  right: 0;
  bottom: 0;
  width: 340px;
  z-index: 150;
  background: var(--bg-page-2);
  border-left: 1px solid var(--border);
  padding: 18px;
  animation: modalIn 0.25s ease;
  overflow-y: auto;
}

.task-panel.hidden { display: none; }

.task-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.task-panel-head strong { font-size: 15px; }
.task-panel-head button {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}

.task-list { display: flex; flex-direction: column; gap: 10px; }

.task-item {
  padding: 14px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.task-item strong { font-size: 13.5px; display: block; margin-bottom: 4px; }
.task-item p { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.task-item div { display: flex; gap: 8px; align-items: center; }
.task-item button {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 11.5px;
  cursor: pointer;
}
.task-item button:hover { color: var(--accent); border-color: rgba(34, 211, 238, 0.4); }
.task-item em { font-style: normal; font-size: 11px; color: var(--text-muted); margin-left: auto; }

/* 数据消息 */
.inbox-panel {
  position: fixed;
  top: var(--header-h);
  right: 0;
  bottom: 0;
  width: 420px;
  z-index: 150;
  background: var(--bg-page-2);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 18px;
  animation: modalIn 0.25s ease;
}

.inbox-panel.hidden { display: none; }

.inbox-heading { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.inbox-heading span { font-size: 11px; color: var(--accent); letter-spacing: 0.1em; font-weight: 700; }
.inbox-heading h2 { font-size: 16px; margin: 2px 0; }
.inbox-heading p { font-size: 11.5px; color: var(--text-muted); }
.inbox-heading button {
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  flex-shrink: 0;
}
.inbox-heading button:hover { color: var(--accent); border-color: rgba(34, 211, 238, 0.4); }

.inbox-list { flex: 1; overflow-y: auto; margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }

.inbox-item {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.lead-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #6366f1);
  color: var(--text-on-accent);
  display: grid;
  place-items: center;
  font-weight: 800;
  flex-shrink: 0;
}

.lead-main { flex: 1; min-width: 0; }
.lead-main div { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.lead-main strong { font-size: 13.5px; }
.lead-main span { font-size: 12px; color: var(--text-secondary); }
.lead-main em {
  font-style: normal;
  font-size: 10.5px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: auto;
}
.lead-main p { font-size: 12.5px; color: var(--text-secondary); margin-bottom: 4px; }
.lead-main small { font-size: 11px; color: var(--text-muted); }

/* 设置弹层 */
.settings-pop {
  position: fixed;
  right: 20px;
  bottom: 96px;
  z-index: 160;
  width: 320px;
  background: var(--bg-panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  animation: modalIn 0.25s ease;
}

.settings-pop.hidden { display: none; }

.settings-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.settings-head strong { font-size: 14.5px; }
.settings-head button {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}

.settings-body p { font-size: 12.5px; color: var(--text-secondary); margin-bottom: 10px; }

.choice-grid { display: flex; flex-direction: column; gap: 8px; }

.choice-grid button {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.choice-grid button:hover { border-color: rgba(34, 211, 238, 0.4); }

.settings-body label {
  display: block;
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.settings-body select,
.settings-body textarea {
  width: 100%;
  margin-top: 6px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
}

.settings-body textarea { resize: vertical; min-height: 70px; }

.memory-switch {
  width: 100%;
  padding: 10px 0;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(34, 211, 238, 0.35);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 10px;
}

.memory-switch.active {
  background: linear-gradient(135deg, var(--accent), #06b6d4);
  color: var(--text-on-accent);
  border-color: transparent;
}

/* 悬浮按钮 */
.floating-user {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(34, 211, 238, 0.4);
  background: var(--bg-panel);
  color: var(--accent);
  font-size: 17px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.2s;
}

.floating-user:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }

.quick-tools {
  position: fixed;
  right: 22px;
  bottom: 78px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quick-tools button {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-panel);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.quick-tools button:hover { color: var(--accent); border-color: rgba(34, 211, 238, 0.4); }

/* 移动端 */
.mobile-drawer-btn { display: none; }

.drawer-mask {
  position: fixed;
  inset: 0;
  z-index: 170;
  background: rgba(4, 6, 10, 0.6);
  display: none;
}

.drawer-mask.show { display: block; }

@media (max-width: 900px) {
  .mobile-drawer-btn { display: inline-flex; }

  .ws-sidebar {
    position: fixed;
    top: var(--header-h);
    bottom: 0;
    left: 0;
    z-index: 180;
    width: 300px;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }

  body.drawer-open .ws-sidebar { transform: none; }

  .ws-chat { padding: 16px 14px 8px; }
  .chat-bubble { max-width: 90%; }

  .ws-model-list { padding-bottom: 60px; }
}

@media (max-width: 640px) {
  .main-nav { display: none; }
  .header-actions .btn-ghost { display: none; }
  .ws-topbar .tb-title { display: none; }
  .header-user .nickname { display: none; }
  .ws-chat { padding: 12px 12px 6px; }
  /* 移动端首页顶栏收紧：压缩次要文字链接，只留核心操作，避免溢出遮挡 */
  .lh-actions, .header-actions { gap: 6px; flex-wrap: nowrap; }
  .lh-actions .lh-nav-link { padding: 6px 7px; font-size: 12px; }
  .lh-actions .btn-sm, .header-actions .btn-sm { padding: 7px 12px; font-size: 12.5px; }
  .landing-header, .lh-header { padding-left: 12px; padding-right: 12px; gap: 8px; }
  @media (max-width: 420px) { .lh-actions .lh-nav-link { font-size: 0; } .lh-actions .lh-nav-link .lh-nav-ico { font-size: 16px; } }
}

/* ============================================================
   v16 视觉对照 hz.lk888.ai 后新增：
   · 弧线背景 SVG
   · Hero 旋转副标题
   · 创作搭档 4 卡片
   · 浮动客服按钮
   ============================================================ */

/* ---- 弧线背景（全局覆盖在 page-bg 之上） ---- */
.bg-arcs {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

.bg-arcs .arc { opacity: 0.7; }
.bg-arcs .arc-1 { animation: arcDrift 22s ease-in-out infinite; }
.bg-arcs .arc-2 { animation: arcDrift 28s ease-in-out infinite reverse; }

@keyframes arcDrift {
  0%   { transform: translateY(0)    scale(1);   opacity: 0.55; }
  50%  { transform: translateY(-30px) scale(1.04); opacity: 0.85; }
  100% { transform: translateY(0)    scale(1);   opacity: 0.55; }
}

/* ---- Hero 旋转副标题 ---- */
.hero-rotator-wrap {
  display: block;
  margin-top: 6px;
  min-height: 1.18em;
}

.hero-rotator {
  position: relative;
  display: inline-block;
  vertical-align: baseline;
  min-width: 4.5em;
  min-height: 1em;
}

.hero-rotator-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(14px) scale(0.94);
  filter: blur(6px);
  background: linear-gradient(120deg, var(--accent), #818cf8, var(--accent));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gradFlow 6s linear infinite;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.6s ease;
}

.hero-rotator-word.in {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* ---- Hero 底部优惠横条 ---- */
.hero-promo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 10px 20px;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(34, 211, 238, 0.1), rgba(99, 102, 241, 0.1));
  border: 1px solid rgba(34, 211, 238, 0.25);
  color: var(--accent);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s;
}

.hero-promo:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 211, 238, 0.6);
  box-shadow: 0 4px 18px rgba(34, 211, 238, 0.2);
}

.hero-promo::after { content: ""; display: none; }

/* ---- 创作搭档 4 卡片 ---- */
.sec-partners { padding-top: 0; padding-bottom: 80px; }

.sec-h2-grad {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.15;
}

.sec-h2-grad .grad {
  background: linear-gradient(120deg, var(--accent), #818cf8, var(--accent));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradFlow 6s linear infinite;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 48px;
}

.partner-card {
  position: relative;
  padding: 32px 24px 26px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  overflow: hidden;
}

.partner-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: var(--shadow), 0 0 32px rgba(34, 211, 238, 0.15);
}

.partner-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.05), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.partner-card:hover::before { opacity: 1; }

.partner-num {
  position: absolute;
  top: 12px;
  right: 18px;
  font-family: var(--font-mono);
  font-size: 64px;
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 255, 255, 0.04);
  letter-spacing: -0.04em;
  user-select: none;
  pointer-events: none;
}

.partner-card:hover .partner-num {
  color: rgba(34, 211, 238, 0.12);
}

.partner-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 24px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(99, 102, 241, 0.16));
  border: 1px solid rgba(34, 211, 238, 0.3);
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.partner-card h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.partner-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.partner-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  transition: gap 0.2s;
  position: relative;
  z-index: 1;
}

.partner-link:hover { gap: 8px; }

@media (max-width: 1000px) { .partners-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .partners-grid { grid-template-columns: 1fr; } }

/* ---- 浮动客服按钮 ---- */
.float-kefu {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(34, 211, 238, 0.5);
  background: linear-gradient(135deg, var(--accent), #06b6d4);
  color: var(--text-on-accent);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(34, 211, 238, 0.4);
  transition: all 0.25s;
  animation: kefuPulse 3.5s ease-in-out infinite;
}

.float-kefu:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 22px rgba(34, 211, 238, 0.55);
}

@keyframes kefuPulse {
  0%, 100% { box-shadow: 0 4px 18px rgba(34, 211, 238, 0.4); }
  50%      { box-shadow: 0 4px 18px rgba(34, 211, 238, 0.4), 0 0 0 8px rgba(34, 211, 238, 0.12); }
}

.kefu-popover {
  position: fixed;
  right: 22px;
  bottom: 82px;
  z-index: 91;
  width: 280px;
  padding: 20px 22px 18px;
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow), var(--shadow-glow);
  animation: modalIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.kefu-popover strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 4px;
}

.kefu-popover > p {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.kefu-channels {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kefu-channel {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 13px;
  text-decoration: none;
  transition: all 0.2s;
}

.kefu-channel:hover {
  border-color: rgba(34, 211, 238, 0.45);
  color: var(--accent);
  background: var(--accent-soft);
}

.kefu-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 16px;
  line-height: 1;
}

.kefu-close:hover { color: var(--text-primary); border-color: var(--accent); }

@media (max-width: 640px) {
  .float-kefu { width: 42px; height: 42px; right: 16px; bottom: 16px; }
  .kefu-popover { right: 16px; bottom: 68px; width: calc(100vw - 32px); max-width: 320px; }
  .hero-rotator-wrap { min-height: 1.5em; }
}

/* ---- 灵感广场瀑布流 ---- */
.gallery-masonry {
  column-count: 3;
  column-gap: 18px;
  display: block;
}

.gallery-masonry .work-card {
  break-inside: avoid;
  margin-bottom: 18px;
  display: block;
  width: 100%;
}

.work-card-sm .work-media { aspect-ratio: 1/0.7; font-size: 34px; }
.work-card-md .work-media { aspect-ratio: 4/3;   font-size: 42px; }
.work-card-lg .work-media { aspect-ratio: 16/10; font-size: 52px; }

@media (max-width: 1000px) { .gallery-masonry { column-count: 2; } }
@media (max-width: 600px)  { .gallery-masonry { column-count: 1; } }

/* ============================================================
   v2.0 公共组件：toast / 认证弹窗 / 用户菜单 / 个人中心
   ============================================================ */
/* toast */
.toast-layer { position: fixed; z-index: 9999; top: 22px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast-item { display: flex; align-items: center; gap: 10px; max-width: 88vw; padding: 11px 18px; border-radius: 12px; font-size: 13.5px; color: #f2f4f8;
  background: rgba(22,22,28,.96); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 14px 40px rgba(0,0,0,.5); backdrop-filter: blur(10px);
  opacity: 0; transform: translateY(-12px); transition: .25s; }
.toast-item.show { opacity: 1; transform: none; }
.toast-ico { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 900; flex: 0 0 20px; }
.toast-success .toast-ico { background: rgba(52,211,153,.18); color: #34d399; }
.toast-error .toast-ico { background: rgba(251,113,133,.18); color: #fb7185; }
.toast-info .toast-ico { background: rgba(34,211,238,.18); color: #22d3ee; }

/* 认证弹窗 */
.modal-open { overflow: hidden; }
.modal-mask[hidden] { display: none !important; }
.auth-modal { width: 430px; max-width: calc(100vw - 32px); max-height: 92vh; overflow: auto; padding: 26px 26px 22px; }
.auth-close { position: absolute; right: 16px; top: 14px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255,255,255,.06); color: var(--text-secondary); font-size: 20px; cursor: pointer; }
.auth-close:hover { color: #fff; background: rgba(255,255,255,.12); }
.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.auth-brand strong { font-size: 17px; color: #fff; display: block; }
.auth-brand small { color: var(--text-muted); font-size: 10px; }
.auth-gift { margin-left: auto; font-size: 11px; padding: 4px 10px; border-radius: 999px; color: #fde68a; background: rgba(251,191,36,.1); border: 1px solid rgba(251,191,36,.25); }
.auth-tabs { display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; padding: 4px; border-radius: 12px; background: rgba(255,255,255,.05); margin-bottom: 18px; }
.auth-tabs button { border: 0; padding: 9px 0; border-radius: 9px; background: transparent; color: var(--text-secondary); font-size: 13px; font-weight: 600; cursor: pointer; }
.auth-tabs button.active { color: #04121a; background: linear-gradient(135deg,#22d3ee,#67e8f9); font-weight: 800; }
.auth-pane { display: none; }
.auth-pane.active { display: block; }
.auth-field { display: block; margin-bottom: 13px; }
.auth-field>span { display: block; font-size: 12px; color: var(--text-secondary); margin-bottom: 6px; }
.auth-field input { width: 100%; height: 44px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--border); background: rgba(255,255,255,.05); color: #fff; font-size: 14px; outline: none; }
.auth-field input:focus { border-color: rgba(34,211,238,.5); background: rgba(34,211,238,.05); }
.auth-code-row { display: flex; gap: 10px; align-items: flex-end; }
.auth-code-row .auth-field { flex: 1; }
.auth-sendcode { height: 44px; padding: 0 14px; white-space: nowrap; border-radius: 11px; border: 1px solid rgba(34,211,238,.4); background: rgba(34,211,238,.1); color: #67e8f9; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.auth-sendcode:disabled { opacity: .5; cursor: not-allowed; }
.captcha-row { display: flex; gap: 10px; }
.captcha-row input { flex: 1; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border); background: rgba(255,255,255,.05); color: #fff; outline: none; }
.captcha-row canvas { border-radius: 10px; cursor: pointer; border: 1px solid var(--border); }
.auth-tip { font-size: 11.5px; color: var(--text-muted); margin: -4px 0 12px; line-height: 1.6; }
.auth-submit { width: 100%; height: 46px; margin-top: 4px; font-size: 15px; font-weight: 800; }
.auth-oauth { margin-top: 20px; text-align: center; }
.auth-oauth>span { font-size: 12px; color: var(--text-muted); position: relative; display: inline-block; padding: 0 14px; }
.auth-oauth>span::before,.auth-oauth>span::after { content: ""; position: absolute; top: 50%; width: 60px; height: 1px; background: var(--border); }
.auth-oauth>span::before { right: 100%; } .auth-oauth>span::after { left: 100%; }
.auth-oauth div { display: flex; justify-content: center; gap: 14px; margin-top: 14px; }
.oauth-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-strong); background: rgba(255,255,255,.05); color: #d6dbe6; font-size: 13px; font-weight: 800; cursor: pointer; transition: .2s; }
.oauth-btn:hover { border-color: rgba(34,211,238,.5); color: #22d3ee; transform: translateY(-2px); }
.auth-agree { display: flex; align-items: flex-start; gap: 7px; font-size: 12px; color: var(--text-secondary); margin-top: 16px; line-height: 1.6; }
.auth-agree input { margin-top: 3px; accent-color: #22d3ee; }
.auth-agree a { color: #67e8f9; }
.auth-error { color: #fb7185; font-size: 12.5px; margin-top: 10px; min-height: 16px; }

/* 顶部用户菜单 */
.header-actions { position: relative; display: flex; align-items: center; gap: 10px; }
.user-chip { display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; border: 1px solid var(--border); background: rgba(255,255,255,.05); color: #fff; cursor: pointer; font-size: 13px; }
.user-avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg,#22d3ee,#8b5cf6); color: #04121a; font-weight: 800; font-size: 13px; }
.user-chip i { font-style: normal; font-size: 10px; color: var(--text-muted); }
.user-menu { position: absolute; top: 48px; right: 0; width: 180px; padding: 8px; border-radius: 14px; background: #17171d; border: 1px solid var(--border-strong); box-shadow: 0 20px 50px rgba(0,0,0,.55); z-index: 200; }
.user-menu a,.user-menu button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 9px; color: var(--text-secondary); font-size: 13px; background: transparent; border: 0; cursor: pointer; }
.user-menu a:hover,.user-menu button:hover { background: rgba(34,211,238,.1); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* 个人中心通用（wode） */
.wode-shell { display: grid; grid-template-columns: 230px 1fr; gap: 24px; max-width: 1280px; margin: calc(var(--header-h) + 26px) auto 60px; padding: 0 22px; }
.wode-side { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px; padding: 16px; }
.wode-me { display: flex; align-items: center; gap: 12px; padding: 6px 6px 16px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.wode-me .user-avatar { width: 46px; height: 46px; font-size: 18px; }
.wode-me strong { color: #fff; font-size: 15px; display: block; }
.wode-me small { color: var(--text-muted); font-size: 12px; }
.wode-nav button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 11px 14px; border-radius: 11px; color: var(--text-secondary); background: transparent; border: 0; font-size: 14px; cursor: pointer; margin-bottom: 2px; }
.wode-nav button .wn-ico { width: 20px; text-align: center; }
.wode-nav button:hover { background: rgba(255,255,255,.05); color: #fff; }
.wode-nav button.active { background: linear-gradient(135deg,rgba(34,211,238,.16),rgba(139,92,246,.12)); color: #67e8f9; font-weight: 700; }
.wode-main { min-width: 0; }
.wode-pane { display: none; } .wode-pane.active { display: block; animation: fadeUp .3s ease; }
.wode-title { font-size: 22px; font-weight: 850; color: #fff; margin-bottom: 4px; }
.wode-sub { color: var(--text-secondary); font-size: 13px; margin-bottom: 22px; }
.stat-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 22px; }
.wode-stat { padding: 20px; border-radius: 16px; border: 1px solid var(--border); background: var(--bg-card); }
.wode-stat span { color: var(--text-secondary); font-size: 12.5px; }
.wode-stat strong { display: block; color: #fff; font-size: 26px; font-weight: 850; margin-top: 8px; }
.wode-stat strong em { font-style: normal; font-size: 13px; color: var(--text-muted); font-weight: 500; margin-left: 4px; }
.wode-panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 22px; margin-bottom: 18px; }
.wode-panel h3 { color: #fff; font-size: 16px; margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; }
.wode-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.wode-table th { text-align: left; color: var(--text-muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 12px; }
.wode-table td { padding: 12px; color: var(--text-secondary); border-bottom: 1px solid rgba(255,255,255,.05); }
.wode-table tr:last-child td { border-bottom: 0; }
.wode-table .pos { color: #34d399; } .wode-table .neg { color: #fb7185; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field label { display: block; font-size: 12.5px; color: var(--text-secondary); margin-bottom: 6px; }
.form-field input,.form-field select { width: 100%; height: 42px; padding: 0 13px; border-radius: 10px; border: 1px solid var(--border); background: rgba(255,255,255,.05); color: #fff; outline: none; }
.form-field input:focus { border-color: rgba(34,211,238,.5); }
.invite-box { display: flex; align-items: center; gap: 12px; padding: 18px; border-radius: 14px; background: linear-gradient(135deg,rgba(34,211,238,.1),rgba(139,92,246,.08)); border: 1px solid rgba(34,211,238,.25); margin-bottom: 16px; flex-wrap: wrap; }
.invite-box .inv-code { font-size: 26px; font-weight: 900; letter-spacing: 3px; color: #67e8f9; }
.invite-link { flex:1; min-width:220px; height:40px; padding:0 12px; border-radius:10px; border:1px solid var(--border); background:rgba(0,0,0,.25); color:var(--text-secondary); font-size:12.5px; }
.empty-tip { text-align: center; color: var(--text-muted); padding: 40px 0; font-size: 13px; }
.badge { display:inline-block; padding:2px 9px; border-radius:999px; font-size:11px; font-weight:700; }
.badge-green{background:rgba(52,211,153,.14);color:#34d399}.badge-gold{background:rgba(251,191,36,.14);color:#fbbf24}.badge-gray{background:rgba(255,255,255,.08);color:var(--text-secondary)}.badge-red{background:rgba(251,113,133,.14);color:#fb7185}.badge-cyan{background:rgba(34,211,238,.14);color:#67e8f9}
@media (max-width:960px){ .wode-shell{grid-template-columns:1fr}.wode-side{position:static}.stat-row{grid-template-columns:1fr 1fr}.form-grid{grid-template-columns:1fr} }

/* ---------- v2.1 对话流式光标 / 充值高亮 ---------- */
.chat-bubble.streaming p::after { content: "▍"; margin-left: 1px; color: var(--accent); animation: caretBlink 0.9s steps(1) infinite; }
@keyframes caretBlink { 0%,50%{opacity:1} 51%,100%{opacity:0} }

/* —— AI 回复气泡：入场 + 流星扫过 + 生成中呼吸光（1:1 参考站吸引效果） —— */
.chat-bubble { animation: bubbleIn .34s cubic-bezier(.22,.8,.32,1) both; }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.chat-bubble.assistant p { position: relative; overflow: hidden; }
.chat-bubble.assistant p::before { content: ""; position: absolute; top: 0; left: -60%; width: 45%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.14), transparent);
  transform: skewX(-18deg); animation: bubbleMeteor 1.15s ease; pointer-events: none; }
@keyframes bubbleMeteor { from { left: -60%; } to { left: 130%; } }
.chat-bubble.streaming p { animation: bubbleGlow 1.7s ease-in-out infinite; }
@keyframes bubbleGlow {
  0%, 100% { border-color: var(--border); box-shadow: 0 0 0 rgba(34,211,238,0); }
  50% { border-color: rgba(34,211,238,.55); box-shadow: 0 0 20px rgba(34,211,238,.18); }
}
.recharge-package.hot { border-color: rgba(251,191,36,.4); background: linear-gradient(180deg,rgba(251,191,36,.06),rgba(251,191,36,.02)); }
.recharge-package.selected { border-color: rgba(34,211,238,.8) !important; background: linear-gradient(180deg,rgba(34,211,238,.14),rgba(34,211,238,.05)) !important; box-shadow: 0 0 0 1px rgba(34,211,238,.35), 0 0 18px rgba(34,211,238,.25) !important; transform: translateY(-2px); }
.ws-cats { flex-wrap: wrap; gap: 6px; }
.ws-cats button { font-size: 12.5px; padding: 6px 11px; }

/* ============================================================
   星枢AI 品牌科技徽章（流动光环 + 深色内核 + 发光星枢）
   ============================================================ */
.brand-logo {
  position:relative; display:grid; place-items:center; flex:0 0 auto;
  width:40px; height:40px; border-radius:12px; overflow:visible;
  background:radial-gradient(circle at 34% 28%, #152942 0%, #0b1220 68%);
  border:1px solid rgba(34,211,238,.38);
  color:#dffaff !important; font-weight:900; font-size:19px; letter-spacing:0;
  box-shadow:0 0 18px rgba(34,211,238,.28), inset 0 0 14px rgba(99,102,241,.22);
  text-shadow:0 0 10px rgba(34,211,238,.9), 0 0 22px rgba(99,102,241,.6);
}
.brand-logo::before {
  content:""; position:absolute; inset:-2.5px; border-radius:14px; z-index:-1;
  background:conic-gradient(from 0deg, #22d3ee, #6366f1 38%, #c084fc 62%, #22d3ee);
  animation:logoSpin 7s linear infinite; filter:blur(.3px); opacity:.9;
}
.brand-logo::after {
  content:""; position:absolute; inset:0; border-radius:11px; pointer-events:none;
  background:linear-gradient(150deg, rgba(255,255,255,.16), transparent 46%);
}
@keyframes logoSpin { to { transform:rotate(360deg); } }
.brand-name b { letter-spacing:.01em; }
.brand-name small { letter-spacing:.18em; }
@media (prefers-reduced-motion: reduce) { .brand-logo::before { animation:none; } }

/* ============== AUTH 登录弹窗对齐参考站 ============== */
.modal-mask{position:fixed;inset:0;z-index:2000;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(4,8,14,.62);backdrop-filter:blur(6px)}
/* #24 修复弹窗卡片透明、透出背景模糊层导致“整个充值界面虚化” */
.modal-mask>.modal-card{position:relative;width:min(460px,94vw);max-height:88vh;overflow:auto;border-radius:18px;padding:24px;
  background:linear-gradient(165deg,#111a2c,#0c1322);border:1px solid rgba(124,131,255,.22);
  box-shadow:0 30px 90px rgba(0,0,0,.6),inset 0 1px 0 rgba(255,255,255,.06);color:#e6f0ff}
.modal-mask>.modal-card .modal-x{position:absolute;top:14px;right:14px;width:32px;height:32px;border-radius:9px;border:none;background:rgba(255,255,255,.07);color:#cfe0ff;font-size:18px;cursor:pointer}
.modal-mask>.modal-card h3{margin:0 0 14px;font-size:17px;color:#f0f7ff}
html[data-theme=light] .modal-mask>.modal-card{background:linear-gradient(165deg,#fff,#f4f7fe);border-color:#e3e9f4;color:#1b2a40;box-shadow:0 30px 90px rgba(30,50,90,.22)}
html[data-theme=light] .modal-mask>.modal-card h3{color:#16233a}
html[data-theme=light] .modal-mask>.modal-card .modal-x{background:#eef2f8;color:#33415c}
.modal-mask[hidden]{display:none}
/* 弹窗进入特效：遮罩淡入 + 卡片缩放上浮（对齐参考站 cubic-bezier 弹性手感） */
.modal-mask:not([hidden]){animation:maskFadeIn .22s ease both}
.modal-mask:not([hidden])>.auth-modal,
.modal-mask:not([hidden])>.modal,
.modal-mask:not([hidden])>.modal-card{animation:modalPopIn .3s cubic-bezier(.16,1,.3,1) both}
@keyframes maskFadeIn{from{opacity:0}to{opacity:1}}
@keyframes modalPopIn{from{opacity:0;transform:translateY(16px) scale(.955)}to{opacity:1;transform:none}}
.auth-modal{position:relative;width:440px;max-width:100%;max-height:94vh;overflow:auto;border-radius:20px;padding:26px 30px 22px;
  background:linear-gradient(180deg,#141c2b 0%,#0d1420 100%);border:1px solid rgba(120,150,190,.2);box-shadow:0 30px 80px rgba(0,0,0,.6)}
.auth-close{position:absolute;top:14px;right:16px;width:32px;height:32px;border-radius:50%;border:none;background:transparent;color:#8aa0b6;font-size:20px;cursor:pointer;line-height:1}
.auth-close:hover{background:rgba(255,255,255,.06);color:#fff}
.auth-hero{display:flex;flex-direction:column;align-items:center;text-align:center;margin-bottom:14px}
.auth-logo{width:58px;height:58px;border-radius:17px;font-size:27px;margin-bottom:12px}
.auth-welcome{margin:0 0 12px;font-size:23px;font-weight:800;color:#fff;letter-spacing:.02em}
.auth-giftline{display:inline-flex;align-items:center;gap:7px;color:#f6d48a;font-size:15px;font-weight:700}
.auth-giftline .auth-gift-ico{font-size:16px;filter:drop-shadow(0 0 6px rgba(240,198,110,.7))}
.auth-perks{display:flex;gap:9px;margin:12px 0 7px}
.auth-perks span{padding:5px 12px;border-radius:999px;font-size:12px;color:#9fe9f5;border:1px solid rgba(34,211,238,.35);background:rgba(34,211,238,.08)}
.auth-gift-tip{margin:0;font-size:11.5px;color:#7a8da3}
.auth-tabs{display:flex;gap:4px;margin:6px 0 16px;border-bottom:1px solid rgba(120,150,190,.16)}
.auth-tabs button{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:10px 4px;background:none;border:none;cursor:pointer;
  font-size:13.5px;color:#8aa0b6;border-bottom:2px solid transparent;margin-bottom:-1px;transition:color .18s,border-color .18s}
.auth-tabs button i{font-style:normal;font-size:13px}
.auth-tabs button.active{color:#22d3ee;border-bottom-color:#22d3ee;font-weight:700}
.auth-pane{display:none;flex-direction:column;gap:13px}
.auth-pane.active{display:flex}
.auth-field{display:flex;flex-direction:column;gap:6px}
.auth-field>span{font-size:12.5px;color:#a9bccd}
.auth-field input{height:46px;border-radius:11px;padding:0 14px;font-size:14px;color:#eaf2fb;outline:none;
  background:rgba(255,255,255,.035);border:1px solid rgba(120,150,190,.2);transition:border-color .18s,box-shadow .18s}
.auth-field input::placeholder{color:#5f7288}
.auth-field input:focus{border-color:rgba(34,211,238,.6);box-shadow:0 0 0 3px rgba(34,211,238,.12)}
.auth-code-row{display:flex;gap:10px;align-items:flex-end}
.auth-code-row .auth-field{flex:1}
.auth-sendcode{height:46px;padding:0 14px;border-radius:11px;white-space:nowrap;cursor:pointer;font-size:12.5px;font-weight:600;color:#22d3ee;
  background:rgba(34,211,238,.08);border:1px solid rgba(34,211,238,.35)}
.auth-sendcode:disabled{color:#7a8da3;border-color:rgba(120,150,190,.2);background:rgba(255,255,255,.03);cursor:default}
.captcha-row{display:flex;gap:10px;align-items:center}
.captcha-row input{flex:1;height:46px;border-radius:11px;padding:0 14px;font-size:14px;color:#eaf2fb;outline:none;background:rgba(255,255,255,.035);border:1px solid rgba(120,150,190,.2)}
.captcha-canvas{border-radius:10px;border:1px solid rgba(120,150,190,.25);cursor:pointer;flex:0 0 auto}
.auth-submit{height:48px;border:none;border-radius:12px;margin-top:2px;cursor:pointer;font-size:15.5px;font-weight:800;color:#04121a;
  background:linear-gradient(135deg,#22d3ee,#0ea5b7);box-shadow:0 10px 26px rgba(34,211,238,.3);transition:transform .15s,box-shadow .15s}
.auth-submit:hover{transform:translateY(-1px);box-shadow:0 14px 32px rgba(34,211,238,.42)}
.auth-alt{margin:2px 0 0;text-align:center;font-size:12.5px;color:#8aa0b6}
.auth-alt a{color:#22d3ee;cursor:pointer;text-decoration:none}
.auth-alt-sep{margin:0 8px;color:#3a4a5e}
.auth-oauth{display:flex;align-items:center;gap:12px;margin-top:16px;justify-content:center}
.auth-oauth span{font-size:12px;color:#7a8da3}
.auth-oauth>div{display:flex;gap:9px}
.oauth-btn{width:38px;height:38px;border-radius:50%;border:1px solid rgba(120,150,190,.25);background:rgba(255,255,255,.04);color:#cfe0ee;cursor:pointer;font-size:12px}
.oauth-btn:hover{border-color:rgba(34,211,238,.5);color:#22d3ee}
.auth-agree{display:flex;align-items:flex-start;gap:7px;margin:14px 0 4px;font-size:12px;color:#8aa0b6;line-height:1.5}
.auth-agree input{margin-top:2px;accent-color:#22d3ee}
.auth-agree a{color:#5fd9ec;text-decoration:none}
.auth-error{margin:6px 0 0;min-height:16px;font-size:12.5px;color:#f87171;text-align:center}
html[data-theme=light] .auth-modal{background:linear-gradient(180deg,#ffffff,#f4f8fd);border-color:#dbe4f0;box-shadow:0 30px 80px rgba(30,60,110,.22)}
html[data-theme=light] .auth-welcome{color:#16233a}
html[data-theme=light] .auth-field>span{color:#42566e}
html[data-theme=light] .auth-field input,html[data-theme=light] .captcha-row input{background:#f6f9fd;border-color:#dbe4f0;color:#16233a}
html[data-theme=light] .auth-tabs{border-bottom-color:#e2e9f2}
html[data-theme=light] .auth-close{color:#71849c}

/* ============== BRAND_BADGE 模型品牌徽章/类型标签 ============== */
.m-badge{display:inline-grid;place-items:center;border-radius:9px;overflow:hidden;flex:0 0 auto;width:34px;height:34px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08)}
.m-badge.mb-img img{width:78%;height:78%;object-fit:contain}
.m-badge.mb-letter{color:#fff;font-weight:800;font-size:15px;border:none;box-shadow:inset 0 0 8px rgba(255,255,255,.18)}
.m-type-tag{font-style:normal;font-size:10.5px;padding:2px 8px;border-radius:6px;font-weight:600;line-height:1.5;white-space:nowrap}
.mt-chat{color:#5fe3f5;background:rgba(34,211,238,.13);border:1px solid rgba(34,211,238,.3)}
.mt-image{color:#c4a6ff;background:rgba(168,132,252,.13);border:1px solid rgba(168,132,252,.3)}
.mt-video{color:#93c5fd;background:rgba(96,165,250,.13);border:1px solid rgba(96,165,250,.32)}
.mt-voice{color:#fdba74;background:rgba(251,146,60,.13);border:1px solid rgba(251,146,60,.32)}
.mt-agent{color:#6ee7b7;background:rgba(52,211,153,.13);border:1px solid rgba(52,211,153,.32)}
html[data-theme=light] .m-badge{background:#fff;border-color:#e2e9f2}
html[data-theme=light] .m-badge.mb-img{background:#1e293b;border-color:#334155}
html[data-theme=light] .m-badge.mb-img img{filter:brightness(1.3)}
/* ============== END BRAND_BADGE ============== */

/* ============== CHAT_HERO 对话中央大模型介绍 ============== */
#chatThread .ws-current-model{display:none}
.chat-hero{display:flex;flex-direction:column;align-items:center;text-align:center;gap:14px;min-height:52vh;padding:48px 24px 30px;animation:heroFade .45s ease both}
@keyframes heroFade{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.chat-hero.hero-hidden{display:none}
.ch-badge .m-badge{width:78px;height:78px;flex-basis:78px;border-radius:22px;box-shadow:0 0 34px rgba(34,211,238,.32),inset 0 0 16px rgba(99,102,241,.18)}
.ch-badge .m-badge.mb-img img{width:80%;height:80%}
.ch-badge .m-badge.mb-letter{font-size:36px;border-radius:22px}
.chat-hero h2{margin:2px 0 0;font-size:24px;font-weight:800;color:#fff;letter-spacing:.01em}
.ch-tags{display:flex;align-items:center;gap:10px}
.ch-vendor{font-size:12px;color:#8aa0b6}
.ch-intro{max-width:560px;margin:4px auto 0;padding:14px 18px;border-radius:14px;line-height:1.75;font-size:14px;color:#d3e0ee;
  background:rgba(255,255,255,.035);border:1px solid rgba(120,150,190,.18);box-shadow:0 10px 30px rgba(0,0,0,.25)}
html[data-theme=light] .chat-hero h2{color:#16233a}
html[data-theme=light] .ch-intro{background:#f6f9fd;border-color:#e2e9f2;color:#42566e}
/* ============== END CHAT_HERO ============== */

.mc-brand{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.mc-brand .m-badge{width:40px;height:40px;flex-basis:40px;border-radius:11px}

/* ============== AGENT_FX 智能体选中/图标特效 ============== */
.agent-item{position:relative;transition:transform .18s,background .18s,border-color .18s}
.agent-item::before{content:"";position:absolute;left:0;top:10px;bottom:10px;width:3px;border-radius:0 3px 3px 0;background:linear-gradient(180deg,#22d3ee,#818cf8);opacity:0;transition:opacity .18s}
.agent-item:hover{transform:translateX(3px);background:rgba(34,211,238,.07)}
.agent-item.active{background:linear-gradient(90deg,rgba(34,211,238,.14),rgba(99,102,241,.06));border-color:rgba(34,211,238,.4)}
.agent-item.active::before{opacity:1}
.agent-item .ai-ic{transition:transform .22s cubic-bezier(.2,.9,.3,1.4),box-shadow .2s;box-shadow:0 4px 12px rgba(0,0,0,.28)}
.agent-item:hover .ai-ic{transform:scale(1.08) rotate(-4deg)}
.agent-item.active .ai-ic{transform:scale(1.12);box-shadow:0 0 18px rgba(34,211,238,.55),0 6px 16px rgba(0,0,0,.35)}
.ai-cat-tag{font-style:normal;border-radius:6px;padding:1px 7px;font-size:10.5px;font-weight:600;border:1px solid transparent}
.ai-cat-tag.tag-text{color:#7dd3fc;background:rgba(56,189,248,.14);border-color:rgba(56,189,248,.3)}
.ai-cat-tag.tag-image{color:#f0abfc;background:rgba(244,114,182,.14);border-color:rgba(244,114,182,.3)}
.ai-cat-tag.tag-video{color:#fdba74;background:rgba(251,146,60,.14);border-color:rgba(251,146,60,.3)}
.ai-cat-tag.tag-tool{color:#5eead4;background:rgba(45,212,191,.14);border-color:rgba(45,212,191,.3)}
.stage-bigicon{position:relative;width:84px;height:84px;border-radius:24px;display:grid;place-items:center;font-size:40px;color:#fff;animation:bigPop .5s cubic-bezier(.2,.9,.3,1.4) both;box-shadow:0 12px 34px rgba(0,0,0,.4)}
.stage-bigicon .big-ring{position:absolute;inset:-9px;border-radius:28px;border:1.5px dashed rgba(34,211,238,.4);animation:ringSpin 9s linear infinite;pointer-events:none}
.stage-bigicon::after{content:"";position:absolute;inset:-4px;border-radius:26px;background:linear-gradient(135deg,rgba(34,211,238,.5),rgba(168,132,252,.5));z-index:-1;filter:blur(14px);opacity:.55;animation:bigGlow 2.6s ease-in-out infinite}
@keyframes bigPop{0%{opacity:0;transform:scale(.5) rotate(-12deg)}100%{opacity:1;transform:none}}
@keyframes ringSpin{to{transform:rotate(360deg)}}
@keyframes bigGlow{0%,100%{opacity:.4}50%{opacity:.75}}
.stage-hero{animation:stageFade .45s ease both}
@keyframes stageFade{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.stage-bigicon,.stage-bigicon .big-ring,.stage-bigicon::after,.stage-hero{animation:none}}
/* ============== END AGENT_FX ============== */

/* ============================================================
   v2.2 增强：头像系统 / 视频参数条 / 灵感详情 / 管理后台 / 动画
   ============================================================ */

/* ---------- 随机头像系统 ---------- */
.avatar-wrap{position:relative;display:inline-block}
.avatar-circle{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;font-weight:800;font-size:16px;color:#fff;cursor:pointer;position:relative;overflow:hidden;border:2px solid rgba(255,255,255,.15);transition:transform .2s,box-shadow .2s}
.avatar-circle:hover{transform:scale(1.06);box-shadow:0 0 16px rgba(34,211,238,.4)}
.avatar-circle.avatar-animated::before{content:"";position:absolute;inset:-2px;border-radius:50%;background:conic-gradient(from 0deg,#22d3ee,#818cf8,#c084fc,#22d3ee);animation:avatarSpin 3s linear infinite;z-index:-1}
.avatar-circle.avatar-animated::after{content:"";position:absolute;inset:2px;border-radius:50%;background:inherit;z-index:0}
.avatar-circle.avatar-animated span{position:relative;z-index:1}
@keyframes avatarSpin{to{transform:rotate(360deg)}}
.avatar-picker{position:absolute;bottom:calc(100% + 10px);left:50%;transform:translateX(-50%);background:var(--bg-panel);border:1px solid var(--border-strong);border-radius:14px;padding:14px;box-shadow:0 12px 40px rgba(0,0,0,.5);z-index:1000;min-width:240px;display:none}
.avatar-picker.show{display:block;animation:popIn .2s ease}
@keyframes popIn{from{opacity:0;transform:translateX(-50%) translateY(6px)}to{opacity:1;transform:translateX(-50%) translateY(0)}}
.avatar-picker h4{margin:0 0 10px;font-size:13px;color:var(--text-secondary)}
.avatar-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}
.avatar-option{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;font-weight:700;font-size:14px;color:#fff;cursor:pointer;border:2px solid transparent;transition:all .15s}
.avatar-option:hover{transform:scale(1.12);border-color:rgba(34,211,238,.6)}
.avatar-option.selected{border-color:#22d3ee;box-shadow:0 0 10px rgba(34,211,238,.5)}
.avatar-upload-btn{margin-top:10px;width:100%;height:34px;border-radius:8px;background:rgba(34,211,238,.1);border:1px solid rgba(34,211,238,.3);color:#22d3ee;font-size:12px;cursor:pointer}
.avatar-upload-btn:hover{background:rgba(34,211,238,.18)}

/* ---------- 登录密码错误震动 ---------- */
.auth-shake{animation:shake .4s ease}
@keyframes shake{0%,100%{transform:translateX(0)}20%{transform:translateX(-8px)}40%{transform:translateX(8px)}60%{transform:translateX(-5px)}80%{transform:translateX(5px)}}
.auth-field input.input-error{border-color:#ef4444 !important;box-shadow:0 0 0 3px rgba(239,68,68,.15) !important;animation:inputPulse 1s ease}
@keyframes inputPulse{0%,100%{box-shadow:0 0 0 3px rgba(239,68,68,.15)}50%{box-shadow:0 0 0 5px rgba(239,68,68,.25)}}

/* ---------- 工作台视频参数控制条（对齐参考站） ---------- */
.composer-params{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:8px 12px;border-top:1px solid var(--border);background:rgba(0,0,0,.15)}
.param-chip{display:flex;align-items:center;gap:5px;height:32px;padding:0 10px;border-radius:8px;background:rgba(255,255,255,.04);border:1px solid var(--border);cursor:pointer;font-size:12.5px;color:var(--text-secondary);transition:all .15s;white-space:nowrap;user-select:none}
.param-chip:hover{background:rgba(255,255,255,.08);border-color:rgba(34,211,238,.3);color:var(--text-primary)}
.param-chip.param-active{background:rgba(34,211,238,.12);border-color:rgba(34,211,238,.4);color:#22d3ee}
.param-chip .param-ico{font-size:13px;opacity:.8}
.param-chip .param-val{font-weight:600;color:var(--text-primary)}
.param-chip select{background:transparent;border:none;color:inherit;font-size:12px;outline:none;cursor:pointer;appearance:none}
.param-chip select option{background:var(--bg-panel);color:var(--text-primary)}
.param-dropdown{position:relative}
.param-dropdown-menu{position:absolute;bottom:calc(100% + 6px);left:0;background:var(--bg-panel);border:1px solid var(--border-strong);border-radius:10px;padding:6px;box-shadow:0 10px 30px rgba(0,0,0,.5);z-index:100;min-width:140px;display:none}
.param-dropdown-menu.show{display:block;animation:popIn .15s ease}
.param-dropdown-menu button{display:block;width:100%;text-align:left;padding:7px 10px;border-radius:6px;background:none;border:none;color:var(--text-secondary);font-size:12.5px;cursor:pointer}
.param-dropdown-menu button:hover{background:rgba(34,211,238,.1);color:#22d3ee}
.param-dropdown-menu button.selected{color:#22d3ee;font-weight:600}

/* 模型头像选择器（输入框上方） */
.model-avatar-bar{display:flex;align-items:center;gap:6px;padding:6px 12px 0;overflow-x:auto;scrollbar-width:none}
.model-avatar-bar::-webkit-scrollbar{display:none}
.model-avatar-item{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;font-size:14px;flex:0 0 auto;cursor:pointer;border:2px solid transparent;transition:all .15s;background:rgba(255,255,255,.05)}
.model-avatar-item:hover{transform:scale(1.1)}
.model-avatar-item.active{border-color:#22d3ee;box-shadow:0 0 10px rgba(34,211,238,.4)}
.model-avatar-add{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;flex:0 0 auto;cursor:pointer;border:1px dashed var(--border-strong);color:var(--text-muted);font-size:18px;background:transparent}
.model-avatar-add:hover{border-color:#22d3ee;color:#22d3ee}

/* 首帧上传区 */
.first-frame-upload{display:flex;align-items:center;gap:8px;padding:0 12px}
.first-frame-box{width:52px;height:64px;border-radius:8px;border:1.5px dashed rgba(255,255,255,.2);display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;color:var(--text-muted);font-size:10px;gap:2px;transition:all .15s;flex:0 0 auto;background:rgba(255,255,255,.02)}
.first-frame-box:hover{border-color:rgba(34,211,238,.5);color:#22d3ee;background:rgba(34,211,238,.05)}
.first-frame-box .ff-plus{font-size:18px;line-height:1}
.first-frame-box.has-image{border-style:solid;border-color:rgba(34,211,238,.4);padding:0}
.first-frame-box.has-image img{width:100%;height:100%;object-fit:cover;border-radius:6px}

/* 预计费用显示 */
.cost-estimate{display:flex;align-items:center;gap:4px;font-size:12px;color:var(--text-muted);margin-left:auto;padding:0 4px}
.cost-estimate .cost-val{color:#fbbf24;font-weight:700}
.cost-estimate .cost-info{cursor:help;opacity:.6}

/* ---------- 灵感广场详情页 ---------- */
.inspiration-detail-mask{position:fixed;inset:0;background:rgba(0,0,0,.75);backdrop-filter:blur(8px);z-index:2000;display:none;align-items:center;justify-content:center;padding:20px}
.inspiration-detail-mask.show{display:flex;animation:fadeIn .25s ease}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
.inspiration-detail{background:var(--bg-panel);border:1px solid var(--border-strong);border-radius:18px;max-width:960px;width:100%;max-height:90vh;overflow:hidden;display:flex;animation:detailPop .3s cubic-bezier(.2,.9,.3,1.2)}
@keyframes detailPop{from{opacity:0;transform:scale(.92) translateY(20px)}to{opacity:1;transform:none}}
.detail-media{flex:1;min-width:0;background:#000;display:flex;align-items:center;justify-content:center;position:relative}
.detail-media img{max-width:100%;max-height:90vh;object-fit:contain}
.detail-media.detail-ph{background:
  radial-gradient(120% 90% at 20% 0%,hsla(var(--ph,200) 90% 70%/.35),transparent 60%),
  radial-gradient(120% 120% at 100% 100%,hsla(calc(var(--ph,200) + 46) 90% 60%/.25),transparent 55%),
  linear-gradient(150deg,hsl(var(--ph,200) 60% 38%),hsl(calc(var(--ph,200) + 46) 66% 22%))}
.detail-ph-ic{font-size:96px;filter:drop-shadow(0 6px 20px rgba(0,0,0,.4));position:relative}
.detail-info{width:340px;flex:0 0 340px;display:flex;flex-direction:column;border-left:1px solid var(--border)}
.detail-head{padding:16px 18px;border-bottom:1px solid var(--border);display:flex;align-items:center;gap:10px}
.detail-head .avatar-circle{width:36px;height:36px;font-size:14px}
.detail-head .detail-user{flex:1;min-width:0}
.detail-head .detail-user strong{display:block;font-size:14px;color:var(--text-primary)}
.detail-head .detail-user span{font-size:11.5px;color:var(--text-muted)}
.detail-close{width:32px;height:32px;border-radius:50%;background:rgba(255,255,255,.06);border:none;color:var(--text-secondary);font-size:18px;cursor:pointer;display:grid;place-items:center}
.detail-close:hover{background:rgba(255,255,255,.12);color:#fff}
.detail-body{flex:1;overflow-y:auto;padding:16px 18px}
.detail-prompt{font-size:13.5px;line-height:1.7;color:var(--text-secondary);margin-bottom:14px;white-space:pre-wrap}
.detail-tags{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:14px}
.detail-tag{padding:3px 10px;border-radius:20px;font-size:11.5px;background:rgba(34,211,238,.1);color:#5fe3f5;border:1px solid rgba(34,211,238,.25)}
.detail-meta{display:flex;gap:16px;padding:12px 18px;border-top:1px solid var(--border);font-size:12px;color:var(--text-muted)}
.detail-meta span{display:flex;align-items:center;gap:4px}
.detail-actions{padding:14px 18px;border-top:1px solid var(--border);display:flex;gap:8px}
.detail-actions button{flex:1;height:38px;border-radius:10px;font-size:13px;font-weight:600;cursor:pointer;border:none}
.btn-use-prompt{background:linear-gradient(135deg,#22d3ee,#0ea5b7);color:#04121a}
.btn-use-prompt:hover{box-shadow:0 6px 20px rgba(34,211,238,.35)}
.btn-fav-detail{background:rgba(255,255,255,.06);color:var(--text-secondary);border:1px solid var(--border) !important}
.btn-fav-detail:hover{background:rgba(255,255,255,.1)}
.btn-fav-detail.faved{color:#f87171;border-color:rgba(248,113,113,.4) !important}

/* ---------- 管理后台增强 ---------- */
.admin-layout{display:flex;min-height:100vh}
.admin-sidebar{width:220px;flex:0 0 220px;background:var(--bg-page-2);border-right:1px solid var(--border);display:flex;flex-direction:column;position:fixed;top:0;bottom:0;left:0;z-index:10}
.admin-sidebar-brand{padding:18px 16px;display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--border)}
.admin-sidebar-brand .brand-logo{width:36px;height:36px;border-radius:10px}
.admin-sidebar-brand strong{font-size:15px;color:var(--text-primary)}
.admin-sidebar-brand small{font-size:10.5px;color:var(--text-muted);display:block}
.admin-nav{flex:1;overflow-y:auto;padding:10px 8px}
.admin-nav-group{margin-bottom:6px}
.admin-nav-label{padding:8px 12px 4px;font-size:10.5px;color:var(--text-muted);text-transform:uppercase;letter-spacing:.08em;font-weight:600}
.admin-nav-item{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:9px;cursor:pointer;color:var(--text-secondary);font-size:13px;transition:all .15s;margin-bottom:2px}
.admin-nav-item:hover{background:rgba(255,255,255,.05);color:var(--text-primary)}
.admin-nav-item.active{background:rgba(34,211,238,.12);color:#22d3ee;font-weight:600}
.admin-nav-item .nav-ico{width:18px;text-align:center;font-size:14px}
.admin-nav-item .nav-badge{margin-left:auto;background:#ef4444;color:#fff;font-size:10px;padding:1px 6px;border-radius:10px;font-weight:700}
.admin-main{flex:1;margin-left:220px;min-width:0}
.admin-topbar{height:56px;background:var(--bg-page);border-bottom:1px solid var(--border);display:flex;align-items:center;padding:0 24px;position:sticky;top:0;z-index:5}
.admin-topbar h1{font-size:17px;font-weight:700;color:var(--text-primary);margin:0}
.admin-topbar .topbar-right{margin-left:auto;display:flex;align-items:center;gap:14px}
.admin-content{padding:24px}
.stat-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;margin-bottom:24px}
.stat-card{background:var(--bg-card);border:1px solid var(--border);border-radius:14px;padding:18px;position:relative;overflow:hidden}
.stat-card::before{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,#22d3ee,#818cf8)}
.stat-card .stat-label{font-size:12px;color:var(--text-muted);margin-bottom:8px}
.stat-card .stat-value{font-size:28px;font-weight:800;color:var(--text-primary)}
.stat-card .stat-change{font-size:11.5px;margin-top:6px}
.stat-change.up{color:#4ade80}
.stat-change.down{color:#f87171}
.admin-table-wrap{background:var(--bg-card);border:1px solid var(--border);border-radius:14px;overflow:hidden}
.admin-table{width:100%;border-collapse:collapse}
.admin-table th{padding:12px 16px;text-align:left;font-size:12px;color:var(--text-muted);font-weight:600;border-bottom:1px solid var(--border);background:rgba(255,255,255,.02)}
.admin-table td{padding:12px 16px;font-size:13px;color:var(--text-secondary);border-bottom:1px solid var(--border)}
.admin-table tr:hover td{background:rgba(255,255,255,.02)}
.admin-table .action-btn{padding:4px 10px;border-radius:6px;font-size:11.5px;cursor:pointer;border:none;margin-right:6px}
.action-btn.edit{background:rgba(34,211,238,.12);color:#22d3ee}
.action-btn.delete{background:rgba(239,68,68,.12);color:#f87171}
.action-btn.view{background:rgba(96,165,250,.12);color:#60a5fa}
.status-dot{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:6px}
.status-dot.online{background:#4ade80;box-shadow:0 0 6px rgba(74,222,128,.6)}
.status-dot.offline{background:#6b7280}
.status-dot.warning{background:#fbbf24}

/* API密钥管理 */
.api-key-row{display:flex;align-items:center;gap:12px;padding:12px 16px;background:var(--bg-card);border:1px solid var(--border);border-radius:10px;margin-bottom:8px}
.api-key-row .key-name{font-weight:600;font-size:13px;color:var(--text-primary);min-width:140px}
.api-key-row .key-status{font-size:11px;padding:2px 8px;border-radius:6px}
.key-status.connected{background:rgba(74,222,128,.12);color:#4ade80}
.key-status.disconnected{background:rgba(107,114,128,.2);color:#9ca3af}
.api-key-row input{flex:1;height:34px;background:rgba(0,0,0,.2);border:1px solid var(--border);border-radius:7px;padding:0 10px;font-size:12px;color:var(--text-secondary);font-family:var(--font-mono)}
.api-key-row input:focus{border-color:rgba(34,211,238,.4);outline:none}
.api-key-row .test-btn{height:34px;padding:0 14px;border-radius:7px;background:rgba(34,211,238,.12);border:1px solid rgba(34,211,238,.3);color:#22d3ee;font-size:12px;cursor:pointer;white-space:nowrap}
.api-key-row .test-btn:hover{background:rgba(34,211,238,.2)}
.api-key-row .save-btn{height:34px;padding:0 14px;border-radius:7px;background:linear-gradient(135deg,#22d3ee,#0ea5b7);border:none;color:#04121a;font-size:12px;font-weight:700;cursor:pointer}

/* 充值套餐管理 */
.package-card{background:var(--bg-card);border:1px solid var(--border);border-radius:14px;padding:18px;position:relative}
.package-card.hot{border-color:rgba(34,211,238,.4);box-shadow:0 0 20px rgba(34,211,238,.1)}
.package-card .hot-tag{position:absolute;top:-1px;right:16px;background:linear-gradient(135deg,#22d3ee,#818cf8);color:#04121a;font-size:10.5px;font-weight:700;padding:3px 10px;border-radius:0 0 8px 8px}
.package-card .pkg-price{font-size:32px;font-weight:800;color:var(--text-primary)}
.package-card .pkg-price small{font-size:14px;color:var(--text-muted);font-weight:400}
.package-card .pkg-points{font-size:13px;color:#22d3ee;margin:6px 0 12px}
.package-card .pkg-features{list-style:none;padding:0;margin:0 0 14px}
.package-card .pkg-features li{font-size:12.5px;color:var(--text-secondary);padding:4px 0;display:flex;align-items:center;gap:6px}
.package-card .pkg-features li::before{content:"✓";color:#4ade80;font-weight:700}

/* ---------- 首页增强动画 ---------- */
.hero-floating-avatars{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.floating-avatar{position:absolute;border-radius:50%;display:grid;place-items:center;font-weight:800;color:#fff;opacity:.7;animation:floatAvatar 8s ease-in-out infinite}
@keyframes floatAvatar{0%,100%{transform:translateY(0) rotate(0deg)}50%{transform:translateY(-20px) rotate(5deg)}}
.hero-model-orbit{position:absolute;border-radius:50%;border:1px solid rgba(34,211,238,.15);animation:orbitRotate 20s linear infinite}
@keyframes orbitRotate{to{transform:rotate(360deg)}}
.hero-model-orbit .orbit-model{position:absolute;width:44px;height:44px;border-radius:12px;background:var(--bg-card);border:1px solid var(--border-strong);display:grid;place-items:center;font-size:18px;box-shadow:0 4px 16px rgba(0,0,0,.4);animation:orbitCounter 20s linear infinite}
@keyframes orbitCounter{to{transform:rotate(-360deg)}}

/* 打字机光标 */
.hero-rotating::after{content:"|";display:inline-block;margin-left:2px;color:#22d3ee;animation:blink 1s step-end infinite;font-weight:300}
@keyframes blink{0%,100%{opacity:1}50%{opacity:0}}

/* ---------- 响应式 ---------- */
@media (max-width:768px){
  .inspiration-detail{flex-direction:column;max-height:95vh}
  .detail-info{width:100%;flex:0 0 auto;max-height:50vh}
  .detail-media{max-height:45vh}
  .admin-sidebar{transform:translateX(-100%);transition:transform .25s}
  .admin-sidebar.open{transform:translateX(0)}
  .admin-main{margin-left:0}
  .composer-params{gap:6px;padding:6px 8px}
  .param-chip{height:28px;padding:0 8px;font-size:11px}
}

/* ===== item6/12：模型/智能体图标动态科技感（内部扫光+呼吸微光，不旋转内部logo） ===== */
.m-badge,.ag-badge{position:relative;isolation:isolate;}
.m-badge::before,.ag-badge::before{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;
  background:linear-gradient(115deg,transparent 30%,rgba(255,255,255,.34) 48%,rgba(255,255,255,.05) 52%,transparent 70%);
  transform:translateX(-130%);animation:mbSheen 5.2s ease-in-out infinite;mix-blend-mode:screen;}
@keyframes mbSheen{0%,62%{transform:translateX(-130%);}82%,100%{transform:translateX(130%);}}
.m-badge{animation:mbGlow 4.6s ease-in-out infinite;}
@keyframes mbGlow{0%,100%{box-shadow:0 0 0 rgba(34,211,238,0);}50%{box-shadow:0 0 12px rgba(34,211,238,.28);}}
.ws-model:hover .m-badge,.agent-item:hover .m-badge,.ag-badge:hover{transform:translateY(-2px) scale(1.06);transition:transform .18s ease;}
/* 大尺寸主图标加缓慢悬浮 */
.ch-badge .m-badge{animation:mbFloat 5.5s ease-in-out infinite,mbGlow 4.6s ease-in-out infinite;}
@keyframes mbFloat{0%,100%{transform:translateY(0);}50%{transform:translateY(-4px);}}
@media (prefers-reduced-motion:reduce){.m-badge,.m-badge::before,.ag-badge::before,.ch-badge .m-badge{animation:none;}}
html[data-theme=light] .m-badge{animation-name:mbGlowLight;}
/* 登录实时校验：图形算式绿勾 + 按钮置灰/高亮（1:1 参考站） */
.captcha-row{position:relative;}
.captcha-ok{display:none;width:22px;height:22px;border-radius:50%;background:#22c55e;color:#fff;align-items:center;justify-content:center;font-style:normal;font-size:13px;font-weight:800;align-self:center;}
.captcha-row.captcha-good .captcha-ok{display:inline-flex;}
.captcha-row input.input-good{border-color:#22c55e !important;box-shadow:0 0 0 3px rgba(34,197,94,.15);}
.auth-submit:disabled{background:rgba(120,140,170,.28)!important;color:rgba(255,255,255,.55)!important;box-shadow:none!important;cursor:not-allowed;transform:none;}
.auth-pane.active .auth-submit:not(:disabled){background:linear-gradient(135deg,#22d3ee,#0ea5c4);color:#04121a;box-shadow:0 8px 24px rgba(34,211,238,.35);}
@keyframes mbGlowLight{0%,100%{box-shadow:0 1px 4px rgba(30,60,110,.08);}50%{box-shadow:0 4px 16px rgba(14,158,192,.28);}}

/* ============================================================
   充值弹窗：支付方式切换 + 收款码 (payment-qr-fix 20260915)
   ============================================================ */
.rc-payway {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0 12px;
}
.rc-payway-btn {
  padding: 9px 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.rc-payway-btn:hover { border-color: rgba(34, 211, 238, 0.4); color: var(--text-primary); }
.rc-payway-btn.sel {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(34,211,238,.18), rgba(6,182,212,.10));
  color: var(--accent);
  box-shadow: 0 0 12px rgba(34,211,238,.22);
}
.rc-qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 4px 0 10px;
}
.rc-qr-wrap img {
  width: 240px;
  height: 240px;
  max-width: 100%;
  object-fit: contain;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.18);
  padding: 8px;
  cursor: zoom-in;
  box-shadow: 0 4px 18px rgba(0,0,0,.35);
}
.rc-qr-hint { font-size: 11.5px; color: var(--text-muted); }
.rc-remark {
  margin: 4px 0 8px !important;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(245,196,81,.10);
  border: 1px dashed rgba(245,196,81,.45);
  color: #f5c451 !important;
  font-size: 12.5px !important;
  text-align: center;
  line-height: 1.6;
}
.rc-remark b { color: #ffe08a; font-weight: 800; letter-spacing: .5px; }
.rc-fixed-hint {
  margin: 0 0 8px !important;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 12.5px !important;
  text-align: center;
  line-height: 1.6;
}
.rc-fixed-hint.fixed {
  background: rgba(52,211,153,.10);
  border: 1px solid rgba(52,211,153,.45);
  color: #34d399 !important;
}
.rc-fixed-hint.fallback {
  background: rgba(251,146,60,.10);
  border: 1px dashed rgba(251,146,60,.5);
  color: #fbbf24 !important;
}
.rc-fixed-hint:empty { display: none; }
.rc-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(5,8,16,.92);
  backdrop-filter: blur(4px);
  cursor: zoom-out;
}
.rc-lightbox.hidden { display: none; }
.rc-lightbox img {
  width: min(78vw, 480px);
  height: min(78vw, 480px);
  object-fit: contain;
  background: #fff;
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.rc-lightbox-tip { color: #c9d4e3; font-size: 13px; }
@media (max-width: 640px) {
  .rc-qr-wrap img { width: 210px; height: 210px; }
  .rc-lightbox img { width: min(86vw, 380px); height: min(86vw, 380px); }
}
/* 点2：流式聊天模型首字到达前的精致等待态（替代超长空黑框） */
.chat-bubble.assistant.cb-stream-waiting p{background:transparent;border-color:transparent;box-shadow:none;min-height:0;padding:4px 2px;}
.chat-bubble.assistant.cb-stream-waiting p::before{content:none !important;}
.chat-bubble.assistant.cb-stream-waiting p::after{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--accent,#22d3ee);animation:cbWaitDot 1.1s ease-in-out infinite;}
@keyframes cbWaitDot{0%,60%,100%{opacity:.25;transform:scale(.8);}30%{opacity:1;transform:scale(1.1);}}
.chat-bubble.assistant.cb-stream-waiting .ma-slot,
.chat-bubble.assistant.cb-stream-waiting .cb-bottom{visibility:hidden;}

/* 任务二：注册/登录双因素 OTP 附加区 */
.auth-otp-extra{margin:8px 0;padding:10px;border:1px dashed rgba(120,160,200,.35);border-radius:10px;background:rgba(20,32,48,.35);}
.auth-otp-tip{font-size:12px;color:#7dd3fc;margin:6px 0 10px;line-height:1.5;}
.auth-otp-extra .auth-field{margin-bottom:8px;}


/* ===== 充值模态（对齐参考站 8 档金额，rcx- 前缀） ===== */
.rcx-modal{position:relative;width:min(560px,92vw);max-height:88vh;overflow-y:auto;background:#141418;border:1px solid rgba(255,255,255,.1);border-radius:18px;padding:24px 22px 22px;box-shadow:0 24px 80px rgba(0,0,0,.6);color:#e7ecf3;box-sizing:border-box;}
.rcx-close{position:absolute;top:14px;right:14px;width:32px;height:32px;border-radius:9px;border:none;background:rgba(255,255,255,.06);color:#9aa7b8;font-size:20px;line-height:1;cursor:pointer;}
.rcx-close:hover{background:rgba(255,255,255,.12);color:#fff;}
.rcx-head{text-align:left;margin-bottom:14px;}
.rcx-title{margin:0;font-size:21px;font-weight:800;letter-spacing:.5px;}
.rcx-sub{margin:6px 0 0;font-size:13px;color:#8b96a8;}
.rcx-tabs{display:flex;gap:6px;justify-content:flex-start;background:transparent;border-bottom:1px solid rgba(255,255,255,.08);border-radius:0;padding:0 0 2px;margin:0 0 14px;}
.rcx-tab{border:none;background:transparent;color:#9aa7b8;font-size:14px;font-weight:600;padding:8px 4px;margin-right:22px;border-radius:0;cursor:pointer;border-bottom:2px solid transparent;}
.rcx-tab.sel{background:transparent;color:#22c55e;border-bottom-color:#22c55e;}
.rcx-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:16px;}
.rcx-card{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-width:0;padding:16px 6px 13px;background:#1b1b21;border:1px solid rgba(255,255,255,.09);border-radius:13px;cursor:pointer;text-align:center;transition:all .15s ease;}
.rcx-card:hover{border-color:rgba(34,211,238,.4);transform:translateY(-2px);}
.rcx-card.sel{border-color:#22d3ee;background:linear-gradient(180deg,rgba(34,211,238,.16),rgba(34,211,238,.05));box-shadow:0 0 0 1px rgba(34,211,238,.4),0 6px 18px rgba(34,211,238,.18);}
.rcx-card-amount{font-size:20px;font-weight:800;color:#fff;line-height:1;}
.rcx-card-credit{font-size:11.5px;color:#fbbf24;font-weight:600;}
.rcx-badge{position:absolute;top:-8px;right:-6px;font-size:10px;font-weight:700;color:#fff;background:linear-gradient(135deg,#a855f7,#7c3aed);padding:3px 7px;border-radius:9px 9px 9px 2px;box-shadow:0 2px 8px rgba(168,85,247,.45);white-space:nowrap;}
.rcx-pay{margin:4px 0 16px;}
.rcx-pay-label{font-size:13px;color:#cdd6e3;margin:0 0 10px;font-weight:600;}
.rcx-pay-radios{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.rcx-pay-radio{display:flex;align-items:center;justify-content:flex-start;gap:10px;padding:13px 14px;border-radius:12px;border:1px solid rgba(255,255,255,.1);background:#1b1b21;color:#cdd6e3;font-size:14px;font-weight:600;cursor:pointer;}
.rcx-pay-radio::after{content:"";margin-left:auto;width:16px;height:16px;border-radius:50%;border:2px solid rgba(255,255,255,.25);box-sizing:border-box;}
.rcx-pay-radio.sel{border-color:#22c55e;background:rgba(34,197,94,.08);color:#fff;}
.rcx-pay-radio.sel::after{border-color:#22c55e;background:radial-gradient(circle,#22c55e 0 42%,transparent 46%);}
.rcx-pay-ico{width:22px;height:22px;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;color:#fff;font-size:13px;font-weight:800;}
.rcx-ico-wechat{background:#07c160;}
.rcx-ico-wechat::before{content:"微";}
.rcx-ico-alipay{background:#1677ff;}
.rcx-ico-alipay::before{content:"支";}
.rcx-actions{display:flex;gap:12px;}
.rcx-cancel{flex:1;height:46px;border-radius:12px;border:1px solid rgba(255,255,255,.16);background:transparent;color:#cdd6e3;font-size:15px;font-weight:700;cursor:pointer;}
.rcx-cancel:hover{background:rgba(255,255,255,.06);}
.rcx-confirm{flex:1.6;height:46px;border-radius:12px;border:none;background:linear-gradient(135deg,#22c55e,#16a34a);color:#fff;font-size:15px;font-weight:800;cursor:pointer;box-shadow:0 6px 18px rgba(34,197,94,.35);}
.rcx-confirm:hover{filter:brightness(1.08);}
.rcx-confirm:disabled{opacity:.6;cursor:not-allowed;}
.rcx-card-pane{display:flex;flex-direction:column;gap:12px;}
.rcx-redeem-input{width:100%;box-sizing:border-box;height:46px;padding:0 14px;border-radius:12px;border:1px solid rgba(255,255,255,.12);background:#1b1b21;color:#fff;font-size:14px;outline:none;}
.rcx-redeem-input:focus{border-color:#22d3ee;}
.rcx-card-hint{font-size:12px;color:#8b96a8;line-height:1.7;margin:0;text-align:center;}
.rcx-back{margin-top:10px;width:100%;height:42px;border-radius:11px;border:1px solid rgba(255,255,255,.14);background:transparent;color:#9fb3c8;font-size:13.5px;cursor:pointer;}
.rcx-back:hover{background:rgba(255,255,255,.06);}
#rechargePayBtn{width:100%;height:46px;border-radius:12px;border:none;background:linear-gradient(135deg,#22c55e,#16a34a);color:#fff;font-size:15px;font-weight:800;cursor:pointer;box-shadow:0 6px 18px rgba(34,197,94,.35);margin-top:6px;}
#rechargePayBtn:hover{filter:brightness(1.08);}
#rechargePayBtn:disabled{opacity:.6;cursor:not-allowed;}
@media (max-width:520px){
  .rcx-modal{padding:20px 14px;}
  .rcx-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .rcx-card-amount{font-size:18px;}
}