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

:root{
  --violet:#56228b;
  --violet-soft:#7d47b4;
  --earth:#8b4513;
  --ink:#1f1726;
  --cream:#faf5ec;
  --sand:#f0e5d3;
  --paper:#fffdf8;
  --leaf:#5d7f4d;
  --muted:#5b5462;
  --line:rgba(31,23,38,.14);
  --soft:0 18px 42px -34px rgba(31,23,38,.85);
  --nav-h:96px;
  --font:'IBM Plex Sans','PingFang SC','Hiragino Sans GB','Microsoft YaHei',system-ui,sans-serif;
}

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

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

body{
  margin:0;
  display:flex;
  flex-direction:column;
  min-height:100vh;
  font-family:var(--font);
  font-size:16.5px;
  line-height:1.72;
  color:var(--ink);
  background-color:var(--cream);
  background-image:
    radial-gradient(circle at 10% 6%, rgba(139,69,19,.12), transparent 44%),
    radial-gradient(circle at 90% 18%, rgba(86,34,139,.11), transparent 42%),
    radial-gradient(circle at 66% 96%, rgba(93,127,77,.13), transparent 46%);
  background-attachment:fixed;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  opacity:.5;
  background-image:repeating-linear-gradient(48deg, rgba(139,69,19,.05) 0 1px, transparent 1px 7px);
}

img{max-width:100%;height:auto;display:block}
a{color:var(--violet);text-decoration:none}
a:hover{color:var(--earth)}
p{margin:0 0 1em}
h1,h2,h3{margin:0 0 .6em;line-height:1.28;font-weight:600;letter-spacing:-.005em}
ul{margin:0 0 1em;padding-left:1.2em}

.visually-hidden{
  position:absolute;
  width:1px;height:1px;
  overflow:hidden;
  clip:rect(0 0 0 0);
  white-space:nowrap;
}

/* ---------- 顶栏：品牌居中，胶囊菜单分列两侧 ---------- */
.masthead{
  position:sticky;
  top:0;
  z-index:60;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:10px;
  padding:10px clamp(12px,3vw,28px);
  background:rgba(250,245,236,.94);
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(9px);
}

.masthead > nav{display:contents}

.pill-set{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0;
  padding:0;
  list-style:none;
}

.pill-left{grid-column:1;justify-self:end;justify-content:flex-end}
.pill-right{grid-column:3;justify-self:start}

.pill-set a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:0 14px;
  border-radius:999px;
  border:1px solid rgba(86,34,139,.3);
  color:var(--ink);
  font-size:16px;
  font-weight:500;
  transition:background .22s ease,color .22s ease,border-color .22s ease,transform .22s ease;
}

.pill-set a:hover,
.pill-set a:focus-visible,
.pill-set a.is-active{
  background:var(--violet);
  border-color:var(--violet);
  color:#fff;
  transform:translateY(-1px);
}

.brand{
  grid-column:2;
  justify-self:center;
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  padding:0 18px;
  border-radius:999px;
  background:linear-gradient(140deg,var(--violet),#3f1466 60%,var(--earth));
  color:#fff;
  font-size:17px;
  font-weight:600;
  letter-spacing:.06em;
  box-shadow:0 14px 26px -18px rgba(31,23,38,.95);
}

.brand:hover{color:#fff;transform:translateY(-1px)}
.brand-mark{width:26px;height:26px;border-radius:50%;object-fit:cover}

/* ---------- Hero：左图右文，紧凑 ---------- */
.hero{
  position:relative;
  overflow:hidden;
  display:grid;
  grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);
  align-items:center;
  gap:clamp(16px,4vw,44px);
  min-height:45vh;
  max-width:1120px;
  margin:0 auto;
  padding:clamp(18px,3.5vw,36px) clamp(16px,4vw,28px) clamp(24px,4vw,40px);
}

.hero-ghost{
  position:absolute;
  left:50%;
  top:46%;
  transform:translate(-50%,-50%);
  z-index:0;
  font-size:clamp(64px,15vw,166px);
  font-weight:700;
  letter-spacing:.08em;
  line-height:1;
  color:rgba(86,34,139,.09);
  white-space:nowrap;
  pointer-events:none;
}

.hero-media,
.hero-copy{position:relative;z-index:1}

.hero-media{
  aspect-ratio:4 / 3.4;
  overflow:hidden;
  border-radius:46% 54% 48% 52% / 52% 44% 56% 48%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255,255,255,.5), transparent 55%),
    linear-gradient(142deg, rgba(86,34,139,.2), rgba(139,69,19,.24));
  box-shadow:0 28px 52px -34px rgba(31,23,38,.9);
}

.hero-media img,
.hero-media .hero-img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.hero-copy{text-align:center}

.hero-copy h1{
  font-size:clamp(30px,5.6vw,48px);
  line-height:1.18;
  margin:0 0 14px;
  font-weight:600;
}

.lede{
  margin:0 auto;
  max-width:27em;
  color:var(--muted);
  font-size:16.5px;
}

/* ---------- 正文区：左侧正文，右侧 aside ---------- */
.wrap{
  max-width:1120px;
  margin:0 auto;
  padding:0 clamp(16px,4vw,28px) clamp(42px,7vw,76px);
  display:grid;
  grid-template-columns:minmax(0,1fr) 272px;
  gap:clamp(20px,3.4vw,36px);
  align-items:start;
}

.stage{min-width:0}

.prose > article{
  position:relative;
  overflow:hidden;
  background:var(--paper);
  border-radius:0;
  padding:clamp(22px,3.4vw,38px);
  margin:0 0 clamp(20px,3vw,30px);
  box-shadow:var(--soft);
  scroll-margin-top:calc(var(--nav-h) + 18px);
  border-top:3px solid rgba(86,34,139,.25);
}

.prose > article::before{
  content:"";
  position:absolute;
  right:-70px;
  bottom:-90px;
  width:230px;
  height:210px;
  pointer-events:none;
  border-radius:52% 48% 44% 56% / 56% 46% 54% 44%;
  background:radial-gradient(circle at 42% 42%, rgba(93,127,77,.16), transparent 68%);
}

.prose > article > *{position:relative;z-index:1}

.prose h2{
  font-size:clamp(21px,3.1vw,28px);
  margin:.15em 0 .7em;
}

.prose h3{
  font-size:clamp(18px,2.4vw,21px);
  margin:.2em 0 .6em;
  color:#33223f;
}

.prose h2 > span,
.prose h3 > span{
  position:relative;
  display:inline-block;
  padding-bottom:6px;
}

.prose h2 > span::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:6px;
  border-radius:3px;
  background:linear-gradient(90deg, rgba(139,69,19,.55), rgba(86,34,139,.35));
}

.prose p,
.prose li{color:#2c2433}

.prose ul,
.prose ol{padding-left:1.3em}
.prose li{margin-bottom:.45em}

.prose strong{color:var(--violet)}
.prose a{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.prose blockquote{
  margin:1.2em 0;
  padding:14px 18px;
  border-left:4px solid var(--earth);
  background:rgba(139,69,19,.07);
  border-radius:0;
}
.prose img{margin:1em 0;border-radius:0;box-shadow:var(--soft)}

/* ---------- 右侧栏 ---------- */
.rail{
  position:sticky;
  top:calc(var(--nav-h) + 16px);
  background:var(--paper);
  border-radius:0;
  border-top:4px solid var(--violet);
  padding:18px 16px 20px;
  box-shadow:var(--soft);
}

.rail h2{
  font-size:17px;
  margin:0 0 10px;
}

.rail h2 span{
  display:inline-block;
  padding-bottom:4px;
  border-bottom:2px dotted rgba(139,69,19,.6);
}

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

.rail a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:4px 10px;
  border-left:2px solid transparent;
  color:var(--ink);
  font-size:16px;
  line-height:1.4;
  transition:background .2s ease,border-color .2s ease,color .2s ease;
}

.rail a:hover,
.rail a:focus-visible,
.rail a.is-active{
  border-left-color:var(--violet);
  background:rgba(86,34,139,.07);
  color:var(--violet);
}

/* ---------- 页脚 ---------- */
.foot{
  margin-top:auto;
  background:var(--ink);
  color:#f2eade;
  padding:clamp(26px,4vw,42px) clamp(16px,4vw,28px) 18px;
}

.foot-grid,
.foot-base{
  max-width:1120px;
  margin:0 auto;
}

.foot-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:clamp(18px,3vw,40px);
  align-items:start;
  padding-bottom:20px;
  border-bottom:1px solid rgba(242,234,222,.18);
}

.foot-addr{
  font-style:normal;
  display:flex;
  flex-direction:column;
  gap:4px;
}

.foot-brand{
  font-size:19px;
  font-weight:600;
  letter-spacing:.08em;
  color:#fff;
}

.foot-host{
  font-size:16px;
  color:rgba(242,234,222,.68);
  word-break:break-all;
}

.foot-form h3{
  font-size:16px;
  margin:0 0 10px;
  font-weight:500;
  color:rgba(242,234,222,.85);
}

.foot-form h3 span{
  display:inline-block;
  padding-bottom:3px;
  border-bottom:1px dotted rgba(242,234,222,.6);
}

.foot-form{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:flex-end;
  justify-content:flex-end;
}

.foot-form h3{flex:1 0 100%;text-align:right}

.foot-form input{
  flex:1 1 150px;
  min-height:44px;
  padding:0 12px;
  font-family:inherit;
  font-size:16px;
  color:var(--ink);
  border-radius:0;
  border:1px solid rgba(242,234,222,.35);
  background:var(--paper);
}

.foot-form button{
  min-height:44px;
  padding:0 20px;
  font-family:inherit;
  font-size:16px;
  font-weight:600;
  color:var(--ink);
  cursor:pointer;
  border:0;
  border-radius:999px;
  background:#e9c99a;
  transition:background .2s ease,transform .2s ease;
}

.foot-form button:hover{background:#f3dcb8;transform:translateY(-1px)}

.foot-base{
  display:flex;
  flex-wrap:wrap;
  gap:12px 20px;
  align-items:center;
  justify-content:space-between;
  padding-top:16px;
}

.foot-copy{
  margin:0;
  font-size:16px;
  color:rgba(242,234,222,.72);
}

.foot-links{
  display:flex;
  flex-wrap:wrap;
  gap:4px 18px;
  list-style:none;
  margin:0;
  padding:0;
}

.foot-links a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  font-size:16px;
  color:rgba(242,234,222,.86);
}

.foot-links a:hover{color:#fff;text-decoration:underline}

/* ---------- 滚动入场 ---------- */
.js .prose > article{
  opacity:0;
  transform:translateY(16px);
  transition:opacity .55s ease,transform .55s ease;
}

.js .prose > article.in{
  opacity:1;
  transform:none;
}

/* ---------- 响应式 ---------- */
@media (max-width:940px){
  .wrap{grid-template-columns:minmax(0,1fr)}
  .rail{position:static;order:2;margin-bottom:24px}
  .prose > article{scroll-margin-top:150px}
}

@media (max-width:760px){
  :root{--nav-h:160px}
  .masthead{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:8px;
    padding:8px 10px 10px;
  }
  .brand{order:-1}
  .pill-left,
  .pill-right{justify-content:center}
  .pill-set a{padding:0 11px}
  .hero{
    grid-template-columns:minmax(0,1fr);
    min-height:0;
    text-align:center;
  }
  .hero-copy{order:1}
  .hero-media{order:2;aspect-ratio:16 / 10;border-radius:42% 58% 46% 54% / 50% 44% 56% 50%}
  .hero-ghost{font-size:clamp(58px,22vw,120px);top:38%}
  .foot-grid{grid-template-columns:1fr}
  .foot-form{justify-content:flex-start}
  .foot-form h3{text-align:left}
  .foot-base{flex-direction:column;align-items:flex-start}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{transition-duration:.01ms !important;animation-duration:.01ms !important}
  .js .prose > article{opacity:1;transform:none}
}

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