/* ===== Design Tokens ===== */
:root {
  --navy-900: #0a2540;
  --navy-800: #0e2e52;
  --navy-700: #143a66;
  --blue-600: #1e6f9f;
  --blue-500: #2a8fc4;
  --gold-500: #c9a227;
  --gold-400: #d8b64a;
  --ink-900: #11202e;
  --ink-700: #33485c;
  --ink-500: #5c7184;
  --line: #e3e9f0;
  --bg: #ffffff;
  --bg-alt: #f5f8fb;
  --bg-dark: #0a2540;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(10, 37, 64, .08);
  --shadow-md: 0 10px 30px rgba(10, 37, 64, .10);
  --shadow-lg: 0 24px 60px rgba(10, 37, 64, .16);
  --maxw: 1160px;
  --font: "Inter", "Noto Sans SC", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-900);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; color: var(--navy-900); }
p { margin: 0 0 1em; }

.container { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }
.section { padding: 92px 0; }
.section-alt { background: var(--bg-alt); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5em; padding: 13px 24px; border-radius: 999px;
  font-weight: 600; font-size: 15px; cursor: pointer; border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-primary { background: var(--navy-900); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--blue-600); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--navy-900); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue-600); color: var(--blue-600); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; gap: 18px; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy-800), var(--blue-600));
  color: #fff; font-weight: 800; font-size: 19px; box-shadow: var(--shadow-sm);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 17px; color: var(--navy-900); letter-spacing: .2px; }
.brand-text em { font-style: normal; font-size: 11.5px; color: var(--ink-500); letter-spacing: .3px; }

.main-nav { display: flex; gap: 26px; margin-left: auto; }
.main-nav a { font-size: 15px; font-weight: 500; color: var(--ink-700); position: relative; padding: 6px 0; }
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--gold-500); transition: width .2s ease; }
.main-nav a:hover { color: var(--navy-900); }
.main-nav a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 12px; margin-left: 18px; }
.lang-toggle {
  border: 1.5px solid var(--line); background: #fff; color: var(--ink-700);
  border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: border-color .2s, color .2s;
}
.lang-toggle:hover { border-color: var(--blue-600); color: var(--blue-600); }
.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-burger span { width: 24px; height: 2px; background: var(--navy-900); border-radius: 2px; transition: .2s; }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 80% -10%, #16456f 0%, var(--navy-900) 55%);
  color: #eaf2fb; padding: 96px 0 104px;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 12% 120%, rgba(201,162,39,.18), transparent 70%),
    radial-gradient(500px 260px at 95% 90%, rgba(42,143,196,.18), transparent 70%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gold-400); font-weight: 700; margin-bottom: 18px;
}
.hero h1 { color: #fff; font-size: clamp(30px, 4.4vw, 50px); font-weight: 800; letter-spacing: -.5px; }
.hero .lead { color: #c5d6e8; font-size: 18px; max-width: 560px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.hero-cta .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.hero-cta .btn-ghost:hover { border-color: var(--gold-400); color: var(--gold-400); }
.hero-stats { display: flex; gap: 34px; list-style: none; padding: 0; margin: 34px 0 0; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 26px; color: #fff; font-weight: 800; }
.hero-stats span { font-size: 13px; color: #9fb6cd; }

.hero-visual { position: relative; min-height: 320px; display: grid; place-items: center; }
.orb {
  width: 280px; height: 280px; border-radius: 50%;
  background: conic-gradient(from 180deg, var(--blue-500), var(--gold-500), var(--blue-600), var(--blue-500));
  filter: blur(2px); opacity: .9; position: absolute;
  animation: spin 22s linear infinite;
  -webkit-mask: radial-gradient(circle, transparent 58%, #000 60%);
  mask: radial-gradient(circle, transparent 58%, #000 60%);
}
@keyframes spin { to { transform: rotate(360deg); } }
.globe-card {
  position: relative; z-index: 1; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16); border-radius: 16px;
  padding: 26px 30px; color: #fff; font-weight: 600; backdrop-filter: blur(6px);
  box-shadow: var(--shadow-lg); text-align: center;
}
.globe-dot { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--gold-400); box-shadow: 0 0 12px var(--gold-400); }
.dot-a { top: -5px; left: 30%; } .dot-b { bottom: 20%; right: -5px; } .dot-c { bottom: -5px; left: 40%; }

/* ===== Section heads ===== */
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--blue-600); margin-bottom: 12px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.4px; }

/* ===== About ===== */
.about-grid { max-width: 860px; margin: 0 auto; text-align: center; }
.about-grid p { font-size: 17px; color: var(--ink-700); }
.about-pills { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }
.about-pills span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; font-size: 14px; font-weight: 600; color: var(--navy-700); box-shadow: var(--shadow-sm); }

/* ===== Service cards ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cfe0ee; }
.card-wide { grid-column: span 3; }
.card-icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  font-size: 26px; background: linear-gradient(135deg, #eaf3fb, #f7f0d8); margin-bottom: 16px;
}
.card h3 { font-size: 19px; color: var(--navy-900); }
.card p { color: var(--ink-700); font-size: 15px; flex: 1; }
.card-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.card-list li { position: relative; padding-left: 22px; font-size: 14px; color: var(--ink-700); }
.card-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--blue-600); font-weight: 700; }
.card-list-inline { grid-template-columns: repeat(2, 1fr); }

/* ===== Advantages ===== */
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.adv { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.adv h4 { font-size: 17px; color: var(--navy-900); margin-bottom: 10px; }
.adv p { font-size: 14.5px; color: var(--ink-700); margin: 0; }

/* ===== Infra ===== */
.infra-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.infra-copy p { color: var(--ink-700); font-size: 16px; }
.infra-copy code { background: #eaf3fb; color: var(--navy-800); padding: 2px 8px; border-radius: 6px; font-size: 14px; }
.infra-copy .btn { margin-top: 6px; }
.infra-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.infra-list li { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold-500); border-radius: var(--radius-sm); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.infra-list strong { display: block; color: var(--navy-900); font-size: 16px; margin-bottom: 4px; }
.infra-list span { color: var(--ink-700); font-size: 14px; }

/* ===== Contact ===== */
.contact { background: var(--bg-dark); color: #dfeaf5; }
.contact .kicker { color: var(--gold-400); }
.contact h2 { color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-copy p { color: #b9cce0; }
.contact-info { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.contact-info li { display: flex; flex-direction: column; }
.contact-info span { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: #7f9bb6; }
.contact-info a, .contact-info span.v { color: #fff; font-size: 16px; font-weight: 600; }

.contact-form { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-lg); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: span 2; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-700); }
.field input, .field select, .field textarea {
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 11px 13px;
  font-family: inherit; font-size: 15px; color: var(--ink-900); background: #fbfdff; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(30,111,159,.15); }
.contact-form .btn { grid-column: span 2; }
.form-note { grid-column: span 2; margin: 0; font-size: 14px; font-weight: 600; }
.form-note.ok { color: #1d7a46; }
.form-note.err { color: #b3261e; }

/* ===== Footer ===== */
.site-footer { background: #061a2e; color: #b9cce0; padding: 54px 0 26px; }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
.site-footer .brand-text strong { color: #fff; }
.footer-note { max-width: 320px; font-size: 14px; color: #8fa9c2; margin-top: 14px; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { color: #c5d6e8; font-size: 15px; font-weight: 500; }
.footer-nav a:hover { color: var(--gold-400); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); margin-top: 34px; padding-top: 18px; font-size: 12.5px; color: #7f9bb6; }

/* ===== Responsive ===== */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 240px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card-wide { grid-column: span 2; }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .infra-grid, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .main-nav { position: fixed; inset: 70px 0 auto 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 16px; transform: translateY(-130%); transition: transform .25s ease; box-shadow: var(--shadow-md); }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-burger { display: flex; }
  .nav-actions .btn-primary { display: none; }
  .cards { grid-template-columns: 1fr; }
  .card-wide { grid-column: span 1; }
  .card-list-inline { grid-template-columns: 1fr; }
  .adv-grid { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .field-full, .contact-form .btn, .form-note { grid-column: span 1; }
  .hero-stats { gap: 22px; }
  .section { padding: 64px 0; }
}

/* ===== Showcase ===== */
.section-sub { color: var(--ink-500); font-size: 16px; max-width: 640px; margin: 12px auto 0; }
.showcase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.showcase-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); cursor: pointer; transition: transform .18s ease, box-shadow .2s ease; display: flex; flex-direction: column; }
.showcase-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.showcase-thumb { position: relative; aspect-ratio: 4 / 3; background: #eef3f8; display: grid; place-items: center; overflow: hidden; }
.showcase-thumb img, .showcase-thumb video { width: 100%; height: 100%; object-fit: cover; }
.showcase-thumb .ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 46px; color: var(--blue-600); background: linear-gradient(135deg, #eaf3fb, #f7f0d8); }
.showcase-type { position: absolute; top: 10px; left: 10px; background: var(--navy-900); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.showcase-meta { padding: 16px 18px; }
.showcase-meta h4 { font-size: 16px; margin: 0 0 6px; color: var(--navy-900); }
.showcase-meta p { font-size: 14px; color: var(--ink-700); margin: 0; }
.showcase-hint { text-align: center; font-size: 13px; color: var(--ink-500); margin-top: 26px; }

/* ===== Lightbox ===== */
.lightbox { position: fixed; inset: 0; background: rgba(6,16,28,.86); display: none; align-items: center; justify-content: center; z-index: 200; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img, .lightbox video { max-width: 92vw; max-height: 86vh; border-radius: 10px; background: #fff; }
.lightbox iframe { width: 90vw; height: 84vh; border: 0; border-radius: 10px; background: #fff; }
.lightbox-close { position: absolute; top: 16px; right: 22px; font-size: 32px; line-height: 1; color: #fff; background: none; border: 0; cursor: pointer; }

/* ===== Socials ===== */
.socials { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.social-btn { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--navy-700); transition: .18s ease; cursor: pointer; padding: 0; }
.social-btn:hover { border-color: var(--blue-600); color: var(--blue-600); transform: translateY(-2px); }
.social-btn svg { width: 22px; height: 22px; }
.socials-note { font-size: 13px; color: #8fa9c2; margin-top: 10px; }
.footer-socials { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 22px; }
.footer-socials span { font-size: 13px; color: #8fa9c2; letter-spacing: .5px; }
.socials-dark .social-btn { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: #cfe0ee; }
.socials-dark .social-btn:hover { border-color: var(--gold-400); color: var(--gold-400); }

/* ===== Chatbot ===== */
.chat-fab { position: fixed; right: 22px; bottom: 22px; width: 58px; height: 58px; border-radius: 50%; background: linear-gradient(135deg, var(--navy-800), var(--blue-600)); color: #fff; border: 0; box-shadow: var(--shadow-lg); cursor: pointer; z-index: 150; display: grid; place-items: center; font-size: 24px; }
.chat-fab:hover { transform: scale(1.05); }
.chat-panel { position: fixed; right: 22px; bottom: 92px; width: min(360px, calc(100vw - 32px)); height: 520px; max-height: calc(100vh - 120px); background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); z-index: 150; display: none; flex-direction: column; overflow: hidden; border: 1px solid var(--line); }
.chat-panel.open { display: flex; }
.chat-head { background: linear-gradient(135deg, var(--navy-800), var(--blue-600)); color: #fff; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; }
.chat-head strong { font-size: 15px; }
.chat-head button { background: none; border: 0; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.chat-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--bg-alt); }
.chat-msg { max-width: 85%; padding: 10px 12px; border-radius: 12px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; }
.chat-msg.bot { background: #fff; border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg.user { background: var(--navy-900); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-suggest { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 14px 10px; }
.chat-suggest button { font-size: 12px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 10px; cursor: pointer; color: var(--ink-700); }
.chat-foot { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.chat-foot input { flex: 1; border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 14px; font-family: inherit; font-size: 14px; }
.chat-foot input:focus { outline: none; border-color: var(--blue-600); }
.chat-foot button { background: var(--navy-900); color: #fff; border: 0; border-radius: 999px; padding: 0 16px; cursor: pointer; font-weight: 600; }

/* ===== Responsive additions ===== */
@media (max-width: 940px) { .showcase-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .showcase-grid { grid-template-columns: 1fr; } .chat-panel { height: 72vh; } }

/* ===== Language: zh tweaks ===== */
html[lang="zh"] body { font-family: "Noto Sans SC", "Inter", sans-serif; }
