/* ============================================================
   亚虎官网 · 共享外壳
   文件：/assets/site.css
   ============================================================ */

/* ---------- 1. Reset ---------- */
*,*::before,*::after{box-sizing:border-box}
html{
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
  scroll-padding-top:calc(var(--header-h) + 14px);
}
@media (prefers-reduced-motion:no-preference){
  html{scroll-behavior:smooth}
}
body{margin:0;min-height:100vh}
h1,h2,h3,h4,h5,h6,p,figure,blockquote,dl,dd,ul,ol{margin:0}
ul[class],ol[class]{list-style:none;padding-left:0}
img,svg{display:block;max-width:100%;height:auto}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;padding:0}
input,textarea,select{font:inherit}

/* ---------- 2. 设计变量 ---------- */
:root{
  /* 品牌色 */
  --tiger:#D97706;
  --tiger-deep:#B25E05;
  --forest:#0F3D2E;
  --cream:#F7F1E3;
  --ink:#1C1B18;
  --gold:#B08A3C;
  --cyan:#0E7C7B;
  --sage:#DDE6DC;
  --clay:#7C4A2D;
  --night:#071F18;
  --mist:#FFFDF7;

  /* 线与影 */
  --line:rgba(28,27,24,.14);
  --line-soft:rgba(28,27,24,.08);
  --line-light:rgba(247,241,227,.16);
  --line-light-soft:rgba(247,241,227,.09);
  --shadow-sm:0 1px 0 rgba(28,27,24,.05), 0 18px 36px -32px rgba(7,31,24,.75);
  --radius:3px;

  /* 字体 */
  --font-display:"Helvetica Neue","Arial Narrow","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  --font-serif:Georgia,"Songti SC","SimSun","Noto Serif SC",serif;
  --font-body:"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Source Han Sans SC",system-ui,-apple-system,sans-serif;
  --font-mono:"SFMono-Regular",Menlo,Consolas,"Liberation Mono","Courier New",monospace;

  /* 尺度 */
  --header-h:78px;
  --frame-max:1240px;
  --gutter:clamp(16px,4vw,24px);
}

/* ---------- 3. 中文排版与基调 ---------- */
body{
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.78;
  letter-spacing:.012em;
  color:var(--ink);
  background-color:var(--cream);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
h1,h2,h3,h4{
  font-family:var(--font-display);
  font-weight:800;
  line-height:1.16;
  letter-spacing:-.018em;
  color:var(--forest);
  text-wrap:balance;
}
h1{font-size:clamp(2rem,4.4vw,3.3rem)}
h2{font-size:clamp(1.5rem,2.7vw,2.15rem)}
h3{font-size:clamp(1.15rem,1.7vw,1.42rem)}
h4{font-size:1.03rem;letter-spacing:0}
p{text-wrap:pretty}
strong{font-weight:700;color:var(--forest)}
::selection{background:var(--tiger);color:var(--night)}

.num{
  font-family:var(--font-mono);
  font-variant-numeric:tabular-nums;
  letter-spacing:.01em;
}
.serif-note{
  font-family:var(--font-serif);
  font-weight:400;
  letter-spacing:.01em;
  color:var(--clay);
}

/* ---------- 4. 焦点与可访问性 ---------- */
:focus-visible{
  outline:2px solid var(--tiger);
  outline-offset:3px;
  border-radius:2px;
}
.skip-link{
  position:fixed;
  top:-100px;
  left:clamp(12px,3vw,20px);
  z-index:999;
  padding:12px 20px;
  background:var(--tiger);
  color:var(--night);
  font-weight:700;
  font-size:14px;
  letter-spacing:.06em;
  border-radius:var(--radius);
  box-shadow:0 12px 28px -16px rgba(7,31,24,.9);
  transition:top .18s ease;
}
.skip-link:focus{top:12px}

/* ---------- 5. 容器与基础件 ---------- */
.wrap{
  width:100%;
  max-width:var(--frame-max);
  margin-inline:auto;
  padding-inline:var(--gutter);
}
.section{padding-block:clamp(40px,6vw,80px)}
.section-head{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px 32px;
  padding-bottom:16px;
  border-bottom:1px solid var(--line);
  margin-bottom:clamp(20px,3vw,34px);
}
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:9px;
  font-family:var(--font-mono);
  font-size:11px;
  letter-spacing:.2em;
  line-height:1.4;
  color:var(--clay);
}
.eyebrow::before{
  content:"";
  width:20px;
  height:1px;
  background:var(--tiger);
  flex:0 0 auto;
}
.rule{height:1px;background:var(--line);border:0;margin:0}

/* ---------- 6. 按钮 ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:11px 18px;
  border:1px solid transparent;
  border-radius:var(--radius);
  font-size:13.5px;
  font-weight:600;
  letter-spacing:.06em;
  line-height:1.3;
  cursor:pointer;
  transition:background-color .18s ease,color .18s ease,border-color .18s ease,transform .18s ease;
}
.btn--solid{
  background:var(--tiger);
  color:var(--night);
  border-color:var(--tiger);
}
.btn--solid:hover{background:var(--tiger-deep);border-color:var(--tiger-deep);color:var(--mist)}
.btn--solid:active{transform:translateY(1px)}
.btn--ghost{
  background:transparent;
  color:var(--cream);
  border-color:rgba(247,241,227,.34);
}
.btn--ghost:hover{border-color:var(--tiger);color:var(--tiger);background:rgba(217,119,6,.08)}
.btn--line{
  background:transparent;
  color:var(--forest);
  border-color:rgba(15,61,46,.32);
}
.btn--line:hover{border-color:var(--tiger);color:var(--tiger);background:rgba(217,119,6,.06)}
.btn--block{width:100%}

.link-arrow{
  display:inline-flex;
  align-items:center;
  gap:9px;
  font-weight:600;
  color:var(--forest);
  border-bottom:1px solid transparent;
  transition:color .18s ease,border-color .18s ease;
}
.link-arrow::after{content:"→";transition:transform .18s ease}
.link-arrow:hover{color:var(--tiger);border-bottom-color:var(--tiger)}
.link-arrow:hover::after{transform:translateX(4px)}
.link-arrow:focus-visible{color:var(--tiger);border-bottom-color:var(--tiger)}

/* ---------- 7. 标签、面板、媒体容器 ---------- */
.tag{
  display:inline-block;
  padding:3px 10px;
  border:1px solid rgba(15,61,46,.22);
  border-radius:999px;
  background:rgba(221,230,220,.65);
  font-size:11.5px;
  line-height:1.6;
  letter-spacing:.06em;
  color:var(--forest);
}
.panel{
  position:relative;
  background:var(--mist);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow-sm);
  padding:clamp(18px,2.2vw,26px);
}
.panel--sage{background:var(--sage);border-color:rgba(15,61,46,.14)}
.panel--dark{
  background:var(--forest);
  border-color:var(--line-light);
  color:rgba(247,241,227,.86);
}
.panel--dark h2,.panel--dark h3,.panel--dark h4{color:var(--mist)}
.panel--accent{border-left:3px solid var(--tiger)}

.media{
  position:relative;
  overflow:hidden;
  aspect-ratio:16/10;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background-color:var(--sage);
  background-image:
    repeating-linear-gradient(115deg,rgba(15,61,46,.07) 0 6px,rgba(15,61,46,0) 6px 22px),
    linear-gradient(158deg,var(--sage) 0%,var(--mist) 100%);
}
.media img{width:100%;height:100%;object-fit:cover}
.media--wide{aspect-ratio:21/9}
.media--tall{aspect-ratio:4/5}
.media--square{aspect-ratio:1/1}
.media__caption{
  margin-top:10px;
  font-size:12.5px;
  line-height:1.65;
  letter-spacing:.02em;
  color:rgba(28,27,24,.62);
}

/* ---------- 8. 面包屑 ---------- */
.breadcrumb{
  padding-block:clamp(14px,2vw,20px);
  font-family:var(--font-mono);
  font-size:11.5px;
  letter-spacing:.08em;
  color:rgba(28,27,24,.55);
}
.breadcrumb ol{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  list-style:none;
  margin:0;
  padding:0;
}
.breadcrumb li+li::before{content:"/";margin-right:7px;color:var(--gold)}
.breadcrumb a{
  color:var(--forest);
  text-decoration:underline;
  text-underline-offset:3px;
  text-decoration-color:rgba(15,61,46,.28);
  transition:color .18s ease,text-decoration-color .18s ease;
}
.breadcrumb a:hover{color:var(--tiger);text-decoration-color:var(--tiger)}

/* ---------- 9. 页头 ---------- */
.site-header{
  position:sticky;
  top:0;
  z-index:80;
  background:var(--forest);
  color:var(--cream);
  border-bottom:1px solid rgba(176,138,60,.55);
}
.header-meter{
  position:absolute;
  inset:0 0 auto 0;
  height:2px;
  background:rgba(247,241,227,.10);
  pointer-events:none;
}
.header-meter__fill{
  display:block;
  height:100%;
  width:0;
  background:linear-gradient(90deg,var(--tiger) 0%,var(--gold) 100%);
  transition:width .12s linear;
}
.header-frame{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  width:100%;
  max-width:var(--frame-max);
  min-height:var(--header-h);
  margin-inline:auto;
  padding-inline:var(--gutter);
  border-left:1px solid var(--line-light-soft);
  border-right:1px solid var(--line-light-soft);
}
.header-brand{
  display:flex;
  align-items:center;
  gap:20px;
  min-width:0;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  color:var(--cream);
}
.brand__mark{
  position:relative;
  flex:0 0 auto;
  width:38px;
  height:38px;
  border-radius:4px;
  overflow:hidden;
  background:linear-gradient(135deg,var(--tiger) 0%,var(--tiger-deep) 100%);
  box-shadow:inset 0 0 0 1px rgba(247,241,227,.28);
}
.brand__mark::before{
  content:"";
  position:absolute;
  inset:-32%;
  background:repeating-linear-gradient(115deg,rgba(7,31,24,.88) 0 3px,rgba(7,31,24,0) 3px 11px);
  transform:rotate(7deg);
}
.brand__text{display:flex;flex-direction:column;gap:1px;min-width:0}
.brand__name{
  display:block;
  font-family:var(--font-display);
  font-size:20px;
  font-weight:800;
  line-height:1.1;
  letter-spacing:.16em;
  color:var(--mist);
}
.brand__tag{
  display:block;
  font-family:var(--font-mono);
  font-size:10.5px;
  line-height:1.3;
  letter-spacing:.2em;
  color:rgba(247,241,227,.6);
}
.header-utility{
  display:none;
  padding-left:20px;
  border-left:1px solid var(--line-light);
  font-family:var(--font-mono);
  font-size:11px;
  line-height:1.5;
  letter-spacing:.1em;
  color:rgba(247,241,227,.52);
  white-space:nowrap;
}

/* 移动导航按钮 */
.nav-toggle{
  display:none;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border:1px solid rgba(247,241,227,.3);
  border-radius:var(--radius);
  color:var(--cream);
  font-family:var(--font-mono);
  font-size:11.5px;
  letter-spacing:.16em;
  cursor:pointer;
  transition:border-color .18s ease,color .18s ease,background-color .18s ease;
}
.nav-toggle:hover,.nav-toggle[aria-expanded="true"]{
  border-color:var(--tiger);
  color:var(--tiger);
  background:rgba(217,119,6,.08);
}
.nav-toggle__bars{display:grid;gap:5px;width:18px;flex:0 0 auto}
.nav-toggle__bars span{
  display:block;
  height:2px;
  background:currentColor;
  transition:transform .22s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:first-child{transform:translateY(3.5px) rotate(45deg)}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:last-child{transform:translateY(-3.5px) rotate(-45deg)}
.nav-toggle__label{white-space:nowrap}

/* 导航 */
.site-nav{
  display:flex;
  align-items:center;
  gap:18px;
  min-width:0;
}
.site-nav__list{
  display:flex;
  align-items:center;
  gap:0;
}
.site-nav__link{
  position:relative;
  display:block;
  padding:11px 12px;
  border-left:1px solid var(--line-light-soft);
  font-size:13.5px;
  line-height:1.4;
  letter-spacing:.05em;
  color:rgba(247,241,227,.76);
  transition:color .18s ease,background-color .18s ease;
}
.site-nav__list li:first-child .site-nav__link{border-left:0}
.site-nav__link::after{
  content:"";
  position:absolute;
  left:12px;
  right:12px;
  bottom:5px;
  height:1px;
  background:var(--tiger);
  transform:scaleX(0);
  transform-origin:left center;
  transition:transform .24s ease;
}
.site-nav__link:hover{color:var(--mist);background:rgba(247,241,227,.06)}
.site-nav__link:hover::after{transform:scaleX(1)}
.site-nav__link[aria-current="page"]{color:var(--tiger)}
.site-nav__link[aria-current="page"]::after{transform:scaleX(1)}
.site-nav__link:focus-visible{color:var(--tiger)}
.header-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex:0 0 auto;
}

/* ---------- 10. 页脚 ---------- */
.site-footer{
  position:relative;
  margin-top:clamp(48px,7vw,96px);
  background:var(--night);
  color:rgba(247,241,227,.8);
  border-top:1px solid rgba(176,138,60,.6);
  overflow:hidden;
}
.site-footer::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:132px;
  background:repeating-linear-gradient(112deg,rgba(217,119,6,.11) 0 6px,rgba(217,119,6,0) 6px 26px);
  pointer-events:none;
}
.footer-frame{
  position:relative;
  width:100%;
  max-width:var(--frame-max);
  margin-inline:auto;
  padding:clamp(34px,5vw,62px) var(--gutter) clamp(28px,4vw,44px);
  border-left:1px solid var(--line-light-soft);
  border-right:1px solid var(--line-light-soft);
}
.footer-lead{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px 32px;
  padding-bottom:clamp(20px,3vw,28px);
  border-bottom:1px solid var(--line-light);
  margin-bottom:clamp(24px,4vw,38px);
}
.footer-brandline{
  max-width:36ch;
  font-family:var(--font-serif);
  font-size:clamp(17px,2.2vw,23px);
  line-height:1.55;
  letter-spacing:.01em;
  color:var(--mist);
}
.footer-lead__cta{flex:0 0 auto}
.footer-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:clamp(24px,4vw,40px) clamp(20px,3vw,32px);
}
.footer-col{min-width:0}
.footer-col__title{
  display:flex;
  align-items:center;
  gap:9px;
  margin-bottom:14px;
  font-family:var(--font-display);
  font-size:12.5px;
  font-weight:800;
  letter-spacing:.18em;
  line-height:1.4;
  color:var(--gold);
}
.footer-col__title::before{
  content:"";
  width:14px;
  height:1px;
  background:var(--tiger);
  flex:0 0 auto;
}
.footer-col__list{display:grid;gap:10px}
.footer-col__list a{
  position:relative;
  display:inline-block;
  font-size:14px;
  line-height:1.5;
  color:rgba(247,241,227,.74);
  transition:color .18s ease,padding-left .18s ease;
}
.footer-col__list a::after{
  content:"";
  position:absolute;
  left:0;
  right:100%;
  bottom:-2px;
  height:1px;
  background:var(--tiger);
  transition:right .24s ease;
}
.footer-col__list a:hover{color:var(--mist);padding-left:4px}
.footer-col__list a:hover::after{right:0}
.footer-col__list a:focus-visible{color:var(--tiger)}

.footer-contact{min-width:0}
.footer-contact__list{display:grid;gap:12px;margin-bottom:14px}
.footer-contact__item{display:grid;gap:3px}
.footer-contact__label{
  font-family:var(--font-mono);
  font-size:10.5px;
  letter-spacing:.2em;
  line-height:1.4;
  color:rgba(247,241,227,.42);
}
.footer-contact__value{
  font-size:13.5px;
  line-height:1.6;
  color:rgba(247,241,227,.82);
  word-break:break-word;
}
.copy-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  align-self:start;
  max-width:100%;
  padding:7px 12px;
  border:1px solid rgba(247,241,227,.24);
  border-radius:var(--radius);
  background:rgba(247,241,227,.03);
  font-family:var(--font-mono);
  font-size:12.5px;
  line-height:1.4;
  letter-spacing:.02em;
  color:var(--cream);
  cursor:pointer;
  word-break:break-all;
  text-align:left;
  transition:border-color .18s ease,color .18s ease,background-color .18s ease;
}
.copy-btn::after{content:"复制";font-size:10.5px;letter-spacing:.14em;color:rgba(247,241,227,.45);flex:0 0 auto}
.copy-btn:hover{border-color:var(--tiger);color:var(--tiger);background:rgba(217,119,6,.08)}
.copy-btn:hover::after{color:var(--tiger)}
.copy-btn[data-copied]{border-color:var(--cyan);color:var(--cyan);background:rgba(14,124,123,.12)}
.copy-btn[data-copied]::after{content:"已复制";color:var(--cyan)}
.copy-feedback{
  display:block;
  min-height:1.2em;
  font-family:var(--font-mono);
  font-size:11px;
  letter-spacing:.06em;
  color:var(--cyan);
  opacity:0;
  transition:opacity .2s ease;
}
.copy-feedback[data-visible]{opacity:1}
.footer-note{
  font-size:11.5px;
  line-height:1.7;
  letter-spacing:.01em;
  color:rgba(247,241,227,.44);
}
.footer-base{
  position:relative;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:8px 24px;
  width:100%;
  max-width:var(--frame-max);
  margin-inline:auto;
  padding:18px var(--gutter) 26px;
  border-top:1px solid var(--line-light-soft);
  font-family:var(--font-mono);
  font-size:11.5px;
  letter-spacing:.07em;
  color:rgba(247,241,227,.44);
}

/* ---------- 11. 渐显（由 JS 开启） ---------- */
.has-reveal [data-reveal]{
  opacity:0;
  transform:translateY(16px);
  transition:opacity .55s ease,transform .55s ease;
  will-change:opacity,transform;
}
.has-reveal [data-reveal].is-revealed{
  opacity:1;
  transform:none;
}

/* ---------- 12. 响应式 ---------- */
@media (min-width:1100px){
  .header-utility{display:block}
}
@media (min-width:981px) and (max-width:1179px){
  .header-actions .btn--ghost{display:none}
}
@media (max-width:1080px){
  :root{--header-h:66px}
  .header-frame{min-height:var(--header-h)}
  .nav-toggle{display:inline-flex}
  .site-nav{
    position:absolute;
    top:100%;
    left:0;
    right:0;
    display:none;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    padding:6px var(--gutter) 20px;
    background:var(--night);
    border-top:1px solid rgba(176,138,60,.5);
    border-bottom:1px solid rgba(176,138,60,.5);
    box-shadow:0 28px 44px -30px rgba(0,0,0,.9);
    max-height:calc(100vh - var(--header-h));
    overflow-y:auto;
  }
  .site-nav[data-open]{display:flex}
  .site-nav__list{flex-direction:column;align-items:stretch;gap:0}
  .site-nav__link{
    border-left:0;
    border-bottom:1px solid var(--line-light-soft);
    padding:14px 4px;
    font-size:15px;
    letter-spacing:.06em;
  }
  .site-nav__link::after{display:none}
  .site-nav__link[aria-current="page"]{
    color:var(--tiger);
    border-bottom-color:rgba(217,119,6,.5);
    background:rgba(217,119,6,.07);
  }
  .header-actions{
    flex-direction:column;
    align-items:stretch;
    gap:10px;
    padding-top:14px;
  }
  .header-actions .btn{width:100%}
}
@media (max-width:720px){
  .brand__tag{display:none}
  .footer-lead{flex-direction:column;align-items:flex-start}
  .footer-lead__cta{width:100%}
  .footer-base{flex-direction:column;align-items:flex-start}
}
@media (max-width:400px){
  .nav-toggle__label{display:none}
  .btn{padding:11px 14px;font-size:13px}
}

/* ---------- 13. 降低动效 ---------- */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
    scroll-behavior:auto !important;
  }
  .has-reveal [data-reveal]{opacity:1;transform:none}
  .header-meter__fill{transition:none}
}

/* ---------- 14. 打印 ---------- */
@media print{
  .site-header,.site-footer,.skip-link{display:none !important}
  body{background:#fff;color:#000}
}
