/* ==========================================================================
   Echo 落地页样式 —— 沿用 echo-app 设计令牌（indigo #4F46E5 / cyan #06B6D4）
   ========================================================================== */

:root {
  --primary: #4F46E5;
  --primary-dark: #4338CA;
  --primary-soft: #EEF2FF;
  --accent: #06B6D4;
  --bg: #F4F6FB;
  --surface: #FFFFFF;
  --text: #0F172A;
  --text-muted: #64748B;
  --text-faint: #94A3B8;
  --border: #E2E8F0;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-card: 0 5px 14px rgba(15, 23, 42, 0.07);
  --shadow-float: 0 8px 20px rgba(15, 23, 42, 0.12);
  --container: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }

/* 视觉隐藏、但保留给读屏软件（表格标题等） */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

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

/* ---------- 导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand-mark { display: flex; }

.brand-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 600;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--primary); }

/* 右侧常驻操作区：语言切换 + 主行动按钮，移动端菜单隐藏时依然可见 */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.btn-lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.btn-lang:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-soft);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35);
}

.btn-primary:hover { background: var(--primary-dark); }

.btn-ghost {
  background: var(--primary-soft);
  color: var(--primary);
}

.btn-sm { padding: 9px 20px; font-size: 14px; }

.btn-light {
  background: #fff;
  color: var(--primary);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn-outline:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(60% 80% at 80% 10%, rgba(6, 182, 212, 0.10) 0%, transparent 60%),
    radial-gradient(50% 70% at 10% 90%, rgba(79, 70, 229, 0.10) 0%, transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 48px;
  padding-top: 72px;
  padding-bottom: 88px;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.center { text-align: center; }

.hero-title {
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 20px;
}

.hero-title em {
  font-style: normal;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 480px;
}

/* margin-top 是通用呼吸位：全局 reset 把 ul / p 的下边距清成 0，CTA 紧跟列表时
   两行会贴在一起（about 页「旗下产品」就是这样）。hero 里相邻的 .hero-desc 已有
   32px 下边距，同级折叠后仍是 32px，不会叠加。 */
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin: 32px 0 40px; }

/* 作为区块最后一项时，40px 下边距会与父级折叠出去、把文案顶离插图的中线，收掉。 */
.split-copy .hero-actions, .hero-actions.is-last { margin-bottom: 0; }

.hero-stats {
  display: flex;
  gap: 40px;
  list-style: none;
}

.hero-stats li { display: flex; flex-direction: column; }

.hero-stats strong { font-size: 24px; font-weight: 800; color: var(--text); }

.hero-stats span { font-size: 14px; color: var(--text-faint); }

.hero-art svg { filter: drop-shadow(0 16px 32px rgba(79, 70, 229, 0.15)); }

/* ---------- 通用 Section ---------- */
.section { padding: 96px 0; }

.section-title {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  margin-bottom: 14px;
}

.section-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 20px;
}

.split .section-sub { margin: 0 0 28px; max-width: none; }

/* 整页只有一块左对齐内容的页面（legal.html）：默认 `.section-sub` 是给居中章节用的
   （`margin: 0 auto`），不覆盖会与左对齐的标题、卡片错位。 */
.legal .section-sub { margin: 0 0 20px; }

/* ---------- 能力卡片 ---------- */
.features { padding-bottom: 40px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 30px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-float);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.icon-indigo { background: var(--primary-soft); color: var(--primary); }
.icon-cyan { background: #ECFEFF; color: #0891B2; }
.icon-violet { background: #EDE9FE; color: #7C3AED; }

.feature-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }

.feature-card p { color: var(--text-muted); font-size: 15px; margin-bottom: 16px; }

.text-link {
  color: var(--primary);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}

.text-link:hover { text-decoration: underline; }

/* ---------- 图文分栏 ---------- */
.split-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}

.split.alt .split-inner { direction: rtl; }
.split.alt .split-inner > * { direction: ltr; }

.split-art svg {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-float);
}

.split-copy h2 {
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 14px;
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.check-list li {
  position: relative;
  padding-left: 34px;
  color: var(--text-muted);
  font-size: 16px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- 流程步骤 ---------- */
.steps { padding-top: 56px; }

.step-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  list-style: none;
  margin-top: 48px;
  counter-reset: step;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  box-shadow: var(--shadow-card);
  text-align: center;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 16px;
}

.step h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }

.step p { font-size: 14px; color: var(--text-muted); }

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(120deg, var(--primary-dark) 0%, var(--primary) 55%, var(--accent) 130%);
  color: #fff;
  padding: 88px 0;
  text-align: center;
}

.cta h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; margin-bottom: 14px; }

.cta p { font-size: 17px; opacity: 0.9; margin-bottom: 32px; }

.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* 渐变背景上的行内链接：默认蓝色会看不清 */
.cta p a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 工商信息（legal.html）---------- */
.fact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: 6px 32px;
  margin-top: 32px;
}

.fact-table { width: 100%; border-collapse: collapse; }

.fact-table th, .fact-table td {
  text-align: left;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  font-weight: 400;
}

.fact-table tr:last-child th, .fact-table tr:last-child td { border-bottom: none; }

.fact-table th { width: 168px; color: var(--text-faint); font-size: 14px; }

.fact-table td { color: var(--text); font-size: 16px; word-break: break-word; }

/* 上线前需补齐的真实登记项，用胶囊标出避免被当成已确认信息 */
.fact-todo {
  display: inline-block;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  color: #B45309;
  border-radius: 999px;
  padding: 1px 10px;
  font-size: 13px;
}

.fact-note { margin-top: 24px; color: var(--text-faint); font-size: 14px; max-width: 760px; }

/* ---------- 页脚 ---------- */
.footer {
  background: var(--text);
  color: var(--text-faint);
  padding: 48px 0;
  font-size: 14px;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand .brand-name { color: #fff; }

.footer-brand p { margin-top: 8px; }

.footer-links { display: flex; flex-direction: column; gap: 10px; }

.footer-links a { color: var(--text-faint); text-decoration: none; }

.footer-links a:hover { color: #fff; }

/* 版权 + 备案两行当成一个块：`.footer-inner` 是带 32px row-gap 的 flex-wrap 容器，
   两个 `width:100%` 的兄弟会各占一行并多背一个 row-gap（实测 38px），所以包一层。 */
.footer-legal { width: 100%; margin-top: 24px; text-align: center; }

.copyright { text-align: center; }

.footer-legal .copyright { margin-top: 0; }

/* 页脚备案行：备案信息与工商公示入口（境内接入时必须展示 ICP 备案号） */
.beian { margin-top: 6px; font-size: 13px; }

.beian a { color: #CBD5E1; text-decoration: none; }

.beian a:hover { color: #fff; text-decoration: underline; }

/* ---------- 隐私政策页（privacy.html / privacy-en.html）---------- */
.fact-card h2 { margin: 34px 0 16px; font-size: 21px; color: var(--text); }

.fact-card h2:first-child { margin-top: 26px; }

.fact-card p { color: var(--text-muted); font-size: 16px; line-height: 1.75; margin: 8px 0; }

.fact-card .check-list { margin: 14px 0 4px; }

.fact-card .check-list li { line-height: 1.7; }

.fact-card .check-list strong { color: var(--text); font-weight: 600; }

.fact-card .fact-note { margin: 12px 0 2px; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-inner, .split-inner { grid-template-columns: 1fr; gap: 40px; }
  .split.alt .split-inner { direction: ltr; }
  .hero-art { order: -1; }
  .feature-grid { grid-template-columns: 1fr; }
  .step-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .section { padding: 64px 0; }
}

@media (max-width: 520px) {
  .nav-inner { gap: 12px; }
  .btn-lang { padding: 6px 12px; font-size: 13px; }
  .nav-cta { padding: 8px 14px; }
  .step-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .hero-actions .btn { flex: 1; text-align: center; }
  .fact-card { padding: 2px 18px; }
  .fact-table th { width: 92px; font-size: 13px; }
  .fact-table td { font-size: 15px; }
}
