:root {
  --primary: #1559c4;
  --primary-dark: #0e3f8f;
  --accent: #00b4d8;
  --bg: #f5f8fc;
  --bg-soft: #eef3fb;
  --text: #1f2733;
  --text-soft: #5b6573;
  --line: #e2e8f2;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(21, 89, 196, 0.08);
  --radius: 14px;
  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head .eyebrow {
  display: inline-block; color: var(--primary); font-weight: 700; letter-spacing: 2px;
  font-size: 13px; margin-bottom: 10px;
}
.section-head h2 { font-size: 30px; color: var(--primary-dark); margin-bottom: 12px; }
.section-head p { color: var(--text-soft); font-size: 15px; }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--primary-dark); }
.logo .mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid; place-items: center; color: #fff; font-size: 16px;
}
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--text-soft); font-size: 15px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--primary); }
.nav-cta {
  background: var(--primary); color: #fff !important; padding: 9px 18px; border-radius: 999px;
  font-weight: 600; font-size: 14px;
}
.nav-cta:hover { background: var(--primary-dark); }
.menu-btn { display: none; background: none; border: 0; font-size: 24px; cursor: pointer; }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(0,180,216,.25), transparent 60%),
    linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
}
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 84px 20px; }
.hero h1 { font-size: 42px; line-height: 1.25; margin-bottom: 18px; }
.hero h1 span { color: #8fe3ff; }
.hero p.lead { font-size: 17px; color: #d7e6ff; margin-bottom: 28px; max-width: 520px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 15px; cursor: pointer;
  border: 0; transition: transform .15s, box-shadow .2s;
}
.btn-primary { background: #fff; color: var(--primary-dark); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(0,0,0,.18); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.2); }
.hero-card {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
  border-radius: 18px; padding: 26px; backdrop-filter: blur(6px);
}
.hero-card h3 { font-size: 17px; margin-bottom: 14px; }
.hero-card ul { list-style: none; display: grid; gap: 12px; }
.hero-card li { display: flex; gap: 10px; font-size: 14px; color: #eaf3ff; }
.hero-card li b { color: #fff; }
.hero-file { width: 22px; height: 22px; border-radius: 6px; background: var(--accent); display: grid; place-items: center; color: #003; font-size: 12px; flex: 0 0 auto; }

/* ===== Stats ===== */
.stats { background: var(--white); border-bottom: 1px solid var(--line); }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 34px 20px; text-align: center; }
.stat .num { font-size: 32px; font-weight: 800; color: var(--primary); }
.stat .label { color: var(--text-soft); font-size: 14px; }

/* ===== About ===== */
.about .container { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-text h2 { font-size: 28px; color: var(--primary-dark); margin-bottom: 16px; }
.about-text p { color: var(--text-soft); margin-bottom: 14px; }
.about-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.about-tags span { background: var(--bg-soft); color: var(--primary); padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.about-img {
  border-radius: 18px; aspect-ratio: 2 / 1;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===== Service cards ===== */
.services { background: var(--bg-soft); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: var(--white); border-radius: var(--radius); padding: 28px 24px;
  box-shadow: var(--shadow); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(21,89,196,.14); }
.card .ico {
  width: 50px; height: 50px; border-radius: 13px; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff;
  display: grid; place-items: center; font-size: 22px;
}
.card h3 { font-size: 18px; margin-bottom: 10px; color: var(--primary-dark); }
.card p { color: var(--text-soft); font-size: 14px; margin-bottom: 14px; }
.card ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.card ul li { background: var(--bg); color: var(--text-soft); font-size: 12px; padding: 4px 10px; border-radius: 999px; }

/* ===== Domains ===== */
.domains-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.domain {
  background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 20px 16px;
  text-align: center; transition: border-color .2s, transform .2s;
}
.domain:hover { border-color: var(--primary); transform: translateY(-4px); }
.domain .d-ico { font-size: 26px; margin-bottom: 10px; }
.domain h4 { font-size: 15px; color: var(--primary-dark); margin-bottom: 6px; }
.domain p { font-size: 12px; color: var(--text-soft); }

/* ===== Advantages ===== */
.advantages { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; }
.advantages .section-head h2 { color: #fff; }
.advantages .section-head p { color: #cfe0ff; }
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.adv { text-align: center; padding: 26px 18px; border-radius: var(--radius); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); }
.adv .a-ico { font-size: 30px; margin-bottom: 12px; }
.adv h3 { font-size: 17px; margin-bottom: 8px; }
.adv p { font-size: 13px; color: #d7e6ff; }

/* ===== Process ===== */
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.step { text-align: center; padding: 30px 18px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; }
.step .num {
  width: 46px; height: 46px; margin: 0 auto 14px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 18px;
}
.step h4 { color: var(--primary-dark); margin-bottom: 6px; font-size: 16px; }
.step p { color: var(--text-soft); font-size: 13px; }

/* ===== Contact + 留言板 ===== */
.contact { background: var(--bg-soft); }
.contact-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.contact-info h2 { font-size: 28px; color: var(--primary-dark); margin-bottom: 14px; }
.contact-info p { color: var(--text-soft); margin-bottom: 20px; }
.info-list { list-style: none; display: grid; gap: 14px; }
.info-list li { display: flex; gap: 12px; align-items: flex-start; }
.info-list .i-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--white); color: var(--primary); display: grid; place-items: center; font-size: 17px; box-shadow: var(--shadow); flex: 0 0 auto; }
.info-list .i-text b { display: block; color: var(--text); font-size: 14px; }
.info-list .i-text span { color: var(--text-soft); font-size: 13px; }

.board {
  background: var(--white); border-radius: 18px; box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden;
}
.board-head { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; padding: 18px 24px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.board-head small { font-weight: 400; opacity: .9; }
.board-body { padding: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--text-soft); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; font-size: 14px;
  font-family: inherit; color: var(--text); background: #fbfdff; transition: border-color .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); }
.field textarea { resize: vertical; min-height: 96px; }
.form-note { font-size: 12px; color: var(--text-soft); margin-bottom: 14px; }
.form-msg { font-size: 13px; padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; display: none; }
.form-msg.ok { display: block; background: #e6f7ee; color: #0a7d4d; }
.form-msg.err { display: block; background: #fdeaea; color: #c0392b; }

/* ===== Footer ===== */
.footer { background: var(--primary-dark); color: #cfe0ff; padding: 44px 0 22px; }
.footer .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer p, .footer a { font-size: 13px; color: #bcd2f5; line-height: 2; }
.footer a:hover { color: #fff; }
.footer .bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 28px; padding-top: 16px; text-align: center; font-size: 12px; color: #9fb6e0; }

/* ===== 留言板弹窗 ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15, 33, 64, .55);
  display: none; align-items: flex-start; justify-content: center;
  padding: 48px 16px; overflow-y: auto; backdrop-filter: blur(2px);
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff; width: 100%; max-width: 560px; border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .3); overflow: hidden; animation: modalPop .2s ease;
}
@keyframes modalPop { from { transform: translateY(14px); opacity: 0 } to { transform: translateY(0); opacity: 1 } }
.modal-head {
  background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff;
  padding: 16px 22px; display: flex; align-items: center; justify-content: space-between;
}
.modal-head h3 { font-size: 17px; font-weight: 700; }
.modal-close {
  background: rgba(255, 255, 255, .18); border: 0; color: #fff; width: 32px; height: 32px;
  border-radius: 8px; font-size: 18px; line-height: 1; cursor: pointer;
}
.modal-close:hover { background: rgba(255, 255, 255, .32); }
.modal-body { padding: 22px; max-height: 76vh; overflow-y: auto; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero .container, .about .container, .contact-wrap { grid-template-columns: 1fr; }
  .cards, .adv-grid, .process-steps { grid-template-columns: repeat(2, 1fr); }
  .domains-grid { grid-template-columns: repeat(3, 1fr); }
  .stats .container { grid-template-columns: repeat(2, 1fr); }
  .footer .container { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .hero h1 { font-size: 32px; }
  .cards, .adv-grid, .process-steps, .domains-grid, .form-row, .stats .container { grid-template-columns: 1fr; }
  section { padding: 52px 0; }
}
