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

:root {
  --blue: #3bb1ff;
  --red: #ff5252;
  --ink: #000000;
  --deep: #0a5f92;
  --paper: #f3efe6;
  --glass: rgba(255, 255, 255, 0.66);
  --edge: 3px solid var(--ink);
  --hard: 6px 6px 0 var(--ink);
  --soft: 4px 4px 0 var(--ink);
}

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

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

body {
  margin: 0;
  padding: 10px 0 104px;
  font-family: "Be Vietnam Pro", "Noto Sans", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

img { max-width: 100%; }
a { color: var(--deep); }

.sr {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* 品牌图钉 */
.brandpin {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 65;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  background: var(--paper);
  border: var(--edge);
  border-radius: 999px;
  box-shadow: var(--soft);
  text-decoration: none;
  color: var(--ink);
  overflow: hidden;
}
.brandpin img { width: 26px; height: 26px; object-fit: contain; display: block; }
.brandmark { font-weight: 700; font-size: 19px; line-height: 1; }

/* 版面 */
.stage {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
  display: grid;
  gap: 26px;
}
main { min-width: 0; }

/* 主容器卡片 */
main > article {
  background: var(--glass);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  border: var(--edge);
  border-radius: 28px;
  box-shadow: var(--hard);
  padding: 22px 20px;
  margin: 26px 0 0;
  scroll-margin-top: 24px;
}

/* 首屏 */
.hero {
  background: var(--blue) !important;
  padding: 24px 20px !important;
  display: grid;
  gap: 16px;
  align-content: center;
  min-height: 45vh;
  margin-top: 64px !important;
}
.hero-text {
  display: grid;
  gap: 12px;
  justify-items: end;
  text-align: right;
}
.hero h1 {
  margin: 0;
  font-size: clamp(28px, 6.4vw, 48px);
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: -0.01em;
  max-width: 18ch;
}
.badge {
  display: inline-block;
  background: #fff;
  border: var(--edge);
  border-radius: 999px;
  padding: 3px 13px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--soft);
}
.hero-fig {
  margin: 0;
  border: var(--edge);
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--soft);
}
.hero-fig:empty { display: none; }
.hero-fig img { display: block; width: 100%; height: auto; }

/* 正文排版 */
main h2 {
  font-size: clamp(21px, 3.6vw, 30px);
  line-height: 1.25;
  margin: 6px 0 14px;
  padding-bottom: 8px;
  border-bottom: var(--edge);
  font-weight: 700;
}
main h3 {
  font-size: 20px;
  line-height: 1.35;
  margin: 22px 0 8px;
}
main p { margin: 0 0 15px; }
main ul, main ol { margin: 0 0 16px; padding-left: 24px; }
main li { margin: 7px 0; }
main li::marker { font-weight: 700; }
main a { color: var(--deep); font-weight: 600; text-underline-offset: 3px; }
main strong { font-weight: 700; background: rgba(59, 177, 255, 0.35); }
main blockquote {
  margin: 18px 0;
  padding: 12px 16px;
  background: #fff;
  border: var(--edge);
  border-left-width: 10px;
  border-radius: 16px;
}
main blockquote p:last-child { margin-bottom: 0; }
main figure { margin: 18px 0; }
main figure img {
  display: block;
  width: 100%;
  height: auto;
  border: var(--edge);
  border-radius: 18px;
  box-shadow: var(--soft);
}
main figcaption { font-size: 14px; margin-top: 8px; }
main img { height: auto; }
main table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  background: #fff;
  border: var(--edge);
  font-size: 16px;
}
main th, main td { border: 2px solid var(--ink); padding: 8px 10px; text-align: left; }
main th { background: var(--blue); }

/* 眉题 */
main small {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--deep);
  margin-bottom: 4px;
}
main small::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 7px;
  background: var(--red);
  border: 2px solid var(--ink);
  vertical-align: 0;
}

/* 侧栏 */
.rail {
  background: #fff;
  border: var(--edge);
  border-radius: 28px;
  box-shadow: var(--hard);
  padding: 20px 18px;
  align-self: start;
}
.rail .eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--deep);
  margin-bottom: 4px;
}
.rail h2 {
  font-size: 22px;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: var(--edge);
}
.raillist {
  list-style: none;
  counter-reset: rail;
  margin: 0;
  padding: 0;
}
.raillist li { counter-increment: rail; }
.raillist li + li { margin-top: 6px; }
.raillist a {
  display: flex;
  gap: 9px;
  align-items: baseline;
  padding: 11px 8px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--paper);
}
.raillist a::before {
  content: "0" counter(rail);
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
}
.raillist a:hover, .raillist a:focus-visible { background: var(--blue); }

/* 订阅块 */
.join {
  max-width: 1144px;
  margin: 34px auto 0;
  padding: 22px 20px;
  background: var(--red);
  border: var(--edge);
  border-radius: 28px;
  box-shadow: var(--hard);
  color: #fff;
}
.join-t {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
}
.joinform { display: flex; flex-wrap: wrap; gap: 10px; }
.joinform input {
  flex: 1 1 190px;
  min-width: 0;
  min-height: 48px;
  padding: 10px 14px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: var(--edge);
  border-radius: 14px;
}
.joinform button {
  min-height: 48px;
  padding: 10px 22px;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  background: #fff;
  border: var(--edge);
  border-radius: 14px;
  box-shadow: var(--soft);
  cursor: pointer;
}
.joinform button:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }

/* 页脚 */
footer {
  max-width: 1144px;
  margin: 26px auto 0;
  padding: 20px 18px 4px;
  border-top: var(--edge);
  display: grid;
  gap: 14px;
}
.ft-brand { margin: 0; font-size: 22px; font-weight: 700; }
.ft-brand a { color: var(--ink); text-decoration: none; }
.ft-links { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.ft-links a {
  display: inline-block;
  padding: 9px 8px;
  min-height: 40px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.ft-links a:hover, .ft-links a:focus-visible { border-bottom-color: var(--red); }
.ft-copy {
  display: block;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: #3a3a3a;
  margin: 0;
  padding-bottom: 8px;
}
.ft-copy::before { content: none; }

/* 底部固定条 */
.dock {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--paper);
  border-top: var(--edge);
}
.menuwrap { position: relative; }
.menuwrap > summary {
  position: relative;
  z-index: 75;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 10px 16px;
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  background: var(--blue);
  border: var(--edge);
  border-radius: 999px;
  box-shadow: var(--soft);
}
.menuwrap > summary::-webkit-details-marker { display: none; }
.bars {
  display: block;
  position: relative;
  width: 20px;
  height: 2px;
  background: var(--ink);
}
.bars::before, .bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--ink);
}
.bars::before { top: -6px; }
.bars::after { top: 6px; }
.menuwrap[open] > summary { background: var(--red); color: #fff; }
.menuwrap[open] > summary .bars,
.menuwrap[open] > summary .bars::before,
.menuwrap[open] > summary .bars::after { background: #fff; }

.menuwrap > menu {
  position: fixed;
  inset: 0;
  z-index: 70;
  margin: 0;
  padding: 92px 20px 130px;
  list-style: none;
  counter-reset: menu;
  background: var(--ink);
  color: #fff;
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 4px;
}
.menuwrap > menu li {
  counter-increment: menu;
  border-bottom: 2px solid rgba(255, 255, 255, 0.24);
}
.menuwrap > menu a {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 15px 4px;
  min-height: 48px;
  color: #fff;
  text-decoration: none;
  font-size: clamp(19px, 5vw, 26px);
  font-weight: 700;
  line-height: 1.3;
}
.menuwrap > menu a::before {
  content: counter(menu, decimal-leading-zero);
  font-size: 13px;
  color: var(--blue);
  font-weight: 700;
}
.menuwrap > menu a:hover, .menuwrap > menu a:focus-visible { color: var(--blue); }

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  background: var(--red);
  border: var(--edge);
  border-radius: 999px;
  box-shadow: var(--soft);
  text-decoration: none;
  white-space: nowrap;
}

/* 动效 */
.js .reveal { opacity: 0; transform: translateY(16px); }
.js .reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease, transform 0.55s cubic-bezier(0.2, 0.7, 0.3, 1);
  transition-delay: calc(var(--i, 0) * 45ms);
}

/* 断点 */
@media (min-width: 700px) {
  footer { grid-template-columns: 1fr 1fr; align-items: start; }
  .ft-links { justify-content: flex-end; }
  .ft-copy { grid-column: 1 / -1; }
  .joinform { flex-wrap: nowrap; }
}

@media (min-width: 1000px) {
  body { font-size: 18px; }
  .stage { grid-template-columns: minmax(0, 1fr) 306px; align-items: start; }
  .hero { margin-top: 70px !important; }
  .rail { position: sticky; top: 90px; margin-top: 26px; }
  .dock { padding: 12px 22px; }
  .menuwrap > menu {
    padding: 110px 18vw 140px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 40px;
  }
  .brandpin { width: 52px; height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .joinform button:active { transform: none; }
}

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