:root {
  --blue-950: #062a4f;
  --blue-850: #0a4f8f;
  --blue-700: #0878ca;
  --blue-500: #16a6e8;
  --blue-100: #dff4ff;
  --blue-50: #f2faff;
  --paper: #f5f2ef;
  --card: #ffffff;
  --ink: #1d2733;
  --muted: #6d7682;
  --line: #e7edf2;
  --green: #20b876;
  --shadow: 0 14px 36px rgba(6, 42, 79, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.72;
}

body.modal-open {
  overflow: hidden;
}

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 10px clamp(16px, 5vw, 56px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--blue-950);
  font-weight: 900;
}

.brand img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 6px;
}

.brand span {
  font-size: 19px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 16px;
  color: var(--blue-950);
  border: 1px solid var(--blue-500);
  border-radius: 999px;
  font-weight: 900;
  white-space: nowrap;
}

.hero {
  color: #fff;
  background:
    radial-gradient(circle at 75% 20%, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(145deg, var(--blue-950), var(--blue-700));
}

.hero-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(44px, 8vw, 86px) 18px;
  text-align: center;
}

.bubble {
  display: inline-flex;
  margin: 0 0 16px;
  padding: 7px 14px;
  color: var(--blue-950);
  background: #fff;
  border-radius: 999px;
  font-weight: 900;
}

h1,
h2,
h3,
p,
li,
summary {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(32px, 7vw, 54px);
  line-height: 1.15;
  letter-spacing: 0;
}

.hero-sub {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 900;
}

.btn.primary {
  color: var(--blue-950);
  background: #fff;
}

.btn.outline {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.62);
}

.quick-note,
.category-nav,
.faq-section,
.cta {
  width: min(100% - 28px, 920px);
  margin-left: auto;
  margin-right: auto;
}

.quick-note {
  margin-top: 26px;
  padding: 24px;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.quick-note h2 {
  margin: 0 0 10px;
  color: var(--blue-950);
  font-size: clamp(22px, 4vw, 30px);
  line-height: 1.28;
}

.quick-note p,
.answer p,
.footer p,
.cta p {
  margin: 0;
  color: var(--muted);
}

.tip,
.notice {
  margin-top: 16px;
  padding: 13px 15px;
  color: var(--blue-950);
  background: var(--blue-100);
  border-left: 4px solid var(--blue-500);
  border-radius: 6px;
  font-weight: 700;
}

.category-nav {
  position: sticky;
  top: 72px;
  z-index: 15;
  display: flex;
  gap: 8px;
  margin-top: 18px;
  padding: 10px 0;
  overflow-x: auto;
  background: linear-gradient(180deg, var(--paper) 80%, rgba(245, 242, 239, 0));
  scrollbar-width: none;
}

.category-nav::-webkit-scrollbar {
  display: none;
}

.category-nav a {
  flex: 0 0 auto;
  padding: 8px 13px;
  color: var(--blue-950);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(6, 42, 79, 0.06);
}

.faq-section {
  padding: 18px 0 34px;
}

.category {
  scroll-margin-top: 132px;
  margin-top: 34px;
}

.category-heading {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 16px;
}

.category-heading > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #fff;
  background: var(--blue-700);
  border-radius: 8px;
  font-weight: 900;
}

.category-heading h2 {
  margin: 0;
  color: var(--blue-950);
  font-size: clamp(24px, 5vw, 34px);
  line-height: 1.2;
}

.category-heading p {
  margin: 4px 0 0;
  color: var(--muted);
}

.faq-card {
  margin: 12px 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(6, 42, 79, 0.06);
  overflow: hidden;
}

.faq-card summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 62px;
  padding: 16px 48px 16px 18px;
  color: var(--ink);
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
  list-style: none;
}

.faq-card summary::-webkit-details-marker {
  display: none;
}

.faq-card summary::before {
  content: "问";
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  margin-right: 10px;
  color: var(--blue-700);
  background: var(--blue-50);
  border-radius: 50%;
  text-align: center;
  line-height: 28px;
  font-size: 13px;
}

.faq-card summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 22px;
  font-weight: 700;
}

.faq-card[open] summary::after {
  content: "-";
}

.answer {
  padding: 0 18px 20px 56px;
}

.answer p + p,
.answer p + ul,
.answer p + ol,
.answer ul + p,
.answer ol + p {
  margin-top: 12px;
}

.answer ul,
.answer ol {
  margin: 12px 0 0;
  padding-left: 0;
  list-style: none;
}

.answer li {
  position: relative;
  margin: 7px 0;
  padding-left: 24px;
  color: #3d4752;
}

.answer li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 14px;
  height: 14px;
  background: var(--green);
  border-radius: 3px;
}

.answer li::after {
  content: "";
  position: absolute;
  left: 4px;
  top: calc(0.58em + 3px);
  width: 6px;
  height: 3px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.answer ol {
  counter-reset: ordered;
}

.answer ol li {
  counter-increment: ordered;
}

.answer ol li::before {
  content: counter(ordered);
  color: #fff;
  text-align: center;
  line-height: 14px;
  font-size: 10px;
}

.answer ol li::after {
  display: none;
}

.cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 24px;
  align-items: center;
  margin-top: 18px;
  margin-bottom: 36px;
  padding: 26px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-950), var(--blue-700));
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.cta h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 5vw, 34px);
  line-height: 1.25;
}

.cta p {
  color: rgba(255, 255, 255, 0.84);
}

.cta-copy a {
  display: inline-flex;
  margin-top: 18px;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.qr-card {
  padding: 14px;
  color: var(--ink);
  text-align: center;
  background: #fff;
  border-radius: 8px;
}

.qr-card img {
  width: min(100%, 260px);
  margin: 0 auto;
  border-radius: 6px;
}

.qr-card strong {
  display: block;
  margin-top: 10px;
  font-size: 18px;
}

.qr-card span {
  color: var(--muted);
  font-size: 14px;
}

.footer {
  padding: 24px 18px 88px;
  text-align: center;
  background: #fff;
  border-top: 1px solid var(--line);
}

.footer p + p {
  margin-top: 6px;
}

.mobile-actions {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(6, 42, 79, 0.16);
}

.mobile-actions a {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-950);
  font-weight: 900;
}

.mobile-actions button {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-950);
  background: #fff;
  border: 0;
  border-radius: 0;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.mobile-actions a:last-child,
.mobile-actions button:last-child {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(9, 24, 38, 0.42);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-card {
  width: min(100%, 390px);
  max-height: calc(100vh - 44px);
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(6, 42, 79, 0.28);
}

.wechat-modal {
  padding: 34px 26px 28px;
  text-align: center;
}

.wechat-modal h2 {
  margin: 0 0 18px;
  color: #3f2d2d;
  font-size: 28px;
  line-height: 1.2;
}

.wechat-modal img {
  width: min(100%, 320px);
  margin: 0 auto 18px;
}

.wechat-modal strong {
  display: block;
  color: #6b3e35;
  font-size: 22px;
  line-height: 1.25;
}

.wechat-modal p {
  margin: 6px 0 0;
  color: #6b504b;
  font-size: 18px;
  line-height: 1.45;
}

.wechat-modal .soft {
  margin-top: 18px;
  color: #a8938f;
}

.modal-close {
  min-width: 110px;
  min-height: 46px;
  margin-top: 24px;
  padding: 8px 22px;
  color: #6b504b;
  background: #fff1ef;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 18px;
  cursor: pointer;
}

.phone-modal {
  padding: 26px;
  text-align: center;
}

.phone-modal h2 {
  margin: 0;
  color: var(--blue-950);
  font-size: 24px;
}

.phone-number {
  margin: 10px 0 22px;
  color: var(--blue-700);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0;
}

.phone-actions {
  display: grid;
  gap: 10px;
}

.phone-actions a,
.phone-actions button {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-950);
  background: var(--blue-50);
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.phone-actions a {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  border: 0;
}

@media (max-width: 720px) {
  .topbar {
    min-height: 64px;
    padding: 8px 12px;
  }

  .brand {
    gap: 8px;
  }

  .brand img {
    width: 44px;
    height: 44px;
  }

  .brand span {
    max-width: 46vw;
    font-size: 16px;
  }

  .phone-link {
    min-height: 36px;
    padding: 7px 10px;
    font-size: 13px;
  }

  .hero-inner {
    padding-top: 38px;
    padding-bottom: 42px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .btn {
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }

  .quick-note,
  .category-nav,
  .faq-section,
  .cta {
    width: min(100% - 20px, 920px);
  }

  .quick-note {
    padding: 18px;
  }

  .category-nav {
    top: 64px;
  }

  .category {
    scroll-margin-top: 118px;
  }

  .faq-card summary {
    min-height: 56px;
    padding: 14px 40px 14px 14px;
    font-size: 16px;
  }

  .faq-card summary::before {
    width: 25px;
    height: 25px;
    margin-right: 8px;
    line-height: 25px;
    font-size: 12px;
  }

  .faq-card summary::after {
    right: 14px;
  }

  .answer {
    padding: 0 14px 18px 47px;
    font-size: 15px;
  }

  .cta {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .qr-card {
    width: min(100%, 280px);
    margin: 0 auto;
  }

  .modal-backdrop {
    align-items: flex-end;
    padding: 12px;
  }

  .modal-card {
    width: 100%;
    border-radius: 18px 18px 12px 12px;
  }

  .wechat-modal {
    padding: 28px 20px 24px;
  }

  .wechat-modal h2 {
    font-size: 25px;
  }

  .wechat-modal img {
    width: min(100%, 300px);
  }

  .wechat-modal strong {
    font-size: 20px;
  }

  .wechat-modal p {
    font-size: 17px;
  }
}

@media (min-width: 880px) {
  .mobile-actions {
    width: 420px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    border-radius: 18px 18px 0 0;
    overflow: hidden;
  }
}
