:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --ink: #1a2332;
  --muted: #5b6b7f;
  --line: #d8e0ea;
  --brand: #0b3a6e;
  --brand-deep: #07284d;
  --accent: #1f6fb2;
  --accent-soft: #e8f1f8;
  --success: #1f7a4d;
  --danger: #b42318;
  --shadow: 0 10px 30px rgba(11, 58, 110, 0.08);
  --radius: 12px;
  --max: 1120px;
  --font: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: linear-gradient(180deg, #eef3f9 0%, var(--bg) 240px, var(--bg) 100%);
  line-height: 1.65;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 1rem;
}
.brand {
  display: flex;
  flex-direction: column;
  color: var(--brand);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.brand:hover { text-decoration: none; }
.brand-name { font-size: 1.05rem; }
.brand-sub { font-size: 0.72rem; color: var(--muted); font-weight: 500; }

.nav { display: flex; gap: 0.35rem; align-items: center; flex-wrap: wrap; }
.nav a {
  color: var(--ink);
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  font-size: 0.95rem;
  text-decoration: none;
}
.nav a:hover,
.nav a.active {
  background: var(--accent-soft);
  color: var(--brand);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  font-size: 0.9rem;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 3.5rem;
  background:
    radial-gradient(circle at 85% 20%, rgba(31, 111, 178, 0.18), transparent 40%),
    linear-gradient(135deg, #06284d 0%, #0b3a6e 48%, #124f8a 100%);
  color: #fff;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 80px;
  background: linear-gradient(180deg, transparent, var(--bg));
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  align-items: center;
}
.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.25;
  letter-spacing: 0.01em;
  max-width: none;
  white-space: nowrap;
}
.hero p {
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 52ch;
  font-size: 1.05rem;
}
.hero-panel {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 1.25rem;
  backdrop-filter: blur(6px);
}
.hero-panel h3 { margin: 0 0 0.75rem; font-size: 1rem; }
.hero-panel ul { margin: 0; padding-left: 1.1rem; color: rgba(255,255,255,0.9); }
.hero-panel li + li { margin-top: 0.35rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 10px;
  padding: 0.75rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: #fff; color: var(--brand); }
.btn-primary:hover { background: #eef5fb; }
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.45);
  margin-left: 0.6rem;
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); }
.btn-solid {
  background: var(--brand);
  color: #fff;
}
.btn-solid:hover { background: var(--brand-deep); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--brand);
  border: 1px solid var(--brand);
}
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* Sections */
.section { padding: 3.2rem 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { margin-bottom: 1.8rem; max-width: 48rem; }
.section-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  color: var(--brand);
}
.section-head p { margin: 0; color: var(--muted); }

.grid-2 { display: grid; gap: 1.2rem; grid-template-columns: repeat(2, 1fr); }
.grid-3 { display: grid; gap: 1.2rem; grid-template-columns: repeat(3, 1fr); }
.grid-4 { display: grid; gap: 1.2rem; grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 0.55rem; font-size: 1.08rem; color: var(--brand); }
.card p { margin: 0; color: var(--muted); }
.card .more { display: inline-block; margin-top: 0.9rem; font-weight: 600; }

.feature {
  display: grid;
  gap: 0.35rem;
  padding: 1.1rem 1.2rem;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.feature strong { color: var(--brand); }
.feature span { color: var(--muted); font-size: 0.95rem; }

.scenario-list {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
}
.scenario-item {
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  color: var(--ink);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.7rem 0 0;
}
.tag {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--brand);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.8rem;
}

.page-banner {
  padding: 2.4rem 0 1.6rem;
  background: linear-gradient(135deg, #0b3a6e, #165a96);
  color: #fff;
}
.page-banner h1 { margin: 0 0 0.4rem; font-size: clamp(1.5rem, 3vw, 2rem); }
.page-banner p { margin: 0; color: rgba(255,255,255,0.86); max-width: 50ch; }

.content-block {
  white-space: pre-wrap;
  color: var(--muted);
}
.article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.article h1 { margin-top: 0; color: var(--brand); }
.article-meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 1rem; }

.contact-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1.1fr 1fr;
}
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.contact-list strong { display: inline-block; min-width: 4.5rem; color: var(--brand); }
.qrcode {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.form { display: grid; gap: 0.9rem; }
.form label { display: grid; gap: 0.35rem; font-weight: 600; color: var(--brand); }
.form input,
.form textarea,
.form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  font: inherit;
  background: #fff;
}
.form textarea { min-height: 140px; resize: vertical; }
.flash {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
}
.flash.success { background: #e8f7ef; color: var(--success); }
.flash.error { background: #fdecea; color: var(--danger); }

.empty {
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.site-footer {
  margin-top: 2rem;
  background: #071f38;
  color: rgba(255,255,255,0.82);
  padding: 2.2rem 0 1.6rem;
}
.footer-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 2fr 1fr 1fr;
}
.site-footer h3 { margin: 0 0 0.6rem; color: #fff; font-size: 1rem; }
.site-footer a { color: rgba(255,255,255,0.86); }
.site-footer p, .site-footer li { margin: 0.25rem 0; font-size: 0.92rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
}

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 68px;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .hero { padding: 3rem 0 2.5rem; }
  .hero h1 { white-space: normal; }
  .btn-ghost { margin-left: 0; }
  .grid-2,
  .grid-3,
  .grid-4,
  .scenario-list,
  .footer-grid { grid-template-columns: 1fr; }
}
