*{box-sizing:border-box}

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

body{
  margin:0;
  min-height:100vh;
  max-width:100%;
  overflow-x:clip;
  font-family:'Karla','PingFang SC','Hiragino Sans GB','Noto Sans SC','Microsoft YaHei',sans-serif;
  font-size:16px;
  line-height:1.75;
  color:#d9e8dc;
  background-color:#0c1610;
  background-image:linear-gradient(180deg,#1d3018 0%,#0e1a11 46%,#080f0b 100%);
  background-attachment:fixed;
}

img,svg,table,pre,figure,iframe,video{max-width:100%}

img{height:auto;display:block}

a{color:#01cdfe}

:focus-visible{outline:2px solid #87ff71;outline-offset:3px}

/* ---------- 背景层 ---------- */
.bg-grid,
.bg-scan{position:fixed;inset:0;pointer-events:none}

.bg-grid{
  z-index:0;
  background-image:
    linear-gradient(rgba(1,205,254,.10) 1px,transparent 1px),
    linear-gradient(90deg,rgba(135,255,113,.08) 1px,transparent 1px);
  background-size:100% 46px,46px 100%;
  mask-image:linear-gradient(180deg,rgba(0,0,0,.85),rgba(0,0,0,.15) 70%,transparent);
  -webkit-mask-image:linear-gradient(180deg,rgba(0,0,0,.85),rgba(0,0,0,.15) 70%,transparent);
}

.bg-scan{
  z-index:3;
  background-image:repeating-linear-gradient(180deg,rgba(4,12,8,.34) 0 1px,transparent 1px 3px);
  opacity:.5;
}

/* ---------- 顶栏 ---------- */
.masthead{
  position:sticky;
  top:0;
  z-index:20;
  max-width:100%;
  background:rgba(9,18,12,.86);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(135,255,113,.24);
  box-shadow:0 10px 30px -22px rgba(1,205,254,.9);
}

.ticker{
  border-bottom:1px solid rgba(1,205,254,.2);
  background:linear-gradient(90deg,rgba(255,113,206,.14),rgba(1,205,254,.16),rgba(185,103,255,.14));
}

.ticker p{
  margin:0;
  padding:5px 16px;
  font-size:16px;
  line-height:1.5;
  letter-spacing:.06em;
  color:#b7f4d3;
  text-align:center;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.masthead-in{
  display:flex;
  align-items:center;
  gap:10px;
  max-width:100%;
  padding:5px 14px;
  overflow:hidden;
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:9px;
  flex:0 0 auto;
  min-height:44px;
  padding:0 6px;
  text-decoration:none;
  color:#eafff1;
  font-family:'Playfair Display SC','Songti SC','SimSun',serif;
  font-size:18px;
  letter-spacing:.12em;
  text-shadow:0 0 16px rgba(135,255,113,.65),0 0 34px rgba(1,205,254,.4);
}

.brand-img{
  width:30px;
  height:30px;
  border-radius:8px;
  border:1px solid rgba(135,255,113,.4);
}

.brand-mark{
  width:14px;
  height:14px;
  border-radius:50%;
  background:conic-gradient(from 200deg,#87ff71,#01cdfe,#ff71ce,#b967ff,#87ff71);
  box-shadow:0 0 14px rgba(1,205,254,.85);
}

.topnav{flex:1 1 auto;min-width:0}

.nav-list{
  list-style:none;
  display:flex;
  align-items:center;
  gap:4px;
  margin:0;
  padding:2px 0;
  overflow-x:auto;
  scrollbar-width:none;
}

.nav-list::-webkit-scrollbar{display:none}

.nav-list li{flex:0 0 auto}

.nav-list a{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  padding:0 13px;
  border-radius:12px;
  border:1px solid transparent;
  color:#cfe7d4;
  font-size:16px;
  white-space:nowrap;
  text-decoration:none;
  transition:color .18s ease,background .18s ease,border-color .18s ease,transform .18s ease;
}

.nav-list a:hover,
.nav-list a:focus-visible{
  color:#0b1a0e;
  background:linear-gradient(120deg,#87ff71,#01cdfe);
  border-color:rgba(255,255,255,.45);
  transform:translateY(-1px);
}

.nav-list a[aria-current]{
  color:#08140c;
  background:linear-gradient(120deg,#c7ff9f,#87ff71 40%,#01cdfe);
  border-color:rgba(255,255,255,.55);
  box-shadow:0 0 18px -4px rgba(135,255,113,.8);
}

.ni{
  width:7px;
  height:7px;
  border-radius:2px;
  background:#01cdfe;
  box-shadow:0 0 9px #01cdfe;
  transform:rotate(45deg);
}

/* ---------- 头图 ---------- */
.hero{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:14px;
  min-height:70vh;
  max-width:100%;
  padding:52px 20px 44px;
  text-align:center;
  overflow:hidden;
  isolation:isolate;
}

.hero-ghost{
  position:absolute;
  top:4%;
  left:50%;
  transform:translateX(-50%);
  z-index:-1;
  font-family:'Playfair Display SC','Songti SC',serif;
  font-size:clamp(3.4rem,19vw,13rem);
  line-height:.86;
  letter-spacing:.06em;
  white-space:nowrap;
  color:#d8ffe0;
  opacity:.09;
}

.hero-title{
  margin:0;
  max-width:20ch;
  font-family:'Playfair Display SC','Songti SC','SimSun',serif;
  font-size:clamp(2.1rem,7.4vw,4.4rem);
  line-height:1.14;
  letter-spacing:.05em;
  color:#f2fff4;
  text-shadow:
    0 0 12px rgba(135,255,113,.85),
    0 0 34px rgba(1,205,254,.6),
    0 0 66px rgba(255,113,206,.35);
}

.hero-desc{
  margin:0;
  max-width:44ch;
  font-size:17px;
  line-height:1.8;
  color:#bcd6c2;
}

.hero-fig{
  position:relative;
  margin:12px 0 0;
  width:100%;
  max-width:820px;
  height:clamp(150px,26vw,250px);
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(1,205,254,.3);
  box-shadow:0 26px 60px -34px rgba(1,205,254,.85);
  background:linear-gradient(180deg,#241a3d 0%,#3a2151 44%,#0e1a11 100%);
}

.hero-img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:.55;
  filter:hue-rotate(-12deg) saturate(1.15);
}

.sun{
  position:absolute;
  left:50%;
  top:22%;
  width:min(180px,38%);
  aspect-ratio:1;
  transform:translateX(-50%);
  border-radius:50%;
  background:linear-gradient(180deg,#ffe9a8 0%,#ff71ce 55%,#b967ff 100%);
  filter:blur(.4px);
  box-shadow:0 0 44px rgba(255,113,206,.75);
  opacity:.9;
}

.horizon{
  position:absolute;
  left:-20%;
  right:-20%;
  bottom:-6%;
  height:56%;
  background-image:
    repeating-linear-gradient(90deg,rgba(135,255,113,.55) 0 1px,transparent 1px 42px),
    repeating-linear-gradient(0deg,rgba(1,205,254,.5) 0 1px,transparent 1px 24px);
  transform:perspective(280px) rotateX(66deg);
  transform-origin:bottom center;
  mask-image:linear-gradient(180deg,transparent,#000 40%);
  -webkit-mask-image:linear-gradient(180deg,transparent,#000 40%);
}

/* ---------- 版心 ---------- */
.shell{
  display:grid;
  grid-template-columns:232px minmax(0,1fr);
  gap:26px;
  width:100%;
  max-width:1140px;
  margin:0 auto;
  padding:34px 20px 70px;
  position:relative;
  z-index:1;
}

.shell > *{min-width:0}

.rail{
  position:sticky;
  top:118px;
  align-self:start;
  min-width:0;
  padding:16px 14px;
  border-radius:18px;
  background:linear-gradient(165deg,rgba(135,255,113,.09),rgba(1,205,254,.05));
  border:1px solid rgba(135,255,113,.24);
  backdrop-filter:blur(9px);
  -webkit-backdrop-filter:blur(9px);
}

small{
  display:block;
  font-size:13px;
  line-height:1.5;
  letter-spacing:.22em;
  color:#5ee0b8;
}

.rail-h{
  margin:2px 0 0;
  font-family:'Playfair Display SC','Songti SC',serif;
  font-size:19px;
  line-height:1.4;
  letter-spacing:.1em;
  color:#87ff71;
  text-shadow:0 0 14px rgba(135,255,113,.5);
}

.rail-list{
  list-style:none;
  display:grid;
  gap:2px;
  margin:10px 0 0;
  padding:0;
}

.rail-list a{
  display:block;
  padding:11px 9px;
  min-height:42px;
  font-size:16px;
  line-height:1.3;
  color:#c6dfca;
  text-decoration:none;
  border-radius:10px;
  border-left:2px solid rgba(1,205,254,.35);
  transition:color .16s ease,background .16s ease,border-color .16s ease;
}

.rail-list a:hover,
.rail-list a:focus-visible{
  color:#0b1a0e;
  background:linear-gradient(120deg,#87ff71,#01cdfe);
  border-left-color:#fff;
}

.rail-top{margin:14px 0 0}

.rail-top a{
  display:inline-block;
  padding:9px 10px;
  font-size:16px;
  color:#8fe3ff;
  text-decoration:none;
  border-bottom:1px dashed rgba(1,205,254,.6);
}

/* ---------- 正文流 ---------- */
.stream{
  min-width:0;
  max-width:100%;
  overflow-wrap:anywhere;
  word-break:break-word;
}

.stream > section{
  position:relative;
  margin:0 0 26px;
  padding:26px clamp(16px,3vw,34px) 30px;
  border-radius:18px;
  background:linear-gradient(160deg,rgba(135,255,113,.085),rgba(1,205,254,.055) 60%,rgba(185,103,255,.05));
  border:1px solid rgba(1,205,254,.22);
  backdrop-filter:blur(9px);
  -webkit-backdrop-filter:blur(9px);
  box-shadow:0 26px 52px -40px rgba(1,205,254,.95);
  scroll-margin-top:110px;
}

.stream > section::before{
  content:"";
  position:absolute;
  left:0;
  top:22px;
  bottom:22px;
  width:3px;
  border-radius:3px;
  background:linear-gradient(180deg,#87ff71,#01cdfe,#b967ff);
  opacity:.75;
}

.stream h2{
  margin:2px 0 14px;
  font-family:'Playfair Display SC','Songti SC','SimSun',serif;
  font-size:clamp(1.45rem,3.4vw,2.05rem);
  line-height:1.32;
  letter-spacing:.04em;
  color:#eafff0;
  text-shadow:0 0 18px rgba(1,205,254,.55);
}

.stream h3{
  margin:22px 0 10px;
  font-family:'Playfair Display SC','Songti SC',serif;
  font-size:1.16rem;
  line-height:1.45;
  letter-spacing:.04em;
  color:#a9ffd8;
}

.stream p{
  margin:0 0 15px;
  font-size:16.5px;
  line-height:1.85;
  color:#d7e7da;
}

.stream p:last-child{margin-bottom:0}

.stream a{
  color:#8fe3ff;
  text-decoration-thickness:1px;
  text-underline-offset:3px;
}

.stream a:hover{color:#87ff71}

.stream ol,
.stream ul{
  margin:0 0 15px;
  padding-left:1.3em;
  font-size:16.5px;
  line-height:1.85;
}

.stream li{margin-bottom:7px}

.stream figure,
.stream aside{
  margin:18px 0;
  padding:14px 16px;
  border-radius:14px;
  background:rgba(9,20,13,.6);
  border:1px dashed rgba(135,255,113,.3);
  overflow-wrap:anywhere;
}

.stream blockquote{
  margin:18px 0;
  padding:14px 18px;
  border-left:3px solid #ff71ce;
  border-radius:0 14px 14px 0;
  background:rgba(255,113,206,.08);
  color:#f0dfe9;
}

.stream blockquote p{color:#efdcea}

.stream img{border-radius:14px;margin:14px 0;height:auto}

.stream table{
  display:block;
  width:100%;
  max-width:100%;
  overflow-x:auto;
  border-collapse:collapse;
  margin:16px 0;
  font-size:16px;
  -webkit-overflow-scrolling:touch;
}

.stream th,
.stream td{
  padding:9px 10px;
  border:1px solid rgba(1,205,254,.25);
  text-align:left;
  overflow-wrap:anywhere;
}

.stream th{background:rgba(1,205,254,.1);color:#a9ffd8}

.stream pre{
  overflow-x:auto;
  max-width:100%;
  padding:12px 14px;
  border-radius:12px;
  background:rgba(1,205,254,.1);
  -webkit-overflow-scrolling:touch;
}

.stream code{
  font-family:'Karla',ui-monospace,monospace;
  background:rgba(1,205,254,.12);
  padding:1px 5px;
  border-radius:5px;
}

.stream iframe,
.stream video{width:100%;height:auto;border:0}

.reveal{opacity:0;transform:translateY(18px)}

.reveal.in{
  opacity:1;
  transform:none;
  transition:opacity .6s ease,transform .6s cubic-bezier(.2,.7,.3,1);
}

/* ---------- 页脚 ---------- */
.site-foot{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:1.5fr minmax(0,1fr) minmax(0,1fr) 1.4fr;
  column-gap:22px;
  row-gap:16px;
  width:100%;
  max-width:100%;
  padding:38px clamp(16px,6vw,80px) 20px;
  border-top:1px solid rgba(1,205,254,.28);
  background:linear-gradient(180deg,rgba(10,20,14,.7),rgba(5,11,8,.97));
  overflow-wrap:anywhere;
}

.site-foot > *{min-width:0}

.fbrand{
  margin:0;
  font-family:'Playfair Display SC','Songti SC',serif;
  font-size:20px;
  letter-spacing:.1em;
  color:#eafff1;
  text-shadow:0 0 18px rgba(135,255,113,.6);
}

.flinks{margin:0;font-size:16px}

.flinks small{margin-bottom:8px}

.flinks a{
  display:block;
  padding:7px 0;
  min-height:36px;
  color:#c6dfca;
  text-decoration:none;
  font-size:16px;
}

.flinks a:hover{color:#87ff71}

.fsub{margin:0;display:flex;flex-wrap:wrap;gap:8px}

.fsub small{flex:0 0 100%;margin-bottom:2px}

.finput{
  flex:1 1 110px;
  min-width:0;
  min-height:42px;
  padding:0 12px;
  font-size:16px;
  font-family:inherit;
  color:#eafff1;
  background:rgba(135,255,113,.08);
  border:1px solid rgba(135,255,113,.35);
  border-radius:12px;
}

.finput::placeholder{color:#7fae8c}

.fbtn{
  flex:0 1 auto;
  min-height:42px;
  padding:0 18px;
  font-size:16px;
  font-family:inherit;
  color:#0b1a0e;
  background:linear-gradient(120deg,#87ff71,#01cdfe);
  border:1px solid rgba(255,255,255,.4);
  border-radius:12px;
  cursor:pointer;
  transition:filter .18s ease,transform .18s ease;
}

.fbtn:hover{filter:brightness(1.12);transform:translateY(-1px)}

.fcopy{
  grid-column:1 / -1;
  margin:8px 0 0;
  padding-top:14px;
  border-top:1px solid rgba(1,205,254,.16);
  color:#8fb69b;
  font-size:13px;
  letter-spacing:.08em;
}

/* ---------- 响应式 ---------- */
@media (max-width:900px){
  .shell{
    grid-template-columns:minmax(0,1fr);
    gap:16px;
    padding:22px 16px 54px;
  }

  .rail{
    position:static;
    padding:12px;
  }

  .rail-h{margin-bottom:6px}

  .rail-list{
    display:flex;
    gap:6px;
    overflow-x:auto;
    padding-bottom:4px;
    scrollbar-width:none;
  }

  .rail-list::-webkit-scrollbar{display:none}

  .rail-list a{
    white-space:nowrap;
    border-left:none;
    border:1px solid rgba(1,205,254,.4);
    border-radius:999px;
    padding:10px 14px;
  }

  .rail-top{display:none}

  .hero{min-height:62vh;padding:40px 16px 32px}

  .stream > section{scroll-margin-top:96px}

  .site-foot{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    padding:30px 18px 18px;
  }

  .fbrand{grid-column:1 / -1}
}

@media (max-width:560px){
  .masthead-in{padding:4px 10px;gap:6px}
  .brand{font-size:16px}
  .nav-list a{padding:0 11px;font-size:16px}
  .hero-ghost{opacity:.08}
  .hero-title{max-width:100%}
  .stream > section{padding:22px 16px 26px}
  .site-foot{grid-template-columns:minmax(0,1fr);padding:26px 16px 16px}
  .fsub{flex-wrap:nowrap}
  .finput{flex:1 1 auto}
  .fcopy{grid-column:1 / -1}
  .flinks{font-size:16px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .reveal{opacity:1;transform:none;transition:none}
  .nav-list a,.fbtn{transition:none}
}

/* 兼容旧 UA 的居中兜底 */
@media (min-width:901px){
  .rail-top{text-align:left}
}

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