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

:root{
  --paper:#edf1f5;
  --paper-2:#f8fafc;
  --blue:#c8e0f4;
  --rose:#f5e0e8;
  --ink:#171f26;
  --ink-2:#3f4c56;
  --white:#ffffff;
  --shadow:rgba(23,31,38,.14);
  --soft:rgba(23,31,38,.08);
  --pill:999px;
  --sans:"Exo 2","PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,-apple-system,sans-serif;
  --mono:"Orbitron","Exo 2","PingFang SC","Microsoft YaHei",system-ui,sans-serif;
}

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

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

body{
  margin:0;
  font-family:var(--sans);
  font-size:17px;
  line-height:1.7;
  color:var(--ink);
  background-color:var(--paper);
  background-image:
    radial-gradient(rgba(23,31,38,.10) 1px, transparent 1px),
    linear-gradient(160deg, #f2f6f9 0%, #edf1f5 45%, #f3eef1 100%);
  background-size:20px 20px, 100% 100%;
  background-attachment:fixed;
  overflow-x:hidden;
}

[id]{ scroll-margin-top:118px; }

h1,h2,h3,h4{
  font-family:var(--sans);
  color:var(--ink);
  line-height:1.35;
  letter-spacing:-0.01em;
  margin:0;
}

p{ margin:0 0 14px; }

a{ color:#26485f; }

.subtitle{
  margin:0 0 14px;
  color:var(--ink-2);
  font-size:16px;
  line-height:1.6;
  letter-spacing:.01em;
}

/* ---------- 顶部细条 ---------- */
.ticker{
  position:fixed;
  top:0;
  left:0;
  right:0;
  height:44px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:0 18px;
  z-index:60;
  font-size:16px;
  line-height:1.5;
  background:linear-gradient(90deg, var(--blue), #e6e9f5 55%, var(--rose));
  box-shadow:0 3px 12px var(--soft);
}

.tk-brand{
  font-family:var(--mono);
  font-weight:600;
  letter-spacing:.12em;
  color:#101820;
  white-space:nowrap;
}

.tk-key{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#2b3943;
}

/* ---------- 左侧竖排导航 ---------- */
.rail{
  position:fixed;
  top:44px;
  left:0;
  bottom:0;
  width:212px;
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:18px;
  z-index:50;
}

.mark{
  flex:none;
  width:48px;
  height:48px;
  border-radius:15px;
  display:grid;
  place-items:center;
  text-decoration:none;
  background:linear-gradient(145deg,#f9fbfd,#dfe8f1);
  box-shadow:-4px -4px 10px var(--white), 5px 5px 14px var(--shadow);
  transition:transform .15s ease, box-shadow .15s ease;
}

.mark:active{
  transform:scale(.96);
  box-shadow:inset -3px -3px 8px var(--white), inset 3px 3px 8px var(--shadow);
}

.glyph{
  width:19px;
  height:19px;
  border-radius:5px;
  background-image:
    radial-gradient(rgba(23,31,38,.7) 1.5px, transparent 1.6px),
    linear-gradient(145deg, var(--blue), var(--rose));
  background-size:6px 6px, 100% 100%;
  box-shadow:inset -1px -1px 3px rgba(23,31,38,.22), inset 1px 1px 3px var(--white);
}

.dock{ min-width:0; }

.dock ol{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:9px;
}

.dock a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:10px 16px;
  border-radius:var(--pill);
  text-decoration:none;
  font-size:16px;
  line-height:1.5;
  color:var(--ink);
  background:linear-gradient(145deg,#f8fbfd,#e2e9f1);
  box-shadow:-4px -4px 10px var(--white), 4px 4px 12px var(--soft);
  transition:box-shadow .15s ease, transform .15s ease, color .15s ease;
}

.dock a:hover{
  transform:translateY(-1px);
  color:#0e1519;
}

.dock a:active,
.dock a.on{
  box-shadow:inset -3px -3px 8px var(--white), inset 3px 3px 9px var(--soft);
  color:#0e1519;
}

/* ---------- 主体 ---------- */
main{
  padding:112px 18px 0;
}

.wrap{
  max-width:1120px;
  margin:0 auto;
}

.hero{
  position:relative;
  min-height:62vh;
  display:flex;
  align-items:center;
  padding:24px 0 40px;
}

.hero::before{
  content:"";
  position:absolute;
  inset:6px -6px 0;
  pointer-events:none;
  border-radius:22px;
  background-image:radial-gradient(rgba(23,31,38,.20) 1.4px, transparent 1.5px);
  background-size:22px 22px;
  -webkit-mask-image:linear-gradient(100deg, #000 6%, rgba(0,0,0,.25) 62%, transparent 96%);
  mask-image:linear-gradient(100deg, #000 6%, rgba(0,0,0,.25) 62%, transparent 96%);
}

.hero-copy{
  position:relative;
  z-index:1;
  max-width:15em;
  text-align:left;
}

.hero h1{
  font-size:clamp(2.1rem, 6.6vw, 4rem);
  font-weight:700;
  letter-spacing:-0.02em;
  line-height:1.18;
  margin:0 0 18px;
  text-shadow:0 2px 0 rgba(255,255,255,.7);
}

.lead{
  max-width:26em;
  font-size:17px;
  line-height:1.75;
  color:var(--ink-2);
  padding:14px 18px;
  border-radius:14px;
  background:rgba(255,255,255,.55);
  box-shadow:-3px -3px 10px var(--white), 4px 4px 12px var(--soft);
}

.reading{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:22px;
  padding:4px 0 52px;
}

/* ---------- 正文容器 ---------- */
.body{
  min-width:0;
  padding:26px 20px 12px;
  border-radius:4px;
  background:rgba(255,255,255,.62);
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
  box-shadow:0 10px 28px var(--soft), inset 0 1px 0 var(--white);
  overflow-wrap:break-word;
}

.body h2{
  font-size:22px;
  font-weight:600;
  margin:34px 0 10px;
  padding-left:14px;
  border-left:4px solid var(--blue);
}

.body h2:first-child{ margin-top:6px; }

.body h3{
  font-size:19px;
  font-weight:600;
  margin:24px 0 8px;
  color:#20303b;
}

.body p{
  font-size:17px;
  line-height:1.85;
  color:#243039;
  margin:0 0 15px;
}

.body ul,
.body ol{
  margin:0 0 16px;
  padding-left:22px;
}

.body li{
  margin:0 0 8px;
  line-height:1.8;
}

.body a{
  color:#2c5570;
  text-decoration:underline;
  text-underline-offset:3px;
  text-decoration-color:rgba(44,85,112,.4);
}

.body strong{ color:#101a21; }

.body blockquote{
  margin:0 0 16px;
  padding:14px 18px;
  border-radius:14px;
  background:linear-gradient(145deg, var(--blue), #e7f1fa);
  box-shadow:inset -3px -3px 9px rgba(255,255,255,.9), inset 3px 3px 9px rgba(23,31,38,.08);
  color:#1d2c36;
}

.body section{ padding:8px 0 6px; }

.body section + section{
  border-top:1px solid rgba(23,31,38,.09);
}

.body img{
  max-width:100%;
  height:auto;
  border-radius:4px;
}

/* ---------- 侧栏 ---------- */
.side{
  padding:22px 18px;
  border-radius:4px;
  background:rgba(255,255,255,.55);
  -webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);
  box-shadow:-4px -4px 12px var(--white), 5px 5px 16px var(--soft);
  align-self:start;
}

.side h2{
  font-size:19px;
  font-weight:600;
  margin:0 0 6px;
}

.side .subtitle{
  font-size:16px;
  color:#43525c;
  padding-bottom:12px;
  border-bottom:1px solid rgba(23,31,38,.1);
}

.side-links{
  list-style:none;
  margin:12px 0 0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.side-links a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:9px 15px;
  border-radius:var(--pill);
  text-decoration:none;
  font-size:16px;
  color:var(--ink);
  background:linear-gradient(145deg,#f8fbfd,#e6edf4);
  box-shadow:-3px -3px 8px var(--white), 3px 3px 9px var(--soft);
  transition:box-shadow .15s ease, transform .15s ease;
}

.side-links a:hover{ transform:translateX(2px); }

.side-links a:active{
  box-shadow:inset -2px -2px 7px var(--white), inset 2px 2px 8px var(--soft);
}

/* ---------- 页脚 ---------- */
footer{
  padding:0 18px 40px;
}

.foot-in{
  max-width:1120px;
  margin:0 auto;
}

.cta{
  padding:34px 22px 30px;
  border-radius:20px;
  background:linear-gradient(145deg, var(--blue), var(--rose));
  box-shadow:-6px -6px 18px var(--white), 8px 8px 24px var(--shadow);
}

.cta h2{
  font-size:clamp(1.35rem, 4vw, 1.9rem);
  font-weight:700;
  margin:0 0 8px;
}

.cta .subtitle{
  color:#2a3742;
  margin:0 0 20px;
  max-width:34em;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:12px 30px;
  border-radius:var(--pill);
  font-size:17px;
  font-weight:600;
  text-decoration:none;
  color:#f5f9fc;
  background:var(--ink);
  box-shadow:0 10px 22px rgba(23,31,38,.28);
  transition:transform .15s ease, box-shadow .15s ease;
}

.btn:hover{ transform:translateY(-1px); }

.btn:active{
  transform:scale(.98);
  box-shadow:inset 0 3px 10px rgba(0,0,0,.5);
}

.foot-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:20px;
  padding:32px 0 18px;
}

address{
  font-style:normal;
  display:flex;
  flex-direction:column;
  gap:6px;
  font-size:16px;
  line-height:1.6;
  color:var(--ink-2);
}

address strong{
  font-family:var(--mono);
  font-size:17px;
  font-weight:600;
  letter-spacing:.1em;
  color:var(--ink);
}

.foot-links ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.foot-links a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:8px 16px;
  border-radius:var(--pill);
  font-size:16px;
  text-decoration:none;
  color:var(--ink);
  background:linear-gradient(145deg,#f8fbfd,#e4ebf2);
  box-shadow:-3px -3px 8px var(--white), 3px 3px 10px var(--soft);
}

.foot-links a:active{
  box-shadow:inset -2px -2px 7px var(--white), inset 2px 2px 8px var(--soft);
}

.copy{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  margin:0;
  padding-top:16px;
  border-top:1px solid rgba(23,31,38,.12);
  font-size:16px;
  line-height:1.5;
  color:#48555e;
}

.top{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:8px 18px;
  border-radius:var(--pill);
  font-size:16px;
  text-decoration:none;
  color:var(--ink);
  background:linear-gradient(145deg,#f8fbfd,#e4ebf2);
  box-shadow:-3px -3px 8px var(--white), 3px 3px 10px var(--soft);
}

/* ---------- 滚动出现 ---------- */
.rv{
  opacity:0;
  transform:translateY(14px);
  transition:opacity .5s ease, transform .5s ease;
}

.rv.in{
  opacity:1;
  transform:none;
}

/* ---------- 断点 ---------- */
@media (min-width:640px){
  .body{ padding:30px 30px 14px; }
  .side{ padding:24px 22px; }
  .cta{ padding:42px 34px 36px; }
  .foot-grid{ grid-template-columns:1.3fr 1fr; gap:26px; }
}

@media (min-width:1024px){
  main{ padding:120px 40px 0 236px; }
  footer{ padding:0 40px 44px 236px; }
  .reading{
    grid-template-columns:minmax(0,1fr) 274px;
    gap:30px;
  }
  .side{
    position:sticky;
    top:96px;
  }
  .hero{ min-height:70vh; }
  .body{ padding:34px 38px 18px; }
}

@media (max-width:1023px){
  .rail{
    top:44px;
    left:0;
    right:0;
    bottom:auto;
    width:auto;
    flex-direction:row;
    align-items:center;
    gap:10px;
    padding:8px 12px;
    background:rgba(238,242,246,.94);
    -webkit-backdrop-filter:blur(10px);
    backdrop-filter:blur(10px);
    box-shadow:0 4px 14px var(--soft);
  }
  .mark{ width:42px; height:42px; border-radius:13px; }
  .dock{ flex:1 1 auto; min-width:0; }
  .dock ol{
    flex-direction:row;
    overflow-x:auto;
    gap:8px;
    padding-bottom:2px;
    scrollbar-width:none;
  }
  .dock ol::-webkit-scrollbar{ display:none; }
  .dock a{ white-space:nowrap; padding:10px 15px; }
  main{ padding-top:124px; }
}

@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  .rv{ opacity:1; transform:none; transition:none; }
  .dock a,
  .side-links a,
  .btn,
  .mark{ transition:none; }
}

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