:root {
  --bg: #ffffff;
  --topbar: #f2f2f2;
  --text: #444444;
  --muted: #666666;
  --faint: #999999;
  --link: #336699;
  --nav: #2b7acd;
  --nav-active: #005ab4;
  --nav-text: #ffffff;
  --search: #e8eff5;
  --block: #ffffff;
  --block-h: #e5edf2;
  --border: #cdcdcd;
  --border-blue: #c2d5e3;
  --chart: #f26c4f;
  --btn: #0066cc;
  --wp: 960px;
  --cta-h: 140px;
}

html {
  color-scheme: only light;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-wrap: break-word;
  padding-bottom: calc(var(--cta-h) + env(safe-area-inset-bottom));
}

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

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--nav);
  outline-offset: 2px;
}

.wp {
  width: min(var(--wp), calc(100% - 24px));
  margin: 0 auto;
}

#toptb {
  background: var(--topbar);
  border-bottom: 1px solid var(--border);
  line-height: 28px;
  font-size: 13px;
}

#toptb .wp {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

#toptb p {
  margin: 0;
  color: var(--muted);
}

.hdc {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0 10px;
  min-height: 70px;
}

h1 {
  font-size: 26px;
  line-height: 1.25;
}

h2 {
  font-size: 20px;
  line-height: 1.3;
}

h3 {
  font-size: 17px;
  line-height: 1.3;
}

.brand {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
}

.brand a {
  color: #1d50a1;
}

.brand small {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}

.guest-note {
  margin: 0;
  max-width: 22em;
  color: var(--muted);
  font-size: 14px;
}

#nv {
  background: var(--nav);
  min-height: 33px;
}

#nv .nav-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

#nv a {
  display: block;
  color: var(--nav-text);
  font-weight: 700;
  font-size: 14px;
  line-height: 33px;
  padding: 0 14px;
}

#nv a:hover,
#nv a[aria-current="page"] {
  background: var(--nav-active);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  margin: 4px 0;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  background: var(--nav-active);
  color: #fff;
  font: 700 14px/1 Tahoma, "Microsoft YaHei", sans-serif;
  cursor: pointer;
}

#scbar {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 6px 10px;
  background: var(--search);
  border-bottom: 1px solid #e9eff5;
}

#scbar input {
  flex: 1;
  min-width: 0;
  height: 32px;
  padding: 4px 8px;
  border: 1px solid #fff;
  background: #fff;
  color: var(--text);
  font-size: 16px;
}

#scbar button {
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid #235994;
  background: var(--btn);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.search-note {
  margin: 8px 0 0;
  padding: 8px 10px;
  background: #fefee9;
  border: 1px dashed #ff9a9a;
  color: var(--text);
}

.search-note[hidden] {
  display: none;
}

#pt {
  margin: 6px 0;
  color: var(--muted);
  font-size: 14px;
}

#pt a {
  color: var(--muted);
}

.hero {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 16px;
  margin: 10px 0 16px;
  padding: 10px;
  border: 1px solid var(--border);
  background: #fff;
}

.hero img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  background: #e5edf2;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: 26px;
  line-height: 1.25;
  color: #1d50a1;
}

.lead,
.prose p,
.faq dd,
.card p {
  margin: 0 0 14px;
}

.bm {
  margin-bottom: 12px;
  border: 1px solid var(--border);
  background: var(--block);
}

.bm_h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: auto;
  min-height: 31px;
  padding: 0 10px;
  border-bottom: 1px solid var(--border-blue);
  background: var(--block-h);
}

.bm_h h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
  color: var(--link);
}

.bm_c {
  padding: 12px 14px 4px;
}

.fold {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--link);
  cursor: pointer;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 8px;
  padding: 8px 4px 10px;
  border-bottom: 1px dashed var(--border);
}

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

.card-ico {
  width: 48px;
  height: 48px;
  background: #e5edf2;
  color: #1d50a1;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card h3 {
  margin: 0 0 4px;
  font-size: 16px;
  line-height: 1.3;
}

.card h3 a {
  color: #c00;
}

.chart {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.chart strong {
  color: var(--chart);
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.prose h2 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.25;
  color: #1d50a1;
}

.prose h3 {
  margin: 16px 0 8px;
  font-size: 17px;
  line-height: 1.3;
}

.prose ul {
  margin: 0 0 14px;
  padding-left: 1.2em;
}

.faq {
  margin: 0;
}

.faq dt {
  margin: 12px 0 4px;
  font-weight: 700;
}

.faq dd {
  margin: 0 0 10px;
}

.related a {
  display: inline-block;
  margin: 0 12px 8px 0;
}

.site-footer {
  margin-top: 20px;
  padding: 16px 0 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

.site-footer p {
  margin: 0 0 8px;
}

.site-footer .brand-home {
  font-weight: 700;
  color: var(--text);
}

.pipe {
  margin: 0 8px;
  color: #ccc;
}

.site-cta {
  position: fixed;
  z-index: 9;
  left: 50%;
  bottom: 64px;
  transform: translateX(-50%);
  width: min(520px, calc(100% - 32px));
  box-sizing: border-box;
  padding: 19px 24px;
  border-radius: 12px;
  background: #4338ca;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 14px 30px rgba(67, 56, 202, 0.4);
  animation: cta-buzz 3.4s linear infinite;
}

.site-cta:hover,
.site-cta:focus-visible {
  color: #fff;
  text-decoration: none;
  filter: brightness(1.05);
}

.site-cta .bang {
  position: absolute;
  right: -14px;
  top: -16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fde047;
  color: #3b2e00;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 900;
  font-style: normal;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
  animation: cta-bang 3.4s cubic-bezier(0.3, 1.8, 0.5, 1) infinite;
}

@keyframes cta-buzz {
  0%,
  42%,
  100% {
    transform: translateX(-50%);
  }
  45% {
    transform: translateX(calc(-50% - 8px));
  }
  48% {
    transform: translateX(calc(-50% + 7px));
  }
  51% {
    transform: translateX(calc(-50% - 6px));
  }
  54% {
    transform: translateX(calc(-50% + 5px));
  }
  57% {
    transform: translateX(calc(-50% - 3px));
  }
  60% {
    transform: translateX(-50%);
  }
}

@keyframes cta-bang {
  0%,
  44% {
    transform: scale(0) rotate(30deg);
    opacity: 0;
  }
  52% {
    transform: scale(1.2) rotate(-8deg);
    opacity: 1;
  }
  58%,
  86% {
    transform: scale(1) rotate(-8deg);
    opacity: 1;
  }
  94%,
  100% {
    transform: scale(0) rotate(30deg);
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero img {
    height: 220px;
  }

  .grid-3,
  .split {
    grid-template-columns: 1fr;
  }

  .hdc {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
  }

  #nv .nav-inner {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  #nv.is-open .nav-inner {
    display: flex;
  }

  #nv a {
    line-height: 44px;
  }
}

@media (max-width: 640px) {
  .site-cta {
    left: 12px;
    right: 12px;
    transform: none;
    width: auto;
    bottom: calc(48px + env(safe-area-inset-bottom));
    font-size: 16px;
    animation-name: cta-buzz-m;
  }
}

@keyframes cta-buzz-m {
  0%,
  42%,
  100% {
    transform: none;
  }
  45% {
    transform: translateX(-8px);
  }
  48% {
    transform: translateX(7px);
  }
  51% {
    transform: translateX(-6px);
  }
  54% {
    transform: translateX(5px);
  }
  57% {
    transform: translateX(-3px);
  }
  60% {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-cta,
  .site-cta .bang {
    animation: none;
  }

  .site-cta .bang {
    opacity: 1;
    transform: none;
  }
}
