:root {
  --navy: #0057b8;
  --navy-2: #0078fc;
  --ink: #16293f;
  --muted: #566980;
  --line: #dfeaf7;
  --bg: #ffffff;
  --bg-soft: #f2f7ff;
  --amber: #ff9a2e;
  --amber-deep: #f07f12;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 87, 184, .1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
}

.container { width: min(1140px, 92vw); margin-inline: auto; }

a { color: inherit; }

h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; }

h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); letter-spacing: .01em; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(270deg, #063e8a 0%, #0057b8 50%, #0078fc 100%);
  box-shadow: 0 2px 12px rgba(4, 41, 92, .25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .8rem;
}

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }

.brand-logo {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: block;
  background: #fff;
  padding: 0.5px;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(4, 41, 92, .28);
  transition: transform .25s ease, box-shadow .25s ease;
}

.brand:hover .brand-logo,
.brand:focus-visible .brand-logo {
  transform: scale(1.1) rotate(-6deg);
  box-shadow: 0 4px 14px rgba(4, 41, 92, .42);
}

.brand-name { font-size: 1.3rem; font-weight: 700; color: #fff; display: flex; flex-direction: column; line-height: 1.15; }

.brand-name small { font-size: .72rem; font-weight: 400; color: rgba(255, 255, 255, .75); letter-spacing: .18em; }

.main-nav { display: flex; align-items: center; gap: 1.6rem; font-size: .98rem; }

.main-nav a { text-decoration: none; color: rgba(255, 255, 255, .88); }

.main-nav a:hover { color: #fff; }

.main-nav a.active { color: #fff; font-weight: 700; border-bottom: 2px solid var(--amber); padding-bottom: .15rem; }

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  background: linear-gradient(150deg, #0066d4, #063e8a 75%);
  color: #fff;
  padding-block: clamp(3.2rem, 8vh, 5.5rem) clamp(2.6rem, 6vh, 4.2rem);
}

.page-hero .eyebrow { color: var(--amber); }

.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 .6rem; }

.page-hero p { max-width: 720px; margin: 0; color: rgba(255, 255, 255, .82); }

.crumbs { font-size: .85rem; color: rgba(255, 255, 255, .55); margin-bottom: 1.2rem; }

.crumbs a { color: rgba(255, 255, 255, .7); text-decoration: none; }

.crumbs a:hover { color: var(--amber); }

/* ---------- Home section links ---------- */
.section-foot { margin-top: 2rem; }

.link-more {
  display: inline-block;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 2px solid var(--amber);
  padding-bottom: .15rem;
}

.link-more:hover { color: var(--amber-deep); }

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

.module-card {
  display: block;
  padding: 1.6rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}

.module-card:hover { transform: translateY(-4px); }

.module-card .value-ico { margin-bottom: .8rem; }

.module-card h3 { color: var(--navy); font-size: 1.08rem; margin: 0 0 .35rem; }

.module-card p { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.6; }

/* ---------- Long-form pages ---------- */
.prose { max-width: 820px; }

.prose h2 { color: var(--navy); font-size: 1.5rem; margin-top: 2.2rem; }

.prose h2:first-child { margin-top: 0; }

.prose p, .prose li { color: var(--ink); }

.prose .muted { color: var(--muted); }

.detail-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; list-style: none; margin: 1.6rem 0 0; padding: 0; }

.detail-cards li {
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.detail-cards h3 { font-size: 1.02rem; color: var(--navy); margin: 0 0 .4rem; }

.detail-cards p { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.65; }

.step-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; }

.step-list > li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.4rem;
  align-items: start;
  padding: 1.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.step-num {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--navy), var(--navy-2));
  color: var(--amber);
  font-weight: 700;
  font-size: 1.05rem;
}

.step-list h3 { color: var(--navy); margin: 0 0 .4rem; font-size: 1.2rem; }

.step-list p { margin: 0 0 .6rem; color: var(--muted); font-size: .96rem; }

.step-list ul { margin: 0; padding-left: 1.2em; color: var(--ink); font-size: .94rem; display: grid; gap: .3rem; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; }

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("assets/hero.webp") center / cover no-repeat;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(0, 42, 110, .9) 0%, rgba(0, 66, 160, .74) 52%, rgba(0, 90, 200, .4) 100%);
}

.hero-inner { position: relative; padding-block: clamp(4.5rem, 12vh, 8.5rem) clamp(3.5rem, 9vh, 6rem); max-width: 760px; }

.hero-kicker { margin: 0 0 1rem; font-size: .9rem; letter-spacing: .22em; color: rgba(255, 255, 255, .75); }

.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: .02em; }

.hero-sub { font-size: clamp(1rem, 1.6vw, 1.15rem); color: rgba(255, 255, 255, .88); margin-bottom: 2rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.2rem; }

.hero-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.4rem;
  margin: 0;
  padding: 0;
  font-size: .92rem;
  color: rgba(255, 255, 255, .85);
}

.hero-points li { padding-left: 1.2em; position: relative; }

.hero-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--amber);
  font-weight: 700;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: .8rem 1.8rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--amber), var(--amber-deep));
  color: #fff;
  box-shadow: 0 8px 22px rgba(240, 127, 18, .35);
}

.btn-ghost { border: 1px solid rgba(255, 255, 255, .55); color: #fff; }

.btn-ghost:hover { background: rgba(255, 255, 255, .12); }

.btn-lg { padding: 1rem 2.4rem; font-size: 1.08rem; }

/* ---------- Buttons ---------- */
button.btn { cursor: pointer; border: 0; font: inherit; }

/* ---------- QR modal ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; }

.modal[hidden] { display: none; }

.modal-backdrop { position: absolute; inset: 0; background: rgba(4, 24, 48, .62); backdrop-filter: blur(3px); }

.modal-panel {
  position: relative;
  width: min(620px, 92vw);
  max-height: 86vh;
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  padding: 2.2rem 2rem 2rem;
  box-shadow: 0 24px 60px rgba(0, 20, 50, .35);
}

.modal-close {
  position: absolute;
  top: .8rem;
  right: 1rem;
  border: 0;
  background: none;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}

.modal-close:hover { color: var(--navy); }

.modal-panel h3 { color: var(--navy); font-size: 1.35rem; margin: 0 0 .3rem; }

.qr-desc { margin: 0 0 1.4rem; color: var(--muted); font-size: .95rem; }

.qr-tel {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .7rem 1.3rem;
  margin-bottom: 1.4rem;
}

.qr-tel:hover { border-color: var(--navy-2); }

.qr-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.2rem; }

.qr-tab {
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--navy);
  padding: .35rem .95rem;
  border-radius: 999px;
  font-size: .92rem;
  cursor: pointer;
}

.qr-tab:hover { border-color: var(--navy-2); }

.qr-tab.active { background: var(--navy-2); border-color: var(--navy-2); color: #fff; font-weight: 700; }

.qr-grid { display: flex; justify-content: center; padding-top: .6rem; }

.qr-item { text-align: center; }

.qr-item img { width: 200px; height: 200px; margin-inline: auto; border-radius: 10px; }

.qr-ph {
  display: grid;
  place-items: center;
  width: 200px;
  height: 200px;
  margin-inline: auto;
  border: 2px dashed var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.5;
  background: var(--bg-soft);
}

.qr-item p { margin: .55rem 0 0; font-size: .9rem; color: var(--ink); font-weight: 600; }

.qr-item small { display: block; color: var(--muted); font-size: .76rem; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 9vh, 6rem); }

.section-alt { background: var(--bg-soft); }

.section-head { max-width: 720px; margin-bottom: 2.6rem; }

.section-head h2 { color: var(--navy); }

.eyebrow {
  margin: 0 0 .6rem;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--amber-deep);
}

.section-desc { color: rgba(255, 255, 255, .8); margin-top: .6rem; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.lead { font-size: 1.12rem; color: var(--navy); margin-top: 0; }

.about-copy p { color: var(--muted); }

.about-copy b, .trust-copy b, .service-card b { color: var(--navy); }

.value-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }

.value-list li {
  display: flex;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.value-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 154, 46, .14);
  color: var(--amber-deep);
  font-size: 1.25rem;
  font-weight: 700;
}

.value-list h3 { font-size: 1.05rem; margin: 0 0 .25rem; color: var(--navy); }

.value-list p { margin: 0; font-size: .92rem; color: var(--muted); line-height: 1.6; }

/* ---------- Trust ---------- */
.trust-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.trust-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 5 / 4;
  object-fit: cover;
  width: 100%;
}

.trust-copy h2 { color: var(--navy); }

.trust-copy > p { color: var(--muted); }

.check-list { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: .7rem; }

.check-list li { padding-left: 1.6em; position: relative; color: var(--ink); }

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--amber-deep);
  font-weight: 700;
}

/* ---------- Services ---------- */
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem; }

.service-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  background: linear-gradient(180deg, #fbfdff, #fff);
  box-shadow: var(--shadow);
}

.card-warm { background: linear-gradient(180deg, #fff8ef, #fff); }

.service-tag {
  display: inline-block;
  padding: .25rem .9rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  background: rgba(0, 87, 184, .08);
  color: var(--navy);
  margin-bottom: .9rem;
}

.card-warm .service-tag { background: rgba(240, 127, 18, .14); color: var(--amber-deep); }

.service-card h3 { color: var(--navy); font-size: 1.25rem; margin: 0 0 .3rem; }

.service-card header p { margin: 0; color: var(--muted); font-size: .92rem; }

.service-card ul { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: .85rem; }

.service-card li {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: .8rem;
  align-items: baseline;
  padding-bottom: .85rem;
  border-bottom: 1px dashed var(--line);
}

.service-card li:last-child { border-bottom: 0; padding-bottom: 0; }

.service-card li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  transform: translateY(-2px);
}

.service-card li b { color: var(--navy); font-size: 1rem; display: block; }

.service-card li span { font-size: .9rem; color: var(--muted); }

.service-card li > b, .service-card li > span { grid-column: 2; }

/* ---------- Flow ---------- */
.section-dark { background: linear-gradient(160deg, #0066d4, #063e8a 70%); }

.section-dark h2 { color: #fff; }

.on-dark .section-head { max-width: 800px; }

.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  counter-reset: step;
}

.flow li {
  position: relative;
  padding: 1.6rem 1.4rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
}

.flow-num {
  display: inline-block;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--amber);
  margin-bottom: .5rem;
}

.flow h3 { color: #fff; font-size: 1.15rem; margin: 0 0 .4rem; }

.flow p { margin: 0; font-size: .9rem; color: rgba(255, 255, 255, .72); line-height: 1.65; }

.flow li + li::before {
  content: "›";
  position: absolute;
  left: -0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, .35);
  font-size: 1.4rem;
}

/* ---------- CTA ---------- */
.cta-band {
  background: linear-gradient(120deg, #f07f12, #ff9a2e);
  color: #fff;
  padding-block: clamp(2.5rem, 6vh, 4rem);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.6rem;
}

.cta-band h2 { margin: 0 0 .3rem; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }

.cta-band p { margin: 0; opacity: .92; }

.cta-band .btn-primary { background: var(--navy); box-shadow: 0 8px 22px rgba(10, 33, 64, .35); }

/* ---------- Footer ---------- */
.site-footer { background: #04295c; color: rgba(255, 255, 255, .78); padding-block: 2.8rem 2rem; font-size: .92rem; }

.footer-inner { display: grid; gap: 1.8rem; }

.footer-brand { display: flex; align-items: center; gap: .9rem; }

.footer-brand .brand-logo { width: 40px; height: 40px; }

.footer-brand strong { color: #fff; font-size: 1.02rem; }

.footer-brand p { margin: .1rem 0 0; }

.footer-nav { display: flex; flex-wrap: wrap; gap: 1.4rem; padding-block: .4rem; border-top: 1px solid rgba(255, 255, 255, .12); border-bottom: 1px solid rgba(255, 255, 255, .12); }

.footer-nav a { text-decoration: none; color: rgba(255, 255, 255, .78); }

.footer-nav a:hover { color: var(--amber); }

.footer-legal p { margin: .2rem 0; }

.footer-legal .legal-line { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1.2rem; }

.footer-legal a { color: rgba(255, 255, 255, .78); text-decoration: none; }

.footer-legal a:hover { color: var(--amber); }

.beian-link { display: inline-flex; align-items: center; }

/* ---------- Focus & motion ---------- */
a:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
  .brand:hover .brand-logo { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid, .trust-grid, .service-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow li + li::before { display: none; }
  .trust-media { order: -1; }
  .module-grid, .detail-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .header-inner { flex-wrap: wrap; row-gap: .5rem; }
  .main-nav { order: 2; flex-basis: 100%; overflow-x: auto; scrollbar-width: none; gap: 1.15rem; font-size: .92rem; white-space: nowrap; padding-bottom: .15rem; }
  .main-nav::-webkit-scrollbar { display: none; }
  .flow { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .service-card { padding: 1.5rem; }
  .module-grid, .detail-cards { grid-template-columns: 1fr; }
  .step-list > li { grid-template-columns: 1fr; gap: .8rem; }
}
