:root{
  --ink-900:#08110E;
  --ink-800:#0E2A22;
  --ink-700:#143B30;
  --line:#25483E;
  --mint:#36F1B2;
  --amber:#E8B34A;
  --magenta:#FF4F87;
  --paper:#F1E7D6;
  --mist:#A9B8B1;
  --white:#F6FBF8;
  --page-max:1240px;
  --gutter:clamp(1rem,4vw,2.5rem);
  --radius:2px;
  --ease:cubic-bezier(.2,.7,.3,1);
  --font-body:"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Source Han Sans SC",system-ui,-apple-system,"Segoe UI",sans-serif;
  --font-display:"PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,-apple-system,sans-serif;
  --font-mono:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;
  --font-editorial:Georgia,"Times New Roman","Songti SC","SimSun",serif;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-behavior:smooth}
html.yd-nav-open{overflow:hidden}
body,h1,h2,h3,h4,p,ul,ol,dl,dd,figure,blockquote{margin:0}
ul,ol{padding:0;list-style:none}
img,svg,video{display:block;max-width:100%}
button{font:inherit;color:inherit;background:none;border:0}
a{color:inherit}
[hidden]{display:none !important}

body{
  background:var(--ink-900);
  color:var(--white);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.75;
  letter-spacing:.01em;
  min-height:100vh;
}

h1,h2,h3,h4{
  font-family:var(--font-display);
  font-weight:800;
  line-height:1.15;
  letter-spacing:-.01em;
  color:var(--white);
}
h1{font-size:clamp(2rem,5vw,3.6rem)}
h2{font-size:clamp(1.5rem,3.2vw,2.4rem)}
h3{font-size:clamp(1.15rem,2vw,1.5rem)}
h4{font-size:1.05rem}

:focus-visible{outline:2px solid var(--mint);outline-offset:3px;border-radius:var(--radius)}
[id]{scroll-margin-top:96px}

/* ---------- 容器与排版 ---------- */
.yd-container{
  width:100%;
  max-width:var(--page-max);
  margin-inline:auto;
  padding-inline:var(--gutter);
}

/* ---------- 跳转链接 ---------- */
.yd-skip{
  position:fixed;
  top:.6rem;
  left:.6rem;
  z-index:200;
  transform:translateY(-250%);
  padding:.6rem 1rem;
  background:var(--mint);
  color:#04130E;
  font-family:var(--font-display);
  font-weight:700;
  font-size:.9rem;
  text-decoration:none;
  border-radius:var(--radius);
  transition:transform .2s var(--ease);
}
.yd-skip:focus{transform:translateY(0)}

/* ---------- 头部命令栏 ---------- */
.yd-header{
  --h:76px;
  position:sticky;
  top:0;
  z-index:60;
  background:linear-gradient(180deg,rgba(8,17,14,.985),rgba(14,42,34,.965));
  border-bottom:1px solid var(--line);
  color:var(--white);
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
}
.yd-header[data-collapsed="true"]{--h:58px}

.yd-progress{
  position:absolute;
  left:0;
  right:0;
  bottom:-1px;
  height:2px;
  pointer-events:none;
  overflow:hidden;
}
.yd-progress__bar{
  display:block;
  width:0%;
  height:100%;
  background:linear-gradient(90deg,var(--mint),#7CF7D0);
  box-shadow:0 0 10px rgba(54,241,178,.7);
}

.yd-header__inner{
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:clamp(.75rem,2vw,2rem);
  min-height:var(--h);
  padding-inline:clamp(.9rem,3vw,2rem);
  transition:min-height .28s var(--ease);
}

.yd-brand{
  display:inline-flex;
  align-items:center;
  gap:.65rem;
  text-decoration:none;
  color:var(--white);
  padding-block:.4rem;
}
.yd-brand__mark{
  flex:0 0 auto;
  width:9px;
  height:9px;
  border-radius:1px;
  background:var(--mint);
  box-shadow:0 0 12px rgba(54,241,178,.75);
  transform:rotate(45deg);
  animation:yd-breathe 3.8s ease-in-out infinite;
}
@keyframes yd-breathe{
  0%,100%{opacity:1}
  50%{opacity:.42}
}
.yd-brand__text{display:flex;flex-direction:column;line-height:1.15}
.yd-brand__name{
  font-family:var(--font-display);
  font-weight:800;
  font-size:1.02rem;
  letter-spacing:.06em;
}
.yd-brand__sub{
  font-family:var(--font-mono);
  font-size:.62rem;
  letter-spacing:.22em;
  color:var(--mist);
  transition:opacity .25s var(--ease),transform .25s var(--ease);
}
.yd-header[data-collapsed="true"] .yd-brand__sub{opacity:0;transform:translateY(-3px)}

.yd-nav{min-width:0}
.yd-nav__list{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:.15rem;
  flex-wrap:nowrap;
}
.yd-nav__item{display:block}
.yd-nav__link{
  position:relative;
  display:flex;
  align-items:baseline;
  gap:.32rem;
  padding:.55rem .58rem .72rem;
  color:var(--mist);
  font-size:.9rem;
  text-decoration:none;
  border-radius:var(--radius);
  transition:color .18s var(--ease),background .18s var(--ease);
}
.yd-nav__index{
  font-family:var(--font-mono);
  font-size:.6rem;
  letter-spacing:.06em;
  color:rgba(54,241,178,.55);
}
.yd-nav__label{white-space:nowrap}
.yd-nav__link::after{
  content:"";
  position:absolute;
  left:.58rem;
  right:.58rem;
  bottom:.28rem;
  height:2px;
  background:transparent;
  transition:background .18s var(--ease),box-shadow .18s var(--ease);
}
.yd-nav__link:hover{color:var(--white);background:rgba(54,241,178,.07)}
.yd-nav__link:hover::after{background:rgba(54,241,178,.5)}
.yd-nav__link[aria-current="page"]{color:var(--white)}
.yd-nav__link[aria-current="page"] .yd-nav__index{color:var(--mint)}
.yd-nav__link[aria-current="page"]::after{
  background:var(--mint);
  box-shadow:0 0 10px rgba(54,241,178,.75);
}
.yd-nav__hint{
  position:absolute;
  top:calc(100% + 4px);
  left:0;
  z-index:6;
  padding:.32rem .6rem;
  white-space:nowrap;
  font-family:var(--font-mono);
  font-size:.66rem;
  letter-spacing:.08em;
  color:var(--mint);
  background:#0B1F19;
  border:1px solid var(--line);
  border-radius:var(--radius);
  opacity:0;
  visibility:hidden;
  transform:translateY(-4px);
  pointer-events:none;
  transition:opacity .18s var(--ease),transform .18s var(--ease),visibility .18s;
}
@media (hover:hover) and (pointer:fine){
  .yd-nav__link:hover .yd-nav__hint,
  .yd-nav__link:focus-visible .yd-nav__hint{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
  }
}
.yd-nav__foot{display:none}

.yd-header__side{
  display:flex;
  align-items:center;
  gap:.75rem;
}

.yd-live{
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  padding:.34rem .7rem;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:rgba(20,59,48,.62);
  font-family:var(--font-mono);
  font-size:.68rem;
  letter-spacing:.1em;
  color:var(--mist);
}
.yd-live__dot{
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--mint);
  animation:yd-pulse 2.8s ease-out infinite;
}
@keyframes yd-pulse{
  0%{box-shadow:0 0 0 0 rgba(54,241,178,.55)}
  70%{box-shadow:0 0 0 7px rgba(54,241,178,0)}
  100%{box-shadow:0 0 0 0 rgba(54,241,178,0)}
}
.yd-live__score{
  color:var(--mint);
  font-weight:700;
  font-size:.86rem;
  letter-spacing:.04em;
}
.yd-live__sep{opacity:.6;padding-inline:1px}

.yd-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:.5rem .95rem;
  background:var(--mint);
  color:#04130E;
  font-family:var(--font-display);
  font-weight:700;
  font-size:.84rem;
  letter-spacing:.04em;
  text-decoration:none;
  border-radius:var(--radius);
  transition:background .18s var(--ease),transform .18s var(--ease),box-shadow .18s var(--ease);
}
.yd-cta:hover{
  background:#63F7C6;
  box-shadow:0 0 0 1px rgba(54,241,178,.35),0 6px 18px rgba(54,241,178,.22);
}

.yd-navtoggle{
  display:none;
  align-items:center;
  gap:.5rem;
  padding:.45rem .7rem;
  border:1px solid var(--line);
  border-radius:var(--radius);
  color:var(--white);
  font-size:.8rem;
  letter-spacing:.08em;
  cursor:pointer;
  transition:border-color .18s var(--ease),background .18s var(--ease);
}
.yd-navtoggle:hover{border-color:var(--mint);background:rgba(54,241,178,.08)}
.yd-navtoggle__bars{
  display:inline-flex;
  flex-direction:column;
  justify-content:space-between;
  width:16px;
  height:12px;
}
.yd-navtoggle__bars > span{
  display:block;
  height:2px;
  border-radius:2px;
  background:currentColor;
  transition:transform .2s var(--ease),opacity .2s var(--ease);
}
.yd-navtoggle[aria-expanded="true"] .yd-navtoggle__bars > span:nth-child(1){transform:translateY(5px) rotate(45deg)}
.yd-navtoggle[aria-expanded="true"] .yd-navtoggle__bars > span:nth-child(2){opacity:0}
.yd-navtoggle[aria-expanded="true"] .yd-navtoggle__bars > span:nth-child(3){transform:translateY(-5px) rotate(-45deg)}

/* ---------- 页脚 ---------- */
.yd-footer{
  position:relative;
  margin-top:clamp(2.5rem,6vw,6rem);
  padding-block:clamp(2.5rem,5vw,4rem) 1.5rem;
  background:var(--ink-800);
  border-top:1px solid var(--line);
  color:var(--mist);
}
.yd-footer::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:3px;
  background:linear-gradient(90deg,var(--mint),var(--amber) 55%,var(--magenta));
}
.yd-footer__inner{display:block}
.yd-footer__top{
  display:grid;
  grid-template-columns:minmax(0,.95fr) minmax(0,2.05fr);
  gap:clamp(2rem,4vw,3.5rem);
  padding-bottom:clamp(1.75rem,4vw,2.75rem);
  border-bottom:1px solid rgba(37,72,62,.85);
}
.yd-footer__brand{min-width:0}
.yd-footer__logo{
  display:inline-flex;
  align-items:center;
  gap:.65rem;
  text-decoration:none;
  color:var(--white);
}
.yd-footer__logotext{
  font-family:var(--font-display);
  font-weight:800;
  font-size:1.05rem;
  letter-spacing:.08em;
}
.yd-footer__tagline{
  margin-top:.9rem;
  max-width:26ch;
  font-size:.9rem;
  line-height:1.8;
  color:var(--mist);
}
.yd-footer__badge{
  display:inline-flex;
  align-items:center;
  margin-top:1rem;
  padding:.28rem .65rem;
  border:1px solid rgba(232,179,74,.45);
  border-radius:999px;
  background:rgba(232,179,74,.09);
  color:var(--amber);
  font-family:var(--font-mono);
  font-size:.66rem;
  letter-spacing:.16em;
}
.yd-footer__grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:clamp(1.25rem,3vw,2rem);
}
.yd-footer__col{min-width:0}
.yd-footer__title{
  margin-bottom:.9rem;
  font-family:var(--font-mono);
  font-weight:600;
  font-size:.68rem;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:var(--white);
}
.yd-footer__list{display:flex;flex-direction:column;gap:.5rem}
.yd-footer__link{
  display:inline-block;
  font-size:.9rem;
  color:var(--mist);
  text-decoration:none;
  border-bottom:1px solid transparent;
  transition:color .18s var(--ease),border-color .18s var(--ease);
}
.yd-footer__link:hover{color:var(--mint);border-bottom-color:var(--mint)}
.yd-footer__contact{display:flex;flex-direction:column;gap:.75rem;font-size:.88rem}
.yd-footer__contact-item{display:flex;flex-direction:column;gap:.05rem}
.yd-footer__contact-label{
  font-family:var(--font-mono);
  font-size:.62rem;
  letter-spacing:.16em;
  color:rgba(169,184,177,.75);
}
.yd-footer__contact-value{color:var(--white);word-break:break-word;line-height:1.6}
.yd-footer__contact-value--accent{
  color:var(--mint);
  font-family:var(--font-mono);
  letter-spacing:.05em;
}
.yd-footer__bottom{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:.6rem 1.5rem;
  padding-top:1.35rem;
  font-size:.78rem;
  color:rgba(169,184,177,.85);
}
.yd-footer__meta{min-width:0}
.yd-footer__icp{font-family:var(--font-mono);letter-spacing:.05em}
.yd-footer__note{
  width:100%;
  max-width:70ch;
  font-size:.74rem;
  line-height:1.75;
  color:rgba(169,184,177,.72);
}

/* ---------- 通用按钮 ---------- */
.yd-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  padding:.7rem 1.25rem;
  border:1px solid transparent;
  border-radius:var(--radius);
  background:var(--mint);
  color:#04130E;
  font-family:var(--font-display);
  font-weight:700;
  font-size:.95rem;
  letter-spacing:.03em;
  text-decoration:none;
  cursor:pointer;
  transition:background .2s var(--ease),color .2s var(--ease),border-color .2s var(--ease),box-shadow .2s var(--ease);
}
.yd-btn:hover{background:#63F7C6;box-shadow:0 8px 22px rgba(54,241,178,.2)}
.yd-btn--ghost{
  background:transparent;
  color:var(--white);
  border-color:var(--line);
}
.yd-btn--ghost:hover{
  background:rgba(54,241,178,.1);
  border-color:var(--mint);
  color:var(--mint);
  box-shadow:none;
}
.yd-btn--amber{background:var(--amber);color:#1B1204}
.yd-btn--amber:hover{background:#F3C468;box-shadow:0 8px 22px rgba(232,179,74,.2)}

/* ---------- 标签 / 引导词 / 章节编号 ---------- */
.yd-tag{
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  padding:.22rem .62rem;
  border:1px solid rgba(54,241,178,.4);
  border-radius:999px;
  background:rgba(54,241,178,.08);
  color:var(--mint);
  font-family:var(--font-mono);
  font-size:.68rem;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.yd-tag--amber{
  color:var(--amber);
  border-color:rgba(232,179,74,.45);
  background:rgba(232,179,74,.1);
}
.yd-tag--magenta{
  color:var(--magenta);
  border-color:rgba(255,79,135,.42);
  background:rgba(255,79,135,.1);
}
.yd-kicker{
  display:inline-block;
  font-family:var(--font-mono);
  font-size:.7rem;
  letter-spacing:.24em;
  text-transform:uppercase;
  color:var(--mist);
}
.yd-section-num{
  display:block;
  font-family:var(--font-editorial);
  font-style:italic;
  font-weight:400;
  font-size:clamp(2.6rem,7vw,5rem);
  line-height:.9;
  color:rgba(54,241,178,.28);
  letter-spacing:-.02em;
}

/* ---------- 面板 ---------- */
.yd-panel{
  background:var(--ink-700);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:clamp(1.15rem,3vw,2rem);
}
.yd-panel--paper{
  background:var(--paper);
  color:#12211C;
  border-color:rgba(8,17,14,.14);
}
.yd-panel--paper h2,
.yd-panel--paper h3,
.yd-panel--paper h4{color:#0B1A15}

/* ---------- 网格 ---------- */
.yd-grid{display:grid;gap:clamp(1rem,2.5vw,2rem)}
.yd-grid--split{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr)}
.yd-grid--halves{grid-template-columns:repeat(2,minmax(0,1fr))}
.yd-grid--thirds{grid-template-columns:repeat(3,minmax(0,1fr))}

/* ---------- 面包屑 ---------- */
.yd-breadcrumb{
  padding-block:clamp(.9rem,2vw,1.4rem) 0;
  font-size:.8rem;
  color:var(--mist);
}
.yd-breadcrumb__list{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.5rem;
}
.yd-breadcrumb__item{
  display:flex;
  align-items:center;
  gap:.5rem;
}
.yd-breadcrumb__item + .yd-breadcrumb__item::before{
  content:"/";
  color:rgba(37,72,62,1);
}
.yd-breadcrumb__link{
  color:var(--mist);
  text-decoration:none;
  border-bottom:1px solid transparent;
  transition:color .18s var(--ease),border-color .18s var(--ease);
}
.yd-breadcrumb__link:hover{color:var(--mint);border-bottom-color:var(--mint)}
.yd-breadcrumb__current{color:var(--white)}

/* ---------- 章节目录 ---------- */
.yd-toc{
  position:sticky;
  top:calc(58px + 1.5rem);
  align-self:start;
  font-size:.9rem;
}
.yd-toc__list{
  display:flex;
  flex-direction:column;
  gap:0;
  border-left:1px solid var(--line);
}
.yd-toc__item{display:block}
.yd-toc__link{
  display:flex;
  align-items:baseline;
  gap:.6rem;
  padding:.5rem .9rem;
  margin-left:-1px;
  border-left:2px solid transparent;
  color:var(--mist);
  text-decoration:none;
  transition:color .18s var(--ease),border-color .18s var(--ease),background .18s var(--ease);
}
.yd-toc__link:hover{color:var(--white);background:rgba(54,241,178,.06)}
.yd-toc__link[data-active="true"],
.yd-toc__link[aria-current]{
  color:var(--mint);
  border-left-color:var(--mint);
  background:rgba(54,241,178,.08);
}
.yd-toc__index{
  font-family:var(--font-mono);
  font-size:.66rem;
  letter-spacing:.06em;
  opacity:.7;
}

/* ---------- 图片容器 ---------- */
.yd-media{
  position:relative;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:var(--radius);
  aspect-ratio:16 / 9;
  background:
    radial-gradient(120% 100% at 20% 0%,rgba(54,241,178,.14),transparent 62%),
    linear-gradient(160deg,#0F2F26,#08110E 72%);
}
.yd-media > img,
.yd-media > picture > img,
.yd-media__img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.yd-media--wide{aspect-ratio:21 / 9}
.yd-media--tall{aspect-ratio:3 / 4}
.yd-media--square{aspect-ratio:1 / 1}
.yd-media__caption{
  position:absolute;
  left:0;
  bottom:0;
  max-width:calc(100% - 1.5rem);
  padding:.45rem .8rem;
  background:var(--paper);
  color:#12211C;
  font-family:var(--font-mono);
  font-size:.68rem;
  letter-spacing:.06em;
  line-height:1.6;
}

/* ---------- 平板 ---------- */
@media (max-width:1080px){
  .yd-nav__link{font-size:.84rem;padding-inline:.45rem}
  .yd-nav__link::after{left:.45rem;right:.45rem}
  .yd-live__label{display:none}
  .yd-footer__top{grid-template-columns:minmax(0,1fr)}
}

/* ---------- 移动 / 折叠导航 ---------- */
@media (max-width:960px){
  .yd-header{--h:60px}
  .yd-header[data-collapsed="true"]{--h:60px}
  .yd-header__inner{
    grid-template-columns:1fr auto;
    padding-inline:1rem;
    gap:.75rem;
  }
  .yd-header__side{display:none}
  .yd-navtoggle{display:inline-flex}
  .yd-nav{
    position:absolute;
    left:0;
    right:0;
    top:100%;
    display:none;
    padding:.5rem 1rem 1.5rem;
    background:#0A1C16;
    border-top:1px solid var(--line);
    border-bottom:1px solid var(--line);
    box-shadow:0 26px 46px rgba(0,0,0,.55);
    max-height:calc(100vh - var(--h) - 1px);
    overflow-y:auto;
  }
  .yd-nav[data-open="true"]{display:block}
  .yd-nav__list{
    flex-direction:column;
    align-items:stretch;
    justify-content:flex-start;
    gap:0;
  }
  .yd-nav__item{border-bottom:1px solid rgba(37,72,62,.6)}
  .yd-nav__link{
    padding:1rem .25rem;
    font-size:.98rem;
    color:var(--white);
    border-radius:0;
  }
  .yd-nav__link:hover{background:transparent}
  .yd-nav__link::after{display:none}
  .yd-nav__hint{display:none}
  .yd-nav__link[aria-current="page"]{color:var(--mint)}
  .yd-nav__link[aria-current="page"]::before{
    content:"";
    position:absolute;
    left:0;
    top:50%;
    width:3px;
    height:1.25rem;
    transform:translateY(-50%);
    background:var(--mint);
    box-shadow:0 0 10px rgba(54,241,178,.75);
  }
  .yd-nav__foot{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:1rem;
    margin-top:1.25rem;
  }
  .yd-nav__foot .yd-live{align-self:flex-start}
  .yd-nav__cta{width:100%}
  .yd-footer__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .yd-toc{position:static;top:auto}
  .yd-grid--split,
  .yd-grid--halves,
  .yd-grid--thirds{grid-template-columns:minmax(0,1fr)}
}

@media (max-width:560px){
  .yd-footer__grid{grid-template-columns:minmax(0,1fr);gap:1.5rem}
  .yd-footer__bottom{flex-direction:column;align-items:flex-start}
  .yd-brand__sub{letter-spacing:.14em}
}

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