/* =============================================
   公司官网样式 · Company Website Styles
   现代科技风 · 无外部依赖（字体使用系统字体栈）
   ============================================= */

:root {
  --brand: #4f46e5;
  --brand-2: #7c3aed;
  --accent: #06b6d4;
  --ink: #0f172a;
  --body: #475569;
  --muted: #94a3b8;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --line: #e2e8f0;
  --footer-bg: #0f172a;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(79, 70, 229, 0.15);
  --gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 60%, #a855f7 100%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "PingFang HK", "PingFang TC",
    "Microsoft JhengHei", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ---------- 语言切换 · Language toggle ---------- */
html.lang-zh .en { display: none !important; }
html.lang-en .zh { display: none !important; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 按钮 · Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 60px rgba(79, 70, 229, 0.25);
}

.btn-ghost {
  border: 1.5px solid var(--line);
  color: var(--ink);
  background: #fff;
}

.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* ---------- 顶部导航 · Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.logo svg { flex-shrink: 0; }

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}

.nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--body);
  transition: color 0.2s;
  padding: 6px 0;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--brand);
}

.nav a[aria-current="page"] {
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 12px;
}

.lang-toggle {
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.lang-toggle:hover {
  background: var(--bg-soft);
  color: var(--brand);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  position: relative;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 11px;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle span { top: 20px; }
.nav-toggle span::before { left: 0; top: -6px; }
.nav-toggle span::after { left: 0; top: 6px; }

.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 页面主视觉 · Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 110px;
  background: var(--bg-soft);
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.3;
  pointer-events: none;
}

.hero-blob-1 {
  width: 480px;
  height: 480px;
  background: #818cf8;
  top: -120px;
  left: -120px;
}

.hero-blob-2 {
  width: 420px;
  height: 420px;
  background: #22d3ee;
  bottom: -160px;
  right: -80px;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.08);
  color: var(--brand);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 52px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.hero h1 .grad {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: 18px;
  color: var(--body);
  max-width: 520px;
  margin-bottom: 36px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* 手机样机 · Phone mockup */
.phone-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-glow {
  position: absolute;
  width: 440px;
  height: 440px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(124, 58, 237, 0.3), rgba(34, 211, 238, 0.14) 60%, transparent 78%);
  filter: blur(36px);
  pointer-events: none;
}

.phone {
  position: relative;
  width: 264px;
  height: 544px;
  border-radius: 44px;
  background: #0f172a;
  padding: 12px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.25), 0 60px 120px rgba(79, 70, 229, 0.25);
  transform: rotate(4deg);
  animation: phone-float 7s ease-in-out infinite alternate;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 34px;
  background: #e9e8e3;
  overflow: hidden;
}

.phone-shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 悬浮在截图状态栏上的镜头岛 */
.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 18px;
  background: #0f172a;
  border-radius: 999px;
}

@keyframes phone-float {
  from { transform: rotate(4deg) translateY(0); }
  to { transform: rotate(4deg) translateY(-12px); }
}

/* ---------- 通用区块 · Sections ---------- */
.section {
  padding: 96px 0;
}

.section-soft {
  background: var(--bg-soft);
}

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

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

.section-head h2 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.section-head p {
  color: var(--body);
  font-size: 17px;
}

/* ---------- 卡片网格 · Card grid ---------- */
.grid {
  display: grid;
  gap: 24px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: rgba(79, 70, 229, 0.08);
}

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

.card p {
  color: var(--body);
  font-size: 15px;
}

.card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.card .tag {
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--body);
  border: 1px solid var(--line);
}

/* ---------- 数据统计 · Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-num {
  font-size: 44px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.2;
}

.stat-label {
  color: var(--body);
  font-size: 15px;
  margin-top: 6px;
}

/* ---------- 流程步骤 · Process steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.step {
  text-align: center;
  padding: 28px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

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

/* ---------- 行动号召 · CTA band ---------- */
.cta-band {
  background: var(--gradient);
  border-radius: 24px;
  padding: 64px 48px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-band h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 14px;
}

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

.cta-band .btn {
  background: #fff;
  color: var(--brand);
}

/* ---------- 宣言帶 · Statement band ---------- */
.statement-band {
  background: var(--footer-bg);
  padding: 88px 0;
  text-align: center;
  color: #fff;
}

.statement-band h2 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}

.statement-band h2 .grad {
  background: linear-gradient(135deg, #818cf8, #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.statement-band p {
  color: #94a3b8;
  font-size: 17px;
  max-width: 660px;
  margin: 0 auto 32px;
}

.statement-band .btn-ghost {
  border-color: rgba(148, 163, 184, 0.4);
  color: #fff;
  background: transparent;
}

.statement-band .btn-ghost:hover {
  border-color: #818cf8;
  color: #c7d2fe;
}

@media (max-width: 600px) {
  .statement-band { padding: 64px 0; }
  .statement-band h2 { font-size: 26px; }
}

/* ---------- 内页头图 · Page hero ---------- */
.page-hero {
  background: var(--bg-soft);
  padding: 72px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero h1 {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.page-hero p {
  color: var(--body);
  font-size: 17px;
  max-width: 640px;
  margin: 0 auto;
}

/* ---------- 关于页 · About ---------- */
.about-body {
  max-width: 800px;
  margin: 0 auto;
}

.about-body p {
  color: var(--body);
  font-size: 16.5px;
  margin-bottom: 20px;
}

/* ---------- 联系页 · Contact ---------- */
.contact-card {
  text-align: center;
}

.contact-card .value {
  font-weight: 600;
  color: var(--ink);
  font-size: 16px;
  word-break: break-word;
}

/* ---------- 隐私政策 · Privacy ---------- */
.legal-body {
  max-width: 800px;
  margin: 0 auto;
}

.legal-body h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 40px 0 14px;
}

.legal-body p,
.legal-body li {
  color: var(--body);
  font-size: 15.5px;
  margin-bottom: 12px;
}

.legal-body ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-updated {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 32px;
}

/* ---------- 页脚 · Footer ---------- */
.site-footer {
  background: var(--footer-bg);
  color: #cbd5e1;
  padding: 72px 0 0;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14.5px;
  color: #94a3b8;
  max-width: 320px;
}

.footer-col h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 18px;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col a {
  font-size: 14.5px;
  color: #94a3b8;
  transition: color 0.2s;
}

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

.footer-col p {
  font-size: 14.5px;
  color: #94a3b8;
  margin-bottom: 10px;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  padding: 24px 0;
  text-align: center;
  font-size: 13.5px;
  color: #64748b;
}

.footer-bottom p { margin-bottom: 4px; }

/* ---------- 入场动画 · Reveal animation ----------
   隐藏状态仅在 JS 成功运行（html 带 reveal-init 类）后生效，
   保证脚本被禁用或加载失败时内容依然完整可见 */
.reveal-init .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-init .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .phone { animation: none; }
  .reveal-init .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- 响应式 · Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .phone-wrap { display: none; }
  .hero { padding: 72px 0; }
  .hero h1 { font-size: 40px; }

  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }

  /* 雙欄模式下，奇數張卡片的最後一張橫跨整行，避免出現左側孤兒卡 */
  .grid-3 > .card:last-child:nth-child(odd),
  .grid-4 > .card:last-child:nth-child(odd),
  .steps > .step:last-child:nth-child(odd) { grid-column: 1 / -1; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    margin-left: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 16px;
    box-shadow: var(--shadow);
  }

  .nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--bg-soft);
  }

  .nav-open .nav { display: flex; }
  .nav-toggle { display: block; }
}

@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .section-head h2 { font-size: 28px; }
  .hero h1 { font-size: 32px; }
  .page-hero h1 { font-size: 32px; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .cta-band { padding: 48px 24px; }
  .cta-band h2 { font-size: 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
