@import url('https://fonts.googleapis.com/css2?family=Cormorant:wght@400;500;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root{
  --blue:#3bb1ff;
  --red:#ff5252;
  --ink:#000;
  --paper:#fffdf4;
  --sand:#efe9db;
  --line:3px solid var(--ink);
  --shadow:6px 6px 0 var(--ink);
  --shadow-sm:3px 3px 0 var(--ink);
  --bar:64px;
  --jump:56px;
  --r:10px;
  --maxw:1160px;
}

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

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

body{
  margin:0;
  width:100%;
  max-width:100%;
  background:var(--paper);
  color:var(--ink);
  font-family:'Montserrat',"PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  font-size:17px;
  line-height:1.75;
  overflow-x:hidden;
}
body.nav-open{overflow:hidden}

img{max-width:100%;height:auto;display:block}
p{margin:0 0 1em;overflow-wrap:break-word}
small{font-size:16px;line-height:1.4}
h1,h2,h3,h4{
  font-family:'Cormorant','Montserrat',"PingFang SC","Microsoft YaHei",sans-serif;
  font-weight:700;line-height:1.15;letter-spacing:-.01em;margin:0 0 .5em;
  overflow-wrap:break-word;
}
h1{font-size:clamp(32px,7vw,66px)}
h2{font-size:clamp(24px,4vw,36px)}
h3{font-size:clamp(20px,3vw,26px)}

a:focus-visible,button:focus-visible,summary:focus-visible{
  outline:3px dashed var(--red);outline-offset:3px;
}

.skip{
  position:absolute;left:-9999px;top:0;z-index:90;
  background:var(--red);color:#fff;font-weight:700;
  padding:12px 18px;border:var(--line);
}
.skip:focus{left:8px;top:8px}

/* 顶部工具条 */
.bar{
  position:sticky;top:0;z-index:50;
  display:flex;align-items:center;gap:10px;
  min-height:var(--bar);padding:8px 14px;
  background:var(--paper);border-bottom:var(--line);
}
.mark{
  width:46px;height:46px;flex:0 0 auto;
  display:grid;place-items:center;overflow:hidden;
  background:var(--blue);border:var(--line);border-radius:8px;
  box-shadow:var(--shadow-sm);text-decoration:none;
}
.mark-txt{font-size:18px;font-weight:700;color:#000}
.mark-img{width:100%;height:100%;object-fit:cover}

.bar-cta{
  margin-left:auto;display:inline-flex;align-items:center;
  min-height:44px;padding:6px 18px;
  background:var(--red);color:#fff;font-weight:700;text-decoration:none;
  border:var(--line);border-radius:999px;box-shadow:var(--shadow-sm);
}
.bar-cta:hover{background:var(--ink)}

/* 全屏遮罩菜单 */
.drawer{margin:0;flex:0 0 auto}
.drawer summary{
  list-style:none;cursor:pointer;user-select:none;
  display:inline-flex;align-items:center;justify-content:center;
  min-height:44px;padding:6px 18px;
  background:var(--blue);border:var(--line);border-radius:999px;
  box-shadow:var(--shadow-sm);font-weight:700;
}
.drawer summary::-webkit-details-marker{display:none}
.drawer[open] summary{
  position:fixed;top:10px;right:12px;z-index:70;
  background:var(--red);color:#fff;
}
.drawer[open] summary span{display:none}
.drawer[open] summary::after{content:"关闭"}
.drawer menu{
  position:fixed;inset:0;z-index:65;margin:0;
  padding:88px 20px 48px;list-style:none;overflow-y:auto;
  background:var(--blue);
}
.drawer menu li{border-bottom:3px solid var(--ink)}
.drawer menu li a{
  display:flex;align-items:center;min-height:64px;padding:10px 4px;
  font-size:clamp(20px,5vw,30px);font-weight:700;color:#000;text-decoration:none;
  overflow-wrap:break-word;
}
.drawer menu li a:hover{background:var(--paper)}

/* 二级锚点条 */
.jump{
  position:sticky;top:var(--bar);z-index:45;
  display:flex;align-items:center;gap:10px;
  padding:8px 14px;background:var(--blue);
  border-bottom:var(--line);overflow-x:auto;overflow-y:hidden;
  scrollbar-width:thin;
}
.chip{
  flex:0 0 auto;display:inline-flex;align-items:center;
  min-height:40px;padding:4px 14px;white-space:nowrap;
  background:#fff;border:3px solid var(--ink);border-radius:999px;
  box-shadow:2px 2px 0 var(--ink);
  font-size:16px;font-weight:700;color:#000;text-decoration:none;
}
.chip:hover{background:var(--paper)}
.chip:first-child{background:var(--red);color:#fff}
.chip[aria-current]{background:var(--ink);color:#fff}

/* 首屏 */
.hero{
  position:relative;isolation:isolate;overflow:hidden;
  min-height:70vh;display:grid;align-items:center;gap:26px;
  grid-template-columns:minmax(0,1fr) minmax(140px,200px);
  max-width:var(--maxw);margin:0 auto;padding:56px 20px 64px;
}
.hero-ghost{
  position:absolute;z-index:-1;right:-.05em;top:5%;
  font-family:'Cormorant','Montserrat',sans-serif;font-weight:700;
  font-size:clamp(72px,22vw,240px);line-height:.8;letter-spacing:-.04em;
  color:rgba(59,177,255,.24);white-space:nowrap;pointer-events:none;
}
.hero-copy{text-align:right;min-width:0}
.hero-lead{font-size:16px;line-height:1.7;margin-bottom:22px;overflow-wrap:break-word}
.hero-act{display:flex;flex-wrap:wrap;gap:12px;justify-content:flex-end;margin:0}
.btn{
  display:inline-flex;align-items:center;min-height:48px;padding:8px 20px;
  background:#fff;border:var(--line);border-radius:var(--r);
  box-shadow:var(--shadow-sm);font-size:17px;font-weight:700;
  color:#000;text-decoration:none;
}
.btn--red{background:var(--red);color:#fff}
.btn:hover{transform:translate(-1px,-1px)}

.hero-art{
  margin:0;display:grid;place-items:center;overflow:hidden;
  width:100%;max-width:200px;aspect-ratio:1;justify-self:end;
  background:var(--red);border:var(--line);border-radius:var(--r);
  box-shadow:var(--shadow);transform:rotate(-3deg);
  animation:tilt 7s ease-in-out infinite alternate;
}
.art-img{width:100%;height:100%;object-fit:cover}
.art-shape{width:56%;aspect-ratio:1;background:var(--blue);border:var(--line);border-radius:50%}

@keyframes tilt{from{transform:rotate(-4deg)}to{transform:rotate(2deg)}}
@keyframes rise{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}

/* 正文与左侧栏 */
.doc-grid{
  display:grid;grid-template-columns:260px minmax(0,1fr);
  gap:28px;align-items:start;
  max-width:var(--maxw);margin:0 auto;padding:40px 20px 72px;
}
.doc-body{min-width:0;max-width:100%;overflow-wrap:break-word}

.rail{
  position:sticky;top:calc(var(--bar) + var(--jump) + 16px);
  min-width:0;max-width:100%;
  background:var(--blue);border:var(--line);border-radius:var(--r);
  box-shadow:var(--shadow);padding:18px;color:#000;
}
.rail small{display:block;font-weight:700;letter-spacing:.2em;color:#06456b;margin-bottom:2px}
.rail h2{font-size:24px;margin:0 0 14px}
.rail ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.rail ul a{
  display:flex;align-items:center;min-height:40px;padding:6px 10px;
  background:#fff;border:3px solid var(--ink);border-radius:8px;
  box-shadow:2px 2px 0 var(--ink);
  font-size:16px;font-weight:600;line-height:1.3;color:#000;text-decoration:none;
}
.rail ul a:hover{background:var(--red);color:#fff}

.doc-body > div{
  max-width:100%;overflow-x:auto;overflow-y:visible;
  background:rgba(255,255,255,.7);
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
  border:var(--line);border-radius:var(--r);
  box-shadow:var(--shadow);
  padding:26px 22px;margin-bottom:30px;
  scroll-margin-top:calc(var(--bar) + var(--jump) + 24px);
}
.doc-body > div:last-child{margin-bottom:0}
.doc-body > div:nth-child(even){box-shadow:6px 6px 0 var(--red)}
.doc-body > div:nth-child(3n){box-shadow:6px 6px 0 var(--blue)}
.doc-body > div:target{background:#fff}

.doc-body small{display:block;font-weight:700;letter-spacing:.16em;color:#0b6ea8;margin-bottom:6px}
.doc-body h2{margin-top:.1em}
.doc-body h2::after{
  content:"";display:block;width:64px;height:6px;
  background:var(--red);border-radius:3px;margin-top:12px;
}
.doc-body h3{margin-top:1.4em}
.doc-body p{max-width:66ch}
.doc-body a{color:#0b6ea8;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px;overflow-wrap:break-word}
.doc-body a:hover{background:rgba(59,177,255,.28)}
.doc-body ul,.doc-body ol{padding-left:1.3em;max-width:100%}
.doc-body li{margin:.35em 0;overflow-wrap:break-word}
.doc-body blockquote{
  margin:1.4em 0;padding:14px 18px;background:var(--sand);
  border:3px solid var(--ink);border-left-width:10px;border-radius:8px;
  max-width:100%;
}
.doc-body blockquote p:last-child{margin:0}
.doc-body img{
  height:auto;max-width:100%;margin:1.3em 0;
  border:var(--line);border-radius:8px;box-shadow:var(--shadow-sm);
}
.doc-body table{
  display:block;width:100%;max-width:100%;overflow-x:auto;
  border-collapse:collapse;font-size:16px;margin:1.3em 0;
}
.doc-body th,.doc-body td{border:2px solid var(--ink);padding:8px 10px;text-align:left}
.doc-body th{background:var(--blue)}
.doc-body pre{
  max-width:100%;overflow-x:auto;margin:1.3em 0;padding:12px 14px;
  background:var(--sand);border:2px solid var(--ink);border-radius:8px;
}
.doc-body code{font-size:16px;background:var(--sand);padding:2px 6px;border:2px solid var(--ink);border-radius:4px;overflow-wrap:break-word}
.doc-body pre code{border:0;padding:0;background:none}
.doc-body figure{max-width:100%;margin:1.3em 0}
.doc-body iframe{max-width:100%}

.reveal.in{animation:rise .55s cubic-bezier(.2,.7,.3,1) both}

/* 页脚 */
.foot{
  background:var(--ink);color:#fff;border-top:var(--line);
  padding:40px 18px 26px;margin-top:24px;overflow-x:hidden;
}
.foot-in{max-width:var(--maxw);margin:0 auto;min-width:0}
.foot-mega{
  margin:0 0 28px;font-family:'Cormorant','Montserrat',sans-serif;font-weight:700;
  font-size:clamp(40px,13vw,132px);line-height:.92;letter-spacing:-.03em;
  color:var(--blue);word-break:break-word;
}
.foot-grid{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px;border-top:2px solid #fff;padding-top:22px;
}
.foot-cell{min-width:0}
.foot-cell small{display:block;font-weight:700;letter-spacing:.2em;color:var(--red);margin-bottom:10px}
.foot-cell address{font-style:normal;font-weight:700;font-size:18px;overflow-wrap:break-word}
.foot-cell p{margin:.5em 0 0;color:#c6c6c6;overflow-wrap:break-word}
.foot-cell ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
.foot-cell ul a{
  display:inline-flex;align-items:center;min-height:40px;
  color:#fff;text-decoration:none;border-bottom:2px solid transparent;
}
.foot-cell ul a:hover{border-bottom-color:var(--blue);color:var(--blue)}

.totop{
  display:inline-flex;align-items:center;min-height:44px;padding:8px 18px;
  background:var(--red);color:#fff;border:3px solid #fff;border-radius:999px;
  font:inherit;font-weight:700;cursor:pointer;
}
.totop:hover{background:var(--blue);color:#000;border-color:#000}

.foot-end{
  display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;
  gap:14px;border-top:2px solid #fff;margin-top:26px;padding-top:16px;
}
.foot-end p{margin:0;font-size:16px;color:#bdbdbd}
.foot-links{list-style:none;display:flex;flex-wrap:wrap;gap:18px;margin:0;padding:0}
.foot-links a{display:inline-flex;align-items:center;min-height:40px;color:#fff;text-decoration:none}
.foot-links a:hover{color:var(--blue)}

@media (max-width:900px){
  .doc-grid{grid-template-columns:minmax(0,1fr);padding-top:28px;gap:22px}
  .rail{position:static}
  .rail ul{flex-direction:row;overflow-x:auto;overflow-y:hidden;padding-bottom:4px;gap:8px}
  .rail ul li{flex:0 0 auto}
  .rail ul a{white-space:nowrap}
}

@media (max-width:760px){
  :root{--bar:60px;--jump:52px}
  .hero{grid-template-columns:minmax(0,1fr);min-height:auto;padding:40px 18px 48px;gap:20px}
  .hero-art{width:132px;max-width:132px;order:-1;justify-self:end}
  .hero-ghost{top:auto;bottom:2%}
  .hero-lead{font-size:16px}
  .doc-grid{padding-left:16px;padding-right:16px}
}

@media (max-width:620px){
  .foot-grid{grid-template-columns:minmax(0,1fr);gap:18px}
  .doc-body > div{padding:22px 16px}
  .doc-body p{max-width:none}
  .bar{padding:8px 12px}
}

@media (max-width:400px){
  .hero-ghost{font-size:60px}
  .bar-cta,.drawer summary{padding:6px 14px}
  .doc-body > div{padding:18px 13px;margin-bottom:22px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .hero-art{animation:none;transform:none}
  .reveal.in{animation:none}
  .totop{transition:none}
}

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