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

:root{
  --paper:#f5e6c8;
  --paper-hi:#fbf1dc;
  --paper-lo:#eed9b0;
  --ink:#262117;
  --ink-soft:#5b4d38;
  --accent:#d4a574;
  --line:rgba(38,33,23,.18);
  --serif:'Noto Serif TC',Georgia,'Songti SC','SimSun',serif;
  --sans:'Noto Sans TC','PingFang SC',system-ui,-apple-system,sans-serif;
  --rail:248px;
}

*{box-sizing:border-box}

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

body{
  margin:0;
  padding-left:var(--rail);
  background:
    radial-gradient(120% 90% at 100% 0,rgba(212,165,116,.35),transparent 55%),
    linear-gradient(180deg,var(--paper-hi),var(--paper) 30%,var(--paper-lo));
  background-attachment:fixed;
  color:var(--ink);
  font-family:var(--serif);
  font-size:17px;
  line-height:1.78;
  letter-spacing:.01em;
}

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

h1,h2,h3,h4{
  font-family:var(--serif);
  font-weight:600;
  letter-spacing:.02em;
  color:var(--ink);
}

img{max-width:100%}

/* ---- 左侧竖排导航 ---- */
.topbar{
  position:fixed;
  left:0;
  top:0;
  bottom:0;
  width:var(--rail);
  z-index:20;
  display:flex;
  flex-direction:column;
  gap:16px;
  padding:22px 18px;
  border-right:1px solid var(--line);
  background:linear-gradient(180deg,#f9efd9,#efdcb6);
}

.brand{
  align-self:flex-start;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:46px;
  height:46px;
  overflow:hidden;
  text-decoration:none;
  color:var(--ink);
  border:1px solid var(--ink);
  border-radius:10px;
  background:var(--paper-hi);
}

.mark-img{width:100%;height:100%;object-fit:cover;display:block}
.mark-txt{font-size:20px;font-weight:700;letter-spacing:.08em}

.nav{margin-top:4px;min-height:0;overflow:auto}

.nav p{
  display:flex;
  flex-direction:column;
  gap:2px;
  margin:0;
}

.nav a{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:42px;
  padding:10px 6px;
  text-decoration:none;
  color:var(--ink);
  font-family:var(--sans);
  font-size:15px;
  font-weight:500;
  border-bottom:1px dashed transparent;
  transition:color .22s ease,border-color .22s ease,transform .22s ease;
}

.nav a:hover,
.nav a:focus-visible{
  color:#7a4b1f;
  border-bottom-color:var(--accent);
  transform:translateX(3px);
}

.ico{
  flex:none;
  width:7px;
  height:7px;
  border:1px solid currentColor;
  transform:rotate(45deg);
  opacity:.72;
}

.cta{
  margin-top:auto;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:12px 10px;
  border-radius:10px;
  background:var(--ink);
  color:var(--paper-hi);
  font-family:var(--sans);
  font-size:15px;
  letter-spacing:.16em;
  text-decoration:none;
  border-bottom:3px solid var(--accent);
  transition:background .22s ease;
}

.cta:hover{background:#3d3327}

/* ---- 主体骨架 ---- */
.stage{
  display:grid;
  grid-template-columns:minmax(0,1fr) 236px;
  gap:44px;
  max-width:1160px;
  margin:0 auto;
  padding:36px 40px 56px;
}

.sheet{min-width:0;max-width:740px}

/* ---- 首屏 ---- */
.hero{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  gap:18px;
  min-height:70vh;
  padding:26px 0 0;
  text-align:right;
}

.hero-ghost{
  position:absolute;
  top:4%;
  right:-.05em;
  z-index:-1;
  font-family:var(--serif);
  font-weight:700;
  font-size:clamp(70px,12.5vw,164px);
  line-height:.95;
  letter-spacing:.03em;
  color:rgba(38,33,23,.1);
  white-space:nowrap;
}

.hero::before{
  content:'';
  position:absolute;
  inset:-12% -22%;
  z-index:-1;
  pointer-events:none;
  opacity:.72;
  mix-blend-mode:multiply;
  background:
    radial-gradient(36% 40% at 84% 10%,rgba(255,216,152,.9),transparent 70%),
    radial-gradient(28% 34% at 10% 82%,rgba(212,132,74,.45),transparent 72%);
  animation:leak 16s ease-in-out infinite alternate;
}

@keyframes leak{
  from{transform:translate3d(0,0,0) scale(1)}
  to{transform:translate3d(-3%,2.5%,0) scale(1.07)}
}

.hero-copy{position:relative}

.hero h1{
  margin:0;
  font-size:clamp(29px,4.3vw,50px);
  line-height:1.26;
}

.hero-sub{
  margin:14px 0 0;
  font-family:var(--sans);
  font-weight:300;
  font-size:16px;
  line-height:1.8;
  color:var(--ink-soft);
}

.hero-photo{
  margin:20px 0 0 auto;
  width:100%;
  max-width:520px;
  padding:12px 12px 44px;
  border-radius:10px;
  border-bottom:3px solid var(--accent);
  background:#fdf7e8;
  box-shadow:0 16px 34px -20px rgba(38,33,23,.55);
  transform:rotate(-1.4deg);
  animation:shake 9s ease-in-out infinite;
}

@keyframes shake{
  0%,100%{transform:rotate(-1.4deg)}
  50%{transform:rotate(.9deg)}
}

.hero-img{
  display:block;
  width:100%;
  height:auto;
  border-radius:6px;
  filter:sepia(.28) contrast(1.06) saturate(.82);
}

/* ---- 正文章节 ---- */
.sheet > section{
  margin:0;
  padding:44px 0 10px;
  border-top:2px solid var(--accent);
  animation:rise .7s both;
}

.sheet > section:first-of-type{margin-top:52px}

.sheet > section:nth-of-type(1){animation-delay:.04s}
.sheet > section:nth-of-type(2){animation-delay:.09s}
.sheet > section:nth-of-type(3){animation-delay:.14s}
.sheet > section:nth-of-type(4){animation-delay:.19s}
.sheet > section:nth-of-type(5){animation-delay:.24s}
.sheet > section:nth-of-type(6){animation-delay:.29s}
.sheet > section:nth-of-type(7){animation-delay:.34s}

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

.sheet h2{
  margin:0 0 10px;
  font-size:clamp(21px,2.9vw,29px);
  line-height:1.36;
}

.sheet h3{
  margin:26px 0 8px;
  font-size:19px;
}

.sheet p{margin:0 0 16px}
.sheet p.subtitle,
.sheet p.lead,
.sheet p.subhead{
  font-family:var(--sans);
  font-size:15px;
  color:var(--ink-soft);
}

.sheet a{color:#8a4b1d;text-underline-offset:3px}
.sheet a:hover{color:#5f3210}

.sheet ul,.sheet ol{margin:0 0 18px;padding-left:1.25em}
.sheet li{margin:.34em 0}

.sheet img{
  display:block;
  height:auto;
  border-radius:10px;
  border-bottom:3px solid var(--accent);
  filter:sepia(.22) saturate(.85) contrast(1.03);
}

.sheet blockquote{
  margin:22px 0;
  padding:14px 18px;
  border-left:3px solid var(--accent);
  border-radius:10px;
  background:rgba(255,255,255,.42);
}

.sheet table{
  width:100%;
  border-collapse:collapse;
  font-size:16px;
  margin:0 0 18px;
}

.sheet th,.sheet td{
  border-bottom:1px solid var(--line);
  padding:9px 8px;
  text-align:left;
  vertical-align:top;
}

.sheet th{
  font-family:var(--sans);
  font-size:15px;
  color:var(--ink-soft);
}

.sheet hr{
  border:0;
  border-top:1px solid var(--line);
  margin:26px 0;
}

/* ---- 右侧栏 ---- */
.rail{
  position:sticky;
  top:30px;
  align-self:start;
  padding-left:20px;
  border-left:1px solid var(--line);
}

.rail h2{
  margin:0;
  font-family:var(--sans);
  font-size:15px;
  font-weight:500;
  letter-spacing:.3em;
}

.rail .subtitle{
  margin:6px 0 16px;
  font-family:var(--sans);
  font-size:14px;
  color:#6b5b44;
}

.rail-list{
  list-style:none;
  margin:0;
  padding:0;
}

.rail-list li{
  margin:0 0 6px;
  animation:rise .6s both;
}

.rail-list li:nth-child(1){animation-delay:.1s}
.rail-list li:nth-child(2){animation-delay:.15s}
.rail-list li:nth-child(3){animation-delay:.2s}
.rail-list li:nth-child(4){animation-delay:.25s}
.rail-list li:nth-child(5){animation-delay:.3s}
.rail-list li:nth-child(6){animation-delay:.35s}
.rail-list li:nth-child(7){animation-delay:.4s}

.rail-list a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:9px 10px;
  border-radius:10px;
  border-bottom:2px solid var(--line);
  text-decoration:none;
  color:var(--ink);
  font-family:var(--sans);
  font-size:15px;
  transition:background .22s ease,border-color .22s ease,transform .22s ease;
}

.rail-list a:hover{
  background:rgba(255,255,255,.5);
  border-bottom-color:var(--accent);
  transform:translateX(-3px);
}

.to-top{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  margin-top:16px;
  padding:8px 0;
  font-family:var(--sans);
  font-size:14px;
  color:#7a4b1f;
  text-decoration:none;
  border-bottom:1px solid var(--accent);
}

/* ---- 页脚 ---- */
.foot{
  border-top:1px solid var(--line);
  padding:24px 40px 30px;
}

.foot-addr{
  font-style:normal;
  font-family:var(--sans);
  font-size:14px;
  letter-spacing:.22em;
  color:var(--ink-soft);
}

.foot-brand{
  margin:6px 0 10px;
  font-family:var(--serif);
  font-weight:700;
  font-size:clamp(46px,10.5vw,148px);
  line-height:.92;
  letter-spacing:.05em;
  color:rgba(38,33,23,.16);
  white-space:nowrap;
  overflow:hidden;
}

.foot-row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:12px 24px;
  font-family:var(--sans);
  font-size:14px;
}

.copy{margin:0;color:#6b5b44;letter-spacing:.1em}

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

.foot-links a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:8px 10px;
  color:var(--ink);
  text-decoration:none;
  border-bottom:1px solid var(--accent);
}

.foot-links a:hover{color:#7a4b1f}

section[id]{scroll-margin-top:26px}

/* ---- 移动端 ---- */
@media (max-width:900px){
  body{padding-left:0}

  .topbar{
    position:fixed;
    inset:0 0 auto 0;
    width:auto;
    flex-direction:row;
    flex-wrap:wrap;
    align-items:center;
    gap:8px;
    padding:8px 14px 6px;
    border-right:0;
    border-bottom:1px solid var(--line);
  }

  .brand{width:42px;height:42px}

  .nav{order:3;width:100%;margin:0;overflow:visible}

  .nav p{
    flex-direction:row;
    gap:4px;
    overflow-x:auto;
    padding-bottom:4px;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:thin;
  }

  .nav a{
    min-height:44px;
    padding:10px 8px;
    white-space:nowrap;
    font-size:15px;
  }

  .cta{
    margin:0 0 0 auto;
    min-height:42px;
    padding:10px 14px;
    font-size:14px;
    letter-spacing:.08em;
  }

  .stage{
    grid-template-columns:1fr;
    gap:26px;
    padding:128px 18px 40px;
  }

  .sheet{max-width:none}

  .hero{min-height:0;padding-top:14px;gap:14px}
  .hero-ghost{font-size:clamp(54px,17vw,96px);top:0}
  .hero-photo{max-width:none;margin-top:6px}
  .sheet > section:first-of-type{margin-top:34px}

  .rail{
    position:static;
    border-left:0;
    border-top:1px solid var(--line);
    padding:18px 0 0;
  }

  .foot{padding:22px 18px 28px}

  section[id]{scroll-margin-top:130px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{animation:none !important;transition:none !important}
}
</｜DSML｜ parameter>
</｜DSML｜ invoke>
</｜DSML｜ calls>

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