@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,400;0,500;1,400&display=swap');

:root{
  --ink:#1f1726;
  --ink-2:#2b2036;
  --violet:#56228b;
  --brown:#8b4513;
  --sand:#c98f5f;
  --cream:#efe6dd;
  --body-txt:#ded2cb;
  --mute:#b6a6c1;
  --shell:1160px;
}

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

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

body{
  margin:0;
  font-family:'JetBrains Mono',ui-monospace,'PingFang SC','Hiragino Sans GB','Microsoft YaHei',monospace;
  font-size:17px;
  line-height:1.72;
  color:var(--cream);
  background-color:var(--ink);
  background-image:
    radial-gradient(closest-side,rgba(86,34,139,.55),transparent 72%),
    radial-gradient(closest-side,rgba(139,69,19,.42),transparent 72%),
    radial-gradient(closest-side,rgba(86,34,139,.28),transparent 74%);
  background-repeat:no-repeat;
  background-size:120vw 92vh,92vw 74vh,110vw 70vh;
  background-position:116% -12%,-24% 4%,52% 108%;
  overflow-x:hidden;
}

body::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:1;
  opacity:.05;
  pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

a{color:var(--sand)}

h1,h2,h3{font-weight:500;letter-spacing:.01em}

img{max-width:100%}

/* ---------- 顶部：品牌居中，菜单分列两侧 ---------- */
.top{
  position:sticky;
  top:0;
  z-index:9;
  background:rgba(31,23,38,.86);
  border-bottom:1px solid rgba(201,143,95,.2);
  backdrop-filter:blur(10px);
}

.bar{
  max-width:var(--shell);
  margin:0 auto;
  padding:10px 16px;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
}

.side{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  flex:1 1 0;
  min-width:0;
}
.side-l{justify-content:flex-start}
.side-r{justify-content:flex-end}

.pill{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:0 14px;
  border-radius:999px;
  font-size:15px;
  text-decoration:none;
  color:var(--cream);
  background:rgba(86,34,139,.3);
  border:1px solid rgba(201,143,95,.26);
  transition:background .22s ease,color .22s ease,transform .22s ease,box-shadow .22s ease;
}
.pill:hover,.pill:focus-visible,.pill.is-on{
  background:var(--brown);
  color:#fff5ec;
  transform:translateY(-2px);
  box-shadow:0 10px 20px rgba(0,0,0,.3);
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:9px;
  padding:5px 14px 5px 6px;
  border-radius:999px;
  text-decoration:none;
  color:var(--cream);
  font-size:18px;
  letter-spacing:.06em;
  background:linear-gradient(120deg,rgba(86,34,139,.62),rgba(139,69,19,.5));
  transition:box-shadow .25s ease;
}
.brand:hover{box-shadow:0 0 0 3px rgba(201,143,95,.35)}
.brand .mark{
  width:40px;
  height:40px;
  border-radius:50% 44% 50% 46%;
  object-fit:cover;
  background:var(--ink-2);
}
.brand-txt{padding-right:4px}

.side li{animation:rise .55s cubic-bezier(.2,.7,.3,1) both}
.side-l li:nth-child(1){animation-delay:.04s}
.side-l li:nth-child(2){animation-delay:.1s}
.side-l li:nth-child(3){animation-delay:.16s}
.side-r li:nth-child(1){animation-delay:.1s}
.side-r li:nth-child(2){animation-delay:.16s}
.side-r li:nth-child(3){animation-delay:.22s}
.side-r li:nth-child(4){animation-delay:.28s}

@keyframes rise{
  from{opacity:0;transform:translateY(10px)}
  to{opacity:1;transform:none}
}

/* ---------- 版心 ---------- */
.wrap{
  position:relative;
  z-index:2;
  max-width:var(--shell);
  margin:0 auto;
  padding:22px 16px 66px;
  display:grid;
  grid-template-columns:212px minmax(0,1fr);
  gap:26px 30px;
  align-items:start;
}

/* ---------- 首屏 ---------- */
.hero{
  grid-column:1/-1;
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);
  align-items:center;
  gap:24px;
  min-height:45vh;
  padding:22px 0 6px;
}

.hero-copy h1{
  margin:0;
  font-size:clamp(28px,4.6vw,46px);
  line-height:1.24;
  text-align:left;
  text-wrap:balance;
}

.hero-art{
  position:relative;
  min-height:216px;
  height:100%;
  overflow:hidden;
  border-radius:34px 84px 34px 84px;
  background:
    radial-gradient(closest-side,rgba(139,69,19,.62),transparent 70%) 78% 16%/84% 84% no-repeat,
    radial-gradient(closest-side,rgba(86,34,139,.66),transparent 72%) 14% 84%/86% 86% no-repeat;
}

.shot{
  position:absolute;
  object-fit:cover;
  display:block;
  box-shadow:0 20px 42px rgba(0,0,0,.42);
}
.shot:nth-child(1){
  width:62%;
  height:80%;
  left:0;
  top:0;
  border-radius:28px 66px 26px 60px;
}
.shot:nth-child(2){
  width:54%;
  height:66%;
  right:0;
  bottom:0;
  border-radius:64px 26px 60px 26px;
}

/* ---------- 侧栏（内容左侧） ---------- */
.rail{
  position:sticky;
  top:96px;
  padding:16px 14px;
  border-radius:22px 44px 22px 44px;
  background:rgba(43,32,54,.76);
  border:1px solid rgba(201,143,95,.18);
}

.rail small{
  display:block;
  font-size:12px;
  letter-spacing:.24em;
  color:var(--sand);
}
.rail h2{
  margin:3px 0 12px;
  font-size:18px;
  letter-spacing:.14em;
}

.rail-list{
  list-style:none;
  margin:0;
  padding:0;
  counter-reset:rail;
  display:grid;
  gap:2px;
}
.rail-list a{
  display:flex;
  align-items:center;
  gap:9px;
  min-height:42px;
  padding:4px 8px;
  border-radius:12px;
  font-size:15px;
  line-height:1.4;
  color:var(--mute);
  text-decoration:none;
  transition:background .2s ease,color .2s ease;
}
.rail-list a::before{
  counter-increment:rail;
  content:counter(rail,decimal-leading-zero);
  font-size:12px;
  color:var(--sand);
}
.rail-list a:hover,.rail-list a.is-on{
  background:rgba(139,69,19,.34);
  color:var(--cream);
}
.rail-list li{animation:rise .5s ease both}
.rail-list li:nth-child(2){animation-delay:.05s}
.rail-list li:nth-child(3){animation-delay:.1s}
.rail-list li:nth-child(4){animation-delay:.15s}
.rail-list li:nth-child(5){animation-delay:.2s}
.rail-list li:nth-child(6){animation-delay:.25s}
.rail-list li:nth-child(7){animation-delay:.3s}

/* ---------- 正文 ---------- */
.reader{min-width:0}

.body{padding:0}

.body > article{
  padding:24px;
  border-radius:18px;
  background:rgba(86,34,139,.16);
  scroll-margin-top:150px;
}
.body > article + article{margin-top:14px}
.body > article:nth-child(odd){background:rgba(139,69,19,.14)}
.body > article:first-child{padding-top:26px}

.body small{
  display:block;
  margin:0 0 6px;
  font-size:12px;
  letter-spacing:.24em;
  color:var(--sand);
}

.body h2{
  margin:0 0 14px;
  font-size:clamp(21px,2.5vw,28px);
  line-height:1.32;
}
.body small + h2{margin-top:0}

.body h3{
  margin:22px 0 8px;
  font-size:19px;
  line-height:1.4;
  color:#f6ece2;
}

.body p{margin:0 0 14px;color:var(--body-txt)}

.body ul,.body ol{margin:0 0 16px;padding-left:22px}
.body li{margin:0 0 6px}
.body li::marker{color:var(--sand)}

.body strong{color:#fff2e6}

.body blockquote{
  margin:18px 0;
  padding:12px 18px;
  border-radius:16px 34px 16px 34px;
  background:rgba(139,69,19,.24);
  color:#f0e2d5;
}
.body blockquote p:last-child{margin:0}

.body img{
  display:block;
  height:auto;
  margin:16px 0;
  border-radius:18px;
}

.body figure{margin:18px 0}

.body table{
  display:block;
  width:100%;
  max-width:100%;
  overflow-x:auto;
  border-collapse:collapse;
  font-size:15px;
}
.body th,.body td{
  padding:8px 12px;
  text-align:left;
  border-bottom:1px solid rgba(201,143,95,.24);
}
.body th{color:var(--sand);font-weight:500}

.body iframe{
  display:block;
  width:100%;
  max-width:100%;
  border:0;
  aspect-ratio:16/9;
  border-radius:18px;
}

.body a{color:var(--sand);text-underline-offset:3px}
.body a:hover{color:#ffd7ac}

/* ---------- 页脚 ---------- */
.bottom{
  position:relative;
  z-index:2;
  margin-top:20px;
  border-top:1px solid rgba(201,143,95,.22);
  background:linear-gradient(180deg,rgba(86,34,139,.3),rgba(31,23,38,.94) 46%);
}

.foot-top{
  max-width:var(--shell);
  margin:0 auto;
  padding:32px 16px 10px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:end;
  gap:18px 30px;
}

.cta{
  padding:clamp(18px,3vw,30px);
  border-radius:30px 70px 30px 32px;
  background:linear-gradient(135deg,rgba(139,69,19,.62),rgba(86,34,139,.48));
}

.cta-word{
  margin:0 0 14px;
  font-size:clamp(22px,3.3vw,34px);
  line-height:1.3;
}

.btn-top{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 20px;
  border-radius:999px;
  background:var(--ink);
  color:var(--cream);
  font-size:15px;
  text-decoration:none;
  transition:transform .2s ease,background .2s ease;
}
.btn-top:hover{transform:translateY(-2px);background:#150f1b}

.foot-side{display:grid;gap:10px;align-content:start;justify-items:end}

address{
  font-style:normal;
  font-size:15px;
  color:var(--sand);
  letter-spacing:.1em;
}

.foot-links{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  justify-content:flex-end;
}
.foot-links a{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:0 14px;
  border-radius:999px;
  color:var(--mute);
  font-size:15px;
  text-decoration:none;
  background:rgba(86,34,139,.24);
  transition:color .2s ease,background .2s ease;
}
.foot-links a:hover{color:var(--cream);background:rgba(139,69,19,.42)}

.foot-nav{
  max-width:var(--shell);
  margin:0 auto;
  padding:8px 16px;
}
.foot-nav dl{
  margin:0;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:2px 26px;
}
.foot-nav dt,.foot-nav dd{margin:0}
.foot-nav a{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  color:var(--mute);
  font-size:15px;
  text-decoration:none;
  transition:color .2s ease;
}
.foot-nav a:hover{color:var(--sand)}

.copy{
  max-width:var(--shell);
  margin:0 auto;
  padding:8px 16px 32px;
  font-size:14px;
  color:#8f7f98;
}

/* ---------- 断点 ---------- */
@media (max-width:900px){
  .wrap{grid-template-columns:minmax(0,1fr)}
  .reader{order:1}
  .rail{order:2;position:static;top:auto}
  .rail-list{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
  }
  .rail-list a{
    min-height:40px;
    padding:4px 12px;
    border-radius:999px;
    background:rgba(86,34,139,.34);
  }
  .foot-top{grid-template-columns:minmax(0,1fr)}
  .foot-side{justify-items:start}
  .foot-links{justify-content:flex-start}
}

@media (max-width:700px){
  body{font-size:16px}
  .brand{order:-1;flex:1 1 100%;justify-content:center;padding:5px 14px}
  .side-l,.side-r{flex:1 1 100%;justify-content:center}
  .brand-txt{padding-right:0}
  .hero{
    grid-template-columns:minmax(0,1fr);
    gap:16px;
    min-height:0;
    padding-top:14px;
  }
  .hero-art{min-height:190px;border-radius:26px 62px 26px 62px}
  .body > article{padding:18px;scroll-margin-top:170px}
  .foot-nav dl{grid-template-columns:minmax(0,1fr)}
  .foot-nav a{min-height:44px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition:none!important}
}

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