@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600&family=Cormorant+Garamond:ital,wght@0,300;0,500;0,700;1,300;1,500&family=Crimson+Pro:ital,wght@0,300;0,400;0,600;1,300;1,400&display=swap');

*{box-sizing:border-box}
html{background:#000;scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  margin:0;
  background:#000;
  color:#e9e9e4;
  font-family:system-ui,-apple-system,"Segoe UI","Noto Sans SC","PingFang SC",sans-serif;
  font-size:17px;
  line-height:1.7;
  letter-spacing:.01em;
}
a{color:#00ff80;text-decoration:none}
img{display:block;max-width:100%}
p{margin:0 0 1rem}
h1,h2,h3{text-wrap:balance}
:focus-visible{outline:3px solid #00ff80;outline-offset:2px}

/* ===== 顶部：品牌独占一行 + 平铺锚点 ===== */
.hd{
  position:sticky;
  top:0;
  z-index:50;
  background:#000;
  border-bottom:1px solid #00ff80;
  padding:.7rem clamp(.85rem,3vw,2.2rem) 0;
}
.brand{
  display:block;
  font-family:"Cinzel","Cormorant Garamond",serif;
  font-weight:600;
  font-size:clamp(1.3rem,4.6vw,2.1rem);
  line-height:1.1;
  letter-spacing:.08em;
  color:#00ff80;
  padding:0 0 .55rem;
  border-bottom:1px solid #1d1d1d;
}
.nav{
  overflow-x:auto;
  overscroll-behavior-x:contain;
  scrollbar-width:none;
  padding:.2rem 0 .45rem;
}
.nav::-webkit-scrollbar{display:none}
.nav p{display:flex;flex-wrap:nowrap;gap:.1rem;margin:0}
.nav a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:.45rem .75rem;
  color:#e4e4de;
  font-size:.96rem;
  white-space:nowrap;
  border:1px solid transparent;
  border-radius:0;
}
.nav a:hover,.nav a.is-on{background:#00ff80;color:#000;border-color:#00ff80}

/* ===== 首屏 ===== */
.hero{
  position:relative;
  min-height:70vh;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  align-items:flex-end;
  text-align:right;
  padding:5.5rem clamp(1rem,4vw,3rem) 2.6rem;
  overflow:hidden;
  background:#060606;
  border-bottom:1px solid #00ff80;
  isolation:isolate;
}
.hero-img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  filter:grayscale(1) contrast(1.3);
  opacity:.5;
  z-index:0;
}
.hero::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:44%;
  background:#0000ff;
  clip-path:polygon(0 100%,100% 26%,100% 100%);
  z-index:1;
  opacity:.92;
}
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(97deg,rgba(0,0,0,.2) 6%,rgba(0,0,0,.9) 74%);
  z-index:1;
}
.hero-txt{position:relative;z-index:2;max-width:44rem;margin-left:auto}
.hero-txt h1{
  margin:0;
  font-family:"Cormorant Garamond","Cinzel",serif;
  font-weight:700;
  font-size:clamp(1.95rem,7vw,4.6rem);
  line-height:1.05;
  color:#fff;
  letter-spacing:.01em;
  text-shadow:0 2px 0 #000;
}
.hero-txt h1::after{
  content:"";
  display:block;
  width:72px;
  height:8px;
  background:#00ff80;
  margin:1rem 0 0 auto;
}
.hero-sub{
  margin:.9rem 0 0 auto;
  max-width:33ch;
  font-size:1rem;
  color:#c9ffe4;
}

/* ===== 主体骨架 ===== */
.wrap{
  max-width:1220px;
  margin:0 auto;
  display:grid;
  grid-template-columns:252px minmax(0,1fr);
  border-left:1px solid #171717;
  border-right:1px solid #171717;
}
.side{
  position:sticky;
  top:96px;
  align-self:start;
  padding:1.7rem 1.1rem 2rem;
  border-right:1px solid #1f1f1f;
}
.side h2{
  margin:0;
  font-family:"Cinzel",serif;
  font-size:1rem;
  letter-spacing:.2em;
  color:#00ff80;
}
.side .subtitle{
  margin:.3rem 0 1rem;
  padding-bottom:.75rem;
  border-bottom:1px solid #1f1f1f;
  font-size:.95rem;
  color:#8b8b84;
}
.side-list{display:flex;flex-direction:column}
.side-list a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:.35rem .6rem;
  border-left:3px solid #202020;
  color:#dcdcd6;
  font-size:.95rem;
}
.side-list a:hover{background:#00ff80;color:#000;border-left-color:#0000ff}

.art{min-width:0;padding:2.2rem clamp(1rem,3.4vw,3rem) 3.2rem}
.art article{
  padding:2.3rem 0;
  border-top:1px solid #1a1a1a;
  scroll-margin-top:104px;
}
.art article:first-child{border-top:0;padding-top:.4rem}
.art h2{
  margin:0 0 .9rem;
  font-family:"Cormorant Garamond","Cinzel",serif;
  font-weight:700;
  font-size:clamp(1.5rem,3.7vw,2.35rem);
  line-height:1.16;
  color:#fff;
}
.art h2::before{
  content:"";
  display:block;
  width:58px;
  height:7px;
  background:#00ff80;
  margin-bottom:.75rem;
}
.art h3{
  margin:1.7rem 0 .55rem;
  font-size:1.16rem;
  font-weight:700;
  color:#00ff80;
}
.art h2+.subtitle,.art h2+p.subtitle{
  margin:-.35rem 0 1.2rem;
  font-size:1rem;
  color:#a5ffcd;
}
.art p{max-width:66ch;margin:0 0 1.05rem}
.art ul,.art ol{max-width:66ch;margin:0 0 1.15rem;padding-left:1.4rem}
.art li{margin:.4rem 0}
.art li::marker{color:#00ff80}
.art a{border-bottom:1px solid currentColor}
.art strong,.art b{color:#fff;font-weight:700}
.art blockquote{
  margin:1.5rem 0;
  padding:.9rem 1.15rem;
  border-left:7px solid #0000ff;
  background:#080814;
  color:#e2e2ff;
}
.art blockquote p:last-child{margin-bottom:0}
.art img{margin:1.1rem 0;border:1px solid #2b2b2b}
.art figure{margin:1.2rem 0}
.art figcaption{font-size:.9rem;color:#8b8b84}
.art hr{border:0;border-top:1px solid #1f1f1f;margin:1.8rem 0}
.art code{
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:.94em;
  background:#101010;
  border:1px solid #262626;
  padding:.1rem .35rem;
}
.art pre{
  overflow-x:auto;
  padding:.9rem 1rem;
  background:#0c0c0c;
  border:1px solid #262626;
  color:#d8ffe8;
}
.art pre code{background:none;border:0;padding:0}
.art table{width:100%;border-collapse:collapse;margin:1.2rem 0;font-size:.97rem}
.art th,.art td{border:1px solid #2a2a2a;padding:.55rem .7rem;text-align:left}
.art th{background:#00ff80;color:#000;font-weight:700}

/* ===== 栏目卡片 ===== */
.cards{
  max-width:1220px;
  margin:0 auto;
  padding:2.6rem clamp(1rem,4vw,3rem) 3.2rem;
  border-top:1px solid #00ff80;
}
.cards h2{
  margin:0;
  font-family:"Cormorant Garamond","Cinzel",serif;
  font-weight:700;
  font-size:clamp(1.4rem,3.4vw,2rem);
  color:#fff;
}
.cards .subtitle{margin:.25rem 0 1.5rem;font-size:1rem;color:#8b8b84}
.cards-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:.9rem;
  counter-reset:c;
}
.card{
  counter-increment:c;
  display:block;
  min-height:104px;
  padding:1.1rem 1.25rem 1.4rem;
  background:#0a0a0a;
  border:1px solid #2b2b2b;
  border-radius:28px;
  box-shadow:0 10px 0 rgba(255,255,255,.04);
  color:#fff;
}
.card-n{display:block;font-family:"Cinzel",serif;font-size:.86rem;letter-spacing:.12em;color:#00ff80}
.card-n::before{content:counter(c,decimal-leading-zero)}
.card-t{
  display:block;
  margin-top:.45rem;
  font-family:"Cormorant Garamond","Cinzel",serif;
  font-weight:700;
  font-size:1.28rem;
  line-height:1.2;
}
.card:hover{background:#0000ff;border-color:#00ff80;transform:translateY(-4px);color:#fff}

/* ===== 页脚 ===== */
.ft{
  border-top:1px solid #00ff80;
  padding:2.4rem clamp(1rem,4vw,3rem) 1.8rem;
  background:#000;
}
.ft-top{
  max-width:1220px;
  margin:0 auto;
  display:grid;
  grid-template-columns:1fr 1.1fr;
  gap:2rem;
  align-items:start;
}
.ft-brand{
  display:inline-block;
  font-family:"Cormorant Garamond","Cinzel",serif;
  font-weight:700;
  font-size:clamp(2.1rem,6.6vw,4.4rem);
  line-height:.96;
  color:#00ff80;
  letter-spacing:.02em;
}
.ft-cols{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.1rem}
.ft-dl{margin:0}
.ft-dl dt{
  font-family:"Cinzel",serif;
  font-size:.8rem;
  letter-spacing:.18em;
  color:#6f6f68;
  margin-bottom:.55rem;
}
.ft-dl dd{margin:0}
.ft-dl a{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:.2rem .3rem;
  color:#d8d8d2;
  font-size:.95rem;
}
.ft-dl a:hover{background:#00ff80;color:#000}
.ft-copy{
  max-width:1220px;
  margin:1.9rem auto 0;
  padding-top:.95rem;
  border-top:1px solid #1c1c1c;
  font-size:.92rem;
  color:#7c7c75;
}

/* ===== 移动端 ===== */
@media (max-width:900px){
  .wrap{grid-template-columns:minmax(0,1fr);border-left:0;border-right:0}
  .side{
    position:static;
    border-right:0;
    border-bottom:1px solid #1f1f1f;
    padding:1.3rem clamp(.9rem,4vw,2rem) 1.2rem;
  }
  .side-list{flex-direction:row;flex-wrap:wrap;gap:.3rem}
  .side-list a{
    border-left:0;
    border:1px solid #262626;
    padding:.3rem .7rem;
    font-size:.92rem;
  }
  .art{padding:1.6rem clamp(.9rem,4vw,2rem) 2.4rem}
  .art article{padding:1.9rem 0;scroll-margin-top:150px}
  .cards-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ft-top{grid-template-columns:minmax(0,1fr);gap:1.6rem}
  .hero{min-height:64vh;padding-top:4rem}
  .hero-txt h1{font-size:clamp(1.8rem,8.6vw,2.6rem)}
}
@media (max-width:560px){
  body{font-size:16.5px}
  .hero{min-height:60vh;align-items:flex-end;padding:3.4rem 1rem 2rem}
  .hero::before{height:52%}
  .hero-txt h1::after{margin-top:.75rem}
  .hero-sub{font-size:.98rem;max-width:26ch}
  .cards-grid{grid-template-columns:minmax(0,1fr)}
  .card{min-height:0;border-radius:24px}
  .ft-cols{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ft-dl dt{font-size:.76rem}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .card,.card:hover{transform:none}
  *{transition:none!important;animation:none!important}
}

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