﻿/* ============================================================
   HormLab Portal · 全站共用样式（header/footer/通用组件/动效基线）
   依赖 tokens.css；各页面私有样式放页面内 <style> 或独立 css
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-cn);
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

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

/* ============ 导航 ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  transition: background 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), backdrop-filter 0.35s;
}
.nav.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
}
.nav-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo .nav-logo-icon {
  height: 44px; width: 44px; border-radius: 12px; object-fit: cover; flex-shrink: 0;
  display: block; box-shadow: 0 2px 8px rgba(91,108,255,0.25);
}
.nav-logo .logo-text {
  font-family: var(--font-en); font-weight: 800; font-size: 22px;
  color: #fff; letter-spacing: -0.3px; line-height: 1;
  display: inline-flex; align-items: baseline;
  transition: color 0.35s;
}
.nav-logo .logo-text .logo-accent {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-teal, #00E5C7) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.nav-logo .logo-text .logo-dot {
  color: #FBBF24; margin-left: 3px; font-size: 24px; line-height: 1;
}
.nav.scrolled .nav-logo .logo-text { color: var(--text-dark); }
.nav.scrolled .nav-logo .logo-text .logo-dot { color: #F59E0B; }

/* 移动端：图标缩小到 40px，文字 20px，避免挤占空间 */
@media (max-width: 960px) {
  .nav-logo .nav-logo-icon { height: 40px; width: 40px; border-radius: 10px; }
  .nav-logo .logo-text { font-size: 20px; }
  .nav-logo .logo-text .logo-dot { font-size: 22px; }
  .nav-logo { gap: 10px; }
}
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 15px; font-weight: 500; color: rgba(255,255,255,0.85);
  transition: color 0.25s; position: relative; padding: 6px 0;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--primary-blue);
  border-radius: 2px; transition: width 0.3s var(--ease-out);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav.scrolled .nav-links a { color: var(--text-mid); }
.nav.scrolled .nav-links a:hover, .nav.scrolled .nav-links a.active { color: var(--primary-blue); }
.nav-actions { display: flex; align-items: center; gap: 14px; }

/* 导航右侧：ZH/EN 语言切换 */
.lang-switch {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-en); font-size: 14px; font-weight: 600;
  color: rgba(255,255,255,0.65); transition: color 0.25s;
}
.lang-switch a, .lang-switch span { color: inherit; text-decoration: none; }
.lang-switch .lang-sep { opacity: 0.45; }
.lang-switch .active { color: #fff; font-weight: 700; }
.lang-switch a:hover { color: #fff; }
.nav.scrolled .lang-switch { color: var(--text-mid); }
.nav.scrolled .lang-switch .active { color: var(--primary-blue); }
.nav.scrolled .lang-switch a:hover { color: var(--primary-blue); }

/* 导航右侧：登录按钮 */
.btn-login {
  padding: 8px 18px; border-radius: var(--r-pill);
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.35);
  color: #fff; font-size: 14px; font-weight: 600; font-family: inherit;
  cursor: pointer; transition: all 0.25s var(--ease-out);
}
.btn-login:hover { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.6); }
.nav.scrolled .btn-login {
  background: transparent; border-color: rgba(91,108,255,0.4); color: var(--primary-blue);
}
.nav.scrolled .btn-login:hover { background: rgba(91,108,255,0.08); border-color: var(--primary-blue); }

/* 导航右侧：报告查询（荧光青主按钮） */
.btn-report {
  padding: 9px 20px; border-radius: var(--r-pill);
  background: var(--accent-teal, #00E5C7); color: #06202B;
  font-size: 14px; font-weight: 700; text-decoration: none;
  box-shadow: 0 4px 20px rgba(0,229,199,0.35);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
  white-space: nowrap;
}
.btn-report:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,229,199,0.5); }

.btn-ai-entry {
  padding: 9px 18px; border-radius: var(--r-pill);
  background: var(--cyan-glow);
  color: var(--space-dark); font-size: 14px; font-weight: 700;
  box-shadow: var(--shadow-glow-cyan);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
  display: flex; align-items: center; gap: 6px;
}
.btn-ai-entry:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0,229,199,0.5); }
.nav-burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-burger span { width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: all 0.3s; }
.nav.scrolled .nav-burger span { background: var(--text-dark); }

/* 移动端抽屉 */
.mobile-menu {
  position: fixed; inset: 0; z-index: 999; background: rgba(6,9,26,0.98);
  backdrop-filter: blur(20px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a { color: #fff; font-size: 22px; font-weight: 600; }
.mobile-menu a.active { color: #008E7A; }

/* ============ 页脚 ============ */
.footer {
  background: var(--space-deeper);
  color: var(--text-white-muted);
  padding: 64px 0 32px;
  position: relative;
}
.footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,229,199,0.5), transparent);
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand img { height: 52px; width: auto; margin-bottom: 18px; border-radius: 8px; }
.footer-brand p { font-size: 14px; line-height: 1.9; text-align: left; }
.footer-cert {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  padding: 8px 14px; border-radius: var(--r-sm);
  background: rgba(0,229,199,0.1); border: 1px solid rgba(0,229,199,0.3);
  color: #008E7A; font-size: 13px; font-weight: 600; text-align: left;
}
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 18px; font-weight: 600; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { font-size: 14px; transition: color 0.25s; }
.footer-col a:hover { color: #008E7A; }
.footer-bottom {
  padding-top: 28px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 10px; font-size: 13px;
}
.footer-bottom span { display: block; }
.footer-bottom a:hover { color: #008E7A; }

/* ============ 通用 section ============ */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-card); }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section-eyebrow {
  display: inline-block; padding: 6px 16px; border-radius: var(--r-pill);
  background: rgba(91,108,255,0.08); border: 1px solid rgba(91,108,255,0.2);
  color: var(--primary-blue); font-size: 13px; font-weight: 600;
  letter-spacing: 1px; margin-bottom: 18px;
}
.section-h2 { font-size: 40px; font-weight: 800; line-height: 1.25; letter-spacing: -1px; }
.section-h2 .accent {
  background: var(--gradient-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-h2 .accent-gold {
  background: var(--gradient-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-lead { font-size: 17px; color: var(--text-light); margin-top: 16px; }

/* 深色 section 变体 */
.section-dark { background: var(--space-dark); color: #fff; position: relative; overflow: hidden; }
.section-dark .section-eyebrow {
  background: rgba(0,229,199,0.08); border-color: rgba(0,229,199,0.3); color: var(--cyan-glow);
}
.section-dark .section-lead { color: var(--text-white-soft); }

/* ============ 按钮 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--r-pill);
  font-size: 16px; font-weight: 600;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, background 0.25s;
}
.btn-primary {
  background: var(--gradient-brand); color: #fff; box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(91,108,255,0.4); }
.btn-gold {
  background: var(--cyan-glow); color: var(--space-dark); font-weight: 700; box-shadow: var(--shadow-glow-cyan);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0,229,199,0.5); }
.btn-ghost {
  background: rgba(255,255,255,0.08); color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.15); transform: translateY(-2px); }
.btn-outline {
  background: transparent; color: var(--primary-blue);
  border: 1.5px solid var(--primary-blue);
}
.btn-outline:hover { background: rgba(91,108,255,0.06); transform: translateY(-2px); }

/* ============ 滚动进场动画基线（JS 加 .in-view 触发） ============ */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
/* 无 JS / 爬虫兜底 */
.no-js .reveal, .no-reveal .reveal { opacity: 1; transform: none; transition: none; }

/* 尊重用户减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============ 面包屑 ============ */
.page-hero {
  background: var(--space-dark);
  background-image: var(--gradient-glow);
  padding: calc(var(--nav-h) + 72px) 0 72px;
  color: #fff; text-align: center; position: relative; overflow: hidden;
}
.page-hero h1 { font-size: 44px; font-weight: 800; letter-spacing: -1px; margin-bottom: 14px; }
.page-hero p { font-size: 17px; color: var(--text-white-soft); max-width: 640px; margin: 0 auto; }

/* ============ AI 悬浮助手 ============ */
/* HormAI 吉祥物按钮：白瓷底托 + 卡通形象双表情（idle 微笑 / wink 眨眼挥手）
   三态：默认呼吸光晕；hover 弹跳 + 切眨眼图；面板打开(open)光环点亮 */
.ai-fab {
  position: fixed; right: 28px; bottom: 28px; z-index: 1200;
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(160deg, #F4F7FF 0%, #E8EDFF 55%, #DFF7F2 100%);
  box-shadow:
    0 10px 32px rgba(91,108,255,0.38),
    0 0 0 4px rgba(255,255,255,0.95),
    0 0 0 6px rgba(91,108,255,0.18);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
  border: none; padding: 0;
  animation: aiFabHalo 3.2s ease-in-out infinite;
}
.ai-fab:hover {
  transform: scale(1.1) translateY(-4px);
  box-shadow:
    0 16px 42px rgba(91,108,255,0.5),
    0 0 0 4px rgba(255,255,255,1),
    0 0 0 9px rgba(0,229,199,0.28);
  animation: aiFabBounce 0.6s var(--ease-out);
}
.ai-fab.open {
  box-shadow:
    0 12px 36px rgba(91,108,255,0.45),
    0 0 0 4px rgba(255,255,255,1),
    0 0 0 8px rgba(0,229,199,0.35),
    0 0 24px 6px rgba(0,229,199,0.25);
  animation: none;
}
@keyframes aiFabHalo {
  0%, 100% { box-shadow: 0 10px 32px rgba(91,108,255,0.38), 0 0 0 4px rgba(255,255,255,0.95), 0 0 0 6px rgba(91,108,255,0.18); }
  50%      { box-shadow: 0 10px 32px rgba(91,108,255,0.38), 0 0 0 4px rgba(255,255,255,0.95), 0 0 0 13px rgba(0,229,199,0.12); }
}
@keyframes aiFabBounce {
  0% { transform: scale(1.1) translateY(-4px); }
  40% { transform: scale(1.13) translateY(-8px) rotate(-4deg); }
  70% { transform: scale(1.1) translateY(-3px) rotate(2deg); }
  100% { transform: scale(1.1) translateY(-4px); }
}
.ai-fab .ai-fab-mascot {
  position: relative; width: 100%; height: 100%;
  border-radius: 50%; overflow: hidden;
  display: block;
}
.ai-fab .ai-fab-face {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  user-select: none; pointer-events: none;
  transition: opacity 0.25s var(--ease-out);
}
.ai-fab .ai-fab-face-wink { opacity: 0; }
.ai-fab:hover .ai-fab-face-wink, .ai-fab.open .ai-fab-face-wink { opacity: 1; }
.ai-fab:hover .ai-fab-face-idle, .ai-fab.open .ai-fab-face-idle { opacity: 0; }
.ai-fab-badge {
  position: absolute; top: 4px; right: 4px;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--success);
  border: 2.5px solid #fff;
  animation: pulseBreath 2s ease-in-out infinite;
  z-index: 3;
}
@keyframes pulseBreath {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.7; }
}
.ai-fab .ai-fab-tip {
  position: absolute; right: 86px; top: 50%; transform: translateY(-50%);
  background: linear-gradient(135deg, #5B6CFF 0%, #00E5C7 100%);
  color: #fff; font-size: 13px; font-weight: 600;
  padding: 9px 16px; border-radius: var(--r-pill); white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s;
  box-shadow: 0 6px 20px rgba(91,108,255,0.35);
}
.ai-fab:hover .ai-fab-tip { opacity: 1; transform: translateY(-50%) translateX(-4px); }

.ai-panel {
  position: fixed; right: 28px; bottom: 108px; z-index: 1200;
  width: min(420px, calc(100vw - 40px)); height: min(600px, calc(100vh - 160px));
  background: var(--space-card);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
  display: flex; flex-direction: column;
  opacity: 0; transform: translateY(24px) scale(0.96); pointer-events: none;
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
  overflow: hidden;
}
.ai-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.ai-panel-head {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 20px; border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}
.ai-panel-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gradient-brand);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.ai-panel-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ai-panel-title { color: #fff; font-weight: 700; font-size: 16px; }
.ai-panel-sub { color: var(--text-white-muted); font-size: 12px; }
.ai-panel-close {
  margin-left: auto; color: var(--text-white-muted); font-size: 22px;
  width: 32px; height: 32px; border-radius: 50%;
  transition: background 0.2s, color 0.2s;
}
.ai-panel-close:hover { background: rgba(255,255,255,0.1); color: #fff; }
.ai-panel-msgs {
  flex: 1; overflow-y: auto; padding: 20px;
  display: flex; flex-direction: column; gap: 14px;
}
.ai-msg { max-width: 82%; font-size: 14px; line-height: 1.7; border-radius: var(--r-lg); padding: 12px 16px; white-space: pre-wrap; word-break: break-word; }
.ai-msg.bot {
  background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.9);
  border-bottom-left-radius: 4px; align-self: flex-start;
}
.ai-msg.user {
  background: var(--gradient-brand); color: #fff;
  border-bottom-right-radius: 4px; align-self: flex-end;
}
.ai-msg.typing { display: flex; gap: 5px; align-items: center; padding: 14px 18px; }
.ai-msg.typing span {
  width: 7px; height: 7px; border-radius: 50%; background: var(--text-white-muted);
  animation: aiTyping 1.2s infinite;
}
.ai-msg.typing span:nth-child(2) { animation-delay: 0.15s; }
.ai-msg.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes aiTyping { 0%,60%,100% { opacity: 0.3; transform: translateY(0);} 30% { opacity: 1; transform: translateY(-4px);} }
.ai-panel-chips { display: flex; gap: 8px; padding: 0 20px 12px; flex-wrap: wrap; }
.ai-chip {
  padding: 7px 14px; border-radius: var(--r-pill);
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.8); font-size: 13px;
  transition: all 0.2s;
}
.ai-chip:hover { background: rgba(0,229,199,0.15); border-color: rgba(0,229,199,0.4); color: #008E7A; }
.ai-panel-input {
  display: flex; gap: 10px; padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.ai-panel-input input {
  flex: 1; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12); border-radius: var(--r-pill);
  padding: 12px 18px; color: #fff; font-size: 14px; outline: none;
  font-family: inherit; transition: border-color 0.25s;
}
.ai-panel-input input:focus { border-color: rgba(0,229,199,0.5); }
.ai-panel-input input::placeholder { color: var(--text-white-muted); }
.ai-panel-send {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--cyan-glow); color: var(--space-dark);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s;
}
.ai-panel-send:hover { transform: scale(1.06); }
.ai-panel-send svg { width: 20px; height: 20px; }

/* ============ 响应式 ============ */
/* 导航折叠阈值：中文站 7 项导航实际需要约 614px，
   实测 1100px 视口两侧间距已归零、1024px 每项折成两行（连「登录」按钮也被压成竖排）。
   故把导航切换成汉堡菜单的阈值单提到 1140px，留约 40px 呼吸空间；
   其余布局断点仍走下方 960px 块。 */
@media (max-width: 1140px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
}
@media (max-width: 960px) {
  .nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .lang-switch, .btn-login { display: none; }
  .btn-report { padding: 8px 16px; font-size: 13px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .section { padding: 64px 0; }
  .section-h2 { font-size: 30px; }
  .page-hero h1 { font-size: 32px; }
  /* AI 悬浮按钮：小屏收小并贴边，减少对正文的遮挡（原 60px + 18px 边距） */
  .ai-fab { right: 14px; bottom: 14px; width: 54px; height: 54px; }
  .ai-fab .ai-fab-face { width: 54px; height: 54px; }
  .ai-fab .ai-fab-badge { width: 13px; height: 13px; top: 3px; right: 3px; border-width: 2px; }
  .ai-panel { right: 10px; bottom: 82px; }
  /* 触屏无 hover：关掉依赖悬浮的位移，避免误触后元素跳动 */
  .ai-fab:hover { transform: none; animation: aiFabHalo 3.2s ease-in-out infinite; }
  /* 底部 CTA 的移动端留白/字号覆盖已迁到文件末尾的移动端区块。
     ⚠️ 不要再写在这里：.section-cta / .cta-btns 的基础样式定义在 L480+，
     同优先级下后定义者胜 → 这里的 .section-cta{padding:64px 0} 等会被吃掉
     （2026-09-16 实测手机端仍为 110px 留白）。此处只保留优先级更高的 .cta-btns > a。 */
  .cta-btns > a { flex: 1 1 100%; justify-content: center; padding: 14px 20px; }
  /* 移动端抽屉：链接加内边距，把点击目标抬到 ≥48px */
  .mobile-menu a { padding: 10px 26px; display: block; width: 100%; text-align: center; }
  /* 弹窗/AI 面板点击目标达标（原 close 32px、chip 32px 偏小） */
  .ai-panel-close { width: 40px; height: 40px; font-size: 24px; }
  .ai-chip { padding: 9px 15px; min-height: 38px; display: inline-flex; align-items: center; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .section-h2 { font-size: 26px; }
  .section { padding: 52px 0; }
  .page-hero h1 { font-size: 27px; }
  .page-hero p { font-size: 15px; }
}

/* ============ 全站通用：文本工具类 ============ */
/* 防断词分段：用于「A · B · C」式背书条目。
   整串会被强折时不希望在词中间断开（如「科学奖一/等奖技术」「Horm/Model」），
   故每段包 .seg + nowrap，段与段之间必须留空格——换行机会依靠它。 */
.seg { white-space: nowrap; }

/* ============ 全站通用：页面底部 CTA 区块 ============ */
/* 原来这套规则只写在 home.css，而只有 index.html / en/index.html 加载 home.css，
   导致 about / ai / flow / products / science 五个页面的 CTA 区块完全无样式：
   无上下留白（按钮直接顶到页脚）、无深色背景、按钮不居中且无间距。
   迁到 main.css 后全站一致。 */
.section-cta {
  background: linear-gradient(135deg, #171226 0%, #0B1020 55%, #1a2f3f 100%);
  padding: 110px 0; text-align: center; position: relative; overflow: hidden;
}
.section-cta::before {
  content: ''; position: absolute; inset: 0;
  background: var(--gradient-glow); opacity: 0.5;
}
.section-cta .container { position: relative; }
.section-cta h2 {
  color: #fff; font-size: clamp(30px, 4.5vw, 46px); font-weight: 800;
  line-height: 1.3; letter-spacing: -1px; margin-bottom: 18px;
}
.section-cta p { color: var(--text-white-soft); font-size: 17px; margin-bottom: 40px; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============ 全站通用：按钮 btn-cyan（紫蓝青渐变） ============ */
.btn-cyan {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 22px; border-radius: var(--r-pill);
  background: linear-gradient(135deg, #5B6CFF 0%, #00E5C7 100%);
  color: #fff; font-size: 14px; font-weight: 700;
  text-decoration: none; border: none; cursor: pointer;
  box-shadow: 0 4px 16px rgba(91,108,255,0.30);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.btn-cyan:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(91,108,255,0.45); }

/* ============ 404 页面 ============ */
.e404 {
  min-height: 70vh;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 24px;
}
.e404-inner { text-align: center; max-width: 560px; }
.e404-code {
  font-size: clamp(80px, 18vw, 140px); font-weight: 900; line-height: 1;
  background: linear-gradient(135deg, #5B6CFF 0%, #00E5C7 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  letter-spacing: -4px;
}
.e404-title { font-size: 22px; font-weight: 700; color: var(--text-dark); margin-top: 16px; }
.e404-desc { font-size: 14.5px; color: var(--text-mid); margin-top: 12px; line-height: 1.7; }
.e404-links { margin-top: 32px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============ 全站通用：登录弹窗（微信小程序码） ============
   由 js/main.js openLogin() 注入，类名 .login-* —— 此前全站无样式定义
   （.login-mask/.login-card/.login-qr/.login-title/.login-desc/.login-tip/.login-close），
   导致弹窗无遮罩、二维码按原图 430px 裸渲染。此处统一补齐。 */
.login-mask {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 9999;
  background: rgba(11,16,32,0.62);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; overflow-y: auto;
}
.login-card {
  position: relative; width: 100%; max-width: 380px;
  background: var(--bg-card); border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl); padding: 32px 28px 26px;
  text-align: center;
  animation: loginIn .28s var(--ease-out);
}
@keyframes loginIn {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
.login-close {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; padding: 0; border: none; border-radius: 50%;
  background: var(--bg-light); color: var(--text-light);
  font-size: 20px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s;
}
.login-close:hover { background: var(--border-light); color: var(--text-dark); }
.login-qr {
  display: block; width: 180px; height: 180px; margin: 4px auto 18px;
  border: 1px solid var(--border-light-2); border-radius: var(--r-md);
  background: #fff; object-fit: contain;
}
.login-title { font-size: 17px; font-weight: 700; color: var(--text-dark); }
.login-desc { font-size: 13.5px; color: var(--text-mid); line-height: 1.75; margin-top: 10px; }
.login-tip { font-size: 12px; color: var(--text-lighter); margin-top: 14px; }
@media (max-width: 480px) {
  .login-mask { padding: 16px; }
  .login-card { padding: 28px 20px 22px; }
  .login-qr { width: 160px; height: 160px; }
}

/* ============================================================
   移动端适配总收口（2026-09-16）
   ⚠️ 本区块必须放在文件末尾。同优先级下「后定义者胜」，而
   .section-cta / .cta-btns / .login-* 等基础样式定义在文件后半段，
   写在文件中间的媒体查询会被它们整块覆盖（.section-cta 手机端
   仍是 110px 留白就是这个原因）。新增移动端规则一律追加到这里。
   ============================================================ */
@media (max-width: 960px) {
  /* 内页页头：桌面是 calc(nav 72 + 72) = 144px 顶留白，手机上等于 1/5 屏，
     首屏内容被推得很低。收到 nav 高度 + 20px 呼吸，底部 72 → 56。
     影响 about/agreement/ai/business/faq/flow/privacy/products/report/science 共 10 页。 */
  .page-hero { padding: calc(var(--nav-h) + 20px) 0 56px; }

  /* 底部 CTA：110px 上下留白在手机上过于空旷 */
  .section-cta { padding: 64px 0; }
  .section-cta h2 { font-size: 30px; letter-spacing: -0.6px; }
  .section-cta p { font-size: 15px; margin-bottom: 28px; }
  .cta-btns { gap: 12px; }

  /* 抽屉内操作区：此前 .mm-actions 全站无样式，且 .mobile-menu a 的
     22px/#fff 会把里面的「报告查询」按钮盖成青底白字（对比度≈1.5:1）。
     显式收进卡片宽度并恢复按钮自身配色。 */
  /* 抽屉：7 项导航 + 操作区在 iPhone SE 一档高度会超出视口，原来既不滚动
     又用 justify-content:center，顶部项会被裁掉且无法触及。改为自上而下排布 + 可滚动。 */
  .mobile-menu {
    gap: 14px; padding: calc(var(--nav-h) + 20px) 24px 44px;
    justify-content: flex-start; overflow-y: auto; -webkit-overflow-scrolling: touch;
  }
  .mobile-menu .mm-actions {
    display: flex; flex-direction: column; gap: 12px;
    width: min(300px, 100%); margin-top: 4px;
  }
  .mobile-menu .mm-actions .btn-report,
  .mobile-menu .mm-actions .btn-login {
    display: block; width: 100%; text-align: center;
    font-size: 15px; font-weight: 700; padding: 13px 20px;
  }
  .mobile-menu .mm-actions .btn-report { color: #06202B; }
  .mobile-menu .mm-actions .btn-login {
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.35); color: #fff;
  }

  /* 页脚：链接行高按 44px 触摸目标给，原 14px 行 + 12px 间距目标偏小 */
  .footer { padding: 52px 0 28px; }
  .footer-col li { margin-bottom: 2px; }
  .footer-col a { display: block; padding: 8px 0; }
  /* 页脚最底部「隐私协议 · 用户协议 · 备案号」是一行内联链接，给上下内边距抬高命中区 */
  .footer-bottom a { display: inline-block; padding: 9px 2px; }

  /* 条款/隐私等长文页：正文允许在窄屏断词，避免长串英文/URL 撑破容器 */
  .legal-body p, .legal-body li { word-break: break-word; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .nav { padding: 0 16px; }
  .section-lead { font-size: 15px; }
  .section-cta { padding: 56px 0; }
  .section-cta h2 { font-size: 26px; }
  .section-cta p { font-size: 14.5px; margin-bottom: 24px; }
  .btn-report { padding: 8px 14px; font-size: 13px; }
  /* 404 页按钮并排时容易挤成两行不齐，小屏直接通栏 */
  .e404-links > a { flex: 1 1 100%; }
  .e404-code { letter-spacing: -2px; }
  .e404-desc { font-size: 14px; }
  /* 登录弹窗关闭按钮 32px 偏小 */
  .login-close { width: 38px; height: 38px; font-size: 22px; }
  .login-desc { font-size: 13px; }
  .footer-grid { gap: 26px; }
  .footer-bottom { font-size: 12.5px; }
}

/* AI 悬浮面板副标题在窄屏同样偏小（面板本身小于 340px） */
@media (max-width: 768px) {
  .ai-panel-sub { font-size: 12.5px; }
}
