:root{
  --violet:#56228b;
  --violet-soft:#e9dcf6;
  --brown:#8b4513;
  --brown-soft:#f0e2d3;
  --ink:#1f1726;
  --paper:#f8f4ec;
  --paper-2:#fffdf8;
  --line:#ded3c4;
  --r-lg:24px;
  --r-md:18px;
  --r-sm:12px;
  --shadow:0 16px 38px rgba(31,23,38,.12);
  --shadow-soft:0 8px 22px rgba(31,23,38,.07);
}

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

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

body{
  margin:0;
  padding-bottom:96px;
  font-family:"Be Vietnam Pro","Noto Sans","PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  font-size:17px;
  line-height:1.8;
  color:var(--ink);
  background-color:var(--paper);
  background-image:
    radial-gradient(62rem 30rem at 10% -8%, rgba(86,34,139,.12), transparent 62%),
    radial-gradient(50rem 26rem at 94% 6%, rgba(139,69,19,.12), transparent 64%),
    repeating-linear-gradient(93deg, rgba(31,23,38,.022) 0 2px, transparent 2px 7px);
  -webkit-font-smoothing:antialiased;
}

img{max-width:100%;border:0}

a{color:var(--violet);text-decoration:none}
a:hover{text-decoration:underline;text-underline-offset:3px}

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

p{margin:0 0 1.05em}
h1,h2,h3,h4{margin:0 0 .5em;line-height:1.28;font-weight:600;letter-spacing:-.01em}
h1{font-size:clamp(2rem,7.2vw,3.35rem)}
h2{font-size:clamp(1.4rem,4.2vw,1.9rem)}
h3{font-size:1.14rem}
ul,ol{margin:0 0 1.1em;padding-left:1.25em}
li{margin:.38em 0}

blockquote{
  margin:20px 0;
  padding:16px 20px;
  border-left:5px solid var(--violet);
  border-radius:0 var(--r-md) var(--r-md) 0;
  background:var(--violet-soft);
  font-size:1rem;
}
blockquote > :last-child{margin-bottom:0}

table{width:100%;border-collapse:collapse;margin:18px 0;font-size:.97rem}
th,td{padding:10px 12px;border-bottom:1px solid var(--line);text-align:left}
th{background:var(--brown-soft);font-weight:600}

hr{
  height:4px;
  width:72px;
  margin:10px 0 18px;
  border:0;
  border-radius:4px;
  background:linear-gradient(90deg,var(--violet),rgba(139,69,19,.4));
}

.skip{
  position:absolute;
  top:-72px;
  left:14px;
  z-index:80;
  padding:12px 18px;
  border-radius:0 0 var(--r-sm) var(--r-sm);
  background:var(--violet);
  color:#fff;
  font-weight:600;
}
.skip:focus{top:0}

main{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:18px;
  max-width:1180px;
  margin:0 auto;
  padding:16px 16px 44px;
}

/* 首屏错位拼贴 */
.hero{
  position:relative;
  display:grid;
  place-items:center;
  min-height:74svh;
  padding:58px 16px 70px;
  overflow:hidden;
  border-radius:30px 22px 34px 24px;
  background:linear-gradient(158deg,#fdfbf5,#f3ecde 60%,#ecddc9);
  box-shadow:var(--shadow-soft);
}
.hero::before{
  content:"";
  position:absolute;
  inset:-10% -14% auto auto;
  width:60%;
  height:70%;
  border-radius:58% 42% 46% 54% / 52% 48% 52% 48%;
  background:radial-gradient(60% 60% at 40% 40%, rgba(86,34,139,.18), transparent 72%);
  z-index:0;
}
.hero::after{
  content:"";
  position:absolute;
  inset:auto -12% -14% -10%;
  width:70%;
  height:64%;
  border-radius:48% 52% 56% 44% / 50% 46% 54% 50%;
  background:radial-gradient(60% 60% at 50% 50%, rgba(139,69,19,.18), transparent 72%);
  z-index:0;
}

.hero-copy{
  position:relative;
  z-index:4;
  max-width:34ch;
  padding:22px 18px;
  text-align:center;
  border-radius:26px 18px 26px 18px;
  background:radial-gradient(ellipse at center, rgba(255,253,248,.95), rgba(255,253,248,.66) 62%, rgba(255,253,248,0) 100%);
}
.hero h1{margin:0;color:var(--ink)}

.eyebrow{
  margin:0 0 .55em;
  font-size:.86rem;
  font-weight:600;
  letter-spacing:.22em;
  color:var(--brown);
}

.shot{
  position:absolute;
  z-index:2;
  margin:0;
  overflow:hidden;
  aspect-ratio:4/5;
  border:7px solid var(--paper-2);
  border-radius:26px 18px 28px 16px;
  background:linear-gradient(150deg,#dbcbaf,#a9846a);
  box-shadow:var(--shadow);
}
.shot.a{top:6%;left:2%;width:44%;transform:rotate(-4.5deg)}
.shot.b{right:1%;bottom:8%;width:40%;transform:rotate(5deg);border-radius:18px 26px 16px 28px}
.shot .ph{height:100%}

.ph{display:block;width:100%;height:100%;object-fit:cover}

.blob{
  display:block;
  width:100%;
  height:100%;
  min-height:170px;
  border-radius:54% 46% 42% 58% / 56% 44% 56% 44%;
  background:radial-gradient(62% 62% at 38% 30%, #7d4bb5, #56228b 72%);
}
.blob.alt{
  border-radius:44% 56% 58% 42% / 48% 58% 42% 52%;
  background:radial-gradient(62% 62% at 50% 40%, #b06a30, #8b4513 74%);
}

.wedge{
  position:absolute;
  left:0;
  right:0;
  bottom:-1px;
  z-index:3;
  height:56px;
  background:linear-gradient(90deg,var(--violet),var(--brown));
  clip-path:polygon(0 100%,0 46%,100% 0,100% 100%);
  opacity:.9;
}

/* 侧边菜单 */
.rail{
  padding:18px 16px;
  border:1px solid var(--line);
  border-radius:24px 16px 26px 18px;
  background:rgba(255,253,248,.9);
  box-shadow:var(--shadow-soft);
}
.rail h2{margin-bottom:.35em;font-size:1rem;letter-spacing:.08em;color:var(--brown)}
.rail nav{display:grid;gap:6px}
.rail a{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:8px 12px;
  border-bottom:2px solid transparent;
  border-radius:14px;
  color:var(--ink);
  font-weight:500;
  transition:background .25s ease,border-color .25s ease,transform .25s ease;
}
.rail a:hover{background:var(--violet-soft);border-bottom-color:var(--violet);text-decoration:none;transform:translateX(3px)}

.ico{
  flex:0 0 auto;
  width:10px;
  height:10px;
  border-radius:50% 50% 50% 0;
  background:linear-gradient(140deg,var(--violet),var(--brown));
  transform:rotate(-45deg);
}

/* 正文区：内容 article 直接子级 */
main > article[id]{
  padding:26px 20px 22px;
  border-bottom:5px solid var(--violet-soft);
  border-radius:26px 20px 30px 18px;
  background:var(--paper-2);
  box-shadow:var(--shadow-soft);
  scroll-margin-top:76px;
  transition:border-color .3s ease,box-shadow .3s ease,transform .3s ease;
}
main > article[id]:nth-of-type(even){
  border-radius:20px 30px 18px 28px;
  border-bottom-color:var(--brown-soft);
}
main > article[id]:hover{border-bottom-color:var(--violet);box-shadow:var(--shadow)}
main > article[id] > :last-child{margin-bottom:0}
main > article[id] p{color:#2c2433}
main > article[id] h2{color:var(--ink)}
main > article[id] h3{color:var(--violet)}

main > article[id] figure{
  margin:20px 0;
  overflow:hidden;
  border-radius:var(--r-md) var(--r-md) var(--r-lg) var(--r-sm);
  background:var(--brown-soft);
  box-shadow:var(--shadow-soft);
}
main > article[id] figure figcaption{
  padding:10px 14px;
  font-size:.92rem;
  color:#6a5a6f;
  background:var(--paper-2);
}

main > article[id] aside{
  margin:20px 0;
  padding:16px 18px;
  border-radius:var(--r-md);
  border-bottom:4px solid var(--brown-soft);
  background:var(--brown-soft);
}

/* 兜底布局：内页标题块 */
.lead{
  display:grid;
  gap:18px;
  padding:30px 20px 24px;
  border-radius:28px 20px 30px 18px;
  background:linear-gradient(160deg,#fdfbf5,#f1e8d9);
  box-shadow:var(--shadow-soft);
}
.lead h1{margin:0 0 .4em}
.lead-shot{
  margin:0;
  overflow:hidden;
  aspect-ratio:16/10;
  border-radius:22px 16px 24px 14px;
  border:6px solid var(--paper-2);
  background:linear-gradient(150deg,#dbcbaf,#a9846a);
  box-shadow:var(--shadow);
}
.stamp{margin:.6em 0 0;font-size:.95rem;color:#6a5a6f}
.stamp time{font-variant-numeric:tabular-nums}

.body{
  padding:26px 20px 22px;
  border-bottom:5px solid var(--violet-soft);
  border-radius:26px 20px 30px 18px;
  background:var(--paper-2);
  box-shadow:var(--shadow-soft);
}
.body > :last-child{margin-bottom:0}
.body figure{margin:20px 0;overflow:hidden;border-radius:var(--r-md);box-shadow:var(--shadow-soft)}

/* 页脚 */
footer{
  margin-top:44px;
  padding:4px 14px 0;
  border-radius:36px 36px 0 0;
  color:#efe8f5;
  background:linear-gradient(180deg,#2b2136,#1f1726 72%);
}
footer article{max-width:1180px;margin:0 auto}

.cta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-top:24px;
  padding:32px 22px;
  border-radius:26px 18px 26px 18px;
  background:linear-gradient(118deg,var(--violet),#6d33ad 55%,var(--brown));
}
.cta-brand{margin:0;font-size:clamp(1.5rem,5.4vw,2.15rem);font-weight:700;color:#fff}
.cta-btn{
  display:inline-flex;
  align-items:center;
  min-height:48px;
  padding:12px 24px;
  border-radius:999px;
  background:#fff;
  color:var(--ink);
  font-weight:600;
  transition:transform .25s ease;
}
.cta-btn:hover{text-decoration:none;transform:translateY(-2px)}

.fnav{padding:26px 22px 16px}
.fnav nav dl{display:grid;gap:2px;margin:0}
.fnav dt{margin-bottom:.6em;font-size:.85rem;letter-spacing:.2em;color:#bda9d6}
.fnav dd{margin:0}
.fnav a{display:inline-flex;align-items:center;min-height:44px;padding:6px 0;color:#f2ecf8}
.fnav a:hover{color:#fff}

.fbase{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:16px 22px 26px;
  border-top:1px solid rgba(255,255,255,.14);
  font-size:.93rem;
  color:#c8bcd8;
}
.fbase p{margin:0}
.fbase-links{display:flex;flex-wrap:wrap;gap:16px}
.fbase-links a{display:inline-flex;align-items:center;min-height:40px;color:#c8bcd8}
.fbase-links a:hover{color:#fff}

/* 底部固定条 */
.dock{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:60;
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 10px calc(8px + env(safe-area-inset-bottom));
  border-top:1px solid rgba(255,255,255,.14);
  background:rgba(31,23,38,.95);
  backdrop-filter:blur(10px);
}
.dock-logo{
  display:grid;
  place-items:center;
  flex:0 0 auto;
  width:44px;
  height:44px;
  border-radius:52% 48% 50% 10px;
  background:linear-gradient(140deg,var(--violet),var(--brown));
  color:#fff;
}
.dock-logo img{border-radius:inherit;object-fit:cover}
.dock-scroll{
  display:flex;
  gap:6px;
  overflow-x:auto;
  padding-bottom:2px;
  scrollbar-width:thin;
  scroll-snap-type:x proximity;
}
.dock-scroll a{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:44px;
  padding:9px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.1);
  color:#f4eefb;
  font-size:.95rem;
  white-space:nowrap;
  scroll-snap-align:start;
  transition:background .25s ease,transform .25s ease;
}
.dock-scroll a:hover{background:var(--violet);text-decoration:none;transform:translateY(-2px)}
.dock .ico{background:linear-gradient(140deg,#d9c2f2,#e0c3a4)}

/* 动效 */
@media (prefers-reduced-motion: no-preference){
  .hero-copy{animation:rise .7s ease both}
  .hero .shot.a{animation:rise .9s .1s ease both}
  .hero .shot.b{animation:rise .9s .2s ease both}
  main > article[id]{animation:rise .6s ease both}
  @keyframes rise{
    from{opacity:0;transform:translateY(16px)}
    to{opacity:1}
  }
  .hero .shot.a{--rot:-4.5deg}
  .hero .shot.b{--rot:5deg}
}

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

/* 桌面 */
@media (min-width:960px){
  main{
    grid-template-columns:minmax(0,1fr) 296px;
    column-gap:38px;
    row-gap:24px;
    padding:26px 24px 56px;
  }
  .hero{grid-column:1 / -1;min-height:70vh}
  main > article[id]{grid-column:1}
  .rail{
    grid-column:2;
    grid-row:2 / span 30;
    position:sticky;
    top:24px;
    align-self:start;
  }
  .lead{grid-template-columns:1.15fr .85fr;align-items:center;padding:44px 34px}
  .lead-shot{aspect-ratio:5/4}
  .rail.rail-left{grid-column:1;position:static}
}

@media (min-width:1180px){
  body{font-size:18px}
  main > article[id]{padding:34px 30px 28px}
  .body{padding:34px 30px 28px}
}

/* 窄屏微调 */
@media (max-width:600px){
  .hero{min-height:76svh;padding:50px 12px 62px}
  .hero-copy{padding:18px 12px}
  .shot.a{width:46%;left:1%;top:5%;opacity:.94}
  .shot.b{width:42%;right:0;bottom:9%;opacity:.94}
  .shot{border-width:5px}
  .wedge{height:44px}
  main > article[id]{padding:22px 16px 18px;border-radius:22px 16px 24px 16px}
  .cta{padding:26px 18px}
  .fnav,.fbase{padding-left:16px;padding-right:16px}
}

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