:root {
  --red: #d6001c;
  --red-dark: #a80016;
  --cyan: #00a9c6;
  --navy: #0b1a2b;
  --navy-2: #10263c;
  --ink: #152238;
  --muted: #637085;
  --line: #e5e9f0;
  --paper: #f6f8fb;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(16, 38, 60, 0.10);
  --radius: 16px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { max-width: 100%; display: block; }

.container { width: min(100% - 48px, var(--max)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(11,26,43,0.06);
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: 0 8px 30px rgba(11,26,43,0.10); }
.header-inner { height: 78px; display: flex; align-items: center; gap: 28px; }
.brand { flex: 0 0 auto; }
.brand-logo { width: 186px; height: auto; }
.nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: #3b4a60;
  position: relative;
  padding: 8px 0;
  white-space: nowrap;
  transition: color .2s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 2px;
  height: 2px; width: 0;
  background: var(--red);
  transition: width .25s ease;
}
.nav-link:hover, .nav-link.active { color: var(--red); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; gap: 2px; padding: 4px; background: var(--paper); border-radius: 999px; border: 1px solid var(--line); }
.lang-btn {
  border: 0; background: transparent; cursor: pointer;
  font-size: 12px; font-weight: 700; color: var(--muted);
  padding: 6px 10px; border-radius: 999px; transition: all .2s ease;
}
.lang-btn:hover { color: var(--ink); }
.lang-btn.is-active { background: var(--white); color: var(--red); box-shadow: 0 2px 8px rgba(11,26,43,.10); }
.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, #081421 0%, #102b43 55%, #0d2136 100%); color: var(--white); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg svg { width: 100%; height: 100%; opacity: .95; }
.hero-inner { position: relative; min-height: 620px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 60px; padding-block: 84px 92px; }
.eyebrow { color: #63e0ee; font-size: 13px; font-weight: 800; letter-spacing: 2.2px; text-transform: uppercase; margin: 0 0 18px; }
.hero h1 { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.18; letter-spacing: -1.2px; margin: 0 0 24px; font-weight: 800; }
.hero-desc { font-size: 17px; color: #c3d2e3; max-width: 590px; margin: 0 0 34px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 10px; font-size: 14px; font-weight: 700; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: var(--white); box-shadow: 0 12px 28px rgba(214,0,28,.30); }
.btn-primary:hover { background: #ee0b2a; box-shadow: 0 16px 34px rgba(214,0,28,.38); }
.btn-ghost { background: rgba(255,255,255,.08); color: var(--white); border: 1px solid rgba(255,255,255,.28); }
.btn-ghost:hover { background: rgba(255,255,255,.15); }
.btn-light { background: var(--white); color: var(--navy); margin-top: 26px; }
.btn-block { width: 100%; }
.hero-note { display: flex; align-items: center; gap: 10px; margin-top: 34px; color: #93a8bf; font-size: 13px; }
.hero-note .dot { width: 8px; height: 8px; border-radius: 50%; background: #2ee6a8; box-shadow: 0 0 0 5px rgba(46,230,168,.14); }

/* Hero dashboard */
.hero-visual { position: relative; min-height: 420px; }
.dash-card { background: rgba(255,255,255,.96); color: var(--ink); border-radius: 18px; box-shadow: 0 30px 70px rgba(0,0,0,.32); }
.dash-main { width: 100%; max-width: 500px; margin-left: auto; overflow: hidden; }
.dash-top { height: 44px; display: flex; align-items: center; gap: 7px; padding: 0 18px; background: #edf1f6; border-bottom: 1px solid #dde4ec; }
.dash-dot { width: 9px; height: 9px; border-radius: 50%; }
.dash-dot.red { background: #ff5f56; } .dash-dot.yellow { background: #ffbd2e; } .dash-dot.green { background: #27c93f; }
.dash-url { margin-left: 12px; font-size: 11px; color: #8492a5; }
.dash-body { padding: 26px; }
.dash-title { font-size: 18px; font-weight: 800; margin-bottom: 18px; }
.dash-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 22px; }
.dash-tile { position: relative; border: 1px solid var(--line); border-radius: 12px; padding: 14px 14px 12px; font-size: 13px; font-weight: 700; background: #fbfcfe; }
.dash-tile .tile-icon { color: var(--cyan); font-size: 20px; display: block; margin-bottom: 6px; }
.dash-tile b { position: absolute; top: 12px; right: 14px; font-size: 11px; color: #b2bdcb; }
.dash-bar { height: 7px; border-radius: 99px; background: #eef2f7; overflow: hidden; margin-top: 10px; }
.dash-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--cyan), #69d9e8); }
.dash-float { position: absolute; padding: 13px 18px; font-size: 12px; font-weight: 700; box-shadow: 0 18px 40px rgba(0,0,0,.22); }
.dash-float-a { left: 0; bottom: 58px; }
.dash-float-b { right: 8px; bottom: -18px; border-left: 3px solid var(--red); }

/* Stats */
.stats { background: var(--white); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 42px 26px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-value { font-size: 38px; font-weight: 800; color: var(--navy); letter-spacing: -1px; line-height: 1.1; }
.stat-value span { color: var(--red); }
.stat-label { margin-top: 8px; font-size: 13px; color: var(--muted); }

/* Sections */
.section { padding: 104px 0; }
.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; max-width: 760px; margin-inline: auto; }
.section-label { color: var(--red); font-size: 12px; font-weight: 800; letter-spacing: 2.4px; text-transform: uppercase; margin: 0 0 12px; }
.section-label.light { color: #63e0ee; }
.section h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.25; margin: 0; letter-spacing: -.6px; }
.section-sub { color: var(--muted); margin: 16px 0 0; font-size: 16px; }
.text-link { color: var(--red); font-weight: 700; font-size: 14px; display: inline-block; margin-top: 22px; }
.text-link:hover { text-decoration: underline; }

/* About */
.about { background: var(--paper); }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.about-copy p { color: #4a586d; font-size: 16px; margin: 0 0 18px; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feature { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: 0 8px 24px rgba(16,38,60,.04); }
.feature-icon { width: 42px; height: 42px; border-radius: 11px; background: rgba(0,169,198,.10); color: var(--cyan); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 16px; }
.feature h3 { font-size: 17px; margin: 0 0 8px; }
.feature p { color: var(--muted); font-size: 14px; margin: 0; }

/* Cards */
.cards-grid { display: grid; gap: 20px; }
.services-grid { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; position: relative; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(214,0,28,.28); }
.card-num { position: absolute; top: 22px; right: 24px; font-size: 13px; font-weight: 800; color: #c8d0dc; }
.card-icon { width: 46px; height: 46px; border-radius: 12px; background: rgba(214,0,28,.07); color: var(--red); display: flex; align-items: center; justify-content: center; font-size: 23px; margin-bottom: 18px; }
.card h3 { font-size: 19px; margin: 0 0 10px; }
.card p { color: var(--muted); font-size: 14px; margin: 0; }

/* Process */
.process { background: var(--paper); }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px; }
.step > span { display: inline-block; color: var(--red); font-size: 28px; font-weight: 900; line-height: 1; margin-bottom: 18px; }
.step h3 { font-size: 18px; margin: 0 0 8px; }
.step p { color: var(--muted); font-size: 14px; margin: 0; }

/* Madagascar */
.madagascar { background: linear-gradient(120deg, #0b1a2b, #12334b); color: var(--white); position: relative; overflow: hidden; }
.madagascar::before { content: ""; position: absolute; width: 520px; height: 520px; border: 1px solid rgba(255,255,255,.06); border-radius: 50%; right: -160px; top: -180px; }
.mg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; position: relative; }
.mg-copy p { color: #bfd0e2; font-size: 16px; }
.mg-copy h2 { margin-bottom: 22px; }
.mg-projects { display: grid; gap: 20px; }
.project-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); padding: 26px 28px; backdrop-filter: blur(6px); transition: background .25s ease, transform .25s ease; }
.project-card:hover { background: rgba(255,255,255,.10); transform: translateY(-4px); }
.project-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.project-badge { font-size: 11px; font-weight: 800; padding: 5px 11px; border-radius: 999px; background: rgba(46,230,168,.14); color: #4ce9b0; }
.project-mark { font-size: 11px; font-weight: 800; color: #8fa7bf; letter-spacing: 1px; }
.project-card h3 { margin: 0 0 4px; font-size: 21px; }
.project-url { color: #8fa7bf; font-size: 13px; margin: 0 0 14px; word-break: break-all; }
.project-card a { color: #63e0ee; font-weight: 700; font-size: 14px; }
.project-card a:hover { text-decoration: underline; }

/* Cases */
.cases-grid { grid-template-columns: repeat(3, 1fr); }
.case-card { padding-top: 36px; }
.case-tag { position: absolute; top: 0; left: 30px; background: var(--red); color: var(--white); font-size: 11px; font-weight: 800; padding: 4px 12px; border-radius: 0 0 8px 8px; }

/* Contact */
.contact { background: linear-gradient(120deg, #0b1a2b, #102f49); color: var(--white); }
.contact-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: center; }
.contact-copy p { color: #c0d0e1; font-size: 16px; }
.contact-note { margin-top: 24px; font-size: 13px !important; color: #7fa0bb !important; }
.contact-card { background: var(--white); color: var(--ink); border-radius: 20px; padding: 38px; box-shadow: 0 28px 70px rgba(0,0,0,.28); }
.contact-person-label, .contact-phone-label { font-size: 12px; font-weight: 800; color: var(--muted); letter-spacing: 1.2px; text-transform: uppercase; margin: 0 0 8px; }
.contact-card h3 { font-size: 26px; margin: 0 0 26px; }
.contact-phone { display: block; font-size: 34px; font-weight: 800; color: var(--navy); letter-spacing: -.5px; margin-bottom: 26px; }
.contact-phone:hover { color: var(--red); }
.contact-mini { margin: 20px 0 0; font-size: 12px; color: var(--muted); text-align: center; }

/* Footer */
.site-footer { background: #071320; color: #91a6bc; padding: 64px 0 28px; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; }
.footer-logo { width: 218px; margin-bottom: 18px; }
.footer-brand p { max-width: 480px; font-size: 14px; margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 26px; align-content: start; justify-content: flex-end; font-size: 14px; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.10); padding-top: 22px; display: flex; justify-content: space-between; font-size: 12px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1080px) {
  .nav { gap: 16px; }
  .nav-link { font-size: 13px; }
  .brand-logo { width: 160px; }
  .hero-inner { gap: 30px; }
  .services-grid, .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .mg-grid, .contact-inner, .about-grid { gap: 40px; }
}
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 78px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 10px 24px 18px;
    box-shadow: 0 16px 30px rgba(11,26,43,.10);
    display: none;
  }
  .nav.open { display: flex; }
  .nav-link { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-link::after { display: none; }
  .hero-inner { grid-template-columns: 1fr; padding-block: 64px 74px; }
  .hero-visual { min-height: 360px; }
  .dash-main { margin-inline: auto; }
  .dash-float-a { left: 2%; }
  .dash-float-b { right: 2%; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .mg-grid, .contact-inner, .about-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}
@media (max-width: 600px) {
  .container { width: min(100% - 32px, var(--max)); }
  .header-inner { height: 68px; gap: 12px; }
  .brand-logo { width: 140px; }
  .lang-switch .lang-btn { padding: 5px 7px; font-size: 11px; }
  .nav { top: 68px; }
  .hero h1 { font-size: 32px; }
  .hero-desc { font-size: 15px; }
  .section { padding: 72px 0; }
  .services-grid, .cases-grid, .feature-grid, .steps-grid { grid-template-columns: 1fr; }
  .stat { padding: 30px 12px; }
  .stat-value { font-size: 30px; }
  .dash-float { display: none; }
  .contact-card { padding: 26px; }
  .contact-phone { font-size: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

/* 在线需求表单 */
.requirement { background: var(--paper); }
.requirement-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 64px; align-items: start; }
.requirement-copy > p { color: #4a586d; font-size: 16px; }
.form-steps { display: grid; gap: 12px; margin: 30px 0; }
.form-steps div { display: flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 600; color: #3b4a60; }
.form-steps b { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 9px; background: rgba(214,0,28,.08); color: var(--red); display: flex; align-items: center; justify-content: center; font-size: 12px; }
.form-privacy { font-size: 13px !important; color: var(--muted) !important; border-left: 3px solid var(--cyan); padding-left: 14px; }

.requirement-form { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 34px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.field { margin-bottom: 18px; display: flex; flex-direction: column; }
.field label { font-size: 13px; font-weight: 700; color: #2d3b50; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid #d7dee8; border-radius: 10px; background: #fbfcfe;
  padding: 12px 13px; font-size: 14px; color: var(--ink); transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  font-family: inherit;
}
.field textarea { resize: vertical; min-height: 118px; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--cyan); background: var(--white); box-shadow: 0 0 0 3px rgba(0,169,198,.13);
}
.field-hint { font-size: 11px; color: #8a97a8; margin-top: 5px; }
.field-error { font-size: 12px; color: var(--red); margin-top: 5px; min-height: 0; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red); background: #fff8f9; }
.form-note { font-size: 12px; color: var(--muted); text-align: center; margin: 14px 0 0; }
.contact-form-link { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--red); }
.contact-form-link:hover { text-decoration: underline; }

/* 需求摘要弹窗 */
body.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(7,19,32,.72); backdrop-filter: blur(4px); }
.modal-panel {
  position: relative; width: min(100%, 680px); max-height: min(90vh, 860px); overflow-y: auto;
  background: var(--white); border-radius: 20px; padding: 34px; box-shadow: 0 30px 90px rgba(0,0,0,.35);
}
.modal-panel h3 { font-size: 24px; margin: 0 0 8px; }
.modal-panel > p { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.modal-close { position: absolute; top: 16px; right: 18px; width: 34px; height: 34px; border: 0; border-radius: 9px; background: var(--paper); color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
.modal-close:hover { color: var(--red); }
#summaryText { width: 100%; min-height: 260px; border: 1px solid var(--line); border-radius: 12px; padding: 16px; font-family: inherit; font-size: 14px; line-height: 1.7; color: var(--ink); background: #fbfcfe; resize: vertical; }
#summaryText:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,169,198,.13); }
.modal-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.modal-actions .btn { flex: 1 1 200px; }
.btn-outline { background: var(--white); color: var(--ink); border: 1px solid #cfd7e2; }
.btn-outline:hover { border-color: var(--red); color: var(--red); }
.modal-status { min-height: 20px; font-size: 13px; color: var(--cyan); margin: 12px 0 0 !important; font-weight: 700; }
.modal-link { display: block; margin: 10px auto 0; border: 0; background: transparent; color: var(--muted); font-size: 13px; cursor: pointer; text-decoration: underline; }
.modal-link:hover { color: var(--red); }

@media (max-width: 900px) {
  .requirement-grid { grid-template-columns: 1fr; gap: 34px; }
}
@media (max-width: 600px) {
  .requirement-form { padding: 22px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .modal { padding: 12px; }
  .modal-panel { padding: 24px; }
  .modal-actions .btn { flex: 1 1 100%; }
}
