/* ============================================================
   荣合（云南）大数据科技有限公司 — 全站唯一样式表
   风格：现代极简 B2B 科技官网，白底 / 黑灰文字 / 深蓝主色
   ============================================================ */

/* ---------- 设计变量 ---------- */
:root {
  --color-primary: #1e40af;        /* 深蓝主色 */
  --color-primary-dark: #1e3a8a;
  --color-primary-light: #eff6ff;
  --color-accent: #0891b2;         /* 冷青点缀 */
  --color-accent-text: #0e7490;    /* accent 作文字时的加深色（对比度达标） */
  --color-text: #111827;
  --color-text-secondary: #4b5563;
  --color-text-muted: #6b7280;
  --color-border: #e5e7eb;
  --color-bg: #ffffff;
  --color-bg-subtle: #f9fafb;
  --color-bg-soft: #f3f4f6;
  --color-danger: #dc2626;         /* 危险色：必填星号 / 错误提示 */
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.06);
  --shadow-md: 0 4px 12px rgba(17, 24, 39, 0.08);
  --shadow-lg: 0 12px 32px rgba(17, 24, 39, 0.10);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --container: 1120px;
  --header-height: 68px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  font-size: 16px;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--color-primary); text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 { line-height: 1.3; font-weight: 700; color: var(--color-text); }

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

/* ---------- 通用排版 ---------- */
.section { padding: 88px 0; }
.section--subtle { background: var(--color-bg-subtle); }
.section--flush-top { padding-top: 0; } /* 与上方区块紧贴（取消顶部留白） */

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

.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-accent-text);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title { font-size: 32px; margin-bottom: 14px; }
.section-desc { color: var(--color-text-muted); font-size: 16px; }

/* 页面标题区（内页统一） */
.page-hero {
  padding: 72px 0 56px;
  background: var(--color-bg-subtle);
  border-bottom: 1px solid var(--color-border);
}
.page-hero h1 { font-size: 36px; margin-bottom: 14px; }
.page-hero p { color: var(--color-text-secondary); max-width: 640px; font-size: 17px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: var(--color-primary-dark); box-shadow: var(--shadow-md); }
.btn--outline { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn--outline:hover { background: var(--color-primary-light); }
.btn--ghost { background: #fff; color: var(--color-text); border-color: var(--color-border); }
.btn--ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* 禁用 / 提交中状态（提交时加 disabled + .is-submitting） */
button:disabled { cursor: not-allowed; }
.btn:disabled,
.btn.is-submitting {
  opacity: 0.6;
  cursor: not-allowed;
}
.btn:disabled:hover,
.btn.is-submitting:hover { box-shadow: none; }
.btn--primary:disabled:hover,
.btn--primary.is-submitting:hover { background: var(--color-primary); }
.btn--outline:disabled:hover,
.btn--outline.is-submitting:hover { background: transparent; }
.btn--ghost:disabled:hover,
.btn--ghost.is-submitting:hover { border-color: var(--color-border); color: var(--color-text); }

/* ---------- 键盘可访问性（focus-visible 轮廓） ---------- */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
/* 深色背景区域（footer / CTA）改用白色轮廓保证对比度 */
.site-footer :focus-visible,
.cta-band :focus-visible {
  outline-color: var(--color-bg);
}

/* ---------- 跳转正文链接（默认视觉隐藏，键盘聚焦时可见） ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200; /* 高于 header（z-index: 100） */
  padding: 10px 20px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
}
.skip-link:focus { left: 16px; top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  font-size: 19px;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.logo span { color: var(--color-primary); }
.logo:hover { color: var(--color-text); }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  position: relative;
  padding: 8px 14px;
  font-size: 15px;
  color: var(--color-text-secondary);
  transition: color 0.2s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.main-nav a:hover { color: var(--color-primary); }
.main-nav a:hover::after { transform: scaleX(1); }
.main-nav a.is-active { color: var(--color-primary); font-weight: 600; }
.main-nav a.is-active::after { transform: scaleX(1); }

.header-cta { flex-shrink: 0; padding: 9px 20px; font-size: 14px; }
/* 移动端汉堡菜单内的「合作咨询」入口（桌面端隐藏，≤768px 媒体查询中显示） */
.nav-cta-mobile { display: none; }

/* 语言切换（桌面端显示在 header CTA 旁，≤768px 隐藏改用菜单内入口） */
.lang-switch { flex-shrink: 0; margin-left: 16px; font-size: 13px; font-weight: 500; color: var(--color-text-secondary); text-decoration: none; white-space: nowrap; }
.lang-switch:hover { color: var(--color-primary); }
.main-nav .lang-switch--mobile { display: none; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Footer ---------- */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 64px 0 0;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.6fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand .logo { color: #fff; font-size: 18px; margin-bottom: 14px; display: inline-block; }
.footer-brand p { color: #94a3b8; line-height: 1.8; }
.footer-title { color: #fff; font-size: 15px; font-weight: 600; margin-bottom: 16px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #94a3b8; transition: color 0.2s ease; }
.footer-links a:hover { color: #fff; }
.footer-contact li { margin-bottom: 10px; color: #94a3b8; line-height: 1.7; }
.footer-contact strong { color: #cbd5e1; font-weight: 600; margin-right: 6px; }
.footer-contact a { color: #94a3b8; }
.footer-contact a:hover { color: #fff; }

.qr-placeholder {
  width: 108px;
  height: 108px;
  background: #1e293b;
  border: 1px dashed #475569;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.5;
  padding: 8px;
}
.footer-qr p { margin-top: 10px; color: #94a3b8; font-size: 12px; }

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding: 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
  color: #94a3b8;
  font-size: 13px;
}
.footer-bottom a { color: #94a3b8; }
.footer-bottom a:hover { color: #fff; }

/* ---------- 首页 Hero ---------- */
.hero { padding: 108px 0 96px; }
.hero-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.hero h1 {
  font-size: 46px;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.hero .hero-sub {
  font-size: 18px;
  color: var(--color-text-secondary);
  max-width: 620px;
  margin: 0 auto 36px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-actions .btn { padding: 14px 32px; font-size: 16px; }

/* ---------- 卡片网格 ---------- */
.card-grid {
  display: grid;
  gap: 24px;
}
.card-grid--5 { grid-template-columns: repeat(5, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
a.card { display: block; color: inherit; }
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #dbe2ea;
}
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--color-text-muted); line-height: 1.7; }

/* ---------- 步骤条（首页六步概览） ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step { position: relative; padding-top: 8px; }
.step-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.step h3 { font-size: 16px; margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--color-text-muted); line-height: 1.6; }

/* ---------- 案例卡片 ---------- */
.case-card { display: flex; flex-direction: column; }
.case-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-accent-text);
  background: #ecfeff;
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 14px;
}
.case-card .case-summary { font-size: 14px; color: var(--color-text-muted); margin-bottom: 12px; flex: 1; }
.case-card .case-result { font-size: 13px; color: var(--color-text-secondary); border-top: 1px solid var(--color-border); padding-top: 12px; }

/* 区块底部「查看全部」按钮包裹层（首页案例区等） */
.section-more { text-align: center; margin-top: 40px; }

/* ---------- 筛选标签栏 ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 8px 20px;
  font-size: 14px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #fff;
  color: var(--color-text-secondary);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.filter-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.filter-btn.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.filterable { transition: opacity 0.25s ease, transform 0.25s ease; }
.filterable.is-hiding { opacity: 0; transform: translateY(6px); }
.filterable.is-hidden { display: none; }

/* ---------- 服务页：交替布局板块 ---------- */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 72px 0;
  border-bottom: 1px solid var(--color-border);
}
.service-block:first-of-type { padding-top: 64px; }
.service-block:last-of-type { border-bottom: none; }
.service-block--reverse .service-visual { order: 2; }

.service-content h2 { font-size: 26px; margin-bottom: 16px; }
.service-content > p { color: var(--color-text-secondary); margin-bottom: 24px; }
.service-points h4 {
  font-size: 14px;
  color: var(--color-primary);
  margin: 18px 0 6px;
}
.service-points p { font-size: 14px; color: var(--color-text-muted); }

.service-visual {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-subtle);
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-visual svg { width: 96px; height: 96px; color: var(--color-primary); opacity: 0.85; }

/* ---------- 时间线（服务页流程 / 关于页历程） ---------- */
.timeline { position: relative; max-width: 720px; margin: 0 auto; padding-left: 40px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--color-border);
}
.timeline-item { position: relative; padding-bottom: 36px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -40px;
  top: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--color-primary);
}
.timeline-item::after {
  content: "";
  position: absolute;
  left: -32px;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
}
.timeline-item h3 { font-size: 17px; margin-bottom: 6px; }
.timeline-item .timeline-meta {
  font-size: 13px;
  color: var(--color-accent-text);
  font-weight: 600;
  margin-bottom: 4px;
}
.timeline-item p { font-size: 14px; color: var(--color-text-muted); }

/* ---------- 关于页 ---------- */
.about-intro { max-width: 760px; margin: 0 auto; text-align: center; }
.about-intro p { color: var(--color-text-secondary); margin-bottom: 12px; }

.value-grid .card-icon { background: #ecfeff; color: var(--color-accent); }

/* ---------- 表单 ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
/* 单列表单变体（consult 页留言表单等） */
.form-grid--single { grid-template-columns: 1fr; }
.form-field { display: flex; flex-direction: column; }
.form-field--full { grid-column: 1 / -1; }
.form-field label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text);
}
.form-field label .req { color: var(--color-danger); margin-left: 2px; }
/* 必填星号（颜色统一走危险色变量） */
.required-mark { color: var(--color-danger); }
.form-field input,
.form-field select,
.form-field textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 11px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.12);
}
.form-field input:disabled,
.form-field select:disabled,
.form-field textarea:disabled {
  background: var(--color-bg-subtle);
  color: var(--color-text-muted);
  cursor: not-allowed;
}
.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea { border-color: var(--color-danger); }
.field-error {
  display: none;
  font-size: 13px;
  color: var(--color-danger);
  margin-top: 6px;
}
.form-field.has-error .field-error { display: block; }

.form-actions { margin-top: 28px; }
.form-note { font-size: 13px; color: var(--color-text-muted); margin-top: 14px; }

.form-success {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 14px;
  margin-top: 20px;
  /* 常驻 DOM（不用 display:none 初始隐藏），保证 role="status" 内容变化
     可被读屏器播报；默认视觉隐藏且不占布局：visibility + 高度/内边距/边框清零 */
  visibility: hidden;
  height: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  border-width: 0;
  overflow: hidden;
}
.form-success.is-visible {
  visibility: visible;
  height: auto;
  padding: 14px 18px;
  margin-top: 20px;
  border-width: 1px;
}
.form-success svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }

/* ---------- 咨询须知 ---------- */
.notice-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 14px;
  color: var(--color-text-secondary);
  font-size: 15px;
}
.notice-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* ---------- 联系页 ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
/* 卡片与下方地图区的间距（原 div 内联 margin 收编至此） */
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 56px; }
.contact-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  background: #fff;
}
.contact-card h3 { font-size: 15px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.contact-card h3 svg { width: 18px; height: 18px; color: var(--color-primary); }
.contact-card p, .contact-card a { font-size: 14px; color: var(--color-text-secondary); }
.contact-card a:hover { color: var(--color-primary); }

/* 侧栏小标题（contact / consult 右栏 h2；reset 清零 margin，需显式声明） */
.sidebar-title { font-size: 20px; margin-bottom: 16px; color: var(--color-text); }
.sidebar-title--spaced { margin-top: 32px; }

.wechat-placeholder {
  width: 140px;
  height: 140px;
  background: var(--color-bg-soft);
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 13px;
  padding: 10px;
  line-height: 1.6;
}

.map-placeholder {
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-md);
  background: var(--color-bg-subtle);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 14px;
  padding: 24px;
}

/* ---------- 新闻页 ---------- */
/* 预留：新闻列表样式（当前新闻页为空态，待新闻上线后使用） */
.news-list { display: grid; gap: 20px; }
.news-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  background: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.news-date {
  font-size: 14px;
  color: var(--color-accent);
  font-weight: 600;
  border-right: 1px solid var(--color-border);
  padding-right: 24px;
}
.news-body h3 { font-size: 17px; margin-bottom: 6px; }
.news-body .news-tag { font-size: 12px; color: var(--color-text-muted); margin-bottom: 8px; display: inline-block; }
.news-body p { font-size: 14px; color: var(--color-text-muted); }

.empty-state {
  text-align: center;
  padding: 64px 24px;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  background: var(--color-bg-subtle);
  margin-bottom: 40px;
}
.empty-state h2,
.empty-state h3 { font-size: 22px; margin-bottom: 12px; color: var(--color-text); }
.empty-state p {
  color: var(--color-text-muted);
  font-size: 15px;
  max-width: 520px;
  margin: 0 auto 24px;
}
/* 单段落空状态（如 about 团队区）去掉末段间距，保持上下对称 */
.empty-state p:last-child { margin-bottom: 0; }
/* 纯文本链接样式；.btn 按钮（如 outline CTA）走按钮区规则 */
.empty-state a:not(.btn) { color: var(--color-primary); font-weight: 600; }
.empty-state a:not(.btn):hover { color: var(--color-primary-dark); }

/* ---------- CTA 转化区 ---------- */
.cta-band {
  background: var(--color-primary);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  color: #fff;
}
.cta-band h2 { color: #fff; font-size: 28px; margin-bottom: 12px; }
.cta-band p { color: #bfdbfe; margin-bottom: 28px; }
.cta-band .btn--ghost { border-color: rgba(255, 255, 255, 0.4); background: transparent; color: #fff; }
.cta-band .btn--ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; color: #fff; }
.cta-band .cta-phone { margin-top: 18px; font-size: 14px; color: #bfdbfe; }

/* ---------- 返回顶部按钮（JS 动态创建，可见状态加 .is-visible） ---------- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90; /* 低于 header（z-index: 100），高于正文内容 */
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-bg); /* 图标用 currentColor，继承此值得白色 */
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s,
    background-color 0.2s ease, box-shadow 0.2s ease;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}
.back-to-top:hover {
  background: var(--color-primary-dark);
  box-shadow: var(--shadow-lg);
}
.back-to-top svg { width: 20px; height: 20px; }

/* ---------- 隐私政策排版 ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 20px; margin: 36px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--color-text-secondary); font-size: 15px; margin-bottom: 10px; }
.prose ul { padding-left: 20px; list-style: disc; }
.prose ul li { margin-bottom: 6px; }

/* ---------- 滚动淡入（渐进增强：仅在 JS 可用时生效） ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
html.js [data-reveal].is-revealed { opacity: 1; transform: none; }

/* ---------- 动效增强（2026-08-19；渐进增强：无 JS / 减弱动态时静态完整） ---------- */

/* Hero 背景光斑：品牌蓝/冷青径向渐变缓慢漂移 */
.hero { position: relative; overflow: hidden; }
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}
.hero::before {
  width: 480px; height: 480px; top: -160px; left: -120px;
  background: radial-gradient(circle, rgba(30, 64, 175, 0.12), transparent 70%);
  animation: hero-blob-a 18s ease-in-out infinite alternate;
}
.hero::after {
  width: 420px; height: 420px; bottom: -180px; right: -100px;
  background: radial-gradient(circle, rgba(8, 145, 178, 0.10), transparent 70%);
  animation: hero-blob-b 22s ease-in-out infinite alternate;
}
.hero-inner { position: relative; z-index: 1; }
@keyframes hero-blob-a {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(60px, 40px) scale(1.15); }
}
@keyframes hero-blob-b {
  from { transform: translate(0, 0) scale(1.1); }
  to { transform: translate(-50px, -30px) scale(0.95); }
}

/* Hero 逐行入场（仅 JS 可用时启用，无 JS 静态完整） */
html.js .hero h1,
html.js .hero .hero-sub,
html.js .hero .hero-actions {
  opacity: 0;
  transform: translateY(20px);
  animation: hero-rise 0.7s ease forwards;
}
html.js .hero .hero-sub { animation-delay: 0.15s; }
html.js .hero .hero-actions { animation-delay: 0.3s; }
@keyframes hero-rise {
  to { opacity: 1; transform: none; }
}

/* 按钮 hover 微反馈（.btn 的 transition 已含 transform） */
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* 卡片图标 hover 轻移 */
.card .card-icon { transition: transform 0.25s ease; }
.card:hover .card-icon { transform: translateY(-3px); }

/* section 标题装饰下划线：默认可见；html.js 下先收起，随 .section-head reveal 生长 */
.section-title::after {
  content: "";
  display: block;
  width: 48px; height: 3px;
  margin: 12px auto 0;
  border-radius: 2px;
  background: var(--color-primary);
}
.section-head--left .section-title::after { margin-left: 0; }
html.js .section-title::after {
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.5s ease 0.2s;
}
html.js .section-head--left .section-title::after { transform-origin: left; }
html.js .section-head.is-revealed .section-title::after { transform: scaleX(1); }

/* Header 滚动收缩（移动端不收缩，避免与固定菜单定位冲突） */
.header-inner { transition: height 0.25s ease; }
.site-header.is-scrolled .header-inner { height: 54px; }
@media (max-width: 768px) {
  .site-header.is-scrolled .header-inner { height: var(--header-height); }
}

/* 时间线纵线随滚动生长：--tl-progress 由 main.js 写入，默认 1（完整显示，无 JS 降级） */
.timeline::before {
  transform: scaleY(var(--tl-progress, 1));
  transform-origin: top;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* 大幅缩短全部 transition / animation，内容直接可见 */
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
  }
  html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .card, .news-card, .filterable { transition: none; }
  /* 动效增强降级：滚动驱动与无限循环动画全部关停，内容直接完整可见 */
  .hero::before, .hero::after { animation: none; }
  html.js .hero h1, html.js .hero .hero-sub, html.js .hero .hero-actions { animation: none; opacity: 1; transform: none; }
  html.js .section-title::after { transform: scaleX(1); transition: none; }
  .timeline::before { transform: none; }
  .btn:hover, .card:hover .card-icon { transform: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .card-grid--5 { grid-template-columns: repeat(3, 1fr); }
  .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .section-title { font-size: 26px; }
  .page-hero h1 { font-size: 28px; }
  .hero { padding: 72px 0 64px; }
  .hero h1 { font-size: 32px; }
  .hero .hero-sub { font-size: 16px; }

  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    padding: 8px 0;
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 14px 24px; font-size: 16px; }
  .main-nav a::after { display: none; }
  .header-cta { display: none; }
  /* 汉堡菜单内的「合作咨询」入口（替代被隐藏的 header-cta），主色强调 */
  .main-nav .nav-cta-mobile {
    display: block;
    margin: 8px 24px;
    padding: 12px 24px;
    background: var(--color-primary);
    color: #fff;
    text-align: center;
    border-radius: var(--radius-sm);
    font-weight: 600;
  }
  .main-nav .nav-cta-mobile:hover { background: var(--color-primary-dark); color: #fff; }

  .header-inner > .lang-switch { display: none; }
  .main-nav .lang-switch--mobile { display: block; margin: 8px 24px; padding: 12px 0; font-size: 15px; border-top: 1px solid var(--color-border); }

  .card-grid--5, .card-grid--3, .card-grid--2 { grid-template-columns: 1fr; }
  .card-grid--4 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }

  .service-block { grid-template-columns: 1fr; gap: 28px; padding: 48px 0; }
  .service-block--reverse .service-visual { order: 0; }
  .service-visual { min-height: 200px; }

  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 28px 22px; }
  .contact-grid { grid-template-columns: 1fr; }
  .news-card { grid-template-columns: 1fr; gap: 10px; }
  .news-date { border-right: none; padding-right: 0; }
  .cta-band { padding: 48px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .card-grid--4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .back-to-top { right: 16px; bottom: 16px; }
}
