@import url('https://fonts.googleapis.com/css2?family=Abril+Fatface&family=Merriweather:wght@300;400;700&display=swap');

:root{
  --ink:#261717;
  --red:#ff0000;
  --pink:#ff1493;
  --cream:#f7e8e1;
  --body:#eed9d2;
  --muted:#c9a8a2;
  --line:rgba(255,255,255,.13);
  --panel:rgba(38,23,23,.66);
  --shadow:0 20px 46px -20px rgba(0,0,0,.86);
}

*{box-sizing:border-box}

html{scroll-behavior:smooth}

body{
  margin:0;
  background:var(--ink);
  color:var(--body);
  font-family:'Merriweather',"Songti SC","Noto Serif SC",Georgia,serif;
  font-size:17px;
  line-height:1.8;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

body::before,
body::after{
  content:"";
  position:fixed;
  inset:-22% -14%;
  z-index:0;
  pointer-events:none;
}

body::before{
  background:
    radial-gradient(38% 42% at 16% 20%, rgba(255,0,0,.55), transparent 62%),
    radial-gradient(42% 46% at 80% 14%, rgba(255,20,147,.5), transparent 66%),
    radial-gradient(52% 50% at 64% 80%, rgba(255,0,0,.26), transparent 70%),
    radial-gradient(46% 46% at 24% 88%, rgba(255,20,147,.34), transparent 72%);
  filter:blur(46px) saturate(1.35);
  mix-blend-mode:screen;
  animation:drift 11s ease-in-out infinite alternate;
}

body::after{
  background:conic-gradient(from 210deg at 60% 40%, rgba(255,0,0,.36), rgba(255,20,147,.34), rgba(38,23,23,0), rgba(255,0,0,.3));
  filter:blur(72px) saturate(1.15);
  opacity:.55;
  mix-blend-mode:screen;
  animation:sweep 12s ease-in-out infinite alternate;
}

@keyframes drift{
  0%{transform:translate3d(-2%,-1%,0) scale(1)}
  100%{transform:translate3d(3%,2%,0) scale(1.12)}
}

@keyframes sweep{
  0%{transform:rotate(-4deg) scale(1.02)}
  100%{transform:rotate(5deg) scale(1.1)}
}

a{color:#ff9dc8}
a:hover{color:#fff}
:focus-visible{outline:2px solid var(--pink);outline-offset:3px}

/* ---------- 顶部两行：品牌行 + 药丸菜单行 ---------- */
.masthead{
  position:sticky;
  top:0;
  z-index:20;
  padding:10px clamp(14px,4vw,44px) 12px;
  background:linear-gradient(180deg, rgba(38,23,23,.94), rgba(38,23,23,.7));
  border-bottom:1px solid var(--line);
  -webkit-backdrop-filter:blur(14px);
  backdrop-filter:blur(14px);
}

.brandrow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  text-decoration:none;
  color:var(--cream);
  font-family:'Abril Fatface','Merriweather',serif;
  font-size:clamp(19px,4.4vw,26px);
  line-height:1.2;
  letter-spacing:.05em;
}

.brand-logo{
  width:34px;
  height:34px;
  border-radius:50%;
  object-fit:cover;
  border:1px solid rgba(255,255,255,.35);
}

.contact{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:40px;
  padding:0 16px;
  border-radius:999px;
  font-size:16px;
  text-decoration:none;
  color:#fff;
  background:linear-gradient(120deg,var(--red),var(--pink));
  box-shadow:0 10px 24px -12px var(--pink);
}

.dot{
  width:7px;
  height:7px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 0 0 4px rgba(255,255,255,.3);
}

.pillbar ul{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:10px 0 0;
  padding:0;
  list-style:none;
}

.pillbar a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:0 15px;
  border-radius:999px;
  font-size:16px;
  line-height:1.2;
  text-decoration:none;
  color:var(--cream);
  border:1px solid rgba(255,255,255,.22);
  background:rgba(255,255,255,.05);
  transition:background .25s ease,color .25s ease,border-color .25s ease;
}

.pillbar a:hover,
.pillbar a:focus-visible{
  color:#fff;
  border-color:transparent;
  background:linear-gradient(120deg,rgba(255,0,0,.9),rgba(255,20,147,.9));
}

/* ---------- 主视觉 ---------- */
main{position:relative;z-index:1}

.hero{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  min-height:100svh;
  overflow:hidden;
  border-radius:0 0 50% 50% / 0 0 9vh 9vh;
  margin-bottom:clamp(26px,5vw,54px);
}

.hero-art{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:.52;
  filter:saturate(1.2);
}

.hero-veil{
  position:absolute;
  inset:0;
  background:
    linear-gradient(255deg, rgba(38,23,23,.95) 6%, rgba(38,23,23,.46) 48%, rgba(38,23,23,.88) 96%),
    radial-gradient(62% 60% at 82% 28%, rgba(255,20,147,.42), transparent 72%);
}

.hero-copy{
  position:relative;
  z-index:2;
  margin-left:auto;
  max-width:24ch;
  padding:0 clamp(18px,5vw,72px);
  text-align:right;
}

h1{
  margin:0 0 16px;
  font-family:'Abril Fatface','Merriweather',serif;
  font-weight:400;
  font-size:clamp(31px,7vw,64px);
  line-height:1.15;
  letter-spacing:.01em;
  background:linear-gradient(100deg,#ffffff,#ffd6e6 44%,var(--pink));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.hero-sub{
  margin:0;
  margin-left:auto;
  max-width:32ch;
  font-size:16px;
  line-height:1.7;
  color:var(--muted);
}

/* ---------- 正文骨架 ---------- */
.wrap{
  position:relative;
  z-index:1;
  padding:0 clamp(14px,4vw,44px) 64px;
}

.stage{
  display:grid;
  grid-template-columns:minmax(0,1fr) 282px;
  gap:clamp(18px,3vw,34px);
  align-items:start;
  max-width:1180px;
  margin:0 auto;
}

.sheet{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:4px;
  box-shadow:var(--shadow);
  padding:clamp(18px,3.2vw,40px);
  -webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);
  min-width:0;
}

.sheet article[id]{
  scroll-margin-top:152px;
  padding-block:clamp(20px,3vw,34px);
  border-top:1px solid var(--line);
}

.sheet article[id]:first-child{
  border-top:0;
  padding-top:0;
}

.sheet h2{
  margin:.35em 0 .55em;
  font-family:'Abril Fatface','Merriweather',serif;
  font-weight:400;
  font-size:clamp(22px,3.4vw,31px);
  line-height:1.3;
  color:#fff;
}

.sheet h3{
  margin:1.5em 0 .45em;
  font-size:19px;
  line-height:1.4;
  color:#ffd8e7;
}

.sheet p{margin:0 0 1em}
.sheet ul,.sheet ol{padding-left:1.25em}
.sheet li{margin:.35em 0}
.sheet img{max-width:100%;height:auto;border-radius:4px}
.sheet blockquote{
  margin:1.2em 0;
  padding:.6em 1em;
  border-left:3px solid var(--pink);
  background:rgba(255,20,147,.09);
}
.sheet article{min-width:0}

small{
  display:inline-block;
  font-size:14px;
  line-height:1.5;
  letter-spacing:.24em;
  text-indent:.24em;
  color:var(--pink);
}

/* ---------- 右侧栏 ---------- */
.rail{
  position:sticky;
  top:152px;
  padding:18px;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:4px;
  box-shadow:var(--shadow);
  -webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);
}

.rail h2{
  margin:.15em 0 .7em;
  font-family:'Abril Fatface','Merriweather',serif;
  font-weight:400;
  font-size:21px;
  line-height:1.3;
  color:#fff;
}

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

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

.rail-list a:hover,
.rail-list a:focus-visible{
  background:rgba(255,20,147,.16);
  border-left-color:var(--pink);
  color:#fff;
}

/* ---------- 页脚单行 ---------- */
.foot{
  position:relative;
  z-index:1;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px 22px;
  padding:20px clamp(14px,4vw,44px);
  border-top:1px solid var(--line);
  background:rgba(38,23,23,.8);
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
}

.foot-brand{
  font-family:'Abril Fatface','Merriweather',serif;
  font-size:17px;
  letter-spacing:.05em;
  color:#fff;
}

.foot-copy{
  margin-inline:auto;
  font-size:16px;
  color:var(--muted);
}

.foot-links{
  display:flex;
  flex-wrap:wrap;
  gap:4px 18px;
}

.foot-links a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  font-size:16px;
  text-decoration:none;
  color:var(--muted);
}

.foot-links a:hover{color:#fff}

/* ---------- 滚动显现 ---------- */
.js .reveal{
  opacity:0;
  transform:translateY(18px);
  transition:opacity .7s ease,transform .7s ease;
}

.js .reveal.on{
  opacity:1;
  transform:none;
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  body::before,
  body::after{animation:none}
  .js .reveal{opacity:1;transform:none;transition:none}
}

/* ---------- 断点 ---------- */
@media (max-width:900px){
  .stage{grid-template-columns:minmax(0,1fr)}
  .rail{position:static;order:2}
  .sheet article[id]{scroll-margin-top:176px}
}

@media (max-width:680px){
  .pillbar ul{
    flex-wrap:nowrap;
    overflow-x:auto;
    padding-bottom:2px;
    scrollbar-width:none;
  }
  .pillbar ul::-webkit-scrollbar{display:none}
  .pillbar a{flex:0 0 auto;white-space:nowrap}
}

@media (max-width:560px){
  body{font-size:16px;line-height:1.75}
  .hero{border-radius:0 0 50% 50% / 0 0 6vh 6vh}
  .hero-copy{max-width:100%}
  .hero-sub{max-width:100%}
  .sheet{padding:16px}
  .foot{justify-content:center;text-align:center}
  .foot-copy{margin-inline:auto;order:2;flex:0 0 100%}
  .foot-links{order:3;justify-content:center}
}

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