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

:root{
  --violet:#56228b;
  --violet-soft:#7a3fb0;
  --ochre:#8b4513;
  --ink:#1f1726;
  --paper:#f6f1e7;
  --sheet:#fffdf8;
  --moss:#2f5d3a;
  --line:#ddd0bd;
  --line-soft:#e8ddcc;
  --muted:#5d5265;
  --r-xl:26px;
  --r-lg:22px;
  --r-md:16px;
  --r-xs:4px;
  --shadow-soft:0 14px 34px rgba(31,23,38,.10);
  --sans:"Fira Sans",system-ui,-apple-system,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  --mono:"Fira Code",ui-monospace,SFMono-Regular,Menlo,monospace;
}

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

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

body{
  margin:0;
  padding-bottom:104px;
  font-family:var(--sans);
  font-size:17px;
  line-height:1.75;
  color:var(--ink);
  background-color:var(--paper);
  background-image:
    radial-gradient(680px 420px at 8% 4%,rgba(86,34,139,.10),transparent 68%),
    radial-gradient(560px 400px at 94% 18%,rgba(139,69,19,.11),transparent 70%),
    radial-gradient(rgba(31,23,38,.055) 1px,transparent 1px);
  background-size:auto,auto,22px 22px;
  background-attachment:fixed,fixed,scroll;
}

img{max-width:100%;height:auto;display:block}
a{color:var(--violet);text-decoration-thickness:1px;text-underline-offset:3px}
a:hover{color:var(--ochre)}
p{margin:0 0 1.05em}
ul,ol{padding-left:1.25em}
h1,h2{line-height:1.28}
h2{font-weight:600;letter-spacing:.01em}
:focus-visible{outline:3px solid var(--ochre);outline-offset:3px;border-radius:8px}

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

/* ---------- 底部固定导航 ---------- */
.dock{
  position:fixed;
  left:0;right:0;bottom:0;
  z-index:60;
  display:flex;
  align-items:center;
  gap:6px;
  min-height:64px;
  padding:8px clamp(10px,2.6vw,26px);
  background:rgba(246,241,231,.94);
  backdrop-filter:blur(10px);
  border-top:1px solid var(--line);
  box-shadow:0 -12px 28px rgba(31,23,38,.08);
}
.dock-side{
  display:flex;
  flex:1 1 0;
  justify-content:flex-end;
  gap:2px;
  margin:0;padding:0;
  list-style:none;
  min-width:0;
}
.dock-side a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 10px;
  font-size:16px;
  color:var(--muted);
  text-decoration:none;
  border-radius:var(--r-md);
  transition:background .2s ease,color .2s ease,transform .2s ease;
  white-space:nowrap;
}
.dock-side a:hover{background:rgba(86,34,139,.10);color:var(--violet);transform:translateY(-2px)}
.dock-brand{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 14px;
  font-family:var(--mono);
  font-weight:600;
  font-size:17px;
  letter-spacing:.02em;
  color:var(--violet);
  text-decoration:none;
  border:1px solid rgba(86,34,139,.28);
  border-radius:999px 999px 999px 40px;
  background:rgba(255,253,248,.8);
}
.dock-more{
  display:flex;
  flex:1 1 0;
  justify-content:flex-start;
  position:relative;
  min-width:0;
}
.dock-more > summary{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 14px;
  font-family:var(--mono);
  font-size:16px;
  color:var(--ochre);
  border:1px solid rgba(139,69,19,.42);
  border-radius:40px 999px 999px 999px;
  cursor:pointer;
  list-style:none;
  user-select:none;
  transition:background .2s ease,color .2s ease;
}
.dock-more > summary::-webkit-details-marker{display:none}
.dock-more > summary:hover{background:rgba(139,69,19,.12)}
.dock-more[open] > summary{background:var(--ochre);color:#fff8ef}
.dock-more > menu{
  position:absolute;
  right:0;
  bottom:calc(100% + 10px);
  min-width:190px;
  margin:0;
  padding:8px;
  list-style:none;
  display:grid;
  gap:2px;
  background:var(--sheet);
  border:1px solid var(--line);
  border-radius:var(--r-md) var(--r-md) var(--r-md) 4px;
  box-shadow:var(--shadow-soft);
}
.dock-more > menu a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:0 12px;
  font-size:16px;
  color:var(--ink);
  text-decoration:none;
  border-radius:var(--r-xs) var(--r-md) var(--r-md) var(--r-xs);
}
.dock-more > menu a:hover{background:rgba(86,34,139,.10);color:var(--violet)}

/* ---------- 主区域：article + 右侧 aside ---------- */
.stage{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:clamp(16px,2.6vw,28px);
  max-width:1180px;
  margin:0 auto;
  padding:clamp(16px,3vw,34px) clamp(12px,3.4vw,34px) 8px;
  align-items:start;
}

.sheet{
  --pad:clamp(18px,3.2vw,36px);
  min-width:0;
  padding:var(--pad);
  background:var(--sheet);
  border:1px solid var(--line);
  border-radius:var(--r-xl) var(--r-xl) var(--r-lg) var(--r-xl);
  box-shadow:0 1px 0 rgba(255,255,255,.9) inset;
}

/* 正文各节 */
.sheet > section:not(.hero){
  padding:clamp(16px,2.6vw,28px) 4px;
  border-top:1px dashed var(--line-soft);
  scroll-margin-top:24px;
}
.sheet > section:not(.hero):first-of-type{border-top:0}
.sheet > section:not(.hero) h2{
  margin:0 0 6px;
  font-family:var(--mono);
  font-size:clamp(21px,2.7vw,28px);
  color:var(--violet);
}
.sheet > section:not(.hero) h2::before{
  content:"";
  display:inline-block;
  width:12px;height:12px;
  margin-right:10px;
  vertical-align:baseline;
  background:linear-gradient(140deg,var(--moss),var(--ochre));
  border-radius:40% 60% 55% 45%;
}
.sheet > section:not(.hero) h3{
  margin:1.3em 0 .4em;
  font-size:19px;
  color:var(--ochre);
}
.sheet > section:not(.hero) ul,
.sheet > section:not(.hero) ol{margin:0 0 1.1em}
.sheet > section:not(.hero) li{margin:.35em 0}
.sheet > section:not(.hero) a{font-weight:500}

p.subtitle{
  margin:0 0 1.1em;
  font-family:var(--mono);
  font-size:16px;
  line-height:1.6;
  letter-spacing:.04em;
  color:var(--ochre);
}

/* ---------- Hero ---------- */
.hero{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  display:flex;
  align-items:flex-end;
  justify-content:flex-end;
  min-height:45vh;
  margin:calc(-1 * var(--pad)) calc(-1 * var(--pad)) clamp(16px,2.4vw,26px);
  padding:clamp(20px,3.4vw,40px);
  text-align:right;
  color:#fdf7ee;
  background:
    radial-gradient(520px 300px at 14% 16%,rgba(139,69,19,.62),transparent 66%),
    linear-gradient(158deg,var(--violet),#3a1359 58%,#240b3c);
  border-radius:calc(var(--r-xl) - 1px) calc(var(--r-xl) - 1px) 92px 92px;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.10);
}
.hero::after{
  content:"";
  position:absolute;
  inset:auto -10% -58% 42%;
  height:78%;
  z-index:0;
  background:radial-gradient(closest-side,rgba(85,163,116,.42),transparent 72%);
  border-radius:60% 40% 55% 45%;
}
.hero-mark{
  position:absolute;
  z-index:0;
  top:clamp(6px,2vw,20px);
  left:clamp(14px,3vw,30px);
  font-family:var(--mono);
  font-weight:700;
  font-size:clamp(38px,9vw,102px);
  line-height:1;
  letter-spacing:.02em;
  color:rgba(255,247,238,.15);
  pointer-events:none;
}
.hero-media{position:absolute;inset:0;z-index:0}
.hero-media .hero-img{
  width:100%;height:100%;
  object-fit:cover;
  opacity:.42;
  filter:saturate(.85);
}
.hero-inner{position:relative;z-index:2;max-width:44ch}
.hero-title{
  margin:0;
  font-size:clamp(28px,5.2vw,46px);
  font-weight:600;
  line-height:1.24;
  letter-spacing:.01em;
  text-shadow:0 2px 18px rgba(20,8,32,.55);
}

/* ---------- 右侧跳转栏 ---------- */
.rail{
  position:sticky;
  top:18px;
  overflow:hidden;
  padding:20px 18px 24px;
  background:linear-gradient(168deg,rgba(47,93,58,.10),rgba(139,69,19,.12)),var(--sheet);
  border:1px solid var(--line);
  border-radius:var(--r-lg) var(--r-lg) 44px var(--r-md);
}
.rail h2{
  margin:0 0 4px;
  font-family:var(--mono);
  font-size:20px;
  color:var(--violet);
}
.rail .subtitle{margin-bottom:14px}
.rail-list{
  margin:0;padding:0;
  list-style:none;
  display:grid;
  gap:2px;
  position:relative;
  z-index:2;
}
.rail-list a{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:4px 10px;
  font-size:16px;
  color:var(--ink);
  text-decoration:none;
  border-left:2px solid rgba(86,34,139,.25);
  border-radius:0 var(--r-md) var(--r-md) 0;
  transition:background .18s ease,border-color .18s ease,padding-left .18s ease;
}
.rail-list a:hover{
  background:rgba(255,253,248,.85);
  border-left-color:var(--ochre);
  padding-left:16px;
  color:var(--violet);
}
.rail-blob{
  display:block;
  width:100%;
  height:56px;
  margin-top:16px;
  background:linear-gradient(120deg,rgba(47,93,58,.28),rgba(139,69,19,.24));
  border-radius:60% 40% 55% 45% / 60% 55% 45% 40%;
}

/* ---------- 页脚 ---------- */
.foot{
  margin-top:clamp(24px,4vw,48px);
  padding:clamp(28px,4vw,48px) clamp(16px,3.4vw,34px) 26px;
  color:#eee2d6;
  background:
    radial-gradient(520px 300px at 10% 0%,rgba(86,34,139,.55),transparent 68%),
    linear-gradient(180deg,#241a2e,var(--ink));
  border-radius:64px 64px 0 0;
}
.foot-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:clamp(20px,3vw,30px);
  max-width:1180px;
  margin:0 auto;
}
.foot h2{
  margin:0 0 4px;
  font-family:var(--mono);
  font-size:18px;
  color:#f7ecdf;
}
.foot .subtitle{color:#c8a98a;margin-bottom:12px}
.foot-logo{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  font-family:var(--mono);
  font-size:19px;
  font-weight:600;
  color:#f7ecdf;
  text-decoration:none;
}
.foot-desc{margin:6px 0 0;color:#cbbdd4;font-size:16px;max-width:34ch}
.foot-nav,.foot-links{
  margin:0;padding:0;
  list-style:none;
  display:grid;
  gap:2px;
}
.foot-links{grid-auto-flow:column;justify-content:start;gap:16px}
.foot-nav a,.foot-links a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 4px;
  font-size:16px;
  color:#e3d2c4;
  text-decoration:none;
  border-bottom:1px solid transparent;
  transition:color .18s ease,border-color .18s ease;
}
.foot-nav a:hover,.foot-links a:hover{color:#fff;border-bottom-color:var(--ochre)}
.foot address{
  font-style:normal;
  font-family:var(--mono);
  font-size:16px;
  line-height:1.8;
  color:#d8c8bb;
}
.sub-form{display:grid;gap:8px;max-width:270px}
.sub-form input{
  min-height:44px;
  padding:0 14px;
  font-family:var(--sans);
  font-size:16px;
  color:#f7ecdf;
  background:rgba(255,253,248,.08);
  border:1px solid rgba(247,236,223,.35);
  border-radius:var(--r-md) var(--r-md) var(--r-md) 4px;
}
.sub-form input::placeholder{color:#bda9bb}
.sub-form button{
  min-height:44px;
  padding:0 18px;
  font-family:var(--mono);
  font-size:16px;
  color:var(--ink);
  background:linear-gradient(120deg,#e5c9a6,#d2b08a);
  border:0;
  border-radius:4px var(--r-md) var(--r-md) var(--r-md);
  cursor:pointer;
  transition:transform .18s ease,filter .18s ease;
}
.sub-form button:hover{transform:translateY(-2px);filter:brightness(1.06)}
.foot-base{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  max-width:1180px;
  margin:clamp(22px,3vw,34px) auto 0;
  padding-top:16px;
  border-top:1px solid rgba(247,236,223,.18);
}
.foot-base .copy{margin:0;font-family:var(--mono);font-size:16px;color:#b9a7c3}

/* ---------- 断点 ---------- */
@media (min-width:900px){
  .stage{grid-template-columns:minmax(0,1fr) 296px}
  .foot-grid{grid-template-columns:1.25fr 1fr 1fr 1fr}
}

@media (max-width:720px){
  body{padding-bottom:88px;font-size:17px}
  .dock-side{display:none}
  .dock{gap:8px;min-height:60px}
  .dock-brand{flex:1 1 auto;justify-content:center;font-size:16px}
  .dock-more > menu{right:0}
  .hero{border-radius:var(--r-md) var(--r-md) 60px 60px;text-align:right}
  .foot-links{grid-auto-flow:row;gap:0}
}

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

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