/* ============================================================
   AOIDEA 深色 LimaxAI 风格（v4 定稿）
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #050508;
  --bg2: #0a0a14;
  --card: rgba(255,255,255,.04);
  --card-hover: rgba(255,255,255,.08);
  --border: rgba(255,255,255,.1);
  --grad: linear-gradient(135deg, #9C27B0, #2196F3);
  --grad-text: linear-gradient(90deg, #fb923c, #f43f5e, #c084fc);
  --text: #fff;
  --text-dim: rgba(255,255,255,.6);
  --text-light: rgba(255,255,255,.4);
}

html { scroll-behavior: smooth; }
html, body { width: 100%; overflow-x: hidden; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img, video { max-width: 100%; display: block; }
section { width: 100%; display: block; }

.container {
  max-width: min(98%, 1800px);
  margin: 0 auto;
  padding: 0 clamp(12px, 2vw, 24px);
  width: 100%;
}

/* ============ 导航（半透明 + 模糊，透出光柱又不让内容重叠） ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 10, 15, 0.55);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav-inner {
  display: flex; align-items: center;
  height: 72px;
  gap: clamp(16px, 4vw, 40px);
  max-width: min(98%, 1800px); margin: 0 auto;
  padding: 0 clamp(12px, 2vw, 24px);
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-text { font-size: 19px; font-weight: 700; color: #fff; letter-spacing: 1px; }
.nav-links { display: flex; align-items: center; gap: clamp(16px, 3vw, 28px); flex: 1; }
.nav-links a {
  color: var(--text-dim); font-size: 14px; font-weight: 500;
  transition: color .2s; position: relative; padding: 6px 0;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 2px; background: var(--grad); border-radius: 2px;
}
.nav-auth { display: flex; gap: 12px; align-items: center; }
.nav-burger { display: none; background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; }

/* ============ 按钮 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; border: none; border-radius: 8px;
  font-size: 14px; font-weight: 500; cursor: pointer; transition: all .25s;
  font-family: inherit;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 4px 20px rgba(33,150,243,.25); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 30px rgba(33,150,243,.4); }
.btn-ghost { background: rgba(255,255,255,.05); color: #fff; border: 1px solid rgba(255,255,255,.15); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-lg { padding: 14px 32px; font-size: 15px; border-radius: 10px; }

/* ============ Hero（内容居中） ============ */
.hero {
  min-height: 92vh;
  display: flex; align-items: center; justify-content: center;
  padding: 130px 0 100px;
  position: relative;
  background: linear-gradient(180deg, #050508 0%, #0a0a14 100%);
}
.hero-container {
  max-width: min(98%, 1800px); margin: 0 auto;
  padding: 0 clamp(12px, 2vw, 24px);
  position: relative; z-index: 2;
  width: 100%;
  text-align: center;
}
.hero-content { max-width: 780px; margin: 0 auto; }
.hero-tag {
  display: inline-block;
  font-size: clamp(12px, 1.5vw, 14px);
  letter-spacing: 2px;
  color: var(--text-dim);
  border-bottom: 1px solid rgba(255,255,255,.25);
  padding-bottom: 8px;
  margin-bottom: 28px;
}
.hero-title {
  font-size: clamp(34px, 6.6vw, 76px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 24px;
  white-space: nowrap;
  max-width: 100%;
  overflow: visible;
}
.grad-text {
  background: var(--grad-text);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: gradient-shift 6s ease-in-out infinite;
}
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero-sub {
  font-size: clamp(14px, 1.8vw, 17px);
  line-height: 1.9;
  color: var(--text-dim);
  font-weight: 300;
  max-width: 660px;
  margin: 0 auto 40px;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; margin-bottom: 48px; flex-wrap: wrap; }
.hero-metrics {
  display: flex; gap: clamp(24px, 5vw, 56px);
  justify-content: center;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 28px;
}
.metric strong { display: block; font-size: clamp(26px, 4vw, 34px); font-weight: 600; color: #fff; margin-bottom: 4px; }
.metric span { font-size: 13px; color: var(--text-light); letter-spacing: 1px; }

/* ============ 烟雾（hero 4 团 + 底部 2 团） ============ */
.hero-smoke {
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  will-change: transform, opacity;
  animation: smoke-float 18s ease-in-out infinite;
}
.smoke-1 { background: radial-gradient(circle, rgba(33,150,243,.25) 0%, transparent 70%); top: -10%; left: -10%; }
.smoke-2 { background: radial-gradient(circle, rgba(156,39,176,.2) 0%, transparent 70%); top: 25%; right: -15%; animation-delay: -6s; }
.smoke-3 { background: radial-gradient(circle, rgba(99,102,241,.2) 0%, transparent 70%); bottom: -20%; left: 30%; animation-delay: -12s; }
.smoke-4 { background: radial-gradient(circle, rgba(244,63,94,.18) 0%, transparent 70%); top: 50%; right: 30%; animation-delay: -3s; }
@keyframes smoke-float {
  0%, 100% { transform: translate(0,0) scale(1); opacity: .5; }
  25% { transform: translate(60px,-40px) scale(1.1); opacity: .7; }
  50% { transform: translate(-30px,40px) scale(.95); opacity: .45; }
  75% { transform: translate(40px,20px) scale(1.05); opacity: .65; }
}

/* 作品区底部的烟雾（已移除，避免与 CTA 之间出现大空白） */

/* ============ 三大能力 ============ */
.cap-section {
  position: relative;        /* 让 #light-pillar-fade 绝对定位锚定在此 */
  background: #0a0a0f;      /* 与 hero 底部同色，无分界 */
  padding: 60px 0;
  border-top: none;         /* 去掉硬横线 */
}
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 3vw, 24px);
}
.cap-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(24px, 3vw, 32px);
  transition: all .3s;
  backdrop-filter: blur(10px);
}
.cap-card:hover {
  background: var(--card-hover);
  border-color: rgba(33,150,243,.4);
  transform: translateY(-4px);
}
.cap-ico {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.cap-ico svg { width: 26px; height: 26px; }
.ic1 { background: rgba(33,150,243,.15); color: #64b5f6; }
.ic2 { background: rgba(156,39,176,.15); color: #ce93d8; }
.ic3 { background: rgba(16,185,129,.15); color: #5eead4; }
.cap-card h3 { font-size: 19px; font-weight: 600; margin-bottom: 10px; }
.cap-card p { font-size: 14px; line-height: 1.8; color: var(--text-dim); margin-bottom: 16px; font-weight: 300; }
.cap-link { font-size: 14px; color: #64b5f6; font-weight: 500; }
.cap-link:hover { color: #90caf9; }

/* ============ 作品展示（多排网格，无滚动条） ============ */
.works-section {
  background: var(--bg2);
  padding: 60px 0 40px;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 2;
}
.works-head { text-align: center; margin-bottom: 40px; }
.works-head h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 700; margin-bottom: 8px; }
.works-head p { color: var(--text-dim); font-size: 15px; font-weight: 300; }
.cat-section { padding: 28px 0; }
.cat-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.cat-head h3 { font-size: 22px; font-weight: 600; }
.cat-empty { font-size: 13px; color: var(--text-light); }

/* 跑马灯横向滚动：上排向左，下排向右 */
.cw-marquee {
  overflow: hidden;
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw); /* 突破容器宽度限制，铺满整个视口 */
  /* 左右两端渐变遮罩，让卡片自然淡出，"抵满"边缘 */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 100px, #000 calc(100% - 100px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 100px, #000 calc(100% - 100px), transparent 100%);
  -webkit-mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}
/* 兼容旧浏览器：用伪元素做渐变背景层叠加 */
.cw-marquee::before,
.cw-marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 100px;
  pointer-events: none; z-index: 3;
}
.cw-marquee::before { left: 0; background: linear-gradient(to right, var(--bg2), transparent); }
.cw-marquee::after { right: 0; background: linear-gradient(to left, var(--bg2), transparent); }
.cw-track {
  display: flex;
  gap: 14px;
  width: max-content;
  will-change: transform;
}
.cw-marquee[data-dir="left"] .cw-track {
  animation: marquee-left 40s linear infinite;
}
.cw-marquee[data-dir="right"] .cw-track {
  animation: marquee-right 40s linear infinite;
}
/* 悬停暂停，方便查看 */
.cw-marquee:hover .cw-track { animation-play-state: paused; }
@keyframes marquee-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes marquee-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}
.cw-card {
  flex: 0 0 auto;
  width: 200px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all .3s;
  position: relative;
  aspect-ratio: 1 / 1;
}
.cw-card:hover {
  transform: translateY(-4px);
  border-color: rgba(33,150,243,.4);
  box-shadow: 0 12px 32px rgba(0,0,0,.4);
}
.cw-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cw-video-wrap { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; background: #0a0a14; }
.cw-video-wrap video { width: 100%; height: 100%; object-fit: cover; display: block; background: #0a0a14; }
.cw-play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(0,0,0,.55);
  border: 2px solid rgba(255,255,255,.7);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #fff;
  z-index: 2;
  pointer-events: none;
  transition: all .25s;
}
.cw-card:hover .cw-play { transform: translate(-50%, -50%) scale(1.1); background: rgba(0,0,0,.7); }

/* 空分类的占位 */
.cat-empty-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.cw-card.placeholder { opacity: .35; }
.cw-img-empty {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(33,150,243,.06), rgba(156,39,176,.06));
  border: 1px dashed rgba(255,255,255,.1);
}
.works-empty { text-align: center; color: var(--text-light); padding: 60px 0; }

/* ============ 模型能力展示 ============ */
.models-section {
  background: var(--bg);
  padding: 60px 0;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 2;
}
.models-head { text-align: center; margin-bottom: 32px; }
.models-head h2 { font-size: clamp(24px, 3.5vw, 32px); font-weight: 700; margin-bottom: 8px; }
.models-head p { color: var(--text-dim); font-size: 15px; font-weight: 300; }
.models-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  max-width: 900px;
  margin: 0 auto;
}
.model-chip {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 12px 26px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dim);
  transition: all .25s;
  backdrop-filter: blur(10px);
}
.model-chip:hover {
  color: #fff;
  border-color: rgba(33,150,243,.5);
  background: rgba(33,150,243,.1);
  transform: translateY(-2px);
}

/* ============ CTA（带底部蓝紫光晕） ============ */
.cta-section {
  padding: 100px 0;
  text-align: center;
  position: relative;
  z-index: 2;
  background: var(--bg);
  border-top: 1px solid var(--border);
  overflow: hidden;
}
.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 30% 50%, rgba(33,150,243,.2) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(156,39,176,.2) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}
.cta-section > .container { position: relative; z-index: 1; }
.cta-section h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 700; margin-bottom: 16px; }
.cta-section p { color: var(--text-dim); margin-bottom: 32px; font-weight: 300; }

/* ============ 页脚 ============ */
.footer { background: #08080c; border-top: 1px solid var(--border); padding: 28px 0; }
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  max-width: min(98%, 1800px);
  margin: 0 auto;
  padding: 0 clamp(12px, 2vw, 24px);
}
.footer-inner span { color: var(--text-light); font-size: 15px; }
.footer-sub { font-size: 14px; }

/* ============================================================
   响应式断点
   ============================================================ */
@media (max-width: 1024px) {
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .cw-card { width: 160px; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; background: #0a0a14;
    padding: 16px 24px; gap: 12px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-auth { display: none; }
  .nav-burger { display: block; }
  .cap-grid { grid-template-columns: 1fr; }
  .cw-card { width: 130px; }
  .hero { min-height: auto; padding: 110px 0 60px; }
}

@media (max-width: 480px) {
  .hero-metrics { gap: 20px; }
  .metric { flex: 0 0 calc(50% - 10px); }
  .hero-actions .btn { width: 100%; }
  .cw-card { width: 110px; }
}

/* ============================================================
   创作工作台（LimaxAI 风格：全局侧边栏 + 三栏布局）
   适用于 image/video/audio/mix/digital/voice/edit/package/chat
   ============================================================ */

/* 全局左侧边栏 */
.app-sidebar {
  position: fixed; left: 0; top: 0; bottom: 0; width: 220px;
  background: #06060b;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  z-index: 60;
  padding: 16px 12px;
}
.app-sidebar .sb-logo {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px 20px; font-size: 18px; font-weight: 700;
  border-bottom: 1px solid var(--border); margin-bottom: 16px;
}
.app-sidebar .sb-logo img { width: 28px; height: 28px; }
.sb-nav { flex: 1; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.sb-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 10px;
  color: var(--text-dim); font-size: 14px; font-weight: 500;
  transition: all .2s;
}
.sb-nav a svg { width: 18px; height: 18px; flex-shrink: 0; }
.sb-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.sb-nav a.active { background: rgba(156,39,176,.18); color: #fff; }
.sb-nav a.active svg { color: #c084fc; }
.sb-nav .sb-label {
  font-size: 11px; color: var(--text-light); letter-spacing: 1px;
  padding: 14px 14px 6px; text-transform: uppercase;
}
.sb-bottom { border-top: 1px solid var(--border); padding-top: 12px; }
.sb-user {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 10px;
}
.sb-user .avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--grad); display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; flex-shrink: 0;
}
.sb-user .uname { font-size: 13px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-user .urole { font-size: 11px; color: var(--text-light); }
.sb-user { position: relative; cursor: pointer; }
.sb-user-chevron { margin-left: auto; display: flex; align-items: center; color: var(--text-light); transition: transform .2s; }
.sb-user-chevron svg { width: 14px; height: 14px; }
.sb-user.open .sb-user-chevron { transform: rotate(180deg); }
.sb-user-menu {
  position: absolute; bottom: calc(100% + 6px); left: 0; right: 0;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 6px; box-shadow: 0 12px 32px rgba(0,0,0,.25); display: none; z-index: 70;
}
.sb-user.open .sb-user-menu { display: block; }
.sb-user-menu a {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; border-radius: 8px;
  color: var(--text); font-size: 13px; transition: all .15s;
}
.sb-user-menu a:hover { background: rgba(124,58,237,.08); color: #7c3aed; }
.sb-user-menu a.sb-logout { color: #e5484d; }
.sb-user-menu a.sb-logout:hover { background: rgba(229,72,77,.08); }

/* 三栏布局主容器 */
.work-layout {
  margin-left: 220px;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 400px) 1fr;
  gap: 0;
}
/* 中间参数面板 */
.work-panel {
  border-right: 1px solid var(--border);
  padding: 24px;
  background: var(--bg2);
  overflow-y: auto;
}
.work-panel h3 { font-size: 16px; font-weight: 600; margin-bottom: 16px; }
/* 右侧结果区 */
.work-result {
  padding: 24px;
  background: var(--bg);
  overflow-y: auto;
  min-height: 100vh;
}

/* 模型横向 tab */
.model-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.model-tab {
  padding: 8px 14px; border-radius: 20px; font-size: 13px;
  background: rgba(255,255,255,.06); border: 1px solid var(--border);
  color: var(--text-dim); cursor: pointer; transition: all .2s;
  position: relative;
}
.model-tab:hover { color: #fff; background: rgba(255,255,255,.1); }
.model-tab.active {
  background: rgba(156,39,176,.2); color: #fff; border-color: rgba(156,39,176,.5);
}
.model-tab .new-badge {
  position: absolute; top: -6px; right: -4px;
  background: #2196F3; color: #fff; font-size: 9px;
  padding: 1px 5px; border-radius: 8px; font-weight: 700;
}

/* 比例胶囊按钮 */
.ratio-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.ratio-btn {
  padding: 7px 14px; border-radius: 8px; font-size: 12px;
  background: rgba(255,255,255,.05); border: 1px solid var(--border);
  color: var(--text-dim); cursor: pointer; transition: all .2s;
}
.ratio-btn:hover { color: #fff; }
.ratio-btn.active { background: rgba(33,150,243,.2); color: #fff; border-color: rgba(33,150,243,.5); }

/* 模型子版本卡片 */
.model-sub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.model-sub-card {
  padding: 12px; border-radius: 10px;
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  cursor: pointer; transition: all .2s;
}
.model-sub-card:hover { border-color: rgba(33,150,243,.4); }
.model-sub-card.active { border-color: #2196F3; background: rgba(33,150,243,.12); }
.model-sub-card .mname { font-size: 13px; font-weight: 600; }
.model-sub-card .mdesc { font-size: 11px; color: var(--text-light); margin-top: 4px; line-height: 1.5; }

/* 提示词输入 */
.prompt-input {
  width: 100%; min-height: 100px; padding: 12px 14px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text); font-size: 14px;
  resize: vertical; outline: none; font-family: inherit; line-height: 1.6;
}
.prompt-input:focus { border-color: rgba(33,150,243,.6); }
.prompt-count { text-align: right; font-size: 11px; color: var(--text-light); margin-top: 4px; }

/* 参考图上传 */
.ref-upload {
  border: 1px dashed var(--border); border-radius: 10px;
  padding: 20px; text-align: center; color: var(--text-light);
  cursor: pointer; transition: all .2s; font-size: 13px;
}
.ref-upload:hover { border-color: rgba(33,150,243,.5); color: var(--text-dim); }

/* 生成按钮（渐变，带积分） */
.gen-bar { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.gen-btn {
  flex: 1; padding: 13px; border: none; border-radius: 10px;
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  color: #fff; font-size: 15px; font-weight: 600; cursor: pointer;
  transition: all .25s; box-shadow: 0 6px 24px rgba(124,58,237,.35);
}
.gen-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 32px rgba(124,58,237,.5); }
.gen-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.cost-badge { font-size: 13px; color: var(--text-dim); white-space: nowrap; }

/* 结果区案例网格 */
.result-tabs { display: flex; gap: 8px; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.result-tab {
  padding: 8px 16px; font-size: 14px; color: var(--text-dim);
  cursor: pointer; border-bottom: 2px solid transparent; transition: all .2s;
}
.result-tab.active { color: #fff; border-bottom-color: #7c3aed; }
.case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.case-card {
  border-radius: 12px; overflow: hidden; background: var(--card);
  border: 1px solid var(--border); transition: all .25s;
}
.case-card:hover { transform: translateY(-3px); border-color: rgba(33,150,243,.4); }
.case-card .case-main { aspect-ratio: 1/1; background: #0a0a14; }
.case-card .case-main img, .case-card .case-main video { width: 100%; height: 100%; object-fit: cover; }
.case-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 8px; }
.case-thumbs .thumb { aspect-ratio: 1/1; border-radius: 4px; overflow: hidden; background: rgba(255,255,255,.06); }
.case-thumbs .thumb img { width: 100%; height: 100%; object-fit: cover; }
.case-actions { display: flex; gap: 6px; padding: 0 8px 8px; }
.case-actions button {
  flex: 1; padding: 5px; font-size: 11px; border-radius: 6px;
  background: rgba(255,255,255,.06); border: 1px solid var(--border); color: var(--text-dim); cursor: pointer;
}
.case-actions button:hover { color: #fff; background: rgba(255,255,255,.1); }

/* 结果加载中 */
.result-loading { text-align: center; padding: 60px 20px; color: var(--text-dim); }
.result-empty { text-align: center; padding: 80px 20px; color: var(--text-light); }
.result-empty svg { width: 56px; height: 56px; margin: 0 auto 16px; opacity: .4; }

/* 结果图片/视频 */
.result-img { max-width: 100%; border-radius: 12px; }
.result-video { max-width: 100%; border-radius: 12px; background: #000; }

/* 工具按钮组（下载/导出） */
.tool-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.tool-actions a, .tool-actions button {
  padding: 8px 16px; font-size: 13px; border-radius: 8px;
  background: rgba(255,255,255,.06); border: 1px solid var(--border); color: #fff; cursor: pointer;
}
.tool-actions a:hover, .tool-actions button:hover { background: rgba(255,255,255,.12); }

/* 响应式：窄屏侧边栏收起 */
@media (max-width: 900px) {
  .app-sidebar { width: 64px; padding: 16px 8px; }
  .app-sidebar .sb-logo span, .app-sidebar .sb-nav a span, .app-sidebar .sb-label,
  .app-sidebar .sb-user .uname, .app-sidebar .sb-user .urole { display: none; }
  .app-sidebar .sb-nav a { justify-content: center; }
  .work-layout { margin-left: 64px; grid-template-columns: 1fr; }
  .work-panel { border-right: none; border-bottom: 1px solid var(--border); }
}

/* ============================================================
   通用表单/工具类（深色主题，创作页面用）
   ============================================================ */
.hidden { display: none !important; }
.text-center { text-align: center; }
.form-control {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 14px; outline: none;
  background: var(--bg); color: var(--text); font-family: inherit;
}
.form-control:focus { border-color: rgba(33,150,243,.6); }
.seg-row { display: flex; gap: 8px; }
.seg {
  flex: 1; text-align: center; padding: 9px; border-radius: 8px; font-size: 14px;
  border: 1px solid var(--border); cursor: pointer; transition: all .2s;
  background: rgba(255,255,255,.04); color: var(--text-dim);
}
.seg.active { background: linear-gradient(135deg, #7c3aed, #2563eb); color: #fff; border-color: transparent; }
.loading-spinner {
  width: 44px; height: 44px; border: 4px solid rgba(255,255,255,.1); border-top-color: #7c3aed;
  border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.progress-text { color: var(--text-dim); font-size: 15px; text-align: center; }

/* ============ Logo 星标一闪一闪（大幅版本：所有 logo img 通用） ============ */
.logo img,
.app-sidebar .sb-logo img,
img[src$="logo.svg"] {
  animation: logo-twinkle 2.2s ease-in-out infinite;
  transform-origin: center;
}
@keyframes logo-twinkle {
  0%, 100% {
    filter: drop-shadow(0 0 0 rgba(156,39,176,0));
    transform: scale(1) rotate(0deg);
  }
  25% {
    filter: drop-shadow(0 0 6px rgba(156,39,176,.7)) drop-shadow(0 0 14px rgba(33,150,243,.45));
    transform: scale(1.2) rotate(15deg);
  }
  50% {
    filter: drop-shadow(0 0 10px rgba(156,39,176,.95)) drop-shadow(0 0 22px rgba(33,150,243,.7)) drop-shadow(0 0 32px rgba(255,255,255,.4));
    transform: scale(1.45) rotate(30deg);
  }
  75% {
    filter: drop-shadow(0 0 6px rgba(156,39,176,.7)) drop-shadow(0 0 14px rgba(33,150,243,.45));
    transform: scale(1.2) rotate(15deg);
  }
}

/* ============ Hero（LimaxAI 原版 LightPillar WebGL 光柱） ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 160px 0 140px;
  background: #0a0a0f;
  overflow: visible;        /* 允许 fade 层溢出到下方 */
  margin-bottom: 0;
}
#light-pillar {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
}
/* 光柱底部渐隐层：相对 hero 底部溢出 45vh，让光柱从 hero 飘出时自然衰减消失 */
/* 光柱底部过渡遮罩：纯 CSS 半透明黑渐变，把光柱压暗到与 cap-section 同色 */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 30vh;
  background: linear-gradient(to bottom, transparent 0%, rgba(10,10,15,.55) 40%, #0a0a0f 100%);
  pointer-events: none;
  z-index: 2;
}
/* 旧的 hero-background / hero-bg-orb / gradient-orb 全部停用（LightPillar 替代） */
.hero-background, .hero-bg-orb, .gradient-orb { display: none !important; }

/* hero 内容浮在光柱之上 */
.hero-container { position: relative; z-index: 1; }

/* ============ hero 底部（4 个数字指标） ============ */
.hero-metrics { border-top: none; padding-top: 48px; }