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

:root{
  --bg:#000000;
  --card:#121212;
  --card-2:#0b0b0b;
  --ink:#e9e9e9;
  --dim:#a2a2a2;
  --line:#232323;
  --line-2:#2f2f2f;
  --gold:#e6c07b;
  --blue:#0a1220;
  --neon:#7fb0ff;
  --radius:10px;
  color-scheme:dark;
}

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

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

body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:Karla,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  font-size:17px;
  line-height:1.75;
  font-weight:400;
  letter-spacing:.01em;
  overflow-x:hidden;
}

img{max-width:100%;height:auto;display:block}
p{margin:0 0 1em}
a{color:inherit;text-decoration:none}
a:hover{color:var(--gold)}
:focus-visible{outline:2px solid var(--gold);outline-offset:3px;border-radius:4px}

h1,h2,h3,h4{
  font-family:"Playfair Display SC","Songti SC",Georgia,serif;
  font-weight:400;
  line-height:1.3;
  letter-spacing:.02em;
  color:#fff;
  margin:0 0 .5em;
}

hr{
  border:0;
  height:1px;
  background:linear-gradient(90deg,var(--gold),rgba(230,192,123,0));
  margin:14px 0 18px;
}

.skip{
  position:absolute;
  left:12px;
  top:-60px;
  z-index:60;
  background:var(--card);
  color:#fff;
  padding:12px 18px;
  border-radius:var(--radius);
  border:1px solid var(--line-2);
  transition:top .2s ease;
}
.skip:focus{top:12px}

/* 顶部细条 */
.topstrip{
  background:var(--blue);
  border-bottom:1px solid #131c2c;
}
.topstrip p{
  max-width:1180px;
  margin:0 auto;
  padding:8px 20px;
  font-size:16px;
  letter-spacing:.28em;
  text-transform:uppercase;
  color:#cfd8e6;
  text-align:center;
}

/* 页头：品牌居中，菜单分列两侧 */
.masthead{
  position:sticky;
  top:0;
  z-index:40;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:12px;
  padding:10px 20px;
  background:rgba(0,0,0,.94);
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(8px);
}

.wing{display:flex;min-width:0}
.wing--l{justify-content:flex-start}
.wing--r{justify-content:flex-end}
.wing ul{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:2px;
  margin:0;
  padding:0;
  list-style:none;
}
.wing a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:8px 11px;
  font-size:16px;
  color:#cfcfcf;
  border-bottom:1px solid transparent;
  transition:color .2s ease,border-color .2s ease;
}
.wing a:hover,.wing a:focus-visible{
  color:var(--gold);
  border-bottom-color:var(--gold);
}

.brand{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:44px;
  padding:6px 14px;
  color:#fff;
}
.brand img{
  width:44px;
  height:44px;
  border-radius:50%;
  border:1px solid var(--line-2);
}
.brand-word{
  font-family:"Playfair Display SC",Georgia,serif;
  font-size:19px;
  letter-spacing:.14em;
  white-space:nowrap;
  text-shadow:0 0 12px rgba(230,192,123,.35);
}

/* 主区 */
.shell{
  max-width:1180px;
  margin:0 auto;
  padding:34px 20px 10px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 264px;
  gap:44px;
  align-items:start;
}

main{min-width:0}
article{min-width:0}

/* Hero文字在上，图在下 */
.hero{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  min-height:45vh;
  padding:26px 12px 0;
  overflow:hidden;
}

.badge{
  display:inline-block;
  margin:0 0 18px;
  padding:6px 16px;
  font-size:16px;
  letter-spacing:.2em;
  color:var(--gold);
  background:var(--card-2);
  border:1px solid var(--line-2);
  border-radius:999px;
  text-shadow:0 0 10px rgba(230,192,123,.45);
}

.hero-title{
  font-size:clamp(28px,5vw,46px);
  color:#fff;
  margin:0 0 14px;
  max-width:20ch;
  text-shadow:0 0 18px rgba(127,176,255,.18);
}

.lede{
  color:var(--dim);
  font-size:17px;
  max-width:56ch;
  margin:0 auto 22px;
}

.hero-media{
  width:100%;
  max-height:36vh;
  margin:6px 0 0;
  overflow:hidden;
  border-radius:var(--radius);
  border-bottom:2px solid var(--gold);
  background:var(--card);
}
.hero-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  will-change:transform;
}

/* 正文 */
.doc{padding-top:32px}
.doc > div{
  background:var(--card);
  border:1px solid var(--line);
  border-bottom:2px solid var(--line-2);
  border-radius:var(--radius);
  padding:26px 24px;
  margin:0 0 26px;
  scroll-margin-top:120px;
  transition:border-bottom-color .3s ease,background .3s ease;
}
.doc > div:hover{border-bottom-color:var(--gold)}
.doc > div > *:last-child{margin-bottom:0}
.doc > div > h2{
  font-size:23px;
  color:#fff;
}
.doc h3{font-size:19px;color:#f2f2f2}
.doc p{color:#d5d5d5}
.doc ul,.doc ol{padding-left:1.3em;color:#d5d5d5}
.doc li{margin:0 0 .5em}
.doc blockquote{
  margin:0 0 1em;
  padding:12px 18px;
  border-left:2px solid var(--gold);
  background:var(--card-2);
  border-radius:0 var(--radius) var(--radius) 0;
  color:#dcdcdc;
}
.doc img{border-radius:var(--radius);margin:0 0 1em}
.doc strong{color:#fff}
.doc a{color:var(--gold);border-bottom:1px solid rgba(230,192,123,.4)}
.doc a:hover{color:#fff;border-bottom-color:#fff}

/* 右侧栏 */
.rail{
  position:sticky;
  top:104px;
  background:var(--card-2);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:18px 16px;
}
.rail-title{
  font-size:17px;
  margin:0;
  color:#fff;
  line-height:1.45;
}
.rail-list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:2px;
}
.rail-list a{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:8px 10px;
  font-size:16px;
  color:#c4c4c4;
  border-left:2px solid var(--line-2);
  border-radius:0 6px 6px 0;
  transition:color .2s ease,border-color .2s ease,background .2s ease;
}
.rail-list a:hover,.rail-list a:focus-visible{
  color:var(--gold);
  border-left-color:var(--gold);
  background:#141414;
}

/* 页脚：仅 p 与 small，四栏网格 */
footer{
  max-width:1180px;
  margin:56px auto 0;
  padding:34px 20px 26px;
  border-top:1px solid var(--line);
  display:grid;
  grid-template-columns:1.7fr 1fr 1fr 1fr;
  gap:18px 24px;
  align-items:start;
}
.foot-brand{
  font-family:"Playfair Display SC",Georgia,serif;
  font-size:23px;
  line-height:1.4;
  color:#fff;
  margin:0;
  text-shadow:0 0 14px rgba(230,192,123,.28);
}
.foot-col{
  font-size:16px;
  color:var(--dim);
  margin:0;
  line-height:1.9;
}
footer small{
  grid-column:1 / -1;
  display:block;
  text-align:center;
  font-size:16px;
  color:#8b8b8b;
  border-top:1px solid var(--line);
  padding-top:18px;
  margin-top:6px;
  letter-spacing:.06em;
}

/* 回到顶部 */
.totop{
  position:fixed;
  right:16px;
  bottom:16px;
  z-index:50;
  min-height:44px;
  padding:10px 18px;
  font-family:inherit;
  font-size:16px;
  color:#000;
  background:var(--gold);
  border:0;
  border-radius:999px;
  box-shadow:0 0 18px rgba(230,192,123,.4);
  opacity:0;
  pointer-events:none;
  transform:translateY(8px);
  transition:opacity .3s ease,transform .3s ease;
  cursor:pointer;
}
.totop.on{opacity:1;pointer-events:auto;transform:none}

/* 滚动出现 */
.js .reveal{opacity:0;transform:translateY(16px);transition:opacity .65s ease,transform .65s ease}
.js .reveal.in{opacity:1;transform:none}

/* 移动端 */
@media (max-width:900px){
  .shell{grid-template-columns:minmax(0,1fr);gap:30px}
  .rail{position:static;top:auto}
  footer{grid-template-columns:1fr 1fr}
  .foot-brand{grid-column:1 / -1}
}

@media (max-width:760px){
  body{font-size:16px}
  .masthead{
    position:static;
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:4px;
    padding:8px 12px 10px;
  }
  .brand{order:-1;width:100%}
  .wing{flex:1 1 auto;justify-content:center}
  .wing--l,.wing--r{justify-content:center}
  .wing ul{justify-content:center}
  .wing a{padding:8px 9px;font-size:16px}
  .topstrip p{font-size:16px;letter-spacing:.18em}
  .shell{padding:20px 14px 6px}
  .hero{min-height:0;padding:14px 4px 0}
  .hero-title{max-width:100%}
  .hero-media{max-height:44vh}
  .doc{padding-top:24px}
  .doc > div{padding:20px 16px;margin-bottom:20px;scroll-margin-top:16px}
  footer{grid-template-columns:1fr;padding:26px 14px 22px;margin-top:36px}
  .foot-brand{font-size:21px}
  .totop{right:12px;bottom:12px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .js .reveal{opacity:1;transform:none;transition:none}
  .hero-media img{transform:none!important}
  .doc > div,.totop,.wing a,.rail-list a{transition:none}
}

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