/* ==========================================================================
   禾言未来官网 · 科技蓝主题（精简版）
   ========================================================================== */
:root {
  --blue: #2563eb;
  --blue-deep: #1a44c8;
  --cyan: #06b6d4;
  --navy: #0a1f44;
  --ink: #16213a;
  --muted: #5a6b85;
  --line: #e6ecf7;
  --bg-alt: #f5f8ff;
  --white: #ffffff;
  --grad: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  --grad-soft: linear-gradient(135deg, rgba(37,99,235,.10) 0%, rgba(6,182,212,.10) 100%);
  --shadow-md: 0 12px 32px rgba(10, 31, 68, .10);
  --shadow-lg: 0 24px 60px rgba(10, 31, 68, .16);
  --radius: 16px;
  --header-h: 72px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600;
  border-radius: 10px; cursor: pointer; border: 1px solid transparent; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s; }
.btn-sm { padding: 9px 20px; font-size: 14px; }
.btn-lg { padding: 14px 30px; font-size: 16px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 22px rgba(37, 99, 235, .34); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(37, 99, 235, .44); }
.btn-outline { border-color: rgba(255,255,255,.4); color: #fff; background: rgba(255,255,255,.06); }
.btn-outline:hover { background: rgba(255,255,255,.16); border-color: #fff; transform: translateY(-2px); }
.btn-outline-light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--blue-deep); transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--blue-deep); box-shadow: 0 10px 26px rgba(0,0,0,.16); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(0,0,0,.22); }

/* ---------- 顶部导航 ---------- */
.header { position: fixed; top: 0; left: 0; right: 0; height: var(--header-h); z-index: 1000; background: transparent;
  transition: background .3s var(--ease), box-shadow .3s var(--ease); }
.header.scrolled { background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(14px); box-shadow: 0 2px 12px rgba(10,31,68,.06); }
.nav-wrap { display: flex; align-items: center; height: var(--header-h); gap: 28px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.logo-mark { width: 38px; height: 38px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; color: #fff; box-shadow: 0 6px 16px rgba(37,99,235,.34); }
.logo-mark svg { width: 22px; height: 22px; }
.logo-text { font-size: 20px; letter-spacing: .5px; display: flex; flex-direction: column; line-height: 1.05; color: var(--navy); }
.logo-text em { font-size: 10px; font-style: normal; letter-spacing: 3px; color: var(--blue); font-weight: 700; }
.header:not(.scrolled) .logo-text { color: #fff; }
.header:not(.scrolled) .logo-text em { color: #7fd8ff; }
.nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav-link { position: relative; padding: 8px 14px; font-size: 15px; font-weight: 500; color: var(--ink); border-radius: 8px; transition: color .25s, background .25s; }
.header:not(.scrolled) .nav-link { color: rgba(255,255,255,.88); }
.nav-link:hover { color: var(--blue); background: var(--grad-soft); }
.header:not(.scrolled) .nav-link:hover { color: #fff; background: rgba(255,255,255,.12); }
.nav-link.active { color: var(--blue); font-weight: 700; }
.header:not(.scrolled) .nav-link.active { color: #fff; }
.nav-cta { display: flex; align-items: center; }
.header:not(.scrolled) .btn-primary { box-shadow: 0 6px 18px rgba(0,0,0,.24); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: .3s var(--ease); }
.header:not(.scrolled) .nav-toggle span { background: #fff; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* 语言切换 中/EN */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid rgba(10,31,68,.16); background: rgba(255,255,255,.6); }
.lang-btn { border: 0; background: transparent; cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 700; line-height: 1; color: var(--ink); padding: 6px 11px; border-radius: 999px; transition: color .2s, background .2s; }
.lang-btn.active { background: var(--grad); color: #fff; }
.header:not(.scrolled) .lang-switch { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.12); }
.header:not(.scrolled) .lang-btn { color: rgba(255,255,255,.86); }
.header:not(.scrolled) .lang-btn.active { color: #fff; background: rgba(255,255,255,.24); }

/* ---------- 首屏 ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: calc(var(--header-h) + 48px) 0 90px; overflow: hidden;
  background: radial-gradient(1200px 600px at 80% -10%, #143a86 0%, transparent 60%), linear-gradient(160deg, #071634 0%, #0a1f44 45%, #0d2a5c 100%); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-grid { position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 78%); -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 78%); }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.hero-glow-1 { width: 460px; height: 460px; background: #2563eb; top: -120px; right: 6%; }
.hero-glow-2 { width: 380px; height: 380px; background: #06b6d4; bottom: -140px; left: 2%; opacity: .38; }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-copy { color: #fff; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); font-size: 13.5px; color: #cfe0ff; margin-bottom: 24px; }
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 0 4px rgba(34,211,238,.22); }
.hero h1 { font-size: 50px; line-height: 1.2; font-weight: 800; letter-spacing: .5px; margin-bottom: 22px; }
.grad-text { background: linear-gradient(90deg, #60a5fa 0%, #22d3ee 60%, #67e8f9 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 17.5px; color: rgba(255,255,255,.8); max-width: 540px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- 多系统拉通示意图 ---------- */
.hero-visual { display: flex; justify-content: center; }
.hub-svg { width: 100%; max-width: 420px; height: auto; overflow: visible; }
.hub-lines line { animation: dashFlow 1.6s linear infinite; opacity: .85; }
@keyframes dashFlow { to { stroke-dashoffset: -28; } }
.hub-node circle { fill: rgba(255,255,255,.97); stroke: rgba(127,216,255,.5); stroke-width: 2; }
.hub-node text { fill: var(--navy); font-size: 15px; font-weight: 700; text-anchor: middle; font-family: inherit; }
.hub-center circle { filter: drop-shadow(0 10px 26px rgba(37,99,235,.5)); animation: hubPulse 3.4s ease-in-out infinite; }
.hub-center text { fill: #fff; font-size: 22px; font-weight: 800; text-anchor: middle; font-family: inherit; letter-spacing: 1px; }
@keyframes hubPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.045); } }
.hub-center { transform-origin: 200px 200px; }

/* ---------- 通用 section ---------- */
.section { padding: 100px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 60px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 2px; color: var(--blue);
  background: var(--grad-soft); padding: 6px 16px; border-radius: 999px; margin-bottom: 18px; }
.section-head h2 { font-size: 36px; font-weight: 800; color: var(--navy); line-height: 1.3; margin-bottom: 14px; }
.section-head p { font-size: 16.5px; color: var(--muted); }

/* ---------- 三大能力卡片 ---------- */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.cap-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px 32px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; position: relative; overflow: hidden; }
.cap-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad);
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.cap-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.cap-card:hover::before { transform: scaleX(1); }
.cap-icon { width: 62px; height: 62px; border-radius: 16px; background: var(--grad-soft); display: grid; place-items: center; margin-bottom: 24px; transition: .35s var(--ease); }
.cap-icon svg { width: 30px; height: 30px; color: var(--blue); transition: .35s var(--ease); }
.cap-card:hover .cap-icon { background: var(--grad); box-shadow: 0 10px 24px rgba(37,99,235,.34); }
.cap-card:hover .cap-icon svg { color: #fff; }
.cap-card h3 { font-size: 21px; color: var(--navy); margin-bottom: 14px; }
.cap-card p { font-size: 15px; color: var(--muted); }

/* ---------- CTA ---------- */
.cta { background: var(--grad); padding: 80px 0; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 80% 20%, rgba(255,255,255,.22), transparent 60%); }
.cta-inner { position: relative; z-index: 1; text-align: center; color: #fff; }
.cta-inner h2 { font-size: 32px; font-weight: 800; margin-bottom: 14px; }
.cta-inner p { font-size: 17px; color: rgba(255,255,255,.9); margin-bottom: 32px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-wechat { margin-top: 44px; display: flex; justify-content: center; }
.wechat-card { background: #fff; border-radius: 16px; padding: 14px 14px 10px; box-shadow: 0 18px 44px rgba(0,0,0,.24); display: inline-flex; flex-direction: column; align-items: center; gap: 8px; transition: transform .3s var(--ease); }
.wechat-card:hover { transform: translateY(-4px); }
.wechat-card img { width: 160px; height: auto; display: block; border-radius: 8px; }
.wechat-card p { font-size: 13px; color: var(--navy); font-weight: 600; }

/* ---------- 页脚 ---------- */
.footer { background: var(--navy); color: rgba(255,255,255,.72); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; padding: 56px 24px 40px; }
.logo-footer .logo-text { color: #fff; }
.footer-brand p { font-size: 14px; margin-top: 18px; line-height: 1.8; max-width: 360px; }
.footer-contact p { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 7px 0; }
.footer-contact svg { width: 17px; height: 17px; color: #7fd8ff; flex-shrink: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 24px; font-size: 13px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,.6); transition: color .25s; }
.footer-links a:hover { color: #7fd8ff; }

/* ---------- 侧边联系栏 ---------- */
.side-contact { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 900; display: flex; flex-direction: column; gap: 12px; }
.side-item { position: relative; width: 48px; height: 48px; border-radius: 14px; background: rgba(10,31,68,.92); backdrop-filter: blur(8px); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(10,31,68,.28); transition: background .25s var(--ease), transform .25s var(--ease); cursor: pointer; }
.side-item:hover { background: var(--blue); transform: translateX(-4px); }
.side-item > svg { width: 21px; height: 21px; }
.side-tip { position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%) translateX(6px); background: var(--navy); color: #fff; font-size: 12.5px; line-height: 1; padding: 9px 12px; border-radius: 8px; white-space: nowrap; opacity: 0; visibility: hidden; pointer-events: none; box-shadow: 0 6px 18px rgba(10,31,68,.3); transition: .25s var(--ease); }
.side-item:hover .side-tip { opacity: 1; visibility: visible; transform: translateY(-50%) translateX(0); }
.side-qr { position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%) translateX(8px) scale(.94); transform-origin: right center; background: #fff; padding: 10px 10px 8px; border-radius: 12px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: .25s var(--ease); }
.side-qr img { width: 150px; height: auto; display: block; border-radius: 6px; }
.side-qr p { margin-top: 6px; font-size: 12px; color: var(--navy); font-weight: 600; text-align: center; }
.side-wechat:hover .side-qr { opacity: 1; visibility: visible; transform: translateY(-50%) translateX(0) scale(1); }
@media (max-width: 768px) { .side-contact { display: none; } }

/* ---------- 滚动揭示 ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 54px; }
  .hero h1 { font-size: 40px; }
  .hero-visual { max-width: 400px; margin: 0 auto; }
  .cap-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .nav, .nav-cta { position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--white); box-shadow: var(--shadow-md); padding: 12px 20px 20px; gap: 4px;
    transform: translateY(-140%); opacity: 0; visibility: hidden; transition: .35s var(--ease); margin: 0; }
  .nav { display: flex; }
  .nav-cta { top: auto; position: static; transform: none; opacity: 1; visibility: visible; display: none; box-shadow: none; padding: 0 20px 16px; flex-direction: row; }
  .nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav.open ~ .nav-cta { display: flex; }
  .nav-link { padding: 13px 12px; color: var(--ink) !important; font-size: 16px; border-radius: 10px; }
  .nav-link.active { background: var(--grad-soft); }
  .nav-toggle { display: flex; margin-left: 12px; }
  .lang-switch { margin-left: auto; }
  .hero { min-height: auto; padding: calc(var(--header-h) + 48px) 0 80px; }
  .hero h1 { font-size: 32px; }
  .hero-sub { font-size: 16px; }
  .section { padding: 68px 0; }
  .section-head h2 { font-size: 27px; }
  .cta-inner h2 { font-size: 25px; }
  .footer-bottom-inner { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero h1 { font-size: 27px; }
  .hero-actions .btn { width: 100%; }
  .cta-actions .btn { width: 100%; }
}

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