/* ============ 基础变量 ============ */
:root {
  --blue: #1d4ed8;
  --blue-dark: #173ea8;
  --navy: #0f2745;
  --ink: #14213d;
  --ink-2: #4a5b73;
  --muted: #73849b;
  --line: #e3e9f2;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --shadow: 0 16px 40px rgba(20, 45, 85, .08);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
img, svg { display: block; max-width: 100%; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

/* ============ 按钮 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid transparent; border-radius: 10px;
  padding: 12px 20px; font-size: 14.5px; font-weight: 650;
  cursor: pointer; transition: all .2s ease; line-height: 1.2;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(29, 78, 216, .18); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-lg { padding: 14px 26px; font-size: 15px; }
.btn-sm { padding: 9px 15px; font-size: 13.5px; }

/* ============ 导航 ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-icon {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--blue); color: #fff;
}
.brand-icon svg { width: 23px; height: 23px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.brand-sub { font-size: 11px; font-weight: 550; color: var(--muted); letter-spacing: .02em; margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav-links a { font-size: 14px; font-weight: 600; color: var(--ink-2); transition: color .2s; }
.nav-links a:hover { color: var(--blue); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg-soft); }
.lang-btn { border: 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 700; padding: 5px 8px; border-radius: 6px; cursor: pointer; }
.lang-btn.active { background: #fff; color: var(--blue); box-shadow: 0 1px 4px rgba(20, 45, 85, .1); }
.nav-toggle { display: none; width: 40px; height: 40px; border: 0; background: transparent; padding: 9px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* ============ Hero ============ */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(circle at 85% 15%, #e7efff 0, transparent 45%), linear-gradient(180deg, #f8fbff, #fff);
  border-bottom: 1px solid var(--line);
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 60px; padding: 84px 0 72px; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .16em; color: var(--blue); text-transform: uppercase; }
.hero h1 { font-size: clamp(44px, 5.5vw, 70px); line-height: 1.05; letter-spacing: -.045em; margin: 14px 0 8px; color: var(--navy); }
.hero-tagline { font-size: 20px; font-weight: 700; color: var(--blue); margin: 0 0 14px; }
.hero-lead { font-size: 16.5px; color: var(--ink-2); max-width: 560px; margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 42px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 26px; letter-spacing: -.03em; color: var(--navy); }
.hero-stats span { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.hero-visual { display: flex; justify-content: center; }
.hero-card {
  width: 100%; max-width: 480px; padding: 30px 26px 20px;
  border: 1px solid var(--line); border-radius: 24px; background: #fff;
  box-shadow: var(--shadow); color: var(--blue);
}
.hero-card svg { width: 100%; height: auto; }
.hero-card-label { display: block; text-align: center; font-size: 13px; font-weight: 650; color: var(--ink-2); margin-top: 6px; }

/* ============ 通用区块 ============ */
.section { padding: 84px 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.25; letter-spacing: -.03em; margin: 10px 0 12px; color: var(--navy); }
.section-head p { font-size: 15.5px; color: var(--ink-2); margin: 0; }

/* ============ 公司介绍 ============ */
.about-layout { display: grid; grid-template-columns: 300px 1fr; gap: 60px; align-items: start; }
.about-layout .section-head { text-align: left; margin: 0; position: sticky; top: 100px; }
.about-body p { font-size: 15.5px; color: var(--ink-2); margin: 0 0 16px; }
.tagline-box { margin-top: 28px; padding: 22px 24px; border-left: 4px solid var(--blue); background: var(--bg-soft); border-radius: 0 12px 12px 0; }
.tagline-box strong { display: block; font-size: 16px; color: var(--navy); }
.tagline-box span { display: block; font-size: 14px; color: var(--muted); margin-top: 6px; }
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 52px; }
.value-card { padding: 24px 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.value-card > span { font-size: 12px; font-weight: 800; color: var(--blue); letter-spacing: .1em; }
.value-card h3 { font-size: 16px; margin: 10px 0 8px; color: var(--navy); }
.value-card p { font-size: 13.5px; color: var(--ink-2); margin: 0; }

/* ============ 占位图片区 ============ */
.placeholder-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.placeholder-card, .case-card, .review-card, .video-card { margin: 0; }
.placeholder-card img, .case-card img, .video-card video {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px;
  border: 1px solid var(--line); background: #eef4fc; display: block;
}
.case-card img { aspect-ratio: 16 / 10; }
.placeholder-card figcaption, .case-card figcaption, .video-card figcaption { font-size: 13.5px; color: var(--muted); text-align: center; padding-top: 12px; }

/* ============ 交付案例 ============ */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 22px; }
.video-card video { aspect-ratio: 16 / 9; background: #0b1b30; }

/* ============ 客户评价 ============ */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review-card { padding: 28px 24px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.stars { color: #f59e0b; font-size: 17px; letter-spacing: 3px; }
.review-card blockquote { font-size: 15px; color: var(--ink-2); margin: 14px 0 18px; }
.review-card figcaption { font-size: 13px; font-weight: 650; color: var(--navy); }

/* ============ 页脚 ============ */
.site-footer { background: var(--navy); color: #d6e2f2; padding: 56px 0 20px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand strong { color: #fff; font-size: 22px; letter-spacing: .03em; }
.footer-brand p { font-size: 13.5px; color: #9fb3cc; margin: 10px 0 0; }
.footer-col h4 { color: #fff; font-size: 14px; margin: 0 0 14px; }
.footer-col a, .footer-col span, .footer-link { display: block; font-size: 13.5px; color: #9fb3cc; margin-bottom: 9px; }
.footer-col a:hover, .footer-link:hover { color: #fff; }
.footer-link { border: 0; background: transparent; padding: 0; cursor: pointer; text-align: left; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 18px; font-size: 12px; color: #8ea4c0; }

/* ============ WhatsApp ============ */
.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 70;
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--blue); color: #fff; padding: 12px 19px; border-radius: 999px;
  font-size: 14px; font-weight: 750; letter-spacing: .01em;
  box-shadow: 0 10px 28px rgba(37, 99, 235, .35);
  transition: transform .2s ease, box-shadow .2s ease;
}
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(37, 99, 235, .45); }
.wa-float svg { width: 22px; height: 22px; flex-shrink: 0; }
.wa-link {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  margin-top: 14px; padding: 12px 16px; border: 1px solid var(--blue); border-radius: 10px;
  background: #eff6ff; color: #1d4ed8; font-size: 14px; font-weight: 700;
  transition: background .2s ease;
}
.wa-link:hover { background: #dbeafe; }
.wa-link svg { width: 20px; height: 20px; flex-shrink: 0; }
.wa-footer { display: flex; align-items: center; gap: 8px; color: #93c5fd !important; }
.wa-footer svg { width: 16px; height: 16px; flex-shrink: 0; }
.wa-footer:hover { color: #fff !important; }
.footer-address { display: flex; align-items: center; gap: 8px; }
.footer-address svg { width: 16px; height: 16px; flex-shrink: 0; color: #93c5fd; }

/* ============ 联系弹窗 ============ */
.modal-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(10, 26, 48, .58); display: grid; place-items: center; padding: 20px; }
.modal-overlay[hidden] { display: none; }
.modal { position: relative; width: min(520px, 100%); max-height: 90vh; overflow-y: auto; background: #fff; border-radius: 18px; padding: 34px; box-shadow: 0 30px 80px rgba(10, 26, 48, .3); }
.modal-close { position: absolute; top: 14px; right: 16px; border: 0; background: var(--bg-soft); width: 34px; height: 34px; border-radius: 50%; font-size: 22px; line-height: 1; color: var(--ink-2); cursor: pointer; }
.modal h2 { font-size: 25px; margin: 0 0 8px; color: var(--navy); }
.modal-desc { font-size: 14px; color: var(--ink-2); margin: 0 0 22px; }
#contact-form label { display: block; margin-bottom: 15px; }
#contact-form label span { display: block; font-size: 13px; font-weight: 650; color: var(--ink); margin-bottom: 6px; }
#contact-form input, #contact-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 11px 13px; font-size: 14px; color: var(--ink); background: #fff; resize: vertical; }
#contact-form input:focus, #contact-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29,78,216,.1); }
#contact-form .btn { width: 100%; margin-top: 6px; }
.modal-hint { margin: -4px 0 14px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.modal-success { margin: 16px 0 0; padding: 12px 14px; border-radius: 9px; background: #ecfdf3; color: #166534; font-size: 13.5px; }
.modal-success[hidden], .modal-error[hidden] { display: none; }
.modal-error { margin: 16px 0 0; padding: 12px 14px; border-radius: 9px; background: #fef2f2; color: #b91c1c; font-size: 13.5px; }
.modal-contact { font-size: 12.5px; color: var(--muted); margin: 18px 0 0; text-align: center; }

/* ============ 动效 ============ */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ============ 响应式 ============ */
@media (max-width: 980px) {
  .nav-links { display: none; position: absolute; top: 74px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 14px 20px; flex-direction: column; align-items: flex-start; gap: 12px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 60px 0 50px; }
  .hero-visual { display: none; }
  .about-layout { grid-template-columns: 1fr; gap: 28px; }
  .about-layout .section-head { position: static; }
  .value-grid, .placeholder-grid { grid-template-columns: repeat(3, 1fr); }
  .case-grid, .review-grid, .video-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1180px); }
  .nav-inner { height: 66px; gap: 10px; }
  .brand-sub { display: none; }
  .nav-actions .btn-sm { display: none; }
  .lang-btn { padding: 5px 6px; }
  .section { padding: 58px 0; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
  .value-grid, .placeholder-grid, .case-grid, .review-grid, .video-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
  .modal { padding: 28px 22px; }
  .wa-float { right: 16px; bottom: 16px; padding: 11px 15px; font-size: 13px; }
  .wa-float svg { width: 20px; height: 20px; }
}
