/* =========================================================
   天鸿智算 - 首页样式
   明亮 AI 应用科技风 / 浅色背景 + 蓝紫青渐变 + 玻璃拟态
   ========================================================= */

:root {
  --bg: #f6f8fd;
  --bg-alt: #ffffff;
  --bg-deep: #0b1120;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f4ff;
  --border: #e6ebf5;
  --border-light: #d4deef;
  --text: #0f172a;
  --text-dim: #475569;
  --text-mute: #94a3b8;
  --primary: #4f46e5;
  --cyan: #06b6d4;
  --violet: #8b5cf6;
  --grad: linear-gradient(135deg, #06b6d4 0%, #4f46e5 55%, #8b5cf6 100%);
  --grad-soft: linear-gradient(135deg, rgba(6, 182, 212, 0.10), rgba(139, 92, 246, 0.12));
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.10);
  --shadow-card: 0 4px 20px rgba(15, 23, 42, 0.05);
  --font: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- 返回顶部 ---------- */
.back-top {
  position: fixed;
  right: 26px;
  bottom: 30px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--grad);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(79, 70, 229, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s, transform .25s, box-shadow .25s;
  z-index: 99;
}
.back-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(79, 70, 229, 0.45);
}
@media (max-width: 768px) {
  .back-top {
    right: 16px;
    bottom: 20px;
    width: 42px;
    height: 42px;
    font-size: 18px;
  }
}

/* 全站强制微软雅黑（含标题/卡片/页脚，杜绝回退到等线、宋体） */
body, h1, h2, h3, h4, h5, h6, p, a, span, li, div, td, th,
input, button, textarea, select, label, blockquote {
  font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.grad-text {
  background: linear-gradient(120deg, #06b6d4, #4f46e5 55%, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(79, 70, 229, 0.38); }
.btn-outline { border-color: var(--border-light); color: var(--text); background: #fff; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.btn-ghost { color: var(--text-dim); background: transparent; }
.btn-ghost:hover { color: var(--primary); background: rgba(79, 70, 229, 0.06); }
.btn-ghost-light { color: #e0e7ff; background: transparent; border-color: rgba(224, 231, 255, 0.35); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.10); color: #fff; }
.btn-light { background: #fff; color: #312e81; }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25); }
.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: 12px; }
.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: all 0.3s ease;
  background: transparent;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.04);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--text); }
.brand-img { height: 34px; width: auto; display: block; }
.brand-logo {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad);
  border-radius: 9px;
  color: #fff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}
.brand-logo svg { width: 18px; height: 18px; }
.brand-name { letter-spacing: 0.5px; }

.nav-links { display: flex; gap: 4px; }
.nav-links a {
  padding: 8px 16px;
  font-size: 14.5px;
  color: var(--text-dim);
  border-radius: 8px;
  transition: all 0.2s;
}
.nav-links a:hover { color: var(--primary); background: rgba(79, 70, 229, 0.06); }
.nav-links a.active { color: var(--primary); background: rgba(79, 70, 229, 0.09); font-weight: 600; }
/* 语言切换下拉 */
.lang-dropdown { position: relative; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  font-family: inherit;
  background: #fff;
  padding: 6px 13px;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.lang-switch:hover { color: var(--primary); border-color: var(--primary); }
.lang-switch .lang-arrow { font-size: 10px; transition: transform .2s; }
.lang-dropdown.open .lang-switch { color: var(--primary); border-color: var(--primary); }
.lang-dropdown.open .lang-switch .lang-arrow { transform: rotate(180deg); }
.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 148px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  padding: 6px;
  z-index: 200;
}
.lang-dropdown.open .lang-menu { display: block; animation: modelFadeIn .18s ease both; }
.lang-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--text);
  text-decoration: none;
  transition: all .15s;
}
.lang-menu a:hover { background: var(--bg-card-hover); color: var(--primary); }
.lang-menu a.active { color: var(--primary); font-weight: 600; background: rgba(79, 70, 229, 0.07); }
@media (max-width: 768px) {
  .lang-menu { right: auto; left: 0; }
}

.nav-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 15% 5%, rgba(79, 70, 229, 0.14), transparent 45%),
    radial-gradient(ellipse at 90% 20%, rgba(6, 182, 212, 0.12), transparent 45%),
    radial-gradient(ellipse at 50% 100%, rgba(139, 92, 246, 0.10), transparent 55%),
    linear-gradient(180deg, #edf2ff 0%, var(--bg) 100%);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
/* 静态渐变光晕（主） */
.hero-bg::before {
  content: '';
  position: absolute; left: 50%; top: 50%;
  width: 780px; height: 780px; margin: -390px 0 0 -390px;
  background: conic-gradient(from 0deg, rgba(79, 70, 229, 0.28), rgba(6, 182, 212, 0.22) 30%, rgba(139, 92, 246, 0.28) 60%, rgba(79, 70, 229, 0.28) 100%);
  filter: blur(32px);
}
/* 静态渐变光晕（副） */
.hero-bg::after {
  content: '';
  position: absolute; left: 50%; top: 50%;
  width: 500px; height: 500px; margin: -250px 0 0 -250px;
  background: conic-gradient(from 180deg, rgba(6, 182, 212, 0.20), rgba(79, 70, 229, 0.16) 40%, rgba(236, 72, 153, 0.16) 70%, rgba(6, 182, 212, 0.20) 100%);
  filter: blur(36px);
}
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(79, 70, 229, 0.10) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(79, 70, 229, 0.10) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.6), transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.6), transparent 78%);
}

.hero-inner {
  position: relative;
  text-align: center;
}
.hero-text {
  max-width: 860px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(79, 70, 229, 0.07);
  border: 1px solid rgba(79, 70, 229, 0.20);
  margin-bottom: 24px;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }

.hero-title { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.2; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 22px; color: var(--text); }
.hero-sub { font-size: 17px; line-height: 1.7; color: var(--text-dim); max-width: 720px; margin: 0 auto 38px; }
.hero-actions { display: flex; justify-content: center; gap: 16px; margin-bottom: 56px; flex-wrap: wrap; }

.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 820px; margin: 0 auto; }
.stat-item { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.stat-num { font-size: 30px; font-weight: 700; background: linear-gradient(120deg, #06b6d4, #4f46e5 55%, #8b5cf6); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.stat-label { font-size: 13px; color: var(--text-mute); margin-top: 2px; }

.hero-wave { position: absolute; bottom: -1px; left: 0; right: 0; line-height: 0; }
.hero-wave svg { width: 100%; height: 60px; }

/* ---------- 通用区块 ---------- */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; margin-bottom: 56px; }

/* ---------- 平台核心能力（固定背景图） ---------- */
#features {
  position: relative;
  background: url('../image/banner_bg.jpg') center / cover no-repeat fixed;
  transform: translateZ(0); /* 提升为独立合成层，减少滚动重绘 */
  border-top: none;
  border-bottom: none;
}
#features::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(11, 15, 35, 0.72);
  z-index: 0;
}
#features > .container {
  position: relative;
  z-index: 1;
}
#features .section-title,
#features .section-sub,
#features .section-tag {
  color: #fff;
}
#features .section-tag {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.20);
}
.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--primary);
  background: rgba(79, 70, 229, 0.07);
  border: 1px solid rgba(79, 70, 229, 0.18);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.section-title { font-size: 38px; font-weight: 700; margin-bottom: 12px; color: var(--text); }
.section-sub { color: var(--text-dim); font-size: 16px; }
.empty-tip { text-align: center; color: var(--text-mute); padding: 40px 0; }

/* ---------- 模型广场 ---------- */
.model-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.model-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
}
.model-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: rgba(79, 70, 229, 0.35);
  box-shadow: 0 18px 44px rgba(79, 70, 229, 0.12);
}
.model-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.model-avatar {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700;
  background: var(--grad-soft);
  border: 1px solid rgba(79, 70, 229, 0.18);
  color: var(--primary);
}
.model-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 11px; padding: 3px 9px; border-radius: 999px; font-weight: 600; }
.tag-hot { color: #b45309; background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.30); }
.tag-featured { color: #0e7490; background: rgba(6, 182, 212, 0.10); border: 1px solid rgba(6, 182, 212, 0.30); }

.model-name { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.model-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.model-provider { font-size: 12.5px; color: var(--primary); background: rgba(79, 70, 229, 0.07); padding: 2px 10px; border-radius: 6px; font-weight: 600; }
.model-cat { font-size: 12.5px; color: var(--text-dim); }
.model-ctx { font-size: 12px; color: var(--text-mute); }
.model-desc { font-size: 13.5px; color: var(--text-dim); margin-bottom: 18px; flex: 1; }

.model-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px dashed var(--border-light);
  margin-bottom: 14px;
}
.price-item { display: flex; align-items: baseline; gap: 5px; }
.price-label { font-size: 12px; color: var(--text-mute); }
.price-val { font-size: 17px; font-weight: 700; color: var(--primary); }
.price-unit { font-size: 11px; color: var(--text-mute); margin-left: auto; }

/* 模型广场折叠：默认仅显示前 1 行（桌面 4 个） */
.model-card.is-collapsed { display: none; }
#modelGrid.expanded .model-card.is-collapsed { display: flex; animation: modelFadeIn .4s ease both; }
@keyframes modelFadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.model-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 30px auto 0;
  padding: 12px 30px;
  border: 1.5px dashed var(--border);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .3s ease;
}
.model-more:hover {
  border-color: var(--primary);
  background: rgba(79, 70, 229, 0.06);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.12);
}
.model-more .model-more-arrow { font-size: 12px; transition: transform .3s ease; }
.model-more.active .model-more-arrow { transform: rotate(180deg); }

/* 模型覆盖（参考页风格 8 格） */
.model-coverage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.coverage-item {
  padding: 22px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-card);
  transition: all .3s ease;
}
.coverage-item:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(79, 70, 229, 0.05);
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(79, 70, 229, 0.10);
}
.coverage-item.coverage-link { text-decoration: none; }
.coverage-item .cov-arrow { margin-left: 2px; display: inline-block; transition: transform .25s ease; }
.coverage-item:hover .cov-arrow { transform: translateX(4px); }

/* ---------- 平台核心能力 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
}
.feature-card:hover { transform: translateY(-6px); border-color: rgba(6, 182, 212, 0.40); box-shadow: 0 18px 44px rgba(6, 182, 212, 0.10); }
.feature-icon {
  width: 58px; height: 58px;
  margin: 0 auto 20px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-soft);
  border: 1px solid rgba(79, 70, 229, 0.18);
}
.feature-icon svg { width: 26px; height: 26px; color: var(--primary); }
.feature-card h3 { font-size: 18px; margin-bottom: 10px; color: var(--text); }
.feature-card p { font-size: 13.5px; color: var(--text-dim); }

/* ---------- 价格套餐 ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1000px; margin: 0 auto; }
.pricing-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 34px 30px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
}
.pricing-card:hover { transform: translateY(-6px); border-color: var(--border-light); box-shadow: var(--shadow); }
.pricing-card.hot {
  background: linear-gradient(180deg, rgba(79, 70, 229, 0.05), rgba(255, 255, 255, 0));
  border-color: rgba(79, 70, 229, 0.45);
  box-shadow: 0 24px 60px rgba(79, 70, 229, 0.16);
  transform: scale(1.03);
}
.pricing-card.hot:hover { transform: scale(1.03) translateY(-6px); }
.hot-badge {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--grad);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35);
}
.pkg-name { font-size: 16px; color: var(--text-dim); font-weight: 600; margin-bottom: 14px; }
.pkg-price { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin-bottom: 8px; }
.pkg-currency { font-size: 20px; color: var(--text); font-weight: 600; }
.pkg-amount { font-size: 46px; font-weight: 700; letter-spacing: -1px; background: linear-gradient(120deg, #06b6d4, #4f46e5 55%, #8b5cf6); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.pkg-original { font-size: 14px; color: var(--text-mute); text-decoration: line-through; }
.pkg-bonus { font-size: 13px; color: var(--violet); margin-bottom: 20px; min-height: 20px; }
.pkg-features { text-align: left; margin-bottom: 24px; }
.pkg-features li {
  position: relative;
  padding: 7px 0 7px 26px;
  font-size: 14px;
  color: var(--text-dim);
}
.pkg-features li::before {
  content: "✓";
  position: absolute; left: 0; top: 7px;
  color: var(--cyan);
  font-weight: 700;
}

/* ---------- 使用流程 ---------- */
.process-grid {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.process-item {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
}
.process-item:hover { transform: translateY(-6px); border-color: rgba(139, 92, 246, 0.40); box-shadow: 0 18px 44px rgba(139, 92, 246, 0.12); }
.process-num {
  width: 56px; height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.30);
}
.process-item h3 { font-size: 18px; margin-bottom: 8px; color: var(--text); }
.process-item p { font-size: 13.5px; color: var(--text-dim); }
.process-arrow { display: flex; align-items: center; font-size: 26px; color: var(--text-mute); }

/* ---------- 平台动态 ---------- */
.news-list { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.news-item {
  display: flex;
  gap: 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
}
.news-item:hover { background: var(--bg-card-hover); border-color: var(--border-light); transform: translateX(6px); }
.news-date { display: flex; flex-direction: column; align-items: center; min-width: 64px; padding-right: 22px; border-right: 1px solid var(--border); }
.news-day { font-size: 28px; font-weight: 700; background: linear-gradient(120deg, #06b6d4, #4f46e5 55%, #8b5cf6); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; line-height: 1.2; }
.news-month { font-size: 12px; color: var(--text-mute); }
.news-content h3 { font-size: 16.5px; margin-bottom: 6px; color: var(--text); }
.news-content p { font-size: 14px; color: var(--text-dim); }
.notice-more { display: inline-block; margin-top: 8px; color: var(--primary); font-size: 13px; font-weight: 600; }
.notice-more:hover { text-decoration: underline; }

/* ---------- CTA（深色渐变收尾区） ---------- */
.cta-section {
  position: relative;
  padding: 90px 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(139, 92, 246, 0.35), transparent 50%),
    radial-gradient(ellipse at 85% 100%, rgba(6, 182, 212, 0.30), transparent 50%),
    linear-gradient(135deg, #141238 0%, #221c63 55%, #123a52 100%);
}
.cta-section::before {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.5), transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.5), transparent 75%);
}
.cta-inner { position: relative; text-align: center; }
.cta-inner h2 { font-size: 36px; font-weight: 700; margin-bottom: 12px; color: #fff; }
.cta-inner p { color: rgba(224, 231, 255, 0.85); margin-bottom: 30px; font-size: 16px; }
.cta-actions { display: flex; justify-content: center; gap: 14px; }

/* ---------- 页脚 ---------- */
.site-footer { background: #eef2f9; border-top: 1px solid var(--border); padding-top: 64px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand .brand-img { height: 32px; }
.footer-brand p { font-size: 13.5px; color: var(--text-mute); margin-top: 14px; max-width: 280px; }
.footer-col h4 { font-size: 15px; margin-bottom: 16px; color: var(--text); }
.footer-col a { display: block; font-size: 13.5px; color: var(--text-dim); padding: 5px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--primary); }
.footer-col p { font-size: 13px; color: var(--text-dim); padding: 4px 0; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  align-items: center;
}
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer-bottom span, .footer-bottom a { font-size: 13px; color: var(--text-mute); }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .model-grid { grid-template-columns: repeat(3, 1fr); }
  .model-coverage-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
  }
  .nav-actions.open { display: flex; position: absolute; top: 220px; left: 24px; }
  .section { padding: 72px 0; }
  .section-title { font-size: 30px; }
  .model-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
  .pricing-card.hot { transform: none; }
  .pricing-card.hot:hover { transform: translateY(-6px); }
  .process-grid { flex-direction: column; max-width: 420px; }
  .process-arrow { transform: rotate(90deg); justify-content: center; padding: 6px 0; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .news-item { flex-direction: column; gap: 12px; }
  .news-date { flex-direction: row; gap: 8px; border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 10px; min-width: 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .feature-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .model-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .btn-lg { width: 100%; }
}

/* ---------- 模型市场页 ---------- */
.market-page { padding: 56px 0 80px; min-height: 60vh; }
.model-card { cursor: pointer; }

/* 分类标签 */
.tag-cat { color: var(--primary); background: rgba(79, 70, 229, 0.08); border: 1px solid rgba(79, 70, 229, 0.22); }

/* 筛选区 */
.ml-filter {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 34px;
  box-shadow: var(--shadow-card);
}
.ml-filter-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.ml-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.ml-tab {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  background: var(--bg-body);
  border: 1px solid var(--border);
  transition: all .25s ease;
}
.ml-tab:hover { color: var(--primary); border-color: rgba(79, 70, 229, 0.4); }
.ml-tab.active {
  color: #fff;
  background: linear-gradient(120deg, #06b6d4, #4f46e5);
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.25);
}
.ml-search { display: flex; align-items: center; gap: 8px; }
.ml-search svg { width: 18px; height: 18px; color: var(--text-mute); flex-shrink: 0; }
.ml-search input {
  width: 220px;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  background: var(--bg-body);
  color: var(--text);
  outline: none;
  transition: border-color .2s ease;
}
.ml-search input:focus { border-color: rgba(79, 70, 229, 0.5); }
.ml-filter-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin-top: 16px; padding-top: 14px;
  border-top: 1px dashed var(--border);
}
.ml-provider { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ml-filter-label { font-size: 13px; color: var(--text-mute); }
.ml-chip {
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-dim);
  background: var(--bg-body);
  border: 1px solid var(--border);
  transition: all .2s ease;
}
.ml-chip:hover { color: var(--primary); border-color: rgba(79, 70, 229, 0.4); }
.ml-chip.active { color: var(--primary); background: rgba(79, 70, 229, 0.08); border-color: rgba(79, 70, 229, 0.4); }
.ml-count { font-size: 13px; color: var(--text-mute); }

/* 卡片按钮行 */
.model-card-actions { display: flex; gap: 8px; }
.model-card-actions .btn { flex: 1; }

/* 分页 */
.ml-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 40px; flex-wrap: wrap; }
.ml-pagination a {
  min-width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-dim);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all .2s ease;
}
.ml-pagination a:hover { color: var(--primary); border-color: rgba(79, 70, 229, 0.4); }
.ml-pagination a.active { color: #fff; background: linear-gradient(120deg, #06b6d4, #4f46e5); border-color: transparent; }

/* ---------- 模型详情弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(15, 18, 35, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-mask[hidden] { display: none !important; }
.modal-box {
  width: 100%; max-width: 760px; max-height: 86vh;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  position: relative;
  box-shadow: 0 24px 70px rgba(15, 18, 35, 0.35);
  animation: modalIn .25s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-body);
  color: var(--text-dim);
  font-size: 18px; line-height: 1;
  cursor: pointer;
  transition: all .2s ease;
}
.modal-close:hover { color: #e11d48; border-color: rgba(225, 29, 72, 0.4); }
.modal-head { display: flex; align-items: center; gap: 14px; padding-right: 30px; margin-bottom: 20px; }
.modal-avatar {
  width: 52px; height: 52px; flex-shrink: 0;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700;
  color: var(--primary);
  background: var(--grad-soft);
  border: 1px solid rgba(79, 70, 229, 0.18);
}
/* ---- 模型卡片「已选择」状态 ---- */
.model-select-btn.selected {
  background: #10b981;
  border-color: #10b981;
  color: #fff;
}
.model-select-btn.selected:hover { background: #059669; border-color: #059669; }
/* 已在「我的清单」中的模型：灰色、不可再操作 */
.model-select-btn.in-list {
  background: #64748b;
  border-color: #64748b;
  color: #fff;
  cursor: default;
}
.model-select-btn.in-list:hover { background: #64748b; border-color: #64748b; color: #fff; }
/* ---- 抛物动画圆点 ---- */
.cart-fly-dot {
  position: fixed;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.55);
  pointer-events: none;
  z-index: 99999;
  will-change: transform;
}
/* ---- 轻提示 toast ---- */
.ml-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-16px);
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  font-size: 13px;
  padding: 9px 18px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
  opacity: 0;
  pointer-events: none;
  z-index: 99999;
  transition: opacity 0.2s, transform 0.2s;
}
.ml-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.modal-name { font-size: 19px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.modal-sub { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--text-dim); }
.dm-section { margin: 18px 0; }
.dm-section h4 { font-size: 13px; font-weight: 700; color: var(--text-mute); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.dm-section p { font-size: 14px; line-height: 1.75; color: var(--text-dim); }
.dm-params { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 18px 0; }
.dm-param {
  display: flex; flex-direction: column; gap: 3px;
  padding: 12px 14px;
  background: var(--bg-body);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.dm-param-label { font-size: 12px; color: var(--text-mute); }
.dm-param-val { font-size: 15px; font-weight: 600; color: var(--text); }
.dm-code {
  background: #0f1524;
  color: #c9d6f2;
  font-family: Consolas, Monaco, 'Courier New', monospace;
  font-size: 12.5px;
  line-height: 1.7;
  padding: 16px;
  border-radius: 12px;
  white-space: pre-wrap;
  word-break: break-all;
  overflow-wrap: anywhere;
}
.modal-foot { display: flex; gap: 10px; margin-top: 22px; }
.modal-foot .btn { flex: 1; }
@media (max-width: 560px) {
  .dm-params { grid-template-columns: 1fr; }
  .ml-search input { width: 150px; }
}

/* 用户系统偏好减少动效时，关闭装饰动画（提升流畅度与可访问性） */
@media (prefers-reduced-motion: reduce) {
  .hero-bg::before,
  .hero-bg::after,
  .grid-lines {
    animation: none !important;
  }
}
