/* =====================================================================
   炎杉AI 首页重构 · home-v2.css（solidroad.com 一比一复刻版）
   设计语言：深青 teal #0F766E / #0D9488 / 米色 rgb(251,247,235) / 深字 rgb(50,47,37) /
            灰 rgb(135,134,131) / 纯黑 rgb(0,0,0)；300 字重负字距；80px 胶囊 CTA
   仅由 index.html 引入，不影响其他页面使用的 style.css
   ===================================================================== */

/* ---------- 首页全局基调：solidroad 色板 ---------- */
:root {
  --brand-1: #0F766E;            /* 深青 teal-700 */
  --brand-2: #0D9488;            /* 深青 teal-600 */
  --brand-3: #0D9488;
  --bg-0: #ffffff;
  --bg-1: #ffffff;
  --bg-2: #0A0A0A;
  --bg-3: #171717;
  --line: rgba(50,47,37,.12);
  --txt-1: #322F25;              /* 深字 */
  --txt-2: #878683;              /* 灰 */
  --txt-3: #878683;
  --success: #0D9488;
  --cream: #FBF7EB;              /* 米色 */
  --ink: #322F25;
  --gray: #878683;
  --cta-ink: #2D2C29;
  --grad: linear-gradient(120deg, #0F766E, #0D9488);
  --grad-soft: rgba(15,118,110,.14);
  --shadow: 0 24px 60px rgba(0,0,0,.16);
}
body {
  background: #ffffff;
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}
.grad-text { -webkit-text-fill-color: initial; color: inherit; }

/* ---------- 滚动淡入（复用 main.js 的 .reveal 机制） ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.on { opacity: 1; transform: none; }

/* ---------- 0 固定导航栏（67px，透明 → 滚动白底深字） ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 67px; padding: 0 24px;
  background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease;
}
.topbar .container { height: 67px; max-width: 1280px; }
.topbar .brand { color: #FBF7EB; }
.topbar .brand .logo { height: 34px; }
.topbar .nav { margin-left: 40px; gap: 28px; }
.topbar .nav a { color: rgba(251,247,235,.9); font-size: 14px; font-weight: 400; }
.topbar .nav a:hover { color: #ffffff; }
.topbar.scrolled { background: #ffffff; border-bottom: 1px solid rgba(50,47,37,.08); }
.topbar.scrolled .brand,
.topbar.scrolled .nav a,
.topbar.scrolled .nav .drop a { color: var(--ink); }
.topbar.scrolled .nav a:hover { color: #000000; }
#auth-box .btn-ghost { color: #FBF7EB; border-color: rgba(251,247,235,.4); border-radius: 12px; }
.topbar.scrolled #auth-box .btn-ghost { color: var(--ink); border-color: rgba(50,47,37,.3); }
#auth-box .btn-primary {
  background: var(--brand-1); color: #ffffff;
  border-radius: 80px; box-shadow: none; font-weight: 500;
}
#auth-box .btn-primary:hover { transform: none; box-shadow: 0 8px 20px rgba(13,148,136,.35); }

/* 产品下拉（solidroad Products 下拉三组 → 两组+底部） */
.nav-item { position: relative; }
.nav .nav-item > a { color: rgba(251,247,235,.9); font-size: 14px; }
.topbar.scrolled .nav .nav-item > a { color: var(--ink); }
.has-drop .drop {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(6px);
  min-width: 280px; padding: 14px;
  background: #ffffff; border: 1px solid rgba(50,47,37,.08); border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,.14);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.has-drop:hover .drop { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.drop .drop-group { padding: 6px 8px 10px; }
.drop .drop-group + .drop-group { border-top: 1px solid rgba(50,47,37,.08); padding-top: 12px; }
.drop .drop-title { font-size: 12px; color: var(--gray); letter-spacing: .5px; margin-bottom: 8px; }
.drop a { display: block; padding: 7px 8px; border-radius: 10px; font-size: 14px; color: var(--ink) !important; }
.drop a:hover { background: rgba(13,148,136,.2); color: #000 !important; }
.drop .drop-foot { border-top: 1px solid rgba(50,47,37,.08); padding: 10px 8px 4px; }
.drop .drop-foot a { color: var(--ink) !important; font-weight: 600; }

/* ---------- 1 Hero：深蓝灰→暖灰渐变 + 山景 + 暗角 + 左文右 UI + 黄绿 CTA ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 168px 0 120px;
  background: linear-gradient(180deg, rgb(39,56,73) 0%, rgb(60,59,61) 60%, rgb(109,105,101) 100%);
  color: #FBF7EB;
}
.hero-mount {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(1200px 620px at 78% 96%, rgba(219,244,0,.10), transparent 60%),
    radial-gradient(900px 520px at 18% 108%, rgba(50,47,37,.85), transparent 70%),
    radial-gradient(1500px 700px at 55% 118%, rgba(30,32,36,.9), transparent 70%);
  opacity: .9;
}
.hero-mount::before,
.hero-mount::after {
  content: ""; position: absolute; left: -5%; right: -5%; bottom: 0;
  pointer-events: none;
}
.hero-mount::before {
  height: 34%; bottom: 0;
  background:
    linear-gradient(168deg, transparent 0 34%, rgba(18,24,32,.62) 36% 48%, transparent 52% 58%, rgba(18,24,32,.5) 60% 76%, transparent 80%),
    linear-gradient(12deg, transparent 0 30%, rgba(18,24,32,.55) 34% 52%, transparent 58% 66%, rgba(18,24,32,.48) 70% 86%, transparent 90%);
  clip-path: polygon(0 100%, 0 52%, 12% 40%, 24% 58%, 38% 30%, 52% 62%, 64% 42%, 78% 66%, 90% 48%, 100% 60%, 100% 100%);
}
.hero-mount::after {
  height: 22%; bottom: 0;
  background: linear-gradient(180deg, rgba(14,18,24,.0), rgba(14,18,24,.72));
  clip-path: polygon(0 100%, 0 66%, 16% 50%, 32% 70%, 48% 44%, 66% 72%, 82% 56%, 100% 70%, 100% 100%);
}
.hero-vignette {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(270deg, rgba(0,0,0,0) 42%, rgba(0,0,0,.55) 100%);
}
.hero-s { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 130px; pointer-events: none; z-index: 2; opacity: .9; }
/* 需求2：删除 hero 右侧方框后改为单列居中布局，避免塌陷 */
.hero .container { position: relative; z-index: 3; display: grid; grid-template-columns: 1fr; gap: 0; align-items: center; justify-items: center; max-width: 1160px; }
.hero .container > div { text-align: center; width: 100%; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 999px;
  background: rgba(15,118,110,.14); border: 1px solid rgba(13,148,136,.5);
  color: #0D9488; font-size: 13px;
}
.hero h1 { font-size: 40px; font-weight: 300; letter-spacing: -.8px; line-height: 1.32; color: #FBF7EB; margin: 22px 0 18px; }
.hero h1 b { font-weight: 400; color: #0D9488; }
.hero .sub { color: rgba(251,247,235,.86); font-size: 14px; font-weight: 400; max-width: 520px; line-height: 1.8; margin: 0 auto; }
.hero .stats { display: flex; gap: 44px; margin-top: 44px; justify-content: center; }
.hero .stats .num { font-size: 30px; font-weight: 300; letter-spacing: -.6px; color: #FBF7EB; }
.hero .stats .lbl { color: rgba(251,247,235,.62); font-size: 13px; }

/* ---------- Hero 可交互对话框（灰白卡片风格：白卡片 + 浅灰输入框 + 圆形上传区 + 灰白模型下拉 + 圆形向上发送，参考图1） ---------- */
.home-dialog { margin: 44px auto 0; max-width: 1120px; }
.home-dialog .hd-body {
  display: flex; flex-direction: column; gap: 12px;
  padding: 18px;
  border-radius: 24px;
  background: #FFFFFF;
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: 0 24px 60px rgba(0,0,0,.32);
}
/* ① 上传文件按钮区：视觉元素（图标+文案）不变，整体缩小至原约十分之一 */
.home-dialog .hd-top { display: flex; align-items: center; }
/* v20261020e：上传按钮并入功能按钮一排（长条胶囊，仅加号，hover 提示“上传文件”）
   v20261020f：文字颜色统一为 #1F2329（对齐基准深黑） */
.home-dialog .hd-upload {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #E3E5E8; border-radius: 999px;
  background: #F2F3F5;
  color: #1F2329; cursor: pointer;
  padding: 10px 18px;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.home-dialog .hd-upload:hover { background: #EDEFF2; border-color: #B8BDC4; color: #1F2329; }
/* v20261020f：首页对话框「创作历史」入口（独立类名 hd-history，绑定登录账号） */
.home-dialog .hd-history {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; line-height: 1; color: #1F2329; cursor: pointer;
  background: #F2F3F5; border: 1px solid #E3E5E8; border-radius: 999px;
  padding: 10px 16px;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.home-dialog .hd-history:hover { background: #EDEFF2; border-color: #B8BDC4; color: #1F2329; }
.home-dialog .hd-plus { font-size: 16px; line-height: 1; font-weight: 400; color: inherit; }
.home-dialog .hd-upload-txt { font-size: 10px; line-height: 1; opacity: .8; white-space: nowrap; }
/* 上传后缩略图区：图片显示缩略图，其他类型显示图标+文件名缩略版 */
.home-dialog .hd-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.home-dialog .hd-thumb {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  max-width: 160px;
  border: 1px solid #E3E5E8; border-radius: 10px;
  background: #F7F8FA;
  padding: 5px 8px; font-size: 12px; color: #1F2329;
  box-sizing: border-box;
}
.home-dialog .hd-thumb-img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; }
.home-dialog .hd-thumb-icon { font-size: 18px; line-height: 1; flex: 0 0 auto; }
.home-dialog .hd-thumb-type {
  flex: 0 0 auto; font-style: normal; font-weight: 600;
  font-size: 10px; color: #4A4F57;
  background: #EDEFF2; border-radius: 5px;
  padding: 2px 6px;
}
.home-dialog .hd-thumb-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-dialog .hd-thumb-x {
  position: absolute; top: -6px; right: -6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #1F2329; color: #FFFFFF; font-style: normal;
  font-size: 11px; line-height: 16px; text-align: center; cursor: pointer;
}
/* ② 输入对话框：灰白大输入框（5行×80字）+ 彩虹渐变发送按钮 */
.home-dialog .hd-input-wrap { position: relative; }
.home-dialog .hd-input {
  flex: 1 1 auto; min-width: 0;
  width: 100%; max-width: none;
  height: 146px;
  box-sizing: border-box;
  resize: none; overflow-y: auto;
  border: 1px solid #E3E5E8; outline: none; border-radius: 16px;
  padding: 12px 16px; font-size: 15px; line-height: 1.6; font-family: inherit;
  color: #1F2329;
  background: #F2F3F5;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.05);
  scrollbar-width: thin; scrollbar-color: #C9CDD3 transparent;
}
.home-dialog .hd-input::placeholder { color: #9CA0A6; }
.home-dialog .hd-send {
  position: absolute; right: 8px; bottom: 8px;
  width: 30px; height: 30px; border-radius: 50%;
  border: none; outline: none; cursor: pointer;
  background: conic-gradient(from 45deg, #FF6B6B, #FFA94D, #FFD43B, #69DB7C, #4DABF7, #9775FA, #F06595, #FF6B6B);
  color: #FFFFFF;
  font-size: 16px; line-height: 1;
  display: grid; place-items: center;
  box-shadow: 0 5px 14px rgba(120,90,255,.36);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.home-dialog .hd-send:hover { transform: translateY(-1px) scale(1.06); box-shadow: 0 8px 18px rgba(120,90,255,.44); filter: brightness(1.06); }
.home-dialog .hd-send:disabled { background: #E4E6EB; color: #A0A4AB; opacity: 1; cursor: not-allowed; transform: none; box-shadow: none; filter: none; }
.home-dialog .hd-send:disabled:hover { background: #E4E6EB; color: #A0A4AB; transform: none; box-shadow: none; filter: none; }
.home-dialog .hd-file-note { font-size: 12px; color: #9CA0A6; }
/* ③④ 控制行：对话模型选择框（左，置于对话框下方）＋ 任务核心诉求框（右） */
.home-dialog .hd-ctrl-row {
  display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap;
}
.home-dialog .hd-ctrl-label { display: block; font-size: 12px; color: #9CA0A6; margin-bottom: 6px; }
.home-dialog .hd-model-box { flex: 0 0 auto; }
.home-dialog .hd-model {
  flex: 0 0 auto;
  border: 1px solid #E3E5E8; outline: none; border-radius: 999px;
  padding: 10px 14px; font-size: 14px; color: #1F2329;
  background: #F2F3F5;
  max-width: 176px; cursor: pointer;
  box-sizing: border-box;
}
/* v20261020c：四大功能下拉（生成视频/图片/短片/文本对话），置于一排之首 */
.home-dialog .hd-feature {
  flex: 0 0 auto;
  border: 1px solid #1F2329; outline: none; border-radius: 999px;
  padding: 10px 16px; font-size: 14px; font-weight: 600; color: #FFFFFF;
  background: linear-gradient(135deg, #0F766E, #2563EB);
  max-width: 168px; cursor: pointer;
  box-sizing: border-box;
}
.home-dialog .hd-feature:hover { filter: brightness(1.06); }
.home-dialog .hd-feature option { color: #1F2329; font-weight: 400; }
.home-dialog .hd-intent-box { flex: 1 1 auto; min-width: 260px; }
.home-dialog .hd-intents { display: flex; flex-wrap: wrap; gap: 8px; }
.home-dialog .hd-intent {
  border: 1px solid #E3E5E8; outline: none; cursor: pointer;
  border-radius: 999px; padding: 10px 18px;
  font-size: 14px; color: #4A4F57; background: #F7F8FA;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.home-dialog .hd-intent:hover { border-color: #B8BDC4; }
.home-dialog .hd-intent.is-active {
  background: #1F2329; color: #FFFFFF; border-color: #1F2329;
}
@media (max-width: 640px) {
  .home-dialog .hd-ctrl-row { flex-direction: column; }
  .home-dialog .hd-send { align-self: center; }
}

/* ---------- 2 One platform 功能展示区（白底，左深色评分卡 + 右功能列表） ---------- */
.one-platform { padding: 128px 0; margin-bottom: 120px; background: #ffffff; }
.op-head { max-width: 900px; margin-bottom: 72px; }
.op-kicker { font-size: 14px; color: var(--ink); display: block; margin-bottom: 18px; }
.op-head h2 { font-size: 40px; font-weight: 300; letter-spacing: -.8px; line-height: 1.3; color: var(--ink); max-width: 860px; }
.op-head h2 .dim { color: var(--gray); }
.op-split { display: grid; grid-template-columns: 1.02fr 1.18fr; gap: 72px; align-items: start; }

/* 左：深色评分卡（solidroad Reviewing scores 面板） */
.op-card {
  background: #17181C; border-radius: 22px; padding: 28px 26px;
  color: #FBF7EB; box-shadow: 0 30px 70px rgba(0,0,0,.28);
}
.op-card-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 22px; }
.op-card-title { font-size: 24px; font-weight: 400; color: #FBF7EB; }
.op-card-sub { font-size: 12px; color: rgba(251,247,235,.55); }
.score-row { display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: center; margin-bottom: 14px; }
.score-name { font-size: 13px; font-weight: 300; color: rgba(251,247,235,.85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.score-track { height: 14px; border-radius: 80px; background: rgba(251,247,235,.12); overflow: hidden; }
.score-track .score-bar {
  height: 100%; border-radius: 80px; background: #0F766E;
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: 8px; font-size: 10px; color: rgba(0,0,0,.66);
  min-width: 34px;
}
.score-track.light .score-bar { background: #0D9488; }
.op-card-foot { display: flex; gap: 10px; margin-top: 20px; }
.bubble { padding: 6px 12px; border-radius: 80px; background: rgba(15,118,110,.16); border: 1px solid rgba(13,148,136,.45); color: #0D9488; font-size: 12px; }

/* 右：功能点列表（18px 标题 + 14px 描述 + 链接） */
.op-list { display: flex; flex-direction: column; }
.op-item { padding: 22px 0; border-bottom: 1px solid rgba(50,47,37,.1); }
.op-item:first-child { padding-top: 0; }
.op-item:last-child { border-bottom: none; }
.op-item h3 { font-size: 18px; font-weight: 400; color: var(--ink); margin-bottom: 6px; }
.op-item:first-child h3 { color: var(--gray); }
.op-item p { font-size: 14px; color: var(--gray); line-height: 1.8; }
/* ---------- 5 giga 式连续滚动动画（sticky + 三章 Build/Observe/Improve，锚点 scenes） ---------- */
.giga-wrap { position: relative; height: 300vh; background: transparent; }
.giga-sticky {
  position: sticky; top: 0; height: 100vh; min-height: 620px;
  /* 半透明青灰底：透出 at-bg 青绿渐层，与下方极光/页脚无违和衔接（原偏红棕深底会与青绿硬切） */
  background: rgba(15,21,23,.55); overflow: hidden;
  transition: background .5s ease;
  /* v20261003h 修复一：屏底 56px mask 渐隐，使内容屏底部整体淡出、露出下方山体/天空，与山体顶平滑衔接（替代原 ::after 加深遮罩） */
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 calc(100% - 56px), transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 calc(100% - 56px), transparent 100%);
}
.giga-sticky.ch0 { background: linear-gradient(180deg, rgba(16,21,23,.62) 0%, rgba(12,19,20,.48) 100%); }
.giga-sticky.ch1 { background: linear-gradient(180deg, rgba(16,21,23,.62) 0%, rgba(11,20,21,.48) 100%); }
.giga-sticky.ch2 { background: linear-gradient(180deg, rgba(5,13,15,.50) 0%, rgba(4,10,12,.40) 100%); }
.giga-screen {
  position: absolute; inset: 0; display: flex; align-items: center;
  opacity: 0; transform: translateY(24px); pointer-events: none;
  transition: opacity .55s ease, transform .55s ease;
}
.giga-screen.on { opacity: 1; transform: none; pointer-events: auto; }
.giga-inner {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center;
  max-width: 1280px; width: 100%; margin: 0 auto; padding: 0 24px;
}
.giga-copy .giga-ch {
  display: inline-block; padding: 6px 16px; border-radius: 80px;
  background: rgba(13,148,136,.13); border: 1px solid rgba(13,148,136,.4);
  color: #0D9488; font-size: 13px; letter-spacing: 1px; margin-bottom: 20px;
}
.giga-copy h2 {
  font-size: 40px; font-weight: 300; letter-spacing: -.8px; line-height: 1.3;
  color: #FBF7EB; margin-bottom: 16px;
  opacity: 0; transform: translateY(18px);
  transition: opacity .6s ease .12s, transform .6s ease .12s;
}
.giga-screen.on .giga-copy h2 { opacity: 1; transform: none; }
.giga-copy p {
  font-size: 14px; color: rgba(251,247,235,.94); line-height: 1.9; max-width: 440px;
  opacity: 0; transform: translateY(14px);
  transition: opacity .6s ease .24s, transform .6s ease .24s;
}
.giga-screen.on .giga-copy p { opacity: 1; transform: none; }
/* giga 章节背景通透后，给文案加轻投影保证可读性 */
.giga-ch, .giga-copy h2, .giga-copy p { text-shadow: 0 2px 14px rgba(0,0,0,.45); }
.giga-scene { display: flex; justify-content: center; }
/* Build 场景：画布面板 */
.canvas-board { width: 440px; max-width: 100%; background: #1b1b1b; border: 1px solid rgba(251,247,235,.12); border-radius: 22px; padding: 22px; box-shadow: 0 30px 70px rgba(0,0,0,.4); }
.board-head { display: flex; justify-content: space-between; align-items: center; color: #FBF7EB; font-size: 14px; margin-bottom: 18px; }
.board-head .pill { font-size: 11px; padding: 3px 10px; border-radius: 80px; background: rgba(13,148,136,.15); color: #0D9488; }
.board-nodes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.node { display: flex; align-items: center; gap: 8px; padding: 12px; border-radius: 14px; background: rgba(251,247,235,.06); border: 1px solid rgba(251,247,235,.1); color: #FBF7EB; font-size: 13px; }
.node em { font-style: normal; }
.node .n-ic { width: 30px; height: 30px; border-radius: 50%; background: rgba(13,148,136,.16); display: grid; place-items: center; font-size: 15px; }
.board-lines { display: flex; justify-content: space-around; margin: 6px 0; }
.board-lines i { width: 34px; height: 2px; background: rgba(13,148,136,.4); }
.board-join { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; padding: 10px 14px; border-radius: 80px; background: rgba(13,148,136,.12); border: 1px dashed rgba(13,148,136,.5); color: #99F6E4; font-size: 13px; }
.board-join span { color: #0D9488; font-size: 16px; }
.board-join em { font-style: normal; }
/* Observe 场景：节点流水 + 进度可视化 */
.observe-box { width: 440px; max-width: 100%; }
.observe-pipe { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.o-node { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 80px; background: rgba(251,247,235,.06); border: 1px solid rgba(251,247,235,.12); color: #FBF7EB; font-size: 13px; }
.o-node.done { border-color: rgba(13,148,136,.5); color: #99F6E4; }
.o-node.doing { border-color: #0D9488; background: rgba(13,148,136,.14); color: #fff; }
.o-node.wait { opacity: .5; }
.o-node i { font-style: normal; color: #0D9488; }
.spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(13,148,136,.3); border-top-color: #0D9488; animation: gspin 1s linear infinite; }
@keyframes gspin { to { transform: rotate(360deg); } }
.o-progress { height: 8px; border-radius: 80px; background: rgba(251,247,235,.12); margin-top: 22px; overflow: hidden; }
.o-bar { height: 100%; border-radius: 80px; background: linear-gradient(90deg, #0F766E, #0D9488); }
.o-meta { display: flex; justify-content: space-between; margin-top: 12px; color: rgba(251,247,235,.6); font-size: 12px; }
/* Improve 场景：迭代循环 + 评分提升 */
.improve-box { width: 440px; max-width: 100%; }
.improve-loop { display: flex; align-items: center; justify-content: center; margin-bottom: 22px; }
.loop-arrow { width: 132px; height: 132px; }
.i-score { background: rgba(5,11,13,.92); border: 1px solid rgba(251,247,235,.24); border-radius: 16px; padding: 16px 18px; }
.i-score > span { color: #FBF7EB; font-size: 13px; }
.i-bar { height: 8px; border-radius: 80px; background: rgba(251,247,235,.12); margin-top: 10px; overflow: hidden; }
.i-fill { height: 100%; border-radius: 80px; background: linear-gradient(90deg, #0F766E, #0D9488); color: #FBF7EB; font-size: 10px; display: flex; align-items: center; justify-content: flex-end; padding-right: 8px; }
.i-team { margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 80px; background: rgba(251,247,235,.12); color: #ffffff; font-size: 13px; }
@media (max-width: 1024px) {
  .giga-inner { grid-template-columns: 1fr; gap: 36px; padding: 96px 24px 120px; }
  .giga-copy h2 { font-size: 32px; }
}
@media (max-width: 640px) {
  .giga-copy h2 { font-size: 26px; }
}

/* ---------- 6 页脚（上区标语 CTA 已移除，保留下区三栏 + 版权） ---------- */
.v2-footer { background-color: #FBF7EB; color: var(--ink); }
.footer-bottom-zone { border-top: 1px solid rgba(50,47,37,.08); padding: 64px 0 40px; }
.footer-bottom-zone .footer-grid { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 44px; }
.footer-bottom-zone .brand-logo { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 12px; background: #17181C; }
.footer-bottom-zone .brand-logo .logo { height: 30px; }
.footer-bottom-zone .slogan { color: var(--gray); font-size: 14px; margin-top: 14px; max-width: 320px; line-height: 1.8; }
.footer-bottom-zone h4 { color: var(--gray); font-size: 14px; font-weight: 400; margin-bottom: 18px; }
.footer-bottom-zone .links { display: flex; flex-direction: column; gap: 12px; }
.footer-bottom-zone .links a { color: var(--ink); font-size: 16px; }
.footer-bottom-zone .links a:hover { color: #000; text-decoration: underline; text-underline-offset: 4px; }
.footer-bar {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(50,47,37,.1);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  color: var(--gray); font-size: 13px;
}
.footer-bar .legal { display: flex; gap: 24px; }
.footer-bar .legal a { color: var(--gray); }
.footer-bar .legal a:hover { color: var(--ink); }
.footer-bar .copy { color: var(--gray); }
.footer-bar .copy a { color: var(--gray); }
.footer-bar .copy a:hover { color: var(--ink); }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .topbar { padding: 0 16px; }
  .topbar .nav { margin-left: 20px; gap: 18px; }
  .hero { padding: 150px 0 90px; }
  .hero .container { grid-template-columns: 1fr; gap: 44px; }
  .hero h1 { font-size: 34px; }
  .op-split { grid-template-columns: 1fr; gap: 48px; }
  .op-head h2 { font-size: 34px; }
  .stack-frame { width: 100%; }
  .footer-bottom-zone .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .topbar .nav { display: none; }
  .burger { display: block; }
  .hero { padding: 120px 0 60px; }
  .hero h1 { font-size: 27px; }
  .hero .stats { gap: 22px; flex-wrap: wrap; }
  .op-head h2 { font-size: 28px; }
  .stack-frame { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom-zone .footer-grid { grid-template-columns: 1fr; }
  .footer-bar { flex-direction: column; align-items: flex-start; }
  .one-platform { margin-bottom: 60px; }
}

/* ---------- 7 极光渐变段（adaline 复刻：白→浅灰米黄→青绿极光→深青黑，纯静态随滚动自然渐变，无 JS 滚动监听） ---------- */
.aurora-trail {
  position: relative;
  /* overflow 必须为 visible：hidden 会抢占 sticky 滚动上下文，导致 giga 三章内容滚出视口、页面显示空白 */
  overflow: visible;
  background: #0B1014;
}
.aurora-trail .at-bg,
.aurora-trail .at-aurora,
.aurora-trail .at-mask {
  position: absolute; inset: 0; pointer-events: none;
}
.at-bg {
  /* 参考站渐层过渡：白→暖灰→灰→灰绿→青绿→极光→深青黑，逐段平滑无硬切 */
  background: linear-gradient(180deg,
    #FFFFFF 0%,
    #E9EAE9 8%,
    #C9CCCB 16%,
    #969B9C 24%,
    #566063 32%,
    #283033 40%,
    #101619 46%,
    #071416 52%,
    #0A2022 58%,
    #0D3133 64%,
    #11504A 72%,
    #0E4542 80%,
    #0A302F 86%,
    #071C1E 90%,
    #03090B 94%,
    #03090B 100%);
}
.at-aurora {
  mix-blend-mode: screen;
  filter: blur(6px);
  background:
    radial-gradient(70% 46% at 50% 86%, rgba(23,161,157,.16), transparent 80%);
}
.at-mask {
  /* 底部压暗提前渐变：极光青绿向山体/页脚底部柔和过渡，消除青绿与山脊交界处的色块跳变 */
  background: linear-gradient(in oklab, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 78%, rgba(5,14,17,.20) 88%, rgb(5,14,17) 100%);
}
.aurora-trail .v2-footer {
  position: relative; z-index: 5;
  background: linear-gradient(180deg, rgba(5,14,17,.9) 0%, rgb(5,14,17) 14%, rgb(5,14,17) 100%);
  color: #FBF7EB;
}
/* ---------- 渐变覆盖区内 footer 深色区：浅色文字覆盖（位于渐变 70%→100% 深青/极光区） ---------- */
.aurora-trail .footer-bottom-zone .slogan { color: rgba(251,247,235,.72); }
.aurora-trail .footer-bottom-zone .links a { color: rgba(251,247,235,.92); }
.aurora-trail .footer-bottom-zone .links a:hover { color: #0D9488; text-decoration: underline; text-underline-offset: 4px; }
.aurora-trail .footer-bar { color: rgba(251,247,235,.62); border-top-color: rgba(251,247,235,.18); }
.aurora-trail .footer-bar .legal a { color: rgba(251,247,235,.62); }
.aurora-trail .footer-bar .legal a:hover { color: #FBF7EB; }
.aurora-trail .footer-bar .copy { color: rgba(251,247,235,.62); }
.aurora-trail .footer-bar .copy a { color: rgba(251,247,235,.62); }
.aurora-trail .footer-bar .copy a:hover { color: #FBF7EB; }

/* ---------- 底部真实资源层（adaline 一比一）：动态极光 canvas + 星空平铺 + 山峦原图 footer-hills.png ---------- */
/* 层级：at-bg(0) → at-aurora(0) → canvas极光(1) → at-mask(2 压暗底部) → 星空(3) → 山体(4) → footer内容(5) */
.aurora-trail .at-mask { z-index: 2; }
.at-aurora-canvas {
  /* 极光固定在底部山体+湖面区域（v20261003d 收窄 72vh→33vh，避免极光铺到天空中部形成横带） */
  position: absolute; left: 0; right: 0; top: auto; bottom: 0;
  width: 100%; height: 33vh;
  z-index: 1; pointer-events: none;
  mix-blend-mode: screen;
  filter: blur(6px);
  /* 顶部渐隐：前 25% 由透明过渡到全显，防止 canvas 顶边形成锐利横带 */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 25%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 25%, #000 100%);
}
.at-stars {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 100%; z-index: 3; pointer-events: none;
  background-image: url('../images/footer-stars.png');
  background-repeat: repeat;
  background-size: auto;
  mix-blend-mode: screen;
  opacity: .85;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,.2) 38%, rgba(0,0,0,.85) 62%, rgba(0,0,0,.85) 100%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,.2) 38%, rgba(0,0,0,.85) 62%, rgba(0,0,0,.85) 100%);
}
.at-hills {
  position: relative; left: 0; right: 0; bottom: 0;
  width: 100%; z-index: 4; pointer-events: none;
  line-height: 0;
  background: linear-gradient(180deg, rgb(39,98,110) 0%, rgba(39,98,110,0) 40%);
}
/* 山体原图 5400×1800 按宽度等比完整露出（含山峦剪影+水面倒影），不再用 cover 裁切顶部 */
.at-hills img {
  display: block; width: 100%; height: auto; object-fit: contain;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.5) 12%, #000 28%, #000 78%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.5) 12%, #000 28%, #000 78%, rgba(0,0,0,0) 100%);
}

/* ---------- 流星效果层（参考站深色区白色斜线拖尾流星；仅覆盖渐变深色段 giga→页脚） ---------- */
.at-meteors {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 56%; z-index: 3; pointer-events: none; overflow: hidden;
}
.at-meteors i {
  position: absolute; top: 16%; left: 84%;
  width: 3px; height: 3px; border-radius: 50%;
  background: #fff; opacity: 0;
  box-shadow: 0 0 6px 2px rgba(255,255,255,.72);
  transform: rotate(-38deg);
  animation: meteorFall 7s linear infinite;
}
.at-meteors i::after {
  content: ''; position: absolute; right: 50%; top: 50%;
  width: 120px; height: 1.5px; transform: translateY(-50%);
  background: linear-gradient(to left, rgba(255,255,255,0) 0%, rgba(255,255,255,.9) 100%);
}
.at-meteors i:nth-child(2) { top: 30%; left: 66%; animation-delay: 2.4s; animation-duration: 8s; }
.at-meteors i:nth-child(2)::after { width: 90px; }
.at-meteors i:nth-child(3) { top: 44%; left: 90%; animation-delay: 4.8s; animation-duration: 6.5s; }
.at-meteors i:nth-child(3)::after { width: 110px; }
.at-meteors i:nth-child(4) { top: 9%; left: 72%; animation-delay: 6.1s; animation-duration: 9s; }
.at-meteors i:nth-child(4)::after { width: 150px; }
@keyframes meteorFall {
  0%   { transform: translate(0, 0) rotate(-38deg); opacity: 0; }
  4%   { opacity: .95; }
  12%  { opacity: .95; }
  18%  { transform: translate(-300px, 235px) rotate(-38deg); opacity: 0; }
  100% { transform: translate(-300px, 235px) rotate(-38deg); opacity: 0; }
}

/* ---------- v20261003h 修改二：山峰之上天空区动态极光（纯CSS，三层光带；z3 位于星空之上、山峰 z4 之下） ---------- */
.at-sky-aurora {
  position: absolute; left: 0; right: 0; top: 56%; height: 34%;
  z-index: 3; pointer-events: none; overflow: hidden;
  mix-blend-mode: screen; filter: blur(14px); opacity: .65;
}
.at-sky-aurora .sa-band {
  position: absolute; width: 150%; left: -25%;
  border-radius: 50%; pointer-events: none;
}
.sa-band-1 {
  top: 8%; height: 26%;
  background: radial-gradient(ellipse 55% 52% at 50% 50%,
    rgba(45,212,191,.6) 0%, rgba(56,189,248,.45) 45%, rgba(139,92,246,0) 100%);
  opacity: .85;
  animation: auroraDrift1 12s ease-in-out -2s infinite alternate;
}
.sa-band-2 {
  top: 36%; height: 24%;
  background: radial-gradient(ellipse 58% 55% at 50% 50%,
    rgba(139,92,246,.55) 0%, rgba(45,212,191,.4) 50%, rgba(45,212,191,0) 100%);
  opacity: .8;
  animation: auroraDrift2 15s ease-in-out -6s infinite alternate;
}
.sa-band-3 {
  top: 62%; height: 22%;
  background: radial-gradient(ellipse 52% 48% at 50% 50%,
    rgba(167,139,250,.5) 0%, rgba(56,189,248,.35) 55%, rgba(45,212,191,0) 100%);
  opacity: .7;
  animation: auroraDrift3 9s ease-in-out -4s infinite alternate;
}
@keyframes auroraDrift1 {
  0%   { transform: translateX(-4%) skewX(-3deg) scaleX(1); opacity: .4; }
  100% { transform: translateX(5%) skewX(4deg) scaleX(1.1); opacity: .85; }
}
@keyframes auroraDrift2 {
  0%   { transform: translateX(6%) skewX(3deg) scaleX(.95); opacity: .45; }
  100% { transform: translateX(-5%) skewX(-4deg) scaleX(1.12); opacity: .8; }
}
@keyframes auroraDrift3 {
  0%   { transform: translateX(-6%) skewX(-4deg) scaleX(1.05); opacity: .5; }
  100% { transform: translateX(4%) skewX(3deg) scaleX(.9); opacity: .8; }
}

/* ============ 用户信息小窗（Pavo 式：头像+昵称+积分，白底圆角下拉） v20261003q ============ */
#auth-box .user-chip {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer; padding: 4px 6px; border-radius: 12px; transition: background .2s;
  color: #FBF7EB; user-select: none;
}
#auth-box .user-chip:hover { background: rgba(251,247,235,.12); }
.topbar.scrolled #auth-box .user-chip { color: var(--ink, #171717); }
#auth-box .um-avatar {
  width: 30px; height: 30px; border-radius: 50%; object-fit: cover;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; color: #FBF7EB;
  background: rgba(251,247,235,.25); border: 1px solid rgba(251,247,235,.35);
  flex: none; overflow: hidden;
}
.topbar.scrolled #auth-box .um-avatar { color: var(--ink, #171717); border-color: rgba(50,47,37,.3); }
#auth-box .um-name { font-size: 13px; font-weight: 600; max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#auth-box .um-points { font-size: 12px; opacity: .85; white-space: nowrap; }
#auth-box .um-arrow { font-size: 10px; opacity: .7; }
/* 下拉小窗：白底、圆角、轻阴影 */
#auth-box .user-menu,
#auth-box .um-account-panel {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 1200;
  min-width: 220px; background: #fff; border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0,0,0,.16), 0 2px 8px rgba(0,0,0,.06);
  padding: 8px; color: #171717;
}
#auth-box .um-head { display: flex; align-items: center; gap: 10px; padding: 8px 10px; }
#auth-box .um-head .um-avatar { width: 38px; height: 38px; font-size: 16px; color: #fff; background: #0F766E; border-color: transparent; }
#auth-box .um-head-name { font-size: 14px; font-weight: 600; color: #171717; }
#auth-box .um-head-points { font-size: 12px; color: #8a8f98; margin-top: 2px; }
#auth-box .um-sep { height: 1px; background: #f0f0f0; margin: 6px 4px; }
#auth-box .um-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px;
  border-radius: 8px; font-size: 13px; color: #2a2d33; cursor: pointer;
  text-decoration: none; transition: background .15s;
}
#auth-box .um-item:hover { background: #f5f5f7; }
/* 账号信息面板 */
#auth-box .um-account-panel { min-width: 260px; }
#auth-box .um-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 8px 10px; font-size: 14px; font-weight: 600; color: #171717;
}
#auth-box .um-back { border: none; background: none; color: #0F766E; font-size: 12px; cursor: pointer; padding: 2px 4px; }
#auth-box .um-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 10px; font-size: 13px; color: #6b7280; border-top: 1px solid #f5f5f5;
}
#auth-box .um-row em { font-style: normal; color: #171717; }
/* =====================================================================
 * 主页对话框 · 页内创作会话区（v20261020a）
 * 仿 app.pavo-ai.cn 主页对话框：发送后同页展开会话气泡，不跳转 task 页。
 * 独立 hd-chat / hd-msg 前缀，不影响既有 .hd-* 与其他模块样式。
 * ===================================================================== */
.home-dialog .hd-chat {
  margin-top: 14px;
  border-radius: 18px;
  background: #FFFFFF;
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: 0 18px 44px rgba(0,0,0,.18);
  overflow: hidden;
}
.home-dialog .hd-chat-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid #EFF1F4;
  background: #FAFBFC;
}
.home-dialog .hd-chat-title { font-size: 13px; font-weight: 600; color: #1F2329; }
.home-dialog .hd-chat-clear {
  font-size: 12px; color: #8A919F; background: transparent; border: 1px solid #E3E5E8;
  border-radius: 10px; padding: 4px 10px; cursor: pointer;
}
.home-dialog .hd-chat-clear:hover { color: #E64545; border-color: #F3C1C1; background: #FFF6F6; }
.home-dialog .hd-chat-body {
  max-height: 520px; overflow-y: auto;
  padding: 16px;
  background: #F7F8FA;
}
.home-dialog .hd-msg { display: flex; margin-bottom: 14px; }
.home-dialog .hd-msg-user { justify-content: flex-end; }
.home-dialog .hd-msg-ai { justify-content: flex-start; align-items: flex-start; }
.home-dialog .hd-msg-avatar {
  flex: 0 0 auto; width: 30px; height: 30px; margin-right: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6E5BFF, #9B8CFF);
  color: #FFFFFF; font-size: 12px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.home-dialog .hd-msg-bubble {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px; line-height: 1.65; color: #1F2329;
  word-break: break-word;
}
.home-dialog .hd-msg-user .hd-msg-bubble {
  background: #1F2329; color: #FFFFFF;
  border-top-right-radius: 4px;
}
.home-dialog .hd-msg-ai .hd-msg-bubble {
  background: #FFFFFF; border: 1px solid #E8EAEE;
  border-top-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.home-dialog .hd-msg-text { white-space: pre-wrap; }
.home-dialog .hd-msg-meta { margin-top: 6px; font-size: 11px; opacity: .55; }
.home-dialog .hd-msg-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.home-dialog .hd-msg-thumb {
  display: inline-flex; align-items: center; gap: 4px;
  border-radius: 10px; overflow: hidden;
  background: rgba(255,255,255,.14);
  font-size: 11px; max-width: 200px;
}
.home-dialog .hd-msg-thumb img { width: 64px; height: 64px; object-fit: cover; display: block; }
.home-dialog .hd-msg-thumb-file { padding: 6px 10px; }
.home-dialog .hd-msg-thumb-file em { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-dialog .hd-msg-loading { display: flex; align-items: center; gap: 5px; min-height: 22px; }
.home-dialog .hd-msg-loading span {
  width: 8px; height: 8px; border-radius: 50%;
  background: #B9BEC9;
  animation: hdBlink 1.2s infinite ease-in-out;
}
.home-dialog .hd-msg-loading span:nth-child(2) { animation-delay: .2s; }
.home-dialog .hd-msg-loading span:nth-child(3) { animation-delay: .4s; }
.home-dialog .hd-msg-loading em { font-style: normal; font-size: 13px; color: #6B7280; margin-left: 4px; }
@keyframes hdBlink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.home-dialog .hd-msg-progress { min-width: 260px; }
.home-dialog .hd-msg-prog-bar {
  height: 8px; border-radius: 6px; background: #ECEFF3; overflow: hidden;
}
.home-dialog .hd-msg-prog-fill {
  height: 100%; border-radius: 6px;
  background: linear-gradient(90deg, #6E5BFF, #35D0A0);
  transition: width .6s ease;
}
.home-dialog .hd-msg-prog-tx { margin-top: 6px; font-size: 12px; color: #6B7280; }
.home-dialog .hd-msg-err {
  color: #E64545; font-size: 13px; line-height: 1.6;
  background: #FFF4F4; border: 1px solid #F5D2D2; border-radius: 8px;
  padding: 8px 10px;
}
.home-dialog .hd-msg-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.home-dialog .hd-msg-btn {
  display: inline-flex; align-items: center;
  font-size: 12px; color: #4B5563;
  background: #F4F5F7; border: 1px solid #E3E5E8; border-radius: 10px;
  padding: 5px 12px; cursor: pointer; text-decoration: none;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.home-dialog .hd-msg-btn:hover { background: #EDEFF2; border-color: #B8BDC4; color: #1F2329; }
.home-dialog .hd-media-img { max-width: 100%; border-radius: 12px; display: block; margin: 6px 0 2px; }
.home-dialog .hd-media-video { width: 100%; max-width: 420px; border-radius: 12px; display: block; margin: 6px 0 2px; background: #0F1115; }
/* 参数条（时长/画幅/清晰度/分辨率，按诉求联动） */
.home-dialog .hd-params { display: inline-flex; align-items: center; gap: 10px; }
.home-dialog .hd-param { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #6B7280; }
.home-dialog .hd-param-sel {
  height: 30px;
  font-size: 12px; color: #1F2329;
  background: #F4F5F7; border: 1px solid #E3E5E8; border-radius: 10px;
  padding: 0 8px; cursor: pointer;
}
/* v20261020c：比例选择按钮组（比例数值上方附带视觉比例模拟框） */
.home-dialog .hd-param-ratio { align-items: flex-start; }
.home-dialog .hd-param-ratio > span { margin-top: 8px; }
.home-dialog .hd-ratios { display: flex; flex-wrap: wrap; gap: 6px; }
.home-dialog .hd-ratio-btn {
  display: inline-flex; flex-direction: column; align-items: center; gap: 4px;
  border: 1px solid #E3E5E8; outline: none; cursor: pointer;
  border-radius: 10px; padding: 6px 9px 5px; min-width: 58px;
  font-size: 11px; color: #4A4F57; background: #F7F8FA;
  transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.home-dialog .hd-ratio-btn:hover { border-color: #B8BDC4; }
.home-dialog .hd-ratio-btn.is-active {
  border-color: #2563EB; color: #2563EB; background: #EEF3FE;
  box-shadow: 0 0 0 1px #2563EB inset;
}
.home-dialog .hd-ratio-box {
  display: block;
  height: 20px;
  aspect-ratio: var(--r, 1 / 1);
  border-radius: 3px;
  border: 1px solid currentColor;
  background: currentColor;
  opacity: .85;
}
.home-dialog .hd-ratio-tx { line-height: 1; }
.home-dialog .hd-send:disabled { cursor: not-allowed; opacity: .5; }

/* ============ v20261020e 毛玻璃自定义下拉（浅色触发器 + 深色毛玻璃面板，与对话框色系一致）============ */
.hd-drop { position: relative; display: inline-block; }
.hd-drop-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid #E3E5E8; outline: none; cursor: pointer;
  border-radius: 999px; padding: 10px 14px;
  font-size: 14px; font-weight: 600; color: #1F2329;
  background: #F2F3F5;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  max-width: 190px;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.hd-drop-trigger:hover { background: #EDEFF2; border-color: #B8BDC4; color: #1F2329; }
/* v20261020f：长模型名省略，防撑破控件排 */
.hd-drop-trigger .hd-drop-label {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  min-width: 0; flex: 1 1 auto;
}
.hd-drop-ico { display: inline-flex; color: #4B5563; }
.hd-drop-arrow { display: inline-flex; color: #6B7280; margin-left: 2px; transition: transform .22s cubic-bezier(.2,.9,.3,1.2); }
.hd-drop.is-open .hd-drop-arrow { transform: rotate(180deg); }
.hd-drop-panel {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 60;
  min-width: 224px; padding: 6px;
  background: rgba(20,23,28,.80);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.07);
  opacity: 0; transform: translateY(-8px) scale(.97);
  transform-origin: top left;
  transition: opacity .16s ease, transform .24s cubic-bezier(.22,1.1,.3,1.18);
  pointer-events: none;
}
.hd-drop.is-open .hd-drop-panel { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.hd-drop-item {
  display: flex; align-items: center; gap: 9px; width: 100%;
  border: 0; outline: none; cursor: pointer; text-align: left;
  border-radius: 9px; padding: 9px 10px;
  font-size: 13px; color: #C6CBD4; background: transparent;
  transition: background .15s ease, color .15s ease;
}
.hd-drop-item:hover { background: rgba(255,255,255,.08); color: #FFFFFF; }
.hd-drop-item.is-active { background: rgba(255,255,255,.12); color: #FFFFFF; }
.hd-drop-item .hd-drop-ico { color: #8E95A1; }
.hd-drop-item.is-active .hd-drop-ico { color: #7C9CFF; }
.hd-drop-item .hd-drop-tx { flex: 1 1 auto; }
.hd-drop-check { display: none; color: #7C9CFF; }
.hd-drop-item.is-active .hd-drop-check { display: inline-flex; }

/* ============ v20261020e 参数二级化：第一级长条触发器 + 第二级毛玻璃面板弹出 ============ */
.hd-pp-box { display: inline-flex; align-items: center; }
.hd-pp { position: relative; display: inline-flex; }
.hd-pp-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid #E3E5E8; outline: none; cursor: pointer;
  border-radius: 999px; padding: 10px 14px;
  font-size: 14px; font-weight: 600; color: #1F2329;
  background: #F2F3F5;
  transition: background .2s ease, border-color .2s ease;
}
.hd-pp-trigger:hover { background: #EDEFF2; border-color: #B8BDC4; }
.hd-pp-summary { font-weight: 500; color: #4B5563; }
.hd-pp-panel {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  min-width: 330px;
  padding: 12px 14px;
  display: flex; flex-direction: column; gap: 10px;
  background: rgba(20,23,28,.78);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.07);
  opacity: 0; transform: translateY(-8px) scale(.97);
  transform-origin: top right;
  transition: opacity .16s ease, transform .24s cubic-bezier(.22,1.1,.3,1.18);
  pointer-events: none;
}
.hd-pp.is-open .hd-pp-panel { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.hd-pp-sec { display: flex; align-items: center; gap: 10px; }
.hd-pp-label { flex: 0 0 auto; font-size: 12px; color: #9AA1AD; }
.hd-pp-opts { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 auto; }
.hd-pp-ratio {
  display: inline-flex; flex-direction: column; align-items: center; gap: 3px;
  border: 1px solid rgba(255,255,255,.09); outline: none; cursor: pointer;
  border-radius: 9px; padding: 5px 8px 4px; min-width: 44px;
  font-size: 11px; color: #B9C0CC; background: rgba(255,255,255,.05);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.hd-pp-ratio:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.22); }
.hd-pp-ratio.is-active {
  background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.32);
  color: #FFFFFF; box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset;
}
.hd-pp-frame { display: block; height: 14px; aspect-ratio: var(--r, 16 / 9); border-radius: 2px; border: 1px solid currentColor; opacity: .9; }
.hd-pp-chip {
  border: 1px solid rgba(255,255,255,.09); outline: none; cursor: pointer;
  border-radius: 8px; padding: 5px 12px;
  font-size: 12px; color: #B9C0CC; background: rgba(255,255,255,.05);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.hd-pp-chip:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.22); }
.hd-pp-chip.is-active { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.34); color: #FFFFFF; }
.hd-pp-dur { align-items: center; gap: 10px; }
.hd-pp-range {
  -webkit-appearance: none; appearance: none;
  height: 4px; border-radius: 999px;
  background: rgba(255,255,255,.18); outline: none; cursor: pointer;
}
.hd-pp-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 15px; height: 15px; border-radius: 50%;
  background: #FFFFFF; border: 2px solid rgba(255,255,255,.5);
  box-shadow: 0 2px 6px rgba(0,0,0,.35); cursor: pointer;
  transition: transform .15s ease;
}
.hd-pp-range::-webkit-slider-thumb:hover { transform: scale(1.15); }
.hd-pp-range::-moz-range-thumb {
  width: 15px; height: 15px; border-radius: 50%;
  background: #FFFFFF; border: 2px solid rgba(255,255,255,.5);
  box-shadow: 0 2px 6px rgba(0,0,0,.35); cursor: pointer;
}
.hd-pp-durval { min-width: 30px; font-size: 12px; color: #E6E8EE; font-weight: 600; text-align: center; }

/* v20261023c: 默认头像改 logo 单图 */
#auth-box .um-avatar-logo { object-fit: contain; background: #fff; padding: 3px; }
#auth-box .um-head .um-avatar.um-avatar-logo { background: #fff; }

