/* ============================================================
   星枢AI 首页 v2 —— 对齐参考站顶部导航与模型滚动背景
   ============================================================ */

/* 顶部导航：透明悬浮，参考站风格 */
.landing-header-v2 {
  background: rgba(10, 10, 14, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  /* 横向保留裁剪（窄屏不出现横向滚动），纵向放开，让右上角 ZH 语言下拉菜单能伸出头部显示，否则被 64px 高的头部裁掉、点不到语言 */
  overflow-x: clip;
  overflow-y: visible;
}
.lh-inner { position: relative; z-index: 2; display: flex; align-items: center; height: 64px; }
.landing-header-v2 .brand { display: flex; align-items: center; gap: 10px; z-index: 2; }
.landing-header-v2 .brand strong { font-size: 18px; font-weight: 800; color: #fff; letter-spacing: .02em; }
.landing-header-v2 .brand small { display: block; font-size: 10px; color: #8a8a95; text-transform: none; letter-spacing: .03em; }

/* 顶部导航铺满整行：Logo 贴左、按钮组贴右，两侧各留 22px（突破 .container 的 max-width 居中限制） */
.landing-header-v2 .lh-inner { max-width: 100% !important; width: 100%; padding-left: 22px; padding-right: 22px; justify-content: space-between; }
.lh-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; z-index: 2; }
.lh-start {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 20px; border-radius: 999px;
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  color: #fff !important; font-weight: 700; font-size: 14px;
  white-space: nowrap; flex-shrink: 0;
  box-shadow: 0 4px 18px rgba(6, 182, 212, .35);
  transition: transform .18s, box-shadow .18s;
}
.lh-start:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(6, 182, 212, .5); }
.lh-lang {
  width: 42px; height: 34px; border-radius: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: #d6d6e0; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: all .18s;
}
.lh-lang:hover { border-color: #22d3ee; color: #22d3ee; }
.lh-nav-link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 14px; border-radius: 10px;
  background: transparent; border: 1px solid transparent;
  color: #c8c8d4; font-size: 13.5px; font-weight: 600;
  cursor: pointer; text-decoration: none;
  transition: all .18s; white-space: nowrap;
}
.lh-nav-link:hover { color: #22d3ee; background: rgba(34,211,238,.08); border-color: rgba(34,211,238,.2); }
.lh-nav-link .lh-nav-ico { font-size: 13px; opacity: .85; }

/* 顶部模型名称滚动背景条（参考站顶部半透明滚动模型名） */
.top-model-marquee {
  position: relative !important;
  width: 100% !important;
  height: 42px !important;
  min-height: 42px !important;
  display: flex !important;
  align-items: center !important;
  visibility: visible !important;
  opacity: 1 !important;
  white-space: nowrap;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.85) 100%) !important;
  border-bottom: 1px solid rgba(34,211,238,0.15) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3) !important;
  z-index: 50 !important;
  margin-top: 64px !important;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.top-model-marquee .tmm-track {
  display: inline-flex; align-items: center; gap: 34px;
  padding-left: 34px;
  animation: tmm-scroll 50s linear infinite;
}
.top-model-marquee .tmm-track:hover { animation-play-state: paused; }
.top-model-marquee .tmm-item {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; color: rgba(220, 220, 235, .55);
  font-weight: 500;
}
.top-model-marquee .tmm-item .tmm-ico { font-size: 15px; opacity: .9; }
@keyframes tmm-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
html[data-theme="light"] .top-model-marquee { background: rgba(248, 250, 252, 0.8); border-bottom-color: rgba(0,0,0,.06); }
html[data-theme="light"] .top-model-marquee .tmm-item { color: rgba(82,91,112,.6); }

/* 登录后头部按钮样式兼容（首页顶部不显示用户头像区，对齐参考站：客服/开发者/开始使用/EN） */
.lh-actions #headerAuth { display: none !important; }
.lh-actions .header-user, .lh-actions .auth-btns { display: inline-flex; align-items: center; gap: 10px; }
/* 首页顶部不显示独立主题切换按钮（主题切换在工作台用户菜单内） */
.landing-header-v2 .hdr-theme-btn, .lh-inner > [data-theme-toggle] { display: none !important; }

/* hero 顶部留出固定导航高度 */
.landing-page .hero { padding-top: 96px; }

/* 隐藏首页不再需要的旧导航 */
.landing-header-v2 .main-nav { display: none !important; }

/* 响应式 */
@media (max-width: 720px) {
  .lh-lang { display: none; }
  .top-model-marquee .tmm-track { padding-left: 140px; }
  .landing-header-v2 .brand small { display: none; }
}

.lh-actions{flex-shrink:0}.landing-header-v2 .brand{flex-shrink:0}.lh-actions>*{flex-shrink:0}

/* 顶部EN语言切换器（对齐参考站，放在开始使用之后） */
.landing-header-v2 .lang-switcher, .lh-actions .lang-switcher { display: inline-flex !important; align-items: center; position: relative; }
.lh-actions .lang-btn { height: 34px; padding: 0 12px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); color: #e2e8f0; font-size: 13px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.lh-actions .lang-btn:hover { background: rgba(255,255,255,.12); }
.lh-actions .lang-dropdown { position: absolute; top: 42px; right: 0; min-width: 168px; max-height: 340px; overflow-y: auto; background: #14141c; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 6px; box-shadow: 0 16px 44px rgba(0,0,0,.5); z-index: 9999; display: none; }
.lh-actions .lang-dropdown.show { display: block; }
.lh-actions .lang-option { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 10px; border: 0; background: none; color: #cbd5e1; font-size: 13.5px; border-radius: 8px; cursor: pointer; text-align: left; }
.lh-actions .lang-option:hover { background: rgba(34,211,238,.1); }
.lh-actions .lang-option.active { color: #22d3ee; font-weight: 700; }

/* 确保导航按钮在模型滚动条之上 */
.lh-inner { z-index: 10 !important; }
.lh-actions { z-index: 10 !important; position: relative; }

/* 确保用户菜单默认隐藏且不占空间 */
.lh-actions .user-menu[hidden], .header-actions .user-menu[hidden] { display: none !important; }
.lh-actions .user-menu { display: none; }
.lh-actions .user-menu:not([hidden]) { display: block; }

/* 完全隐藏顶部模型滚动条（导致导航重叠） */
/* 顶部模型跑马灯已改为导航栏下方独立行，不再隐藏 */

/* ============================================================
   漂浮模型图标 + 光带 + 粒子（对齐参考站惠众AI）
   ============================================================ */
.floating-models { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.fm-item {
  position: absolute; display: flex; flex-direction: column; align-items: center; gap: 4px;
  opacity: 0; animation: fmFloat linear infinite;
}
.fm-icon {
  width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, rgba(34,211,238,.25), rgba(59,130,246,.25));
  border: 1px solid rgba(34,211,238,.3);
  backdrop-filter: blur(4px);
  box-shadow: 0 0 20px rgba(34,211,238,.15);
}
.fm-icon.round { border-radius: 50%; }
.fm-icon.hex { clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); }
.fm-label { font-size: 10px; color: rgba(255,255,255,.35); white-space: nowrap; letter-spacing: .02em; max-width: 80px; overflow: hidden; text-overflow: ellipsis; }
@keyframes fmFloat {
  0% { opacity: 0; transform: translateY(0) scale(.9); }
  10% { opacity: .8; }
  90% { opacity: .8; }
  100% { opacity: 0; transform: translateY(-40px) scale(1.05); }
}

/* 光带斜线 */
.light-beams { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.beam { position: absolute; height: 2px; transform-origin: left center; opacity: .4; }
.beam-cyan {
  width: 140%; left: -20%; top: 60%;
  background: linear-gradient(90deg, transparent, #22d3ee, transparent);
  transform: rotate(-18deg);
  box-shadow: 0 0 30px rgba(34,211,238,.5);
  animation: beamPulse 6s ease-in-out infinite;
}
.beam-purple {
  width: 120%; left: -10%; top: 35%;
  background: linear-gradient(90deg, transparent, #8b5cf6, transparent);
  transform: rotate(-22deg);
  box-shadow: 0 0 30px rgba(139,92,246,.4);
  animation: beamPulse 8s ease-in-out infinite reverse;
}
@keyframes beamPulse {
  0%, 100% { opacity: .25; }
  50% { opacity: .6; }
}

/* 右下角客服悬浮按钮 */
.kefu-fab {
  position: fixed; right: 28px; bottom: 28px; z-index: 90;
  width: 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, #22d3ee, #06b6d4);
  color: #fff; font-size: 22px;
  box-shadow: 0 4px 24px rgba(34,211,238,.4), 0 0 0 6px rgba(34,211,238,.1);
  transition: transform .25s, box-shadow .25s;
  display: flex; align-items: center; justify-content: center;
}
.kefu-fab:hover { transform: scale(1.1); box-shadow: 0 6px 32px rgba(34,211,238,.55), 0 0 0 8px rgba(34,211,238,.15); }

/* hero数据统计改为白色（对齐参考站） */
.hero-stats .hero-stat strong { color: #fff !important; }
.hero-stats .hero-stat span { color: rgba(255,255,255,.5) !important; }

/* 浅色模式下数据统计改深色 */
html[data-theme="light"] .hero-stats .hero-stat strong { color: #1c2233 !important; }
html[data-theme="light"] .hero-stats .hero-stat span { color: #525b70 !important; }

/* 浅色模式下hero标题、副标题、福利条适配 */
html[data-theme="light"] .hero-title { color: #1c2233; }
html[data-theme="light"] .hero-title .hero-static { color: #1c2233; }
html[data-theme="light"] .hero-sub { color: #525b70; }
html[data-theme="light"] .hero-gift { color: #525b70; border-color: #d4d9e6; background: rgba(255,255,255,.7); }
html[data-theme="light"] .hero-chip { color: #0e7490; border-color: rgba(14,158,192,.3); background: rgba(14,158,192,.08); }

/* 浅色模式下漂浮图标适配 */
html[data-theme="light"] .fm-icon {
  background: linear-gradient(135deg, rgba(14,158,192,.15), rgba(99,102,241,.15));
  border-color: rgba(14,158,192,.25);
  color: #0e7490;
  box-shadow: 0 0 20px rgba(14,158,192,.1);
}

/* 浅色模式下光带降低透明度避免刺眼 */
html[data-theme="light"] .beam-cyan { opacity: .2; }
html[data-theme="light"] .beam-purple { opacity: .15; }

/* 浅色模式下商务合作按钮 */
html[data-theme="light"] .btn-outline { background: #fff; color: #1c2233; border-color: #d4d9e6; }
html[data-theme="light"] .btn-outline:hover { border-color: #0e9ec0; color: #0e9ec0; }

/* 浅色模式下顶部导航适配 */
html[data-theme="light"] .landing-header-v2 {
  background: rgba(255,255,255,0.88);
  border-bottom: 1px solid #e9ebf2;
}
html[data-theme="light"] .landing-header-v2 .brand strong { color: #1c2233; }
html[data-theme="light"] .landing-header-v2 .brand small { color: #8a93a8; }
html[data-theme="light"] .lh-nav-link { color: #525b70; }
html[data-theme="light"] .lh-nav-link:hover { color: #0e9ec0; background: rgba(14,158,192,.08); }
html[data-theme="light"] .lh-lang { background: #f1f3f9; color: #525b70; border-color: #d4d9e6; }
html[data-theme="light"] .top-model-marquee .tmm-item { color: rgba(82,91,112,.4); }
html[data-theme="light"] [data-theme-toggle] { color: #525b70; border-color: #d4d9e6; background: #f1f3f9; }

/* hero副标题居中（对齐参考站） */
.hero-sub { text-align: center; max-width: 640px; margin-left: auto; margin-right: auto; }

/* 椭圆轨道：隐藏模型名称文字（避免中间重叠），只显示图标；隐藏左右跳出卡 */
#orbitRing .oin { display: block; }
.hero .orbit-spots { display: block; }

/* ============================================================
   椭圆模型轨道样式（从landing-ref.css移植）
   ============================================================ */
.hero .orbit-stage{ z-index:0; }
.hero .hero-inner{ position:relative; z-index:3; }
#orbitRing{ --R:clamp(330px, 45vh, 418px); --sx:1.35;
  position:absolute; left:50%; top:46%; width:0; height:0;
  transform:scaleX(var(--sx)); }
#orbitRing .ospin{ position:absolute; left:0; top:0; width:0; height:0;
  animation:orbitSpin 80s linear infinite; transform-origin:0 0; }
@keyframes orbitSpin{ from{ transform:rotate(0deg);} to{ transform:rotate(360deg);} }
#orbitRing .oi{ position:absolute; left:0; top:0; width:0; height:0;
  transform:rotate(var(--a)) translateY(calc(var(--R) * -1)); }
#orbitRing .oiw{ position:absolute; left:0; top:0; display:flex; flex-direction:column;
  align-items:center; gap:4px; transform:translate(-50%,-50%);
  animation:orbitCounter 80s linear infinite; will-change:transform; }
@keyframes orbitCounter{
  from{ transform:translate(-50%,-50%) rotate(calc(-1 * var(--a))) scaleX(calc(1 / var(--sx))); }
  to{   transform:translate(-50%,-50%) rotate(calc(-1 * var(--a) - 360deg)) scaleX(calc(1 / var(--sx))); }
}
#orbitRing .oii{ width:30px; height:30px; border-radius:9px; object-fit:contain; padding:5px;
  background:rgba(22,24,34,.92); border:1px solid rgba(255,255,255,.09);
  box-shadow:0 2px 10px rgba(0,0,0,.4); }
#orbitRing .oin{ font-size:10px; line-height:1; white-space:nowrap; color:rgba(231,241,248,.55);
  font-weight:500; letter-spacing:.01em; }
#orbitRing .oi.is-dim .oii{ opacity:.4; }
#orbitRing .oi.is-dim .oin{ opacity:.4; }
.orbit-stage .orbit-lines{ z-index:0; }
#orbitRing{ animation:orbitEnter 2.4s cubic-bezier(.16,1,.3,1) both; }
@keyframes orbitEnter{ from{ opacity:0;} to{ opacity:1;} }
.orbit-lines .ol-a{ border-color:rgba(0,202,224,.18); box-shadow:0 0 26px rgba(0,202,224,.08); }
.orbit-lines .ol-b{ border-color:rgba(120,80,255,.14); }
/* 浅色模式下椭圆轨道适配 */
html[data-theme="light"] #orbitRing .oii{ background:rgba(255,255,255,.9); border-color:rgba(0,0,0,.08); }
html[data-theme="light"] #orbitRing .oin{ color:rgba(30,41,59,.55); }
@media (max-width:860px){
  #orbitRing{ --R:150px; --sx:1.14; top:42%; opacity:.5; }
  #orbitRing .oii{ width:18px; height:18px; border-radius:6px; padding:3px; }
  #orbitRing .oin{ display:none; }
}

/* ===== 首页放大展示卡：提层级 + 文字衬底，避免与轨道小图标重叠（需求4/8） ===== */
.hero .orbit-spots { z-index: 12 !important; }
.orbit-spot { z-index: 12; }
.orbit-spot .os-txt { background: linear-gradient(180deg, rgba(10,15,24,.0), rgba(10,15,24,.72) 30%, rgba(10,15,24,.82)); border-radius: 12px; padding: 18px 10px 10px; margin-top: -10px; }
.orbit-spot .os-txt b { text-shadow: 0 1px 8px rgba(0,0,0,.9), 0 0 14px rgba(34,211,238,.5); }
.orbit-spot .os-txt p { text-shadow: 0 1px 6px rgba(0,0,0,.9); }
html[data-theme=light] .orbit-spot .os-txt { background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.85) 30%, rgba(255,255,255,.92)); }
