:root {
  --ink: #101f2b;
  --body: #3c5468;
  --muted: #7a8fa1;
  --line: #e4ecf3;
  --bg: #f5f9fc;
  --card: #ffffff;
  --brand: #0b7fc4;
  --brand-dark: #075b8e;
  --accent: #12b3a0;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 31, 43, .04), 0 8px 24px rgba(16, 31, 43, .06);
  --shadow-lg: 0 2px 6px rgba(16, 31, 43, .06), 0 18px 48px rgba(16, 31, 43, .10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

.wrap { width: min(1220px, calc(100% - 48px)); margin: 0 auto; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.head-inner {
  display: flex; align-items: center; gap: 28px;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .04em; color: var(--brand-dark); font-size: 19px; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  display: grid; place-items: center; color: #fff; font-size: 14px; font-weight: 800;
}
.brand small { display: block; font-size: 10px; font-weight: 500; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a {
  font-size: 13.5px; color: var(--body); padding: 7px 12px; border-radius: 8px;
  transition: background .15s, color .15s;
}
.nav a:hover { background: #eef6fc; color: var(--brand-dark); }
.head-cta {
  border: 1px solid var(--brand); color: var(--brand-dark); font-size: 13px; font-weight: 600;
  padding: 8px 16px; border-radius: 999px; white-space: nowrap;
}
.head-cta:hover { background: var(--brand); color: #fff; }

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(900px 320px at 12% -10%, #e2f3ff 0%, transparent 60%),
    radial-gradient(700px 300px at 92% 0%, #e3fbf6 0%, transparent 55%),
    #fff;
  border-bottom: 1px solid var(--line);
  padding: 62px 0 54px;
}
.hero h1 {
  margin: 0 0 14px; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.2;
  color: var(--ink); letter-spacing: -.02em; font-weight: 800; max-width: 18em;
}
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p { margin: 0; font-size: 16px; max-width: 46em; color: var(--body); }
.hero-stats { display: flex; gap: 44px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-size: 26px; color: var(--ink); font-weight: 800; letter-spacing: -.01em; }
.hero-stats div span { font-size: 12.5px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

/* ---------- toolbar ---------- */
.toolbar { padding: 30px 0 0; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.search {
  position: relative; flex: 1 1 280px; max-width: 380px;
}
.search input {
  width: 100%; height: 42px; padding: 0 14px 0 40px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  font-size: 14px; color: var(--ink); font-family: inherit; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.search input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11, 127, 196, .12); }
.search svg { position: absolute; left: 13px; top: 12px; width: 17px; height: 17px; stroke: var(--muted); fill: none; stroke-width: 2; }
.result-count { font-size: 13px; color: var(--muted); margin-left: auto; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; padding: 18px 0 26px; border-bottom: 1px solid var(--line); }
.chip {
  border: 1px solid var(--line); background: #fff; color: var(--body);
  font-size: 13px; padding: 7px 14px; border-radius: 999px; cursor: pointer;
  font-family: inherit; transition: all .15s; white-space: nowrap;
}
.chip:hover { border-color: var(--brand); color: var(--brand-dark); }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.chip b { font-weight: 600; opacity: .65; margin-left: 5px; font-size: 11.5px; }

/* ---------- grid ---------- */
.grid {
  display: grid; gap: 22px; padding: 32px 0 20px;
  grid-template-columns: repeat(auto-fill, minmax(266px, 1fr));
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #cfe2f0; }
.card-thumb {
  position: relative; aspect-ratio: 2 / 1; background: #eef5fa; overflow: hidden;
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card-thumb img { transform: scale(1.04); }
.card-body { padding: 15px 16px 17px; display: flex; flex-direction: column; flex: 1; gap: 7px; }
.badge {
  align-self: flex-start; font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase;
  color: var(--brand-dark); background: #e8f4fc; padding: 3px 8px; border-radius: 5px; font-weight: 600;
}
.card h3 { margin: 0; font-size: 15.5px; color: var(--ink); font-weight: 700; letter-spacing: -.01em; }
.card .zh { font-size: 12.5px; color: var(--muted); margin-top: -3px; }
.card p {
  margin: 2px 0 0; font-size: 12.8px; color: var(--body); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card-foot {
  margin-top: auto; padding-top: 11px; border-top: 1px dashed var(--line);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--muted);
}
.card-foot .more { color: var(--brand); font-weight: 600; }
.empty { padding: 70px 0; text-align: center; color: var(--muted); }

/* ---------- detail ---------- */
.detail { padding: 26px 0 20px; }
.crumb { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; padding: 8px 0 22px; }
.crumb a:hover { color: var(--brand); }
.detail-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: start; }
.detail-figure {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.detail-figure img { width: 100%; height: auto; }
.detail h1 { margin: 6px 0 4px; font-size: 30px; color: var(--ink); letter-spacing: -.02em; line-height: 1.25; }
.detail .zh-title { font-size: 15px; color: var(--muted); margin-bottom: 18px; }
.lang-tabs { display: inline-flex; background: #eaf2f8; border-radius: 9px; padding: 3px; margin-bottom: 14px; }
.lang-tabs button {
  border: 0; background: transparent; font-family: inherit; font-size: 12.5px; font-weight: 600;
  color: var(--body); padding: 6px 16px; border-radius: 7px; cursor: pointer;
}
.lang-tabs button.on { background: #fff; color: var(--brand-dark); box-shadow: 0 1px 3px rgba(16, 31, 43, .12); }
.prose { font-size: 15px; line-height: 1.85; color: var(--body); margin: 0 0 24px; }
.prose.zh { font-size: 14.5px; }
.meta {
  border-top: 1px solid var(--line); padding-top: 18px; display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 26px;
}
.meta div span { display: block; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.meta div strong { font-size: 14px; color: var(--ink); font-weight: 600; }
.cta-row { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600;
  padding: 11px 22px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; font-family: inherit;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(11, 127, 196, .25); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--body); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-dark); }

/* ---------- related ---------- */
.section-title { display: flex; align-items: baseline; gap: 12px; padding: 44px 0 0; }
.section-title h2 { margin: 0; font-size: 20px; color: var(--ink); letter-spacing: -.01em; }
.section-title span { font-size: 13px; color: var(--muted); }

/* ---------- section shell ---------- */
.sec { padding: 74px 0; }
.sec-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
[id] { scroll-margin-top: 84px; }

.sec-head { max-width: 760px; margin-bottom: 40px; }
.eyebrow {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 12px;
}
.sec-head h2 {
  margin: 0 0 14px; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.22;
  color: var(--ink); letter-spacing: -.02em; font-weight: 800;
}
.lede { margin: 0; font-size: 16px; line-height: 1.75; color: var(--body); }

.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 44px; align-items: start; }
.about-copy h3 { margin: 0 0 12px; font-size: 17px; color: var(--ink); font-weight: 700; }
.about-copy p { margin: 0 0 15px; font-size: 15px; line-height: 1.85; }
.about-copy p:last-child { margin-bottom: 0; }

.fact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px 22px; box-shadow: var(--shadow);
}
.fact { padding: 17px 0; border-bottom: 1px solid #eef3f8; }
.fact:last-child { border-bottom: 0; }
.fact strong { display: block; font-size: 24px; color: var(--brand-dark); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.fact span { font-size: 12.5px; color: var(--muted); }

.pillars {
  display: grid; gap: 20px; margin-top: 52px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.pillar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 24px; }
.pillar-no { font-size: 11.5px; font-weight: 700; color: var(--brand); letter-spacing: .1em; }
.pillar h4 { margin: 9px 0 8px; font-size: 15.5px; color: var(--ink); font-weight: 700; }
.pillar p { margin: 0; font-size: 13.5px; line-height: 1.7; color: var(--body); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 52px; align-items: start; }
.contact-item { padding: 0 0 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.contact-item:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.contact-item span {
  display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 5px; font-weight: 600;
}
.contact-item a { font-size: 16px; color: var(--brand-dark); font-weight: 600; }
.contact-item a:hover { text-decoration: underline; }
.contact-item p { margin: 0; font-size: 14.5px; color: var(--body); }

.inquiry { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.inquiry label { display: block; font-size: 12.5px; font-weight: 600; color: var(--body); margin-bottom: 16px; }
.inquiry input, .inquiry textarea {
  display: block; width: 100%; margin-top: 7px; padding: 10px 13px;
  border: 1px solid var(--line); border-radius: 9px; background: #fbfdfe;
  font-family: inherit; font-size: 14px; color: var(--ink); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.inquiry input:focus, .inquiry textarea:focus {
  border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(11, 127, 196, .12);
}
.inquiry textarea { resize: vertical; }
.inquiry .btn { margin-top: 4px; }
.form-note { margin: 13px 0 0; font-size: 12px; color: var(--muted); }
.form-note a { color: var(--brand); }

/* ---------- footer ---------- */
.site-foot { margin-top: 0; border-top: 1px solid var(--line); background: #fff; padding: 44px 0 38px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 34px; font-size: 12.5px; color: var(--muted); }
.foot-grid strong { color: var(--ink); font-size: 13.5px; display: block; margin-bottom: 8px; }
.foot-grid p { margin: 0; line-height: 1.85; }
.foot-grid a:hover { color: var(--brand); }
.foot-brand strong { font-size: 17px; letter-spacing: .02em; color: var(--brand-dark); }

@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; gap: 24px; }
  .nav { display: none; }
  .hero { padding: 42px 0 38px; }
  .hero-stats { gap: 26px; }
  .sec { padding: 52px 0; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
}
