@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@300;400;500;600;700&family=Varela+Round&display=swap');

:root {
  --blue: #3bb1ff;
  --red: #ff5252;
  --ink: #000000;
  --paper: #ffffff;
  --tint: #e6f6ff;
  --sand: #fff4e8;
  --line: 3px;
  --r: 4px;
  --font-head: "Varela Round", "Nunito Sans", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 500;
  overflow-x: hidden;
}

a { color: inherit; }

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 400;
  letter-spacing: 0;
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--paper);
  border: var(--line) solid var(--ink);
  border-radius: var(--r);
  padding: 10px 14px;
  font-weight: 800;
  text-decoration: none;
}

.skip:focus { left: 12px; top: 12px; }

/* 顶部两行：品牌独占一行，菜单另起一行 */
.top {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--paper);
  border-bottom: var(--line) solid var(--ink);
}

.brandrow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 16px;
  background: var(--blue);
  border-bottom: var(--line) solid var(--ink);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  text-decoration: none;
  color: var(--ink);
}

.logomark,
.logoimg {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: var(--line) solid var(--ink);
  border-radius: var(--r);
  background: var(--red);
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.25rem;
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-4deg);
  object-fit: cover;
}

.brand-name {
  font-family: var(--font-head);
  font-size: 1.2rem;
  line-height: 1.1;
  letter-spacing: .01em;
}

.contact {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border: var(--line) solid var(--ink);
  border-radius: var(--r);
  background: var(--red);
  color: #fff;
  font-weight: 800;
  font-size: .98rem;
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}

.contact:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink);
}

.menu { padding: 9px 16px 11px; }

.menu ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 12px;
  border: var(--line) solid var(--ink);
  border-radius: var(--r);
  background: var(--tint);
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.menu a:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink);
  background: var(--sand);
}

.menu a[aria-current] { background: var(--blue); }

/* 首屏 */
.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: calc(100svh - 150px);
  padding: clamp(34px, 8vh, 76px) 16px 84px;
  background: var(--blue);
  border-bottom: var(--line) solid var(--ink);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(59, 177, 255, .34);
  clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%);
}

.hero-in {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  text-align: center;
  background: var(--paper);
  border: var(--line) solid var(--ink);
  border-radius: 6px;
  box-shadow: 8px 8px 0 var(--ink);
  padding: clamp(20px, 4vw, 34px);
}

.stamp {
  display: inline-block;
  background: var(--red);
  color: #fff;
  border: var(--line) solid var(--ink);
  border-radius: var(--r);
  padding: 3px 10px;
  font-size: .9rem;
  font-weight: 800;
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-3deg);
}

.hero-in h1 {
  margin: 16px 0 0;
  font-size: clamp(1.85rem, 6.2vw, 3.2rem);
  line-height: 1.1;
}

.lede {
  margin: 14px auto 22px;
  max-width: 44ch;
  font-size: 1rem;
  line-height: 1.6;
  color: #141414;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 24px;
  background: var(--ink);
  color: #fff;
  border: var(--line) solid var(--ink);
  border-radius: var(--r);
  font-weight: 800;
  font-size: 1.02rem;
  text-decoration: none;
  box-shadow: 5px 5px 0 var(--red);
  transition: transform .15s ease, box-shadow .15s ease;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--red);
}

/* 正文与侧栏 */
.wrap {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 16px;
}

.bodygrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 296px;
  gap: 36px;
  align-items: start;
  padding-block: 40px 64px;
}

.prose {
  min-width: 0;
  counter-reset: step;
}

.prose > div {
  counter-increment: step;
  padding-block: 34px;
  border-top: var(--line) solid var(--ink);
  scroll-margin-top: 180px;
}

.prose > div:first-child {
  border-top: 0;
  padding-top: 0;
}

.prose > div::before {
  content: counter(step, decimal-leading-zero);
  display: inline-block;
  margin-bottom: 10px;
  padding: 1px 9px;
  border: var(--line) solid var(--ink);
  border-radius: var(--r);
  background: var(--blue);
  font-family: var(--font-head);
  font-size: .85rem;
  letter-spacing: .06em;
}

.prose h2 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 3.4vw, 1.95rem);
  line-height: 1.22;
}

.prose h3 {
  margin: 22px 0 8px;
  font-size: 1.16rem;
  line-height: 1.3;
}

.prose p {
  margin: 0 0 14px;
  font-size: 1.0625rem;
  line-height: 1.8;
}

.prose ul,
.prose ol {
  margin: 0 0 16px;
  padding-left: 1.35em;
}

.prose li { line-height: 1.72; }

.prose a {
  color: #0a5684;
  text-decoration: none;
  border-bottom: 3px solid var(--blue);
}

.prose a:hover { border-bottom-color: var(--red); }

.prose strong { background: #ffecec; }

.prose blockquote {
  margin: 18px 0;
  padding: 14px 16px;
  border: var(--line) solid var(--ink);
  border-left-width: 10px;
  border-radius: var(--r);
  background: var(--sand);
}

.prose img {
  margin: 14px 0;
  border: var(--line) solid var(--ink);
  border-radius: var(--r);
}

.prose table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 0 0 16px;
}

.prose th,
.prose td {
  border: var(--line) solid var(--ink);
  padding: 8px 10px;
  text-align: left;
}

.prose hr {
  border: 0;
  border-top: var(--line) dashed var(--ink);
  margin: 24px 0;
}

.side {
  position: sticky;
  top: 180px;
  padding: 16px;
  border: var(--line) solid var(--ink);
  border-radius: var(--r);
  background: var(--paper);
}

.side .kicker {
  display: inline-block;
  padding: 1px 9px;
  border: var(--line) solid var(--ink);
  border-radius: var(--r);
  background: var(--red);
  color: #fff;
  font-size: .82rem;
  font-weight: 800;
}

.side h2 {
  margin: 10px 0 14px;
  font-size: 1.2rem;
  line-height: 1.2;
}

.side ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.side a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 11px;
  border: var(--line) solid var(--ink);
  border-radius: var(--r);
  background: var(--tint);
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}

.side a::before {
  content: "\203A";
  color: var(--red);
  font-family: var(--font-head);
  font-size: 1.1rem;
  line-height: 1;
}

.side a:hover {
  transform: translateX(-3px);
  background: var(--sand);
}

/* 页脚：三栏，仅 p 与 small */
.foot {
  display: grid;
  grid-template-columns: 1fr 1.5fr auto;
  gap: 18px;
  align-items: start;
  padding: 34px clamp(16px, 5vw, 72px) 0;
  background: var(--blue);
  border-top: var(--line) solid var(--ink);
}

.f-brand {
  margin: 0;
  padding-top: 8px;
  font-family: var(--font-head);
  font-size: 1.2rem;
  line-height: 1.2;
}

.f-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0;
}

.f-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 12px;
  border: var(--line) solid var(--ink);
  border-radius: var(--r);
  background: var(--paper);
  font-weight: 700;
  font-size: .94rem;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}

.f-links a:hover {
  transform: translateY(-2px);
  background: var(--sand);
}

.f-cta {
  margin: 0;
  justify-self: end;
}

.f-cta a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 11px 20px;
  border: var(--line) solid var(--ink);
  border-radius: var(--r);
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 5px 5px 0 var(--red);
}

.f-copy {
  grid-column: 1 / -1;
  display: block;
  margin-top: 22px;
  padding: 14px 0;
  border-top: var(--line) solid var(--ink);
  text-align: center;
  font-size: .9rem;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.hero-in { animation: rise .45s ease both; }

.menu li { animation: rise .4s ease both; }
.menu li:nth-child(1) { animation-delay: .02s; }
.menu li:nth-child(2) { animation-delay: .06s; }
.menu li:nth-child(3) { animation-delay: .1s; }
.menu li:nth-child(4) { animation-delay: .14s; }
.menu li:nth-child(5) { animation-delay: .18s; }
.menu li:nth-child(6) { animation-delay: .22s; }
.menu li:nth-child(7) { animation-delay: .26s; }

.side li { animation: rise .4s ease both; }
.side li:nth-child(1) { animation-delay: .04s; }
.side li:nth-child(2) { animation-delay: .08s; }
.side li:nth-child(3) { animation-delay: .12s; }
.side li:nth-child(4) { animation-delay: .16s; }
.side li:nth-child(5) { animation-delay: .2s; }
.side li:nth-child(6) { animation-delay: .24s; }
.side li:nth-child(7) { animation-delay: .28s; }

@media (max-width: 900px) {
  .bodygrid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .side { position: static; }
  .foot { grid-template-columns: 1fr; }
  .f-cta { justify-self: start; }
}

@media (max-width: 620px) {
  body { font-size: 1rem; }
  .brand-name { font-size: 1.06rem; }
  .contact { padding: 9px 12px; font-size: .92rem; }
  .menu a { font-size: .9rem; padding: 9px 11px; }
  .hero { min-height: calc(100svh - 158px); padding-bottom: 66px; }
  .hero-in h1 { font-size: clamp(1.7rem, 8vw, 2.3rem); }
  .lede { font-size: .98rem; }
  .prose > div { scroll-margin-top: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

button[aria-expanded]{min-width:44px;min-height:44px}
