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

:root{
  --paper:#ffffff;
  --wash:#f5f5f5;
  --ink:#1f1f1f;
  --sub:#4a4a4a;
  --soft:#8d8d8d;
  --line:rgba(31,31,31,.10);
  --shadow:0 4px 6px rgba(0,0,0,.05);
  --shadow-lift:0 18px 38px rgba(0,0,0,.10);
  --r-lg:24px;
  --r-md:18px;
}

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

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

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

img{max-width:100%;height:auto;display:block}
figure{margin:0}

h1,h2,h3,h4{
  font-family:'Cinzel',Georgia,'Songti SC','SimSun',serif;
  font-weight:600;
  line-height:1.3;
  letter-spacing:.03em;
  margin:0 0 .6em;
}

h2{font-size:clamp(22px,3vw,30px)}
h3{font-size:clamp(18px,2.2vw,22px)}

a{color:var(--ink)}
mark{background:rgba(31,31,31,.12);color:inherit;padding:0 .15em;border-radius:4px}

/* 顶部：品牌居中，菜单两翼 */
.top{
  position:sticky;
  top:0;
  z-index:20;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  align-items:center;
  gap:14px;
  padding:10px clamp(14px,3vw,34px);
  background:rgba(255,255,255,.9);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
}

.top-nav{display:flex;flex-wrap:wrap;align-items:center;gap:2px}

.side-l{justify-content:flex-end}
.side-r{display:flex;align-items:center;gap:12px;justify-content:flex-start}

.top-nav a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 10px;
  font-size:16px;
  color:var(--sub);
  text-decoration:none;
  white-space:nowrap;
  border-radius:11px;
  transition:background .25s ease,color .25s ease;
}

.top-nav a:hover,.top-nav a:focus-visible{background:var(--wash);color:var(--ink)}

.brand{
  justify-self:center;
  font-family:'Cinzel',Georgia,'Songti SC',serif;
  font-size:clamp(18px,2.3vw,25px);
  font-weight:700;
  letter-spacing:.18em;
  color:var(--ink);
  text-decoration:none;
  white-space:nowrap;
  padding:6px 4px;
}

.find{
  display:flex;
  align-items:center;
  gap:6px;
  height:48px;
  padding:0 4px 0 14px;
  background:var(--wash);
  border:1px solid var(--line);
  border-radius:999px;
}

.find input{
  width:104px;
  min-width:0;
  border:0;
  background:none;
  font:inherit;
  font-size:16px;
  color:var(--ink);
  outline:none;
}

.find button{
  display:grid;
  place-items:center;
  flex:0 0 auto;
  width:40px;
  height:40px;
  border:0;
  border-radius:50%;
  background:var(--ink);
  color:#fff;
  cursor:pointer;
  transition:transform .2s ease;
}

.find button:hover{transform:scale(1.06)}

/* Hero：全宽大图 + 点阵蒙版 */
.hero{padding:14px clamp(12px,2.4vw,24px) 0}

.hero-fig{
  position:relative;
  display:grid;
  place-items:center;
  min-height:clamp(340px,70vh,620px);
  border-radius:var(--r-lg);
  overflow:hidden;
  background:#161616;
  isolation:isolate;
}

.hero-fig.is-bare{background:linear-gradient(150deg,#1f1f1f,#3a3a3a)}

.hero-img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  z-index:0;
  transform:scale(1.06);
  will-change:transform;
}

.hero-veil{
  position:absolute;
  inset:0;
  z-index:1;
  background-image:
    radial-gradient(circle at center,rgba(255,255,255,.22) 1px,transparent 1.4px),
    linear-gradient(180deg,rgba(12,12,12,.45),rgba(12,12,12,.8));
  background-size:18px 18px,100% 100%;
}

.hero-copy{
  position:relative;
  z-index:2;
  max-width:760px;
  padding:clamp(26px,6vw,64px) clamp(18px,5vw,40px);
  text-align:center;
  color:#fff;
}

.hero-copy h1{
  margin:0 0 16px;
  font-size:clamp(29px,5.4vw,54px);
  letter-spacing:.06em;
  line-height:1.16;
  text-shadow:0 2px 24px rgba(0,0,0,.35);
}

.hero-copy p{
  margin:0 auto;
  max-width:44ch;
  font-size:clamp(15px,1.8vw,18px);
  line-height:1.7;
  color:rgba(255,255,255,.86);
}

/* 主体：左侧栏 + 内容流 */
.shell{
  display:grid;
  grid-template-columns:214px minmax(0,1fr);
  align-items:start;
  gap:clamp(18px,3vw,34px);
  max-width:1150px;
  margin:0 auto;
  padding:clamp(22px,3.4vw,40px) clamp(12px,2.4vw,24px) 64px;
}

.rail{
  position:sticky;
  top:104px;
  padding:18px 16px 20px;
  background:var(--paper);
  border-radius:var(--r-md);
  box-shadow:var(--shadow);
}

.rail h2{
  margin:0 0 10px;
  font-size:13px;
  letter-spacing:.26em;
  color:var(--soft);
}

.rail h2 > span{position:relative;display:inline-block}

.rail ol{
  counter-reset:rail;
  list-style:none;
  margin:0;
  padding:0;
}

.rail li{counter-increment:rail}

.rail a{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:4px 6px;
  font-size:16px;
  line-height:1.4;
  color:var(--sub);
  text-decoration:none;
  border-radius:9px;
  transition:background .22s ease,color .22s ease;
}

.rail a::before{
  content:counter(rail,decimal-leading-zero);
  flex:0 0 auto;
  font-family:'Cinzel',Georgia,serif;
  font-size:12px;
  letter-spacing:.06em;
  color:#b3b3b3;
}

.rail a:hover,.rail a:focus-visible,.rail a.hit{background:var(--wash);color:var(--ink)}

.flow{
  display:grid;
  gap:18px;
  min-width:0;
}

.flow > div{
  min-width:0;
  padding:clamp(20px,3.2vw,40px);
  background:var(--paper);
  border-radius:var(--r-md);
  box-shadow:var(--shadow);
  scroll-margin-top:112px;
  transition:box-shadow .3s ease,transform .3s ease,opacity .6s ease;
}

.flow > div:hover{box-shadow:var(--shadow-lift)}

@media (hover:hover){
  .has-js .flow > div.in:hover{transform:translateY(-3px)}
}

@media (min-width:901px){
  .flow > div:nth-child(odd){max-width:97%}
  .flow > div:nth-child(even){max-width:88%;margin-left:auto;border-radius:var(--r-md) var(--r-md) 6px var(--r-md)}
  .flow > div:nth-child(3n){max-width:100%;border-radius:var(--r-lg)}
}

/* 正文排版 */
.flow h2 > span,.flow h3 > span{position:relative;display:inline-block}
.flow h2 > span::after,.flow h3 > span::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-5px;
  height:2px;
  border-radius:2px;
  background:var(--ink);
  opacity:.16;
}

.flow p{margin:0 0 1em}
.flow p:last-child{margin-bottom:0}
.flow ul,.flow ol{margin:0 0 1em;padding-left:1.3em}
.flow li{margin:.35em 0}
.flow a{text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.flow a:hover{text-decoration-thickness:2px}
.flow img{border-radius:14px;width:100%;margin:0 0 1em}
.flow blockquote{
  margin:0 0 1em;
  padding:12px 0 12px 18px;
  border-left:3px solid var(--ink);
  color:var(--sub);
}
.flow pre{overflow:auto;padding:14px;background:var(--wash);border-radius:12px}
.flow figure{margin:0 0 1em}
.flow figcaption{font-size:14px;color:var(--soft)}
.flow > div > :first-child{margin-top:0}
.flow > div > :last-child{margin-bottom:0}

.has-js .flow > div{opacity:0;transform:translateY(18px)}
.has-js .flow > div.in{opacity:1;transform:none}

/* 页脚 */
.foot{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:12px 28px;
  max-width:1150px;
  margin:0 auto;
  padding:34px clamp(14px,2.6vw,26px) 46px;
  background:var(--paper);
  border-top:1px solid var(--line);
}

.foot-brand{
  font-family:'Cinzel',Georgia,'Songti SC',serif;
  font-size:clamp(20px,3.4vw,33px);
  font-weight:700;
  letter-spacing:.14em;
  text-decoration:none;
  color:var(--ink);
  display:inline-flex;
  align-items:center;
  min-height:44px;
}

.foot dl{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:2px 8px;
  margin:0;
}

.foot dt{font-size:13px;letter-spacing:.24em;color:var(--soft)}
.foot dd{margin:0}

.foot nav a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 6px;
  font-size:16px;
  color:var(--sub);
  text-decoration:none;
  border-bottom:1px solid transparent;
  transition:border-color .2s ease,color .2s ease;
}

.foot nav a:hover,.foot nav a:focus-visible{color:var(--ink);border-bottom-color:var(--ink)}

.copy{
  margin:0 0 0 auto;
  font-size:13px;
  letter-spacing:.1em;
  color:var(--soft);
}

.to-top{
  position:fixed;
  right:16px;
  bottom:16px;
  z-index:30;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 18px;
  border-radius:999px;
  background:var(--ink);
  color:#fff;
  font-size:16px;
  text-decoration:none;
  box-shadow:0 10px 22px rgba(0,0,0,.2);
  transition:transform .2s ease;
}

.to-top:hover{transform:translateY(-2px)}

:where(a,button,input):focus-visible{outline:2px solid var(--ink);outline-offset:2px}

/* 中屏 */
@media (max-width:1100px){
  .find input{width:70px}
}

/* 窄屏 */
@media (max-width:900px){
  .top{
    grid-template-columns:1fr;
    justify-items:center;
    gap:8px;
    padding:10px 14px;
  }
  .brand{order:-1}
  .side-l,.side-r-nav{justify-content:center}
  .side-r{flex-direction:column;width:100%;gap:8px;justify-content:center}
  .top-nav a{min-height:44px;padding:0 8px;font-size:16px}
  .find{width:100%;max-width:340px;margin:0 auto}
  .find input{width:100%;flex:1 1 auto}
  .hero{padding:10px 12px 0}
  .hero-fig{min-height:min(64vh,440px);border-radius:var(--r-md)}
  .shell{
    grid-template-columns:1fr;
    padding:18px 12px 52px;
    gap:16px;
  }
  .rail{position:static;padding:14px}
  .rail ol{display:flex;flex-wrap:wrap;gap:2px 8px}
  .rail a{padding:4px 8px}
  .flow > div{max-width:100%;border-radius:var(--r-md);scroll-margin-top:20px}
  .foot{padding:26px 14px 40px;gap:10px 16px}
  .copy{margin:0;width:100%}
}

@media (max-width:420px){
  body{font-size:16px}
  .hero-copy h1{font-size:clamp(26px,8vw,34px)}
  .to-top{right:12px;bottom:12px;padding:0 14px;font-size:15px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .has-js .flow > div{opacity:1;transform:none;transition:none}
  .hero-img{transform:none}
  .to-top,.top-nav a,.find button{transition:none}
}

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