:root {
  --blue: #1a73e8;
  --blue-dark: #0d4fb8;
  --blue-deep: #0b2d5c;
  --cyan: #14b8c8;
  --sky: #e8f3ff;
  --bg: #f3f7fc;
  --text: #1a2838;
  --muted: #5b6b7c;
  --card: #ffffff;
  --line: #d5e3f2;
  --gold: #d4a017;
  --ok: #12805c;
  --danger: #c0392b;
  --shadow: 0 10px 30px rgba(13, 45, 92, 0.08);
  --radius: 16px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); text-decoration: none; }
a:hover { color: var(--blue); text-decoration: underline; }
.container { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.skip {
  position: absolute; left: -999px; top: 8px;
  background: #fff; padding: 8px 12px; z-index: 100;
}
.skip:focus { left: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 16px;
}
.logo { display: flex; align-items: center; gap: 10px; color: var(--blue-deep); text-decoration: none; font-weight: 800; }
.logo img { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text strong { font-size: 18px; }
.logo-text small { font-size: 12px; color: var(--muted); font-weight: 500; }
.nav-desktop { display: flex; gap: 6px; align-items: center; }
.nav-desktop a {
  color: var(--text); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 14px;
}
.nav-desktop a:hover, .nav-desktop a.active { background: var(--sky); color: var(--blue-dark); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 10px; padding: 10px 16px; font-weight: 700;
  cursor: pointer; text-decoration: none; font-size: 14px;
}
.btn-ghost { background: var(--sky); color: var(--blue-dark); }
.btn-primary { background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #fff; box-shadow: 0 6px 16px rgba(26,115,232,.28); }
.btn-primary:hover, .btn-ghost:hover { text-decoration: none; filter: brightness(1.05); color: #fff; }
.btn-ghost:hover { color: var(--blue-dark); }
.btn-lg { padding: 14px 22px; font-size: 16px; min-width: 160px; }
.hamburger {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; cursor: pointer; padding: 10px;
}
.hamburger span { display: block; height: 2px; background: var(--blue-deep); margin: 6px 0; border-radius: 2px; }

.nav-overlay {
  position: fixed; inset: 0; background: rgba(11,45,92,.45); z-index: 80;
  opacity: 0; pointer-events: none; transition: .2s;
}
.nav-drawer {
  position: fixed; top: 0; right: 0; width: min(86vw, 340px); height: 100%;
  background: #fff; z-index: 90; transform: translateX(100%); transition: .25s ease;
  padding: 20px; display: flex; flex-direction: column; gap: 8px;
  box-shadow: -12px 0 40px rgba(0,0,0,.12);
}
body.menu-open .nav-overlay { opacity: 1; pointer-events: auto; }
body.menu-open .nav-drawer { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.drawer-close { width: 40px; height: 40px; border: 0; background: var(--sky); border-radius: 8px; font-size: 22px; cursor: pointer; }
.nav-drawer a {
  padding: 12px 14px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 700;
  background: var(--bg);
}
.nav-drawer a:hover { background: var(--sky); color: var(--blue-dark); }

/* Hero */
.hero {
  background: linear-gradient(180deg, #dcebff 0%, var(--bg) 100%);
  padding: 36px 0 20px;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; align-items: center; }
.kicker {
  display: inline-block; background: #fff; color: var(--blue-dark);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px;
  font-size: 13px; font-weight: 700; margin-bottom: 12px;
}
.hero h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.25; margin: 0 0 14px; color: var(--blue-deep); }
.hero p.lead { font-size: 18px; color: var(--muted); margin: 0 0 22px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.hero-note { color: var(--muted); font-size: 14px; }
.hero-card {
  background: #fff; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.hero-card img { width: 100%; height: 320px; object-fit: cover; }
.quick-links {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 22px;
}
.quick-links a {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px;
  text-decoration: none; color: var(--text); box-shadow: var(--shadow);
}
.quick-links strong { display: block; color: var(--blue-deep); margin-bottom: 4px; }
.quick-links span { font-size: 13px; color: var(--muted); }

/* Sections */
.section { padding: 42px 0; }
.section h2 { font-size: 28px; color: var(--blue-deep); margin: 0 0 10px; }
.section .intro { color: var(--muted); margin: 0 0 22px; max-width: 860px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card, .article, .form-card, .error-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card { padding: 18px; }
.card img { width: 100%; height: 150px; object-fit: cover; border-radius: 12px; margin-bottom: 12px; }
.card h3 { margin: 0 0 8px; font-size: 18px; color: var(--blue-deep); }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.partners, .providers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.partners img, .providers img {
  width: 100%; height: 92px; object-fit: contain; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; padding: 8px;
}
.promo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.promo-grid img { width: 100%; height: 170px; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); }
.article img { border: 1px solid var(--line); }

.toc {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin: 18px 0 28px;
}
.toc strong { display: block; margin-bottom: 8px; color: var(--blue-deep); }
.toc ol { margin: 0; padding-left: 20px; }
.toc a { font-weight: 600; }

.article { padding: 28px 32px 40px; }
.article h2 { margin-top: 36px; scroll-margin-top: 90px; }
.article h3 { color: var(--blue-deep); margin-top: 24px; }
.article p { margin: 12px 0; }
.article ul, .article ol { color: var(--text); }
.article li { margin: 6px 0; }
.callout {
  background: var(--sky); border-left: 4px solid var(--blue); padding: 14px 16px; border-radius: 10px; margin: 18px 0;
}
table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 14px; }
th, td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
th { background: var(--sky); color: var(--blue-deep); }
.crumbs { font-size: 13px; color: var(--muted); margin: 18px 0; }
.crumbs a { color: var(--muted); }

.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-bottom: 10px;
}
.faq summary { cursor: pointer; font-weight: 700; color: var(--blue-deep); }
.faq p { margin: 10px 0 4px; color: var(--muted); }

/* Auth */
.auth-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; align-items: start; padding: 28px 0 48px; }
.form-card { padding: 28px; }
.form-card h1 { margin: 0 0 8px; font-size: 28px; color: var(--blue-deep); }
.field { margin: 14px 0; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field input {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 16px;
}
.field input:focus { outline: 2px solid rgba(26,115,232,.25); border-color: var(--blue); }
.form-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; margin: 8px 0 16px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; margin: 12px 0 18px; }
.form-msg { display: none; margin-top: 12px; padding: 12px; border-radius: 10px; background: #e8f8f0; color: var(--ok); font-weight: 700; }
.form-msg.show { display: block; }
.form-error { display: none; margin-top: 12px; padding: 12px; border-radius: 10px; background: #fdecea; color: var(--danger); }
.form-error.show { display: block; }

/* Error pages */
.error-page { min-height: 70vh; display: grid; place-items: center; padding: 40px 0; }
.error-card { padding: 40px 32px; text-align: center; max-width: 640px; }
.error-code { font-size: 72px; font-weight: 800; color: var(--blue); margin: 0; }
.error-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }

/* Footer */
.site-footer { background: var(--blue-deep); color: #d7e6f7; padding: 40px 0 20px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.site-footer h3 { color: #fff; margin: 0 0 12px; font-size: 16px; }
.site-footer a { color: #d7e6f7; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 8px 0; }
.copyright { border-top: 1px solid rgba(255,255,255,.12); margin-top: 24px; padding-top: 14px; font-size: 13px; color: #9bb3cc; }

/* Ads bar */
.ads-wrap {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 12px 8px 10px;
  margin: 0;
}
#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px 14px;
  background: transparent;
  margin: 0;
}
#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 76px;
  box-sizing: border-box;
}
#ads figure { margin: 0; }
#ads a {
  display: block;
  text-decoration: none;
  border-radius: 18px;
}
#ads img {
  width: 72px;
  height: 72px;
  max-width: none;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(24,24,24,0.12);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: block;
  border: none;
  background: linear-gradient(135deg,#fff,#fff);
}
#ads img:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(24,24,24,0.18);
}
#ads figcaption,
#ads .caption {
  height: 18px;
  font-size: 11px;
  color: #666;
  text-align: center;
  max-width: 76px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 6px;
}

@media (max-width: 980px) {
  .nav-desktop { display: none; }
  .hamburger { display: inline-block; }
  .hero-grid, .auth-wrap, .footer-grid, .card-grid, .promo-grid { grid-template-columns: 1fr; }
  .quick-links, .partners, .providers { grid-template-columns: repeat(2, 1fr); }
  .hero-card img { height: 220px; }
  .article { padding: 20px 16px 28px; }
  .header-actions .btn-ghost { display: none; }
}
