/* ===== 设计变量 ===== */
:root {
  --navy: #2B3A67;
  --navy-deep: #1E2A4D;
  --navy-soft: #E8EBF3;
  --ink: #1B1F2A;
  --ink-2: #4A5060;
  --ink-3: #7A8090;
  --line: #E1E4EC;
  --bg: #FFFFFF;
  --bg-alt: #F5F6F9;
  --accent: #3D6BFF;
  --radius: 14px;
  --container: 1120px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0 0 .6em; line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
.muted { color: var(--ink-3); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.lead { font-size: 1.15rem; color: var(--ink-2); }
.lead.narrow { max-width: 680px; }
.two-col { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.prose p { color: var(--ink-2); font-size: 1.05rem; }

/* ===== 顶部导航 ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-en { font-weight: 700; letter-spacing: .12em; font-size: .9rem; color: var(--navy); }
.brand-zh { font-size: .75rem; color: var(--ink-3); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: .95rem; font-weight: 500; color: var(--ink-2); }
.nav-links a:hover { color: var(--navy); }
.lang-toggle {
  font: inherit; font-size: .85rem; font-weight: 600;
  padding: 6px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--navy); background: transparent; color: var(--navy);
  transition: background .15s, color .15s;
}
.lang-toggle:hover { background: var(--navy); color: #fff; }

/* ===== Hero ===== */
.hero {
  padding: 96px 0 80px;
  background:
    radial-gradient(900px 400px at 85% 0%, var(--navy-soft) 0%, transparent 70%),
    linear-gradient(180deg, #FFFFFF 0%, #FAFBFD 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.hero-copy .lead { max-width: 560px; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; padding: 12px 22px; border-radius: 10px;
  font-weight: 600; font-size: .95rem; transition: transform .15s, background .15s, color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); color: #fff; }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }

/* Hero 右侧的屏幕堆叠示意 */
.hero-visual { position: relative; min-height: 340px; }
.screen-stack { position: relative; width: 100%; height: 340px; }
.screen {
  position: absolute; border-radius: 12px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  box-shadow: 0 24px 48px -16px rgba(43,58,103,.45), inset 0 0 0 3px rgba(255,255,255,.08);
  display: flex; align-items: flex-end; padding: 14px;
}
.screen::before {
  content: ""; position: absolute; inset: 10px;
  border-radius: 8px;
  background: linear-gradient(160deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,.02) 60%);
}
.screen-label { position: relative; color: #fff; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.screen-lg { width: 78%; height: 62%; right: 0; top: 0; align-items: flex-start; justify-content: flex-end; }
.screen-md { width: 46%; height: 48%; left: 0; bottom: 6%; }
.screen-sm { width: 22%; height: 46%; right: 8%; bottom: 0; }

/* ===== 卡片 ===== */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(43,58,103,.35); border-color: transparent; }
.card-icon { width: 48px; height: 48px; color: var(--navy); margin-bottom: 18px; }
.card-icon svg { width: 100%; height: 100%; }
.card p { color: var(--ink-2); font-size: .97rem; }
.tag-list { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li {
  font-size: .75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  background: var(--navy-soft); color: var(--navy);
}

/* ===== 架构图 ===== */
.arch {
  display: grid; grid-template-columns: 1fr auto 1.2fr auto 1fr; gap: 16px; align-items: stretch;
  margin-top: 48px;
}
.arch-node {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff;
}
.arch-core { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 24px 48px -20px rgba(43,58,103,.5); }
.arch-core .arch-label { color: #fff; }
.arch-label { display: block; font-weight: 700; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); margin-bottom: 14px; }
.arch-node ul { list-style: none; padding: 0; margin: 0; }
.arch-node li { position: relative; padding-left: 16px; font-size: .95rem; color: var(--ink-2); margin-bottom: 8px; }
.arch-node li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.arch-node.arch-core li { color: rgba(255,255,255,.88); }
.arch-node.arch-core li::before { background: rgba(255,255,255,.75); }
.arch-link { display: flex; align-items: center; justify-content: center; position: relative; min-width: 96px; }
.arch-link::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dashed var(--line); }
.arch-link span {
  position: relative; background: var(--bg); padding: 4px 8px; font-size: .7rem; font-weight: 600;
  letter-spacing: .08em; color: var(--ink-3); text-transform: uppercase;
}

/* ===== 联系方式 ===== */
.contact-list { margin: 24px 0 0; }
.contact-list dt { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-top: 18px; }
.contact-list dd { margin: 4px 0 0; color: var(--ink); line-height: 1.55; }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 420px; background: #E9ECF2; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 420px; border: 0; }

/* ===== 页脚 ===== */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; font-size: .9rem; background: #fff; }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--ink-2); }

/* ===== 法务页 ===== */
.legal { max-width: 760px; margin: 0 auto; padding: 72px 24px 96px; }
.legal h1 { font-size: 2rem; }
.legal h2 { font-size: 1.25rem; margin-top: 2em; }
.legal p, .legal li { color: var(--ink-2); }
.legal .updated { color: var(--ink-3); font-size: .9rem; margin-bottom: 2em; }
.legal [data-lang="zh"] { line-height: 1.8; }

/* ===== 响应式 ===== */
@media (max-width: 960px) {
  .hero-grid, .two-col { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { min-height: 280px; }
  .screen-stack { height: 280px; }
  .card-grid { grid-template-columns: 1fr; }
  .arch { grid-template-columns: 1fr; }
  .arch-link { min-height: 48px; }
  .arch-link::before { left: 50%; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 2px dashed var(--line); }
  .section { padding: 72px 0; }
}
@media (max-width: 640px) {
  .nav-links a { display: none; }
  .brand-zh { display: none; }
  .hero { padding: 64px 0 56px; }
}
