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

:root{
  --rose:#eb879c;
  --blush:#ffb6c1;
  --ink:#26171a;
  --ink-2:#5a4046;
  --paper:#fdf7f5;
  --glass:rgba(255,255,255,.60);
  --hair:rgba(38,23,26,.13);
  --dock:9rem;
  --font-d:'Abril Fatface',"Songti SC","Noto Serif SC",Georgia,serif;
  --font-b:'Merriweather',"Songti SC","Noto Serif SC",Georgia,serif;
}

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

html{
  scroll-behavior:smooth;
  scroll-padding-bottom:calc(var(--dock) + 1rem);
  overflow-x:hidden;
}

body{
  margin:0;
  font-family:var(--font-b);
  font-size:1.0625rem;
  line-height:1.78;
  color:var(--ink);
  background-color:var(--paper);
  background-image:
    radial-gradient(1100px 560px at 6% -8%, #ffe4ea, rgba(255,228,234,0) 62%),
    radial-gradient(900px 520px at 104% 2%, #ffd5de, rgba(255,213,222,0) 58%),
    linear-gradient(180deg,#fdf7f5 0%,#fbeceb 48%,#f6e4e2 100%);
  background-attachment:fixed;
  padding-bottom:calc(var(--dock) + 2.4rem);
  -webkit-font-smoothing:antialiased;
}

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

h1,h2,h3{
  font-family:var(--font-d);
  font-weight:400;
  line-height:1.16;
  letter-spacing:.005em;
  margin:0;
}

a{color:#a8445c}

:focus-visible{outline:3px solid var(--rose);outline-offset:3px;border-radius:6px}

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

.page{max-width:1140px;margin:0 auto;padding:0 1.05rem}

/* 顶部开篇 */
.hero{
  min-height:44vh;
  display:flex;
  align-items:center;
  gap:1.05rem;
  padding:2.3rem 0 1.7rem;
  animation:fadeUp .3s ease both;
}

.hero-art{
  flex:0 0 auto;
  width:86px;height:86px;
  display:grid;place-items:center;
  border-radius:50%;
  background:linear-gradient(160deg,rgba(255,255,255,.92),rgba(255,182,193,.55));
  border:1px solid rgba(255,255,255,.85);
  box-shadow:
    0 2px 4px rgba(38,23,26,.06),
    0 14px 30px rgba(235,135,156,.28),
    inset 0 1px 0 #fff;
  animation:bob 6s ease-in-out infinite;
}

.hero-art-img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.art-svg{width:62%;height:62%}
.hero-txt{min-width:0}

.kicker{
  margin:0 0 .5rem;
  font-size:1rem;
  letter-spacing:.2em;
  color:#96465c;
}

.hero h1{font-size:clamp(2.1rem,8vw,4rem)}

/* 正文 */
.body-sec{padding-bottom:.4rem}
.prose{max-width:76ch;margin:0 auto}

.prose div{
  background:var(--glass);
  -webkit-backdrop-filter:blur(12px) saturate(1.15);
  backdrop-filter:blur(12px) saturate(1.15);
  border:1px solid rgba(255,255,255,.8);
  border-radius:10px;
  padding:1.5rem 1.15rem 1.3rem;
  box-shadow:
    0 2px 4px rgba(38,23,26,.05),
    0 12px 28px rgba(38,23,26,.07);
  scroll-margin-top:1.2rem;
  scroll-margin-bottom:calc(var(--dock) + 1rem);
}

.prose div + div{margin-top:1.45rem}

.prose h2{font-size:clamp(1.45rem,5vw,2rem);color:#3b2228}
.prose h3{font-size:clamp(1.15rem,4vw,1.42rem);margin-top:1.3rem;color:#3b2228}

.prose hr{
  border:0;height:0;
  border-top:2px dotted rgba(235,135,156,.7);
  width:96px;max-width:40%;
  margin:.85rem 0 1.05rem;
}

.prose p{margin:0 0 1.05rem}
.prose p:last-child{margin-bottom:0}
.prose ul,.prose ol{padding-left:1.3rem;margin:0 0 1.05rem}
.prose li{margin:.32rem 0}
.prose strong{color:#1d1114}

.prose blockquote{
  margin:1.2rem 0;
  padding:.55rem .95rem;
  border-left:4px solid var(--blush);
  background:rgba(255,255,255,.55);
  border-radius:0 10px 10px 0;
  color:var(--ink-2);
}

.prose img{
  border-radius:10px;
  margin:1rem 0;
  box-shadow:0 10px 24px rgba(38,23,26,.13);
}

.prose a{
  text-decoration:underline;
  text-underline-offset:3px;
  transition:color .22s ease;
}
.prose a:hover{color:#7a2c40}

.prose table{width:100%;border-collapse:collapse;font-size:1rem}
.prose th,.prose td{border-bottom:1px solid var(--hair);padding:.5rem;text-align:left}

/* 底部固定导航 */
.dock{
  position:fixed;left:0;right:0;bottom:0;z-index:60;
  background:rgba(253,247,245,.9);
  -webkit-backdrop-filter:blur(16px) saturate(1.3);
  backdrop-filter:blur(16px) saturate(1.3);
  border-top:1px solid var(--hair);
  box-shadow:
    0 -2px 4px rgba(38,23,26,.05),
    0 -12px 34px rgba(38,23,26,.1);
  padding:.45rem .7rem calc(.45rem + env(safe-area-inset-bottom));
  animation:rise .3s ease both;
}

.dock-in{
  display:flex;flex-wrap:wrap;align-items:center;gap:.45rem;
  max-width:1140px;margin:0 auto;
}

.dock-brand{
  order:1;
  display:inline-flex;align-items:center;gap:.42rem;
  min-height:44px;padding:0 .45rem;border-radius:10px;
  color:var(--ink);text-decoration:none;white-space:nowrap;
  font-family:var(--font-d);font-size:1.05rem;
  transition:background .22s ease,transform .22s ease;
}
.dock-brand:hover{background:rgba(255,182,193,.4);transform:translateY(-2px)}

.brand-logo{width:26px;height:26px;border-radius:50%;object-fit:cover}
.brand-dot{
  width:10px;height:10px;border-radius:50%;background:var(--rose);
  box-shadow:0 0 0 4px rgba(255,182,193,.55);
}

.dock-search{order:2;flex:1 1 8rem;display:flex;gap:.35rem;min-width:0}
.dock-search input{
  flex:1 1 auto;min-width:0;height:44px;
  border:1px solid var(--hair);border-radius:10px;
  background:rgba(255,255,255,.85);
  padding:0 .7rem;font:inherit;font-size:1rem;color:var(--ink);
  transition:border-color .22s ease,box-shadow .22s ease;
}
.dock-search input:focus{
  border-color:var(--rose);
  box-shadow:0 0 0 3px rgba(235,135,156,.25);
}
.dock-search button{
  height:44px;padding:0 .85rem;border-radius:10px;border:1px solid transparent;
  background:var(--rose);color:#fff;font:inherit;font-size:1rem;cursor:pointer;
  transition:background .22s ease,transform .22s ease;
}
.dock-search button:hover{background:#d9718a;transform:translateY(-2px)}

.dock-nav{order:3;flex:1 1 100%;min-width:0}
.dock-nav ul{
  display:flex;gap:.15rem;list-style:none;margin:0;padding:0 .1rem .1rem;
  overflow-x:auto;scrollbar-width:none;
}
.dock-nav ul::-webkit-scrollbar{display:none}

.dock-nav a{
  display:inline-flex;align-items:center;gap:.35rem;
  min-height:44px;padding:0 .68rem;border-radius:10px;
  color:var(--ink);text-decoration:none;font-size:1rem;white-space:nowrap;
  transition:background .22s ease,transform .22s ease;
}
.dock-nav a:hover{background:rgba(255,182,193,.42);transform:translateY(-2px)}
.dock-nav a.lit{
  background:rgba(255,182,193,.5);
  box-shadow:inset 0 0 0 1px rgba(235,135,156,.6);
}

.ico{width:14px;height:14px;flex:0 0 auto;color:var(--rose)}

/* 页脚 */
.foot{
  max-width:1140px;margin:2.4rem auto 0;
  padding:1.5rem 1.05rem 0;
  border-top:1px solid var(--hair);
}
.foot-cols{
  display:grid;grid-template-columns:1fr;gap:.3rem;
  margin:0 0 .8rem;font-size:1rem;
}
.foot small{display:block;font-size:1rem;color:var(--ink-2)}

@keyframes rise{from{transform:translateY(16px);opacity:0}to{transform:none;opacity:1}}
@keyframes fadeUp{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes bob{0%,100%{transform:translateY(0) rotate(-3deg)}50%{transform:translateY(-7px) rotate(3deg)}}

@media (min-width:600px){
  .prose div{padding:1.9rem 1.6rem 1.7rem}
  .hero-art{width:112px;height:112px}
}

@media (min-width:720px){
  .foot-cols{grid-template-columns:repeat(3,1fr)}
}

@media (min-width:860px){
  :root{--dock:7rem}
  .dock{padding:.55rem 1.1rem calc(.55rem + env(safe-area-inset-bottom))}
  .dock-in{flex-wrap:nowrap;gap:.85rem}
  .dock-nav{order:2;flex:1 1 auto}
  .dock-nav ul{padding-bottom:0}
  .dock-search{order:3;flex:0 1 17rem}
  .hero-art{width:140px;height:140px}
  .kicker{letter-spacing:.26em}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
  }
}

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