/* ==========================================================================
   星云寻知官网 · 共享样式（浅色 SaaS 风格）
   色板：白底 + 青绿主色 #00d294/#009683/#007d70，点缀蓝 #2563eb / 暖橙 #f99c00
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #fafaf7;
  --bg-subtle: #f5f6f5;
  --bg-tint: #eefbf6;

  --ink: #0a0a0a;
  --ink-2: #191715;
  --muted: #5b6470;
  --faint: #8a919c;

  --border: #e8e8e8;
  --border-2: #dedcd6;

  --brand: #00d294;
  --brand-2: #009683;
  --brand-3: #007d70;
  --brand-ink: #006b5e;

  --blue: #2563eb;
  --amber: #f99c00;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-md: 0 10px 30px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 20px 48px rgba(16, 24, 40, 0.10);

  --radius: 14px;
  --radius-lg: 20px;
  --container: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-3); text-decoration: none; }
a:hover { color: var(--brand-2); }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.topbar .nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.brand:hover { color: var(--ink); }

.brand-mark {
  width: 40px;
  height: 30px;
  border: 0;
  border-radius: 0;
  background: transparent url("xyxz-logo-mark.png") center / contain no-repeat;
  box-shadow: none;
  display: inline-block;
  flex: none;
}
.brand-mark::after { content: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav-links a {
  color: var(--muted);
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--ink); background: var(--bg-subtle); }
.nav-links a.active { color: var(--brand-3); font-weight: 600; }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.15s, background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--brand-3);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--brand-2); color: #fff; box-shadow: var(--shadow-md); }

.btn-secondary {
  background: #fff;
  color: var(--ink-2);
  border-color: var(--border-2);
}
.btn-secondary:hover { border-color: var(--brand-2); color: var(--brand-3); }

.btn-ghost { background: transparent; color: var(--brand-3); }
.btn-ghost:hover { background: var(--bg-tint); }

.btn-sm { padding: 7px 13px; font-size: 14px; border-radius: 8px; }

.nav-toggle {
  display: none;
  border: 1px solid var(--border-2);
  background: #fff;
  border-radius: 9px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 76px 0 64px;
  background:
    radial-gradient(1100px 420px at 82% -10%, rgba(0, 210, 148, 0.10), transparent 60%),
    radial-gradient(800px 360px at 8% 0%, rgba(37, 99, 235, 0.07), transparent 55%),
    linear-gradient(180deg, #fbfcf9 0%, #ffffff 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero-grid > * { min-width: 0; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-3);
  background: var(--bg-tint);
  border: 1px solid #c9f0e2;
  padding: 5px 12px;
  border-radius: 999px;
}
.pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

.hero h1 {
  font-size: 52px;
  line-height: 1.12;
  letter-spacing: -1px;
  margin: 20px 0 16px;
  font-weight: 800;
}
.hero h1 .accent {
  color: transparent;
  background: linear-gradient(90deg, var(--brand-3), var(--brand));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-copy {
  font-size: 17px;
  color: var(--muted);
  max-width: 520px;
  margin: 0 0 28px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-note {
  margin-top: 20px;
  font-size: 13px;
  color: var(--faint);
}

/* Hero 视觉卡片 */
.hero-visual { position: relative; min-width: 0; padding: 12px; }
.hero-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 0;
  overflow: hidden;
}
.hero-panel .panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}
.hero-panel .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-2); }
.hero-panel .dot.g { background: var(--brand); }

.hero-panel .panel-body { padding: 18px; }
.hero-panel .metric-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.hero-panel .metric {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  min-width: 0;
  padding: 12px;
}
.hero-panel .metric b { display: block; font-size: 20px; color: var(--brand-3); }
.hero-panel .metric span { font-size: 12px; color: var(--muted); }

.hero-panel .bar {
  height: 8px;
  border-radius: 6px;
  background: var(--bg-subtle);
  overflow: hidden;
  margin: 4px 0 12px;
}
.hero-panel .bar i {
  display: block;
  height: 100%;
  width: 72%;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  border-radius: 6px;
}

.hero-panel .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-panel .chip {
  font-size: 12px;
  color: var(--brand-3);
  background: var(--bg-tint);
  border: 1px solid #c9f0e2;
  border-radius: 999px;
  padding: 4px 10px;
}

/* ---------- 通用 section ---------- */
.section { padding: 72px 0; }
.section.soft { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }

.kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brand-2);
  margin-bottom: 12px;
}

.section-head h2 { font-size: 34px; line-height: 1.2; margin: 0 0 14px; letter-spacing: -0.5px; font-weight: 800; }
.section-head p { color: var(--muted); font-size: 16px; margin: 0; }

/* ---------- 卡片与宫格 ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #c9f0e2; }

.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  margin-bottom: 16px;
}
.card .icon.blue { background: linear-gradient(135deg, #3b82f6, var(--blue)); }
.card .icon.amber { background: linear-gradient(135deg, #fbbf24, var(--amber)); }

.card h3 { font-size: 18px; margin: 0 0 8px; font-weight: 700; }
.card p { color: var(--muted); font-size: 14.5px; margin: 0; }
.card .tag { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--brand-3); }

/* 能力卡（图标左置） */
.cap-card { display: flex; gap: 16px; align-items: flex-start; }
.cap-card .icon { flex: none; margin-bottom: 0; }

/* ---------- 模型墙 ---------- */
.model-wall { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.model-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 999px;
  padding: 7px 16px 7px 9px;
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 600;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  backdrop-filter: saturate(180%) blur(14px);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.model-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 150, 131, 0.28);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.09);
}

.model-logo {
  position: relative;
  width: 30px;
  height: 30px;
  flex: none;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 10px;
  background: linear-gradient(135deg, #0f172a, #475569);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42), 0 8px 18px rgba(15, 23, 42, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.model-logo::after {
  content: "";
  position: absolute;
  inset: 1px auto auto 1px;
  width: 42%;
  height: 42%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.32);
  filter: blur(5px);
}

.model-logo img {
  position: absolute;
  z-index: 2;
  inset: 4px;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  object-fit: contain;
  border-radius: 7px;
}

.model-logo img + .model-initial { opacity: 0; }

.model-initial {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.logo-deepseek { background: linear-gradient(135deg, #2563eb, #60a5fa); }
.logo-doubao { background: linear-gradient(135deg, #7c3aed, #f43f5e); }
.logo-qwen { background: linear-gradient(135deg, #0ea5e9, #2563eb); }
.logo-kimi { background: linear-gradient(135deg, #111827, #64748b); }
.logo-zhipu { background: linear-gradient(135deg, #0f766e, #22c55e); }
.logo-openai { background: linear-gradient(135deg, #111827, #374151); }
.logo-claude { background: linear-gradient(135deg, #fff7ed, #fed7aa); }
.logo-claude .model-initial { color: #9a3412; }
.logo-gemini { background: linear-gradient(135deg, #2563eb, #a855f7); }
.logo-wenxin { background: linear-gradient(135deg, #1d4ed8, #38bdf8); }
.logo-hunyuan { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.logo-minimax { background: linear-gradient(135deg, #111827, #14b8a6); }
.logo-baichuan { background: linear-gradient(135deg, #0f172a, #0ea5e9); }
.logo-stepfun { background: linear-gradient(135deg, #f97316, #facc15); }
.logo-mistral { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.logo-llama { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.logo-more { background: linear-gradient(135deg, var(--brand-3), var(--brand)); }

/* ---------- 闭环流程 ---------- */
.loop { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.loop .step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
}
.loop .step .no {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--brand-3);
  font-weight: 700;
}
.loop .step h3 { font-size: 16px; margin: 10px 0 6px; }
.loop .step p { font-size: 13.5px; color: var(--muted); margin: 0; }

/* ---------- 数据亮点 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 28px 16px; }
.stat b {
  display: block;
  font-size: 42px;
  line-height: 1.1;
  color: transparent;
  background: linear-gradient(90deg, var(--brand-3), var(--brand));
  -webkit-background-clip: text;
  background-clip: text;
  font-weight: 800;
  letter-spacing: -1px;
}
.stat span { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 640px; }
thead th {
  text-align: left;
  background: var(--bg-soft);
  color: var(--muted);
  font-weight: 600;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody td { padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--bg-subtle); }
td .mono { font-family: var(--mono); font-size: 13px; color: var(--brand-3); }

/* ---------- CTA 尾区 ---------- */
.cta { background: linear-gradient(135deg, #006b5e 0%, #009683 60%, #00b57e 100%); color: #fff; }
.cta .container { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { font-size: 28px; margin: 0 0 8px; }
.cta p { margin: 0; color: rgba(255, 255, 255, 0.85); max-width: 640px; }
.cta .btn { background: #fff; color: var(--brand-3); }
.cta .btn:hover { background: #f0fdf7; color: var(--brand-3); }

/* ---------- 页脚 ---------- */
.footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding: 56px 0 40px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { font-size: 15px; margin: 0 0 14px; color: var(--ink); }
.footer a { display: block; color: var(--muted); margin-bottom: 9px; }
.footer a:hover { color: var(--brand-3); }
.footer .brand-tag { color: var(--muted); font-size: 13px; margin-top: 12px; max-width: 320px; }
.footer .legal { border-top: 1px solid var(--border); margin-top: 36px; padding-top: 20px; color: var(--faint); font-size: 12.5px; line-height: 1.8; }
.footer .legal a { display: inline; color: var(--faint); text-decoration: underline; margin: 0; }
.footer .legal a:hover { color: var(--brand-3); }

/* ---------- 占位 ---------- */
.placeholder {
  border: 1px dashed var(--border-2);
  border-radius: var(--radius);
  background: var(--bg-soft);
  color: var(--faint);
  padding: 20px;
  text-align: center;
  font-size: 14px;
}
.placeholder code { color: var(--amber); font-family: var(--mono); }

/* ---------- 滚动渐入 ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero { padding: 48px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { font-size: 40px; }
  .grid-4, .loop { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .nav-links, .nav-actions .btn-ghost, .nav-actions .btn-secondary { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 12px 16px 20px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open a { padding: 12px; }
}

@media (max-width: 640px) {
  .section { padding: 52px 0; }
  .section-head h2 { font-size: 27px; }
  .hero h1 { font-size: 32px; }
  .hero-visual { padding: 0; }
  .hero-panel .panel-body { padding: 14px; }
  .hero-panel .metric-row { gap: 8px; }
  .hero-panel .metric { padding: 10px 8px; }
  .hero-panel .metric b { font-size: 18px; }
  .hero-panel .metric span { font-size: 11px; }
  .model-wall { gap: 10px; }
  .model-chip { max-width: 100%; }
  .grid-2, .grid-3, .grid-4, .loop { grid-template-columns: 1fr; }
  .stat b { font-size: 34px; }
  .cta .container { flex-direction: column; align-items: flex-start; }
}

/* ---------- 产品/详情页 ---------- */
.product { padding: 44px 0; border-bottom: 1px solid var(--border); }
.product:last-child { border-bottom: 0; }
.product .lead { font-size: 16.5px; color: var(--muted); }

.feature-list { list-style: none; margin: 0; padding: 0; }
.feature-list li {
  position: relative;
  padding: 9px 0 9px 26px;
  color: var(--muted);
  font-size: 14.5px;
  border-bottom: 1px dashed var(--border);
}
.feature-list li:last-child { border-bottom: 0; }
.feature-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 17px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}

.panel-box {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 8px;
}
.anchor-nav a {
  font-size: 13.5px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  background: #fff;
}
.anchor-nav a:hover { color: var(--brand-3); border-color: var(--brand-2); }

.page-hero {
  padding: 56px 0 40px;
  background: linear-gradient(180deg, #fbfcf9 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: 40px; margin: 14px 0 12px; letter-spacing: -0.5px; font-weight: 800; }
.page-hero p { color: var(--muted); max-width: 720px; margin: 0; font-size: 16px; }
