/* ============================================================
   乐虎国游戏 · 共享样式 /assets/site.css
   分区：变量 · 重置 · 排版 · 通用组件 · 头部 · 页脚 · 响应式
   ============================================================ */

:root{
  --orange:#F26B1D;
  --orange-100:#FFE4D4;
  --orange-700:#C4500F;
  --ink:#141414;
  --ink-800:#1F1F1F;
  --ink-700:#2A2A2A;
  --paper:#FAF7F2;
  --paper-2:#F2EDE4;
  --line:#D9D2C7;
  --line-soft:rgba(20,20,20,.1);
  --muted:#6B6B6B;
  --cyan:#00E5C3;
  --cyan-700:#008F7A;
  --red:#D64545;

  --radius:14px;
  --radius-sm:10px;
  --shadow-sm:0 1px 2px rgba(20,20,20,.05), 0 12px 28px -22px rgba(20,20,20,.45);
  --shadow-md:0 2px 4px rgba(20,20,20,.06), 0 26px 52px -36px rgba(20,20,20,.55);

  --mono:"IBM Plex Mono","JetBrains Mono",ui-monospace,SFMono-Regular,"SF Mono",Consolas,"Liberation Mono",monospace;
  --sans:"Noto Sans SC","HarmonyOS Sans SC","PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --ease:cubic-bezier(.22,.61,.36,1);
  --header-h:82px;
}

/* ---------- 重置 ---------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:96px}
body,h1,h2,h3,h4,h5,p,ul,ol,figure,blockquote,dl,dd{margin:0}
ul,ol{padding:0;list-style:none}
img,svg,video,picture{display:block;max-width:100%;height:auto}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
table{border-collapse:collapse;width:100%}
html.lh-nav-open,html.lh-nav-open body{overflow:hidden}

/* ---------- 中文排版 ---------- */
body{
  font-family:var(--sans);
  font-size:16px;
  line-height:1.75;
  letter-spacing:.01em;
  color:var(--ink);
  background:var(--paper);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
@media (min-width:768px){ body{font-size:17px} }
h1,h2,h3,h4{font-weight:900;line-height:1.12;letter-spacing:-.02em;text-wrap:balance}
p{text-wrap:pretty}
strong{font-weight:800}

:where(a,button,[tabindex],input,select,textarea):focus-visible{
  outline:2px solid var(--cyan);
  outline-offset:3px;
  border-radius:6px;
}

/* ---------- 容器与节奏 ---------- */
.lh-container{width:min(100% - 2.5rem,1200px);margin-inline:auto}
@media (max-width:520px){ .lh-container{width:min(100% - 1.75rem,1200px)} }

.lh-section{padding-block:clamp(2.75rem,6vw,5rem)}
.lh-section--ink{background:var(--ink);color:var(--paper)}
.lh-section--sand{background:var(--paper-2)}
.lh-divider{height:1px;border:0;background:var(--line);margin-block:clamp(1.5rem,3vw,2.5rem)}

.lh-grid{
  display:grid;
  gap:clamp(.9rem,2vw,1.4rem);
  grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));
}

/* ---------- 文本组件 ---------- */
.lh-eyebrow{
  display:inline-flex;align-items:center;gap:.55rem;
  font-family:var(--mono);font-size:.7rem;font-weight:600;
  letter-spacing:.22em;text-transform:uppercase;color:var(--muted);
}
.lh-eyebrow::before{content:"";width:8px;height:8px;background:var(--orange);border-radius:2px;transform:rotate(45deg)}
.lh-section--ink .lh-eyebrow{color:rgba(250,247,242,.6)}

.lh-display{font-size:clamp(2.4rem,6vw,5.2rem);line-height:1.02;font-weight:900;letter-spacing:-.03em}
.lh-h2{font-size:clamp(1.6rem,3.2vw,2.6rem);line-height:1.14;font-weight:900;letter-spacing:-.02em}
.lh-h3{font-size:clamp(1.05rem,1.6vw,1.25rem);font-weight:800;letter-spacing:-.01em;line-height:1.35}
.lh-lede{font-size:clamp(1rem,1.5vw,1.15rem);line-height:1.7;color:#3d3a35;max-width:46ch}
.lh-section--ink .lh-lede{color:rgba(250,247,242,.78)}
.lh-body{max-width:68ch}
.lh-body p + p{margin-top:1em}
.lh-mono{font-family:var(--mono);font-size:.82em;letter-spacing:.02em}

.lh-note{
  border-left:3px solid var(--orange);
  background:var(--orange-100);
  color:#3a2a1e;
  padding:.95rem 1.15rem;
  border-radius:0 var(--radius-sm) var(--radius-sm) 0;
  font-size:.92rem;
  max-width:68ch;
}

/* ---------- 按钮 ---------- */
.lh-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.45rem;
  padding:.66rem 1.15rem;border-radius:999px;
  font-size:.86rem;font-weight:700;letter-spacing:.02em;
  border:1px solid transparent;line-height:1.2;
  transition:background-color .18s var(--ease),color .18s var(--ease),
             border-color .18s var(--ease),transform .18s var(--ease);
}
.lh-btn:active{transform:translateY(1px)}
.lh-btn--solid{background:var(--orange);color:var(--ink);box-shadow:0 10px 22px -16px rgba(242,107,29,.95)}
.lh-btn--solid:hover{background:#FF7C33}
.lh-btn--ghost{border-color:currentColor;color:inherit;opacity:.92}
.lh-btn--ghost:hover{opacity:1;border-color:var(--cyan);color:var(--cyan)}
.lh-btn--cyan{background:var(--cyan);color:#06231e}
.lh-btn--cyan:hover{background:#4CF3D8}
.lh-btn--quiet{color:var(--orange-700);padding-inline:.3rem;border-radius:4px}
.lh-btn--quiet:hover{text-decoration:underline;text-underline-offset:4px}

/* ---------- 标签 / 卡片 ---------- */
.lh-tag{
  display:inline-flex;align-items:center;gap:.35rem;
  padding:.28rem .72rem;border-radius:999px;
  border:1px solid var(--line);background:#fff;
  font-size:.78rem;font-weight:600;color:#3d3a35;
  transition:background-color .16s var(--ease),border-color .16s var(--ease),color .16s var(--ease);
}
.lh-tag:hover{border-color:var(--orange);color:var(--orange-700);background:var(--orange-100)}
.lh-tag[aria-pressed="true"], .lh-tag.is-active{background:var(--orange);border-color:var(--orange);color:var(--ink)}

.lh-card{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  box-shadow:var(--shadow-sm);
  padding:clamp(1rem,2vw,1.5rem);
  transition:transform .2s var(--ease),box-shadow .2s var(--ease),border-color .2s var(--ease);
}
.lh-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-md);border-color:#c9c0b1}

/* ---------- 面包屑 ---------- */
.lh-breadcrumb{
  display:flex;flex-wrap:wrap;align-items:center;gap:.45rem;
  font-family:var(--mono);font-size:.72rem;letter-spacing:.06em;
  color:var(--muted);padding-block:1rem;
}
.lh-breadcrumb li{display:flex;align-items:center;gap:.45rem}
.lh-breadcrumb li + li::before{content:"/";color:var(--line)}
.lh-breadcrumb a{transition:color .16s var(--ease)}
.lh-breadcrumb a:hover{color:var(--cyan-700)}
.lh-breadcrumb [aria-current="page"]{color:var(--ink);font-weight:600}

/* ---------- 图片容器基础规则 ---------- */
.lh-figure{
  position:relative;overflow:hidden;
  border-radius:var(--radius);border:1px solid rgba(255,255,255,.08);
  background:repeating-linear-gradient(135deg,#1F1F1F 0 12px,#191919 12px 24px);
  box-shadow:var(--shadow-sm);
}
.lh-figure > img, .lh-figure > svg, .lh-figure > picture > img{
  width:100%;height:100%;object-fit:cover;display:block;
}
.lh-figure--wide{aspect-ratio:21/9}
.lh-figure--tall{aspect-ratio:4/5}
.lh-figure--square{aspect-ratio:1/1}
.lh-figure--paper{
  background:repeating-linear-gradient(135deg,var(--paper-2) 0 12px,#EAE3D8 12px 24px);
  border-color:var(--line);
}
.lh-figure__cap{
  margin-top:.6rem;font-family:var(--mono);font-size:.72rem;
  letter-spacing:.04em;color:var(--muted);
}

/* ---------- 目录（章节跟随） ---------- */
.lh-toc{font-size:.88rem}
.lh-toc__title{
  font-family:var(--mono);font-size:.68rem;letter-spacing:.24em;
  text-transform:uppercase;color:var(--muted);margin-bottom:.7rem;
}
.lh-toc__list{display:grid;gap:.1rem;border-left:1px solid var(--line)}
.lh-toc__link{
  display:block;padding:.4rem 0 .4rem .9rem;margin-left:-1px;
  color:var(--muted);border-left:2px solid transparent;
  transition:color .16s var(--ease),border-color .16s var(--ease);
}
.lh-toc__link:hover{color:var(--ink)}
.lh-toc__link[aria-current="true"]{color:var(--ink);font-weight:700;border-left-color:var(--orange)}

/* ---------- 入场显现 ---------- */
html.lh-anim [data-reveal]{
  opacity:0;transform:translateY(16px);
  transition:opacity .5s var(--ease),transform .5s var(--ease);
}
html.lh-anim [data-reveal].is-visible{opacity:1;transform:none}

/* ============================================================
   头部
   ============================================================ */
.lh-skip{
  position:fixed;left:1rem;top:-4rem;z-index:300;
  background:var(--cyan);color:#06231e;
  font-size:.84rem;font-weight:800;letter-spacing:.04em;
  padding:.62rem 1.1rem;border-radius:0 0 10px 10px;
  transition:top .18s var(--ease);
}
.lh-skip:focus{top:0}

/* 侧边品牌坐标轨道 */
.lh-rail{display:none}
@media (min-width:1400px){
  .lh-rail{
    position:fixed;left:0;top:96px;bottom:0;width:56px;z-index:5;
    display:flex;flex-direction:column;align-items:center;justify-content:space-between;
    padding:1.25rem 0;border-right:1px solid var(--line);
    pointer-events:none;color:rgba(140,135,128,.8);
  }
  .lh-rail__label{
    writing-mode:vertical-rl;font-size:.64rem;font-weight:800;
    letter-spacing:.42em;text-transform:uppercase;
  }
  .lh-rail__ticks{
    flex:1 1 auto;width:1px;margin:.9rem 0;opacity:.55;
    background:repeating-linear-gradient(180deg,currentColor 0 1px,transparent 1px 12px);
  }
  .lh-rail__coord{
    writing-mode:vertical-rl;font-family:var(--mono);
    font-size:.58rem;letter-spacing:.14em;opacity:.75;
  }
}

.lh-header{
  position:fixed;top:0;left:0;right:0;z-index:100;
  color:var(--paper);
  background:linear-gradient(180deg,rgba(20,20,20,.78) 0%,rgba(20,20,20,.34) 62%,rgba(20,20,20,0) 100%);
  transition:background-color .22s var(--ease),box-shadow .22s var(--ease),backdrop-filter .22s var(--ease);
}
.lh-header.is-scrolled{
  background:rgba(20,20,20,.95);
  -webkit-backdrop-filter:saturate(160%) blur(10px);
  backdrop-filter:saturate(160%) blur(10px);
  box-shadow:0 1px 0 rgba(250,247,242,.09), 0 18px 40px -34px rgba(0,0,0,.95);
}
.lh-header__bar{padding-block:.55rem}
.lh-header__inner{
  width:min(100% - 2rem,1280px);margin-inline:auto;
  display:flex;align-items:center;gap:1rem;
  min-height:62px;
}
@media (min-width:1400px){
  .lh-header__inner{width:min(100% - 6rem,1280px)}
}

/* 品牌 */
.lh-brand{display:inline-flex;align-items:center;gap:.7rem;flex:0 0 auto}
.lh-brand__mark{
  width:38px;height:38px;border-radius:11px;flex:0 0 auto;
  display:grid;place-items:center;
  background:var(--orange);color:var(--ink);
  font-size:1.02rem;font-weight:900;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.16), 0 8px 18px -12px rgba(242,107,29,1);
}
.lh-brand__mark-glyph{line-height:1;transform:translateY(-1px)}
.lh-brand__text{display:flex;flex-direction:column;line-height:1.1}
.lh-brand__name{font-size:1rem;font-weight:900;letter-spacing:-.01em;color:var(--paper)}
.lh-brand__tag{
  margin-top:.24rem;font-size:.64rem;font-weight:500;
  letter-spacing:.2em;color:rgba(250,247,242,.6);
}

/* 导航 */
.lh-nav{margin-left:auto}
.lh-nav__list{display:flex;align-items:center;gap:.1rem}
.lh-nav__item{position:relative}
.lh-nav__link{
  position:relative;display:inline-block;
  padding:.5rem .7rem;border-radius:8px;
  font-size:.88rem;font-weight:600;
  color:rgba(250,247,242,.78);
  transition:color .16s var(--ease),background-color .16s var(--ease);
}
.lh-nav__link::after{
  content:"";position:absolute;left:.7rem;right:.7rem;bottom:.24rem;height:2px;
  background:var(--cyan);border-radius:2px;
  transform:scaleX(0);transform-origin:left;
  transition:transform .2s var(--ease);
}
.lh-nav__link:hover{color:var(--paper);background:rgba(250,247,242,.08)}
.lh-nav__link:hover::after{transform:scaleX(1)}
.lh-nav__link[aria-current="page"]{color:#fff;background:rgba(242,107,29,.16)}
.lh-nav__link[aria-current="page"]::after{transform:scaleX(1);background:var(--orange)}
.lh-nav__foot{display:none}

/* 头部动作区 */
.lh-header__actions{display:flex;align-items:center;gap:.5rem;margin-left:.4rem}
.lh-header__actions .lh-btn--ghost{color:rgba(250,247,242,.88);border-color:rgba(250,247,242,.32)}
.lh-header__actions .lh-btn--ghost:hover{color:var(--cyan);border-color:var(--cyan)}

/* 移动菜单按钮 */
.lh-navbtn{
  display:none;align-items:center;justify-content:center;
  width:44px;height:44px;border-radius:11px;
  border:1px solid rgba(250,247,242,.26);
  background:rgba(20,20,20,.4);
  color:var(--paper);
  position:relative;z-index:130;
  transition:border-color .16s var(--ease),background-color .16s var(--ease);
}
.lh-navbtn:hover{border-color:var(--cyan)}
.lh-navbtn__box{display:grid;gap:4px;width:18px}
.lh-navbtn__bar{
  display:block;height:2px;border-radius:2px;background:currentColor;
  transition:transform .2s var(--ease),opacity .2s var(--ease);
}
[data-nav-toggle][aria-expanded="true"] .lh-navbtn__bar:nth-child(1){transform:translateY(6px) rotate(45deg)}
[data-nav-toggle][aria-expanded="true"] .lh-navbtn__bar:nth-child(2){opacity:0}
[data-nav-toggle][aria-expanded="true"] .lh-navbtn__bar:nth-child(3){transform:translateY(-6px) rotate(-45deg)}

/* 阅读进度 */
.lh-progress{height:3px;background:rgba(250,247,242,.12);overflow:hidden}
.lh-progress__fill{
  display:block;height:100%;width:0;
  background:linear-gradient(90deg,var(--orange) 0%,var(--orange) 55%,var(--cyan) 100%);
}

/* ============================================================
   页脚
   ============================================================ */
.lh-footer{
  position:relative;
  background:var(--ink);color:var(--paper);
  border-top:1px solid rgba(250,247,242,.08);
}
.lh-footer__stripe{
  height:8px;
  background:repeating-linear-gradient(115deg,var(--orange) 0 14px,#141414 14px 26px,var(--orange) 26px 30px,#141414 30px 44px);
  opacity:.92;
}
.lh-footer__inner{
  width:min(100% - 2.5rem,1200px);margin-inline:auto;
  padding:clamp(2.5rem,6vw,4.5rem) 0 clamp(1.8rem,4vw,3rem);
  display:grid;gap:clamp(2rem,4vw,3.5rem);grid-template-columns:1fr;
}
@media (min-width:860px){
  .lh-footer__inner{grid-template-columns:minmax(0,1fr) minmax(0,1.55fr);align-items:start}
}
.lh-footer__lead{display:grid;gap:1.1rem;justify-items:start}
.lh-footer__intro{
  max-width:30ch;font-size:.95rem;line-height:1.7;
  color:rgba(250,247,242,.72);
}
.lh-footer__cols{
  display:grid;gap:1.9rem 2rem;
  grid-template-columns:repeat(2,minmax(0,1fr));
}
@media (min-width:1000px){
  .lh-footer__cols{grid-template-columns:minmax(0,.8fr) minmax(0,.8fr) minmax(0,1.4fr)}
}
@media (max-width:999px){
  .lh-footer__col--wide{grid-column:1 / -1}
}
.lh-footer__col{min-width:0}
.lh-footer__title{
  display:flex;align-items:center;gap:.5rem;
  margin-bottom:.85rem;
  font-family:var(--mono);font-size:.68rem;font-weight:700;
  letter-spacing:.26em;text-transform:uppercase;
  color:rgba(250,247,242,.5);
}
.lh-footer__title::before{content:"";width:16px;height:2px;background:var(--orange);border-radius:2px}
.lh-footer__list{display:grid;gap:.1rem}
.lh-footer__list a{
  display:inline-block;padding:.22rem 0;
  font-size:.92rem;color:rgba(250,247,242,.82);
  transition:color .16s var(--ease),transform .16s var(--ease);
}
.lh-footer__list a:hover{color:var(--cyan);transform:translateX(3px)}
.lh-footer__hint{
  margin-top:.85rem;font-size:.76rem;line-height:1.6;
  color:rgba(250,247,242,.48);
}

/* 联系行 */
.lh-contact__row{
  display:flex;flex-wrap:wrap;align-items:baseline;gap:.4rem .55rem;
  padding:.32rem 0;
}
.lh-contact__key{
  flex:0 0 auto;min-width:2.4rem;
  font-family:var(--mono);font-size:.64rem;letter-spacing:.16em;
  color:rgba(250,247,242,.42);
}
.lh-contact__val{
  font-family:var(--mono);font-size:.82rem;letter-spacing:.02em;
  color:rgba(250,247,242,.92);word-break:break-all;
}
.lh-contact__val--text{
  font-family:var(--sans);font-size:.88rem;letter-spacing:0;
  color:rgba(250,247,242,.82);
}
.lh-copy{
  margin-left:auto;
  font-family:var(--mono);font-size:.64rem;letter-spacing:.1em;
  padding:.16rem .5rem;border-radius:999px;
  border:1px solid rgba(0,229,195,.42);color:var(--cyan);
  transition:background-color .16s var(--ease),color .16s var(--ease),border-color .16s var(--ease);
}
.lh-copy:hover{background:rgba(0,229,195,.14)}
.lh-copy.is-copied{background:var(--cyan);border-color:var(--cyan);color:#08221d}

/* 页脚底条 */
.lh-footer__bar{
  width:min(100% - 2.5rem,1200px);margin-inline:auto;
  border-top:1px solid rgba(250,247,242,.12);
  padding:1.1rem 0 2rem;
  display:flex;flex-wrap:wrap;align-items:center;gap:.85rem 1.5rem;
  font-size:.78rem;color:rgba(250,247,242,.55);
}
.lh-footer__legal{line-height:1.6}
.lh-footer__legal .lh-mono{color:rgba(250,247,242,.68)}
.lh-footer__links{display:flex;flex-wrap:wrap;gap:1.1rem;margin-left:auto}
.lh-footer__links a{color:rgba(250,247,242,.72);transition:color .16s var(--ease)}
.lh-footer__links a:hover{color:var(--cyan)}
.lh-top{
  display:inline-flex;align-items:center;gap:.4rem;
  padding:.42rem .9rem;border-radius:999px;
  border:1px solid rgba(250,247,242,.24);
  font-size:.74rem;letter-spacing:.08em;
  color:rgba(250,247,242,.86);
  transition:color .16s var(--ease),border-color .16s var(--ease),background-color .16s var(--ease);
}
.lh-top::after{content:"↑";font-size:.9em;line-height:1}
.lh-top:hover{color:var(--cyan);border-color:var(--cyan);background:rgba(0,229,195,.1)}

/* ============================================================
   响应式：平板与手机
   ============================================================ */
@media (max-width:1080px){
  .lh-hide-sm{display:none !important}
}

@media (max-width:900px){
  .lh-header__actions{display:none}

  .lh-navbtn{display:inline-flex;margin-left:auto}

  .lh-nav{
    position:fixed;inset:0;z-index:120;
    margin:0;padding:6.5rem 1.5rem 2.25rem;
    display:flex;flex-direction:column;
    background:linear-gradient(160deg,#141414 0%,#1F1F1F 58%,#141414 100%);
    opacity:0;visibility:hidden;transform:translateY(-8px);
    transition:opacity .2s var(--ease),transform .2s var(--ease),visibility .2s;
    overflow-y:auto;-webkit-overflow-scrolling:touch;
  }
  .lh-nav[data-open]{opacity:1;visibility:visible;transform:none}

  .lh-nav__list{
    counter-reset:navcount;
    flex-direction:column;align-items:stretch;gap:0;
  }
  .lh-nav__item{
    counter-increment:navcount;
    border-bottom:1px solid rgba(250,247,242,.12);
  }
  .lh-nav__item:first-child{border-top:1px solid rgba(250,247,242,.12)}
  .lh-nav__link{
    display:flex;align-items:center;
    width:100%;padding:.95rem .2rem;border-radius:0;
    font-size:1.12rem;font-weight:700;
    color:rgba(250,247,242,.9);
  }
  .lh-nav__link::before{
    content:counter(navcount,decimal-leading-zero);
    font-family:var(--mono);font-size:.68rem;font-weight:500;
    letter-spacing:.1em;color:var(--cyan);
    margin-right:.85rem;opacity:.85;
  }
  .lh-nav__link::after{display:none}
  .lh-nav__link:hover{background:rgba(242,107,29,.12)}
  .lh-nav__link[aria-current="page"]{background:rgba(242,107,29,.18);color:#fff}

  .lh-nav__foot{
    display:flex;flex-wrap:wrap;gap:.65rem;
    margin-top:auto;padding-top:2rem;
  }
  .lh-nav__foot .lh-btn{flex:1 1 140px;padding-block:.8rem}
  .lh-nav__foot .lh-btn--ghost{color:rgba(250,247,242,.88);border-color:rgba(250,247,242,.3)}

  .lh-footer__bar{padding-bottom:3.5rem}
}

@media (max-width:520px){
  .lh-header__inner{width:calc(100% - 1.5rem);gap:.5rem}
  .lh-brand__tag{display:none}
  .lh-brand__mark{width:34px;height:34px;border-radius:10px}
  .lh-brand__name{font-size:.95rem}
  .lh-nav{padding:5.75rem 1.1rem 1.75rem}
  .lh-footer__cols{grid-template-columns:1fr}
  .lh-footer__links{margin-left:0}
  .lh-top{margin-left:auto}
}

/* ============================================================
   无障碍：减少动态
   ============================================================ */
@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;
  }
  html.lh-anim [data-reveal]{opacity:1 !important;transform:none !important}
  .lh-card:hover{transform:none}
  .lh-footer__list a:hover{transform:none}
}
