/* ==========================================================================
   至尊品牌信誉中心 · 共享样式 /assets/site.css
   语汇：档案盒、索引标签、版本印章、对角色块、山峦剪影
   ========================================================================== */

:root{
  --forest:#0E2A23;
  --forest-2:#173D33;
  --moss:#4F6B5E;
  --gold:#C8A24A;
  --gold-deep:#8A6A1F;
  --gold-light:#E4C97E;
  --stone:#6E746F;
  --paper:#F7F2E7;
  --card:#FFFCF5;
  --ink:#101815;
  --seal:#8C3B2E;

  --font-display:"Noto Serif SC","Songti SC",STSong,"SimSun",serif;
  --font-body:"Noto Sans SC","PingFang SC","Microsoft YaHei",system-ui,-apple-system,sans-serif;
  --font-mono:"JetBrains Mono","IBM Plex Mono",SFMono-Regular,Consolas,"Courier New",monospace;

  --gutter:6vw;
  --maxw:1320px;
  --ease:180ms ease;
  --shadow-card:6px 6px 0 rgba(14,42,35,.14);
  --shadow-card-hover:9px 9px 0 rgba(14,42,35,.22);
}

/* ---------- reset ---------- */
*,*::before,*::after{box-sizing:border-box;}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;}
body,h1,h2,h3,h4,h5,p,ul,ol,dl,dd,figure,blockquote{margin:0;}
ul,ol{padding:0;list-style:none;}
img,svg,video{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%;}
:focus-visible{outline:2px solid var(--gold-deep);outline-offset:3px;}
.site-footer :focus-visible,
.site-header__util :focus-visible{outline-color:var(--gold);}

/* ---------- base ---------- */
body{
  font-family:var(--font-body);
  font-size:clamp(1rem,.5vw + .88rem,1.075rem);
  line-height:1.78;
  color:var(--ink);
  background-color:var(--paper);
  background-image:
    radial-gradient(1200px 620px at 88% -8%, rgba(200,162,74,.17), transparent 62%),
    radial-gradient(900px 520px at -6% 2%, rgba(14,42,35,.07), transparent 58%);
  background-repeat:no-repeat;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

h1,h2,h3,h4{
  font-family:var(--font-display);
  font-weight:800;
  line-height:1.16;
  letter-spacing:-.012em;
  color:var(--forest);
}
h1{font-size:clamp(2.5rem,5.4vw,4.5rem);font-weight:900;}
h2{font-size:clamp(1.7rem,3vw,2.5rem);}
h3{font-size:clamp(1.2rem,1.6vw,1.55rem);font-weight:700;}
h4{font-size:1.05rem;font-weight:700;letter-spacing:0;}
p{text-wrap:pretty;}

/* ---------- utilities ---------- */
.container{
  width:min(100% - 2 * var(--gutter), var(--maxw));
  margin-inline:auto;
}
.section{padding-block:clamp(44px,6vw,92px);}
.section__head{display:grid;gap:14px;max-width:70ch;margin-bottom:clamp(22px,3.4vw,44px);}
.eyebrow{
  display:flex;align-items:center;gap:.7em;
  font-family:var(--font-mono);
  font-size:.74rem;font-weight:600;letter-spacing:.22em;
  color:var(--gold-deep);
}
.eyebrow::before{content:"";width:30px;height:2px;background:var(--gold);flex:none;}
.lead{max-width:64ch;font-size:clamp(1.05rem,1.1vw,1.22rem);line-height:1.7;color:var(--forest-2);}
.meta{
  font-family:var(--font-mono);
  font-size:.76rem;letter-spacing:.1em;
  color:var(--stone);
}
.rule{border:0;border-top:2px solid rgba(14,42,35,.2);margin-block:clamp(24px,4vw,48px);}
.visually-hidden{
  position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;
}

/* ---------- skip link & progress ---------- */
.skip-link{
  position:absolute;left:16px;top:-120px;z-index:300;
  display:inline-flex;align-items:center;
  padding:.7em 1.2em;
  background:var(--gold);color:var(--forest);
  font-weight:700;letter-spacing:.04em;
  border:2px solid var(--forest);
  transition:top var(--ease);
}
.skip-link:focus{top:12px;}

.scroll-progress{
  position:fixed;inset:0 0 auto 0;height:3px;z-index:250;
  pointer-events:none;background:rgba(14,42,35,.1);
}
.scroll-progress__bar{
  display:block;height:100%;width:100%;
  transform:scaleX(0);transform-origin:0 50%;
  background:linear-gradient(90deg,var(--gold-deep),var(--gold),var(--gold-light));
}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.55em;
  padding:.78em 1.45em;
  font-family:var(--font-body);font-size:.94rem;font-weight:600;letter-spacing:.03em;
  border:2px solid var(--forest);
  background:var(--forest);color:var(--paper);
  cursor:pointer;
  transition:background var(--ease),color var(--ease),border-color var(--ease),transform var(--ease);
}
.btn:hover{background:var(--gold);border-color:var(--gold);color:var(--forest);transform:translate(-1px,-1px);}
.btn--gold{background:var(--gold);border-color:var(--gold);color:var(--forest);}
.btn--gold:hover{background:var(--gold-light);border-color:var(--gold-light);}
.btn--outline{background:transparent;color:var(--forest);border-color:var(--forest);}
.btn--outline:hover{background:var(--forest);color:var(--paper);border-color:var(--forest);}
.btn--ghost{background:transparent;border-color:var(--gold);color:var(--gold-light);}
.btn--ghost:hover{background:var(--gold);border-color:var(--gold);color:var(--forest);}

/* ---------- chips / tags / stamp ---------- */
.chip{
  display:inline-flex;align-items:center;gap:.45em;
  padding:.38em .85em;
  font-size:.84rem;font-weight:500;
  color:var(--forest);
  background:var(--card);
  border:1px solid rgba(16,24,21,.24);
  cursor:pointer;
  transition:background var(--ease),color var(--ease),border-color var(--ease);
}
.chip:hover{border-color:var(--gold-deep);}
.chip[aria-pressed="true"]{background:var(--forest);border-color:var(--forest);color:var(--paper);}

.tag{
  display:inline-flex;align-items:center;gap:.4em;
  padding:.16em .6em;
  font-family:var(--font-mono);font-size:.72rem;letter-spacing:.08em;
  border:1px solid currentColor;background:transparent;white-space:nowrap;
}
.tag::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;flex:none;}
.tag--stable{color:var(--gold-deep);background:rgba(200,162,74,.14);}
.tag--legacy{color:var(--stone);}
.tag--sealed{color:var(--seal);}

.stamp{
  display:inline-grid;place-items:center;
  width:64px;height:64px;
  font-family:var(--font-display);font-size:1.05rem;font-weight:800;letter-spacing:.08em;
  line-height:1.1;text-align:center;
  color:var(--seal);border:2px solid var(--seal);
  transform:rotate(-6deg);
}

/* ---------- breadcrumb ---------- */
.breadcrumb{
  display:flex;flex-wrap:wrap;align-items:center;gap:.15em;
  font-family:var(--font-mono);font-size:.76rem;letter-spacing:.08em;
  color:var(--stone);
}
.breadcrumb li{display:inline-flex;align-items:center;}
.breadcrumb li + li::before{content:"/";margin-inline:.55em;color:var(--gold);}
.breadcrumb a{border-bottom:1px solid transparent;transition:color var(--ease),border-color var(--ease);}
.breadcrumb a:hover{color:var(--forest);border-bottom-color:var(--gold);}

/* ---------- prose ---------- */
.prose{max-width:68ch;font-size:1.02rem;color:var(--ink);}
.prose > * + *{margin-top:1.05em;}
.prose h2{margin-top:1.9em;}
.prose h3{margin-top:1.5em;}
.prose ul,.prose ol{padding-left:1.3em;margin-top:1em;}
.prose ul li{list-style:square;}
.prose ol li{list-style:decimal;}
.prose li + li{margin-top:.4em;}
.prose a{color:var(--gold-deep);text-decoration:underline;text-underline-offset:.22em;}
.prose a:hover{color:var(--forest);text-decoration-color:var(--gold);}
.prose strong{color:var(--forest);}

/* ---------- card ---------- */
.card{
  background:var(--card);
  border:2px solid var(--forest);
  padding:clamp(20px,2.3vw,32px);
  box-shadow:var(--shadow-card);
  transition:box-shadow var(--ease),transform var(--ease),border-color var(--ease);
}
.card:hover{transform:translate(-2px,-2px);box-shadow:var(--shadow-card-hover);}
.card__label{
  display:block;
  font-family:var(--font-mono);font-size:.72rem;letter-spacing:.18em;
  color:var(--gold-deep);
}
.card__title{
  margin-top:.5em;
  font-family:var(--font-display);font-size:1.3rem;font-weight:700;line-height:1.35;
  color:var(--forest);
}
.card__text{margin-top:.55em;font-size:.96rem;color:var(--forest-2);}
.card__foot{
  margin-top:1.2em;padding-top:.85em;
  border-top:1px dashed rgba(14,42,35,.25);
  display:flex;flex-wrap:wrap;gap:.6em;align-items:center;justify-content:space-between;
}

/* ---------- media frame ---------- */
.media-frame{
  position:relative;
  aspect-ratio:4 / 3;
  overflow:hidden;
  border:2px solid var(--forest);
  background-color:var(--card);
  background-image:repeating-linear-gradient(-45deg,rgba(14,42,35,.06) 0 8px,transparent 8px 18px);
}
.media-frame--wide{aspect-ratio:16 / 9;}
.media-frame img{width:100%;height:100%;object-fit:cover;}
.media-frame__caption{
  position:absolute;left:0;bottom:0;
  padding:.42em .85em;
  background:var(--forest);color:var(--paper);
  font-family:var(--font-mono);font-size:.72rem;letter-spacing:.1em;
}

/* ---------- layout & timeline ---------- */
.layout-split{
  display:grid;
  grid-template-columns:minmax(0,3fr) minmax(0,9fr);
  gap:clamp(24px,4vw,64px);
  align-items:start;
}
.timeline{
  position:relative;
  padding-left:26px;
  border-left:2px solid rgba(14,42,35,.18);
}
.timeline__item{position:relative;padding-bottom:clamp(20px,3vw,34px);}
.timeline__item::before{
  content:"";position:absolute;left:-33px;top:.55em;
  width:14px;height:14px;border-radius:50%;
  background:var(--paper);border:2px solid var(--gold-deep);
}
.timeline__item[data-current]::before{
  background:var(--gold);border-color:var(--gold-deep);
  box-shadow:0 0 0 4px rgba(200,162,74,.22);
}
.timeline__date{
  display:block;margin-bottom:.2em;
  font-family:var(--font-mono);font-size:.74rem;letter-spacing:.1em;
  color:var(--gold-deep);
}

/* ==========================================================================
   站点头部
   ========================================================================== */
.site-header{
  position:relative;z-index:100;
  background:var(--paper);
  border-bottom:3px solid var(--forest);
}
.site-header__util{background:var(--forest);color:var(--paper);}
.site-header__util-inner{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;
  gap:6px 24px;
  padding-block:9px;
  font-family:var(--font-mono);font-size:.71rem;letter-spacing:.12em;
}
.site-header__meta{
  display:inline-flex;align-items:center;gap:.6em;
  color:rgba(247,242,231,.78);
}
.site-header__meta--right{color:var(--gold-light);}
.site-header__dot{
  width:7px;height:7px;border-radius:50%;flex:none;
  background:var(--gold);
  box-shadow:0 0 0 3px rgba(200,162,74,.24);
}

.masthead{
  position:relative;
  padding-block:clamp(22px,3vw,38px) clamp(16px,2vw,26px);
  text-align:center;
}
.masthead__brand{
  display:inline-block;
  font-family:var(--font-display);
  font-size:clamp(1.85rem,4.6vw,3.4rem);
  font-weight:900;letter-spacing:.06em;line-height:1.06;
  color:var(--forest);
  transition:color var(--ease);
}
.masthead__brand::after{
  content:"";display:block;height:3px;width:0;margin:.26em auto 0;
  background:var(--gold);
  transition:width var(--ease);
}
.masthead__brand:hover{color:var(--forest-2);}
.masthead__brand:hover::after{width:100%;}
.masthead__sub{
  display:inline-flex;align-items:center;gap:.9em;
  margin-top:.6em;
  font-family:var(--font-mono);font-size:.73rem;letter-spacing:.32em;
  color:var(--stone);
}
.masthead__sub::before,
.masthead__sub::after{content:"";width:34px;height:1px;background:var(--gold);flex:none;}
.masthead__seal{
  position:absolute;right:0;top:50%;
  display:grid;place-items:center;
  width:58px;height:58px;
  font-family:var(--font-display);font-size:1.5rem;font-weight:800;
  color:var(--seal);border:2px solid var(--seal);
  transform:translateY(-50%) rotate(-7deg);
}

.site-header__navwrap{
  background:var(--paper);
  border-top:1px solid rgba(16,24,21,.16);
}
.site-header__navinner{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:16px;
  min-height:60px;
  padding-block:2px;
}
.site-header__spine{
  font-family:var(--font-mono);font-size:.69rem;letter-spacing:.24em;
  text-transform:uppercase;color:var(--stone);
}
.site-nav{grid-column:2;}
.site-nav__list{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:center;
  gap:clamp(12px,1.9vw,30px);
}
.site-nav__item{display:flex;}
.site-nav__link{
  position:relative;display:inline-block;
  padding:.4em 0;
  font-size:.95rem;font-weight:500;color:var(--forest);
  border-bottom:2px solid transparent;
  transition:color var(--ease),border-color var(--ease);
}
.site-nav__link:hover{color:var(--gold-deep);border-bottom-color:var(--gold);}
.site-nav__link[aria-current="page"]{
  font-weight:700;color:var(--forest);
  border-bottom-color:var(--gold);
}
.site-nav__cta{
  grid-column:3;justify-self:end;
  display:inline-flex;align-items:center;gap:.5em;
  padding:.55em 1.1em;
  font-size:.84rem;font-weight:600;letter-spacing:.04em;
  color:var(--forest);
  border:2px solid var(--gold-deep);
  background:transparent;
  transition:background var(--ease),color var(--ease),border-color var(--ease);
}
.site-nav__cta::after{content:"→";font-family:var(--font-mono);transition:transform var(--ease);}
.site-nav__cta:hover{background:var(--forest);border-color:var(--forest);color:var(--gold-light);}
.site-nav__cta:hover::after{transform:translateX(4px);}

.nav-toggle{
  display:none;
  align-items:center;gap:.65em;
  padding:.5em .85em;
  font-size:.84rem;font-weight:700;
  color:var(--forest);
  background:var(--card);
  border:2px solid var(--forest);
  transition:background var(--ease),color var(--ease);
}
.nav-toggle__label{font-family:var(--font-mono);letter-spacing:.14em;}
.nav-toggle__bars{display:inline-flex;flex-direction:column;gap:3px;width:18px;flex:none;}
.nav-toggle__bars i{
  display:block;height:2px;width:100%;background:currentColor;
  transition:transform var(--ease),opacity var(--ease);
}
.nav-toggle[aria-expanded="true"]{background:var(--forest);color:var(--paper);}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1){transform:translateY(5px) rotate(45deg);}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2){opacity:0;}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3){transform:translateY(-5px) rotate(-45deg);}

/* ==========================================================================
   站点页脚
   ========================================================================== */
.site-footer{
  position:relative;
  margin-top:clamp(48px,8vw,110px);
  padding-top:clamp(46px,6vw,78px);
  background:var(--forest);
  color:var(--paper);
  overflow:hidden;
}
.site-footer__ridge{
  position:absolute;left:0;right:0;top:0;height:68px;
  pointer-events:none;
}
.site-footer__ridge::before,
.site-footer__ridge::after{
  content:"";position:absolute;inset:0;
  background:var(--forest-2);
  clip-path:polygon(0 100%,10% 52%,22% 82%,36% 34%,50% 76%,64% 40%,78% 78%,90% 56%,100% 100%);
}
.site-footer__ridge::after{
  background:rgba(200,162,74,.26);
  clip-path:polygon(0 100%,7% 74%,18% 50%,32% 84%,46% 58%,60% 88%,74% 62%,86% 84%,100% 68%,100% 100%);
}
.site-footer__inner{
  position:relative;z-index:1;
  display:grid;
  grid-template-columns:minmax(0,1.55fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1.2fr);
  gap:clamp(26px,3.6vw,56px);
  padding-block:clamp(24px,3.4vw,44px) clamp(34px,4.6vw,60px);
}
.site-footer__brand{display:grid;justify-items:start;gap:0;}
.site-footer__kicker{
  font-family:var(--font-mono);font-size:.71rem;letter-spacing:.24em;
  color:var(--gold);
}
.site-footer__brandmark{
  margin-top:.55em;
  font-family:var(--font-display);
  font-size:clamp(1.5rem,2.3vw,2rem);
  font-weight:800;letter-spacing:.04em;line-height:1.2;
  color:var(--paper);
  border-bottom:2px solid transparent;
  transition:color var(--ease),border-color var(--ease);
}
.site-footer__brandmark:hover{color:var(--gold-light);border-bottom-color:var(--gold);}
.site-footer__tagline{
  margin-top:.85em;max-width:32ch;
  font-size:.95rem;line-height:1.75;
  color:rgba(247,242,231,.72);
}
.site-footer__stamp{
  display:grid;place-items:center;
  width:52px;height:52px;margin-top:20px;
  font-family:var(--font-display);font-size:.95rem;font-weight:800;
  color:var(--gold);border:2px solid var(--gold);
  transform:rotate(-6deg);
}
.site-footer__brand .btn{margin-top:22px;}

.site-footer__col{min-width:0;}
.site-footer__col--contact{min-width:0;}
.site-footer__title{
  padding-bottom:.7em;margin-bottom:.95em;
  font-family:var(--font-mono);font-size:.71rem;font-weight:600;letter-spacing:.24em;
  color:var(--gold);
  border-bottom:1px solid rgba(200,162,74,.36);
}
.site-footer__list{display:grid;gap:.55em;}
.site-footer__link{
  display:inline-block;
  font-size:.95rem;
  color:rgba(247,242,231,.84);
  border-bottom:1px solid transparent;
  transition:color var(--ease),border-color var(--ease);
}
.site-footer__link:hover{color:var(--gold-light);border-bottom-color:var(--gold);}
.site-footer__contact{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:.55em .95em;
  font-size:.92rem;
}
.site-footer__contact dt{
  padding-top:.2em;
  font-family:var(--font-mono);font-size:.71rem;letter-spacing:.1em;
  color:rgba(247,242,231,.55);
}
.site-footer__contact dd{
  color:rgba(247,242,231,.9);
  word-break:break-word;
}
.site-footer__base{
  position:relative;z-index:1;
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;
  gap:10px 28px;
  padding-block:18px 26px;
  border-top:1px solid rgba(247,242,231,.16);
  font-family:var(--font-mono);font-size:.71rem;letter-spacing:.09em;
  color:rgba(247,242,231,.6);
}
.site-footer__copy{margin:0;}
.site-footer__legal a{
  color:rgba(247,242,231,.76);
  border-bottom:1px solid rgba(200,162,74,.42);
  transition:color var(--ease),border-color var(--ease);
}
.site-footer__legal a:hover{color:var(--gold-light);border-bottom-color:var(--gold);}
.site-footer__icp{color:var(--gold-light);}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width:1100px){
  .masthead__seal{display:none;}
}

@media (max-width:1080px){
  .site-footer__inner{grid-template-columns:repeat(2,minmax(0,1fr));}
}

@media (max-width:900px){
  .site-header__navinner{
    grid-template-columns:1fr auto;
    gap:10px 12px;
    min-height:56px;
  }
  .site-header__spine{grid-column:1;font-size:.66rem;letter-spacing:.18em;}
  .nav-toggle{display:inline-flex;grid-column:2;justify-self:end;}
  .site-nav{
    grid-column:1 / -1;
    display:none;
    padding-block:6px 2px;
    border-top:1px solid rgba(16,24,21,.14);
  }
  .site-nav[data-open]{display:block;}
  .site-nav__list{flex-direction:column;align-items:stretch;justify-content:flex-start;gap:0;}
  .site-nav__item{border-bottom:1px solid rgba(16,24,21,.1);}
  .site-nav__link{
    display:block;width:100%;
    padding:.85em 4px;
    font-size:1rem;
    border-bottom:0;
  }
  .site-nav__link[aria-current="page"]{
    border-bottom:0;
    border-left:3px solid var(--gold);
    padding-left:12px;
    background:rgba(200,162,74,.1);
  }
  .site-nav__cta{
    grid-column:1 / -1;
    justify-self:stretch;
    justify-content:center;
    margin:14px 0 10px;
  }
  .layout-split{grid-template-columns:1fr;}
  .media-frame{aspect-ratio:16 / 10;}
}

@media (max-width:760px){
  :root{--gutter:20px;}
  .site-header__util-inner{font-size:.66rem;letter-spacing:.08em;}
  .site-header__meta--right{display:none;}
  .masthead__sub{letter-spacing:.2em;font-size:.68rem;}
  .masthead__sub::before,
  .masthead__sub::after{width:20px;}
  .section{padding-block:clamp(32px,9vw,56px);}
  .card{box-shadow:4px 4px 0 rgba(14,42,35,.16);}
  .site-footer__ridge{height:48px;}
}

@media (max-width:640px){
  .site-footer__inner{grid-template-columns:1fr;gap:30px;}
  .site-footer__base{flex-direction:column;align-items:flex-start;gap:8px;}
  .site-footer__contact{grid-template-columns:1fr;gap:.15em;}
  .site-footer__contact dt{padding-top:.8em;}
  .stamp{width:56px;height:56px;font-size:.95rem;}
}

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