/* =========================================================
   8868皇冠主站 / site kit
   tokens · reset · typography · header · footer · base ui
   ========================================================= */

:root{
  --ink:#0E2A22;
  --ink-2:#1C3A31;
  --ink-3:#0A1D17;
  --gold:#C9A227;
  --gold-soft:#E8D38A;
  --red:#D6452F;
  --red-deep:#A62E1F;
  --paper:#F4F5F2;
  --gray:#8A9490;
  --white:#FFFFFF;

  --line:rgba(201,162,39,.26);
  --line-strong:rgba(201,162,39,.55);
  --line-cool:rgba(244,245,242,.12);

  --shell:1360px;
  --gutter:clamp(16px,3vw,44px);

  --font-display:"Noto Sans SC","Source Han Sans SC","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  --font-body:"Noto Sans SC","Source Han Sans SC","PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  --font-mono:"IBM Plex Mono","Roboto Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,"Courier New",monospace;

  --ease:cubic-bezier(.22,.61,.36,1);
  --dur:.22s;
}

/* ---------- reset ---------- */
*,
*::before,
*::after{ box-sizing:border-box; }

html{
  -webkit-text-size-adjust:100%;
  scroll-behavior:smooth;
  scroll-padding-top:96px;
}

body{
  margin:0;
  background:var(--ink);
  color:var(--paper);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.75;
  letter-spacing:.01em;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

body::before{
  content:"";
  position:fixed;
  top:0;
  bottom:0;
  left:0;
  width:1px;
  z-index:61;
  pointer-events:none;
  background:linear-gradient(180deg,
    rgba(201,162,39,0) 0%,
    rgba(201,162,39,.55) 18%,
    rgba(201,162,39,.55) 82%,
    rgba(201,162,39,0) 100%);
}

img,
svg,
video{ max-width:100%; }

/* ---------- typography ---------- */
h1,h2,h3,h4,h5{
  margin:0 0 .65em;
  font-family:var(--font-display);
  font-weight:900;
  letter-spacing:-.02em;
  line-height:1.22;
  color:var(--white);
}

h1{ font-size:clamp(30px,4.4vw,54px); }
h2{ font-size:clamp(24px,3.2vw,40px); }
h3{ font-size:clamp(19px,2.1vw,26px); }
h4{ font-size:17px; letter-spacing:0; }

p{ margin:0 0 1em; }
p:last-child{ margin-bottom:0; }

ul,ol{ margin:0 0 1em; padding-left:1.4em; }

a{ color:inherit; }

strong,b{ font-weight:700; color:var(--white); }

code,kbd,samp{ font-family:var(--font-mono); font-size:.92em; }

::selection{
  background:rgba(201,162,39,.85);
  color:var(--ink-3);
}

/* ---------- accessibility ---------- */
:focus-visible{
  outline:2px solid var(--gold-soft);
  outline-offset:3px;
}

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

.skip-link{
  position:fixed;
  top:-120px;
  left:12px;
  z-index:200;
  padding:11px 20px;
  background:var(--gold);
  color:var(--ink-3);
  font-family:var(--font-mono);
  font-size:12px;
  font-weight:700;
  letter-spacing:.12em;
  text-decoration:none;
  transition:top .18s var(--ease);
}

.skip-link:focus{
  top:12px;
  outline:2px solid var(--gold-soft);
  outline-offset:2px;
}

/* ---------- layout primitives ---------- */
.main{ display:block; }

.wrap{
  width:100%;
  max-width:var(--shell);
  margin:0 auto;
  padding-left:var(--gutter);
  padding-right:var(--gutter);
}

.section{
  padding-block:clamp(48px,7vw,96px);
  position:relative;
}

.section--paper{
  background:var(--paper);
  color:#17281f;
}

.section--paper h2,
.section--paper h3,
.section--paper h4{ color:var(--ink); }

.section-head{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px 40px;
  margin-bottom:clamp(24px,3vw,42px);
}

.section-title{
  margin:0;
  font-size:clamp(24px,3.2vw,40px);
}

.section-lede{
  margin:0;
  max-width:56ch;
  font-size:15px;
  line-height:1.8;
  opacity:.78;
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-family:var(--font-mono);
  font-size:11px;
  font-weight:600;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:var(--gold-soft);
  margin-bottom:14px;
}

.eyebrow::before{
  content:"";
  display:block;
  width:24px;
  height:1px;
  background:var(--gold);
  flex:0 0 auto;
}

.rule{
  height:1px;
  border:0;
  margin:0;
  background:linear-gradient(90deg,var(--line-strong),rgba(201,162,39,0));
}

.grid{
  display:grid;
  gap:clamp(16px,2.2vw,28px);
}

.grid--2{ grid-template-columns:repeat(2,minmax(0,1fr)); }
.grid--3{ grid-template-columns:repeat(3,minmax(0,1fr)); }
.grid--4{ grid-template-columns:repeat(4,minmax(0,1fr)); }

/* =========================================================
   HEADER — 刻度轨道 + 框架式导航
   ========================================================= */
.site-header{
  position:sticky;
  top:0;
  z-index:90;
  background:rgba(14,42,34,.96);
  border-bottom:1px solid var(--line);
  color:var(--white);
  isolation:isolate;
  transition:border-color var(--dur) var(--ease);
}

@supports (backdrop-filter:blur(6px)){
  .site-header{
    background:rgba(14,42,34,.88);
    backdrop-filter:blur(10px) saturate(1.12);
  }
}

.site-header.is-scrolled{
  border-bottom-color:var(--line-strong);
  box-shadow:0 14px 32px rgba(3,12,9,.45);
}

.site-header.is-nav-open{
  border-bottom-color:var(--gold-soft);
}

.header-ruler{
  height:8px;
  opacity:.7;
  background-image:
    repeating-linear-gradient(90deg,rgba(201,162,39,.75) 0 1px,transparent 1px 26px),
    linear-gradient(90deg,rgba(201,162,39,.35),rgba(201,162,39,0) 70%);
}

.header-rail{
  position:relative;
  max-width:var(--shell);
  margin:0 auto;
  padding:0 var(--gutter);
  min-height:70px;
  display:flex;
  align-items:center;
  gap:clamp(12px,2vw,32px);
  transition:min-height var(--dur) var(--ease);
}

.site-header.is-scrolled .header-rail{ min-height:58px; }

/* brand */
.brand{
  display:inline-flex;
  align-items:center;
  gap:12px;
  flex:0 0 auto;
  text-decoration:none;
  color:inherit;
}

.brand-mark{
  display:block;
  width:28px;
  height:24px;
  flex:0 0 auto;
  background:linear-gradient(180deg,var(--gold-soft),var(--gold));
  clip-path:polygon(0 100%,0 30%,26% 58%,50% 0,74% 58%,100% 30%,100% 100%);
  transition:transform .25s var(--ease),background .25s var(--ease);
}

.brand:hover .brand-mark{
  transform:translateY(-2px);
  background:linear-gradient(180deg,#fff,var(--gold-soft));
}

.brand-text{
  display:flex;
  flex-direction:column;
  line-height:1.1;
}

.brand-name{
  font-family:var(--font-display);
  font-weight:900;
  font-size:17px;
  letter-spacing:-.01em;
  color:var(--white);
}

.brand-tag{
  margin-top:4px;
  font-family:var(--font-mono);
  font-size:10px;
  letter-spacing:.14em;
  color:rgba(232,211,138,.72);
}

/* mobile toggle */
.nav-toggle{
  display:none;
  align-items:center;
  gap:9px;
  margin-left:auto;
  padding:9px 13px;
  background:transparent;
  border:1px solid var(--line);
  color:var(--gold-soft);
  font-family:var(--font-mono);
  font-size:11px;
  font-weight:600;
  letter-spacing:.16em;
  cursor:pointer;
  transition:border-color var(--dur) var(--ease),background-color var(--dur) var(--ease);
}

.nav-toggle:hover{
  border-color:var(--line-strong);
  background:rgba(201,162,39,.1);
}

.nav-toggle-bars{
  position:relative;
  display:block;
  width:16px;
  height:2px;
  background:currentColor;
  transition:background-color var(--dur) var(--ease);
}

.nav-toggle-bars::before,
.nav-toggle-bars::after{
  content:"";
  position:absolute;
  left:0;
  width:16px;
  height:2px;
  background:currentColor;
  transition:transform var(--dur) var(--ease),top var(--dur) var(--ease);
}

.nav-toggle-bars::before{ top:-5px; }
.nav-toggle-bars::after{ top:5px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars{ background:transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before{ top:0; transform:rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after{ top:0; transform:rotate(-45deg); }

/* nav */
.nav{
  display:flex;
  align-items:center;
  gap:clamp(12px,2vw,30px);
  margin-left:auto;
}

.nav-list{
  display:flex;
  align-items:center;
  gap:2px;
  margin:0;
  padding:0;
  list-style:none;
}

.nav-link{
  position:relative;
  display:block;
  padding:10px 12px;
  font-size:14.5px;
  font-weight:500;
  color:rgba(244,245,242,.76);
  text-decoration:none;
  white-space:nowrap;
  transition:color var(--dur) var(--ease);
}

.nav-link::after{
  content:"";
  position:absolute;
  left:12px;
  right:12px;
  bottom:4px;
  height:1px;
  background:var(--gold);
  transform:scaleX(0);
  transform-origin:left center;
  transition:transform var(--dur) var(--ease),background-color var(--dur) var(--ease),height var(--dur) var(--ease);
}

.nav-link:hover{ color:var(--white); }
.nav-link:hover::after{ transform:scaleX(1); }

.nav-link[aria-current="page"]{ color:var(--gold-soft); }

.nav-link[aria-current="page"]::after{
  transform:scaleX(1);
  height:2px;
  background:var(--red);
}

.nav-actions{
  display:flex;
  align-items:center;
  gap:8px;
}

/* scroll progress */
.scroll-progress{
  position:absolute;
  left:0;
  bottom:-1px;
  width:100%;
  height:2px;
  z-index:2;
  pointer-events:none;
  background:linear-gradient(90deg,var(--gold-soft),var(--gold) 62%,var(--red));
  transform:scaleX(0);
  transform-origin:left center;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{
  position:relative;
  margin-top:0;
  background:var(--ink-3);
  color:rgba(244,245,242,.68);
  border-top:1px solid var(--line);
}

.footer-ruler{
  height:8px;
  opacity:.62;
  border-bottom:1px solid rgba(201,162,39,.16);
  background-image:repeating-linear-gradient(90deg,rgba(201,162,39,.6) 0 1px,transparent 1px 26px);
}

.footer-shell{
  display:grid;
  grid-template-columns:minmax(250px,1.5fr) minmax(130px,.65fr) minmax(150px,.75fr) minmax(250px,1.35fr);
  gap:clamp(26px,3.6vw,60px);
  padding-top:clamp(42px,5vw,76px);
  padding-bottom:clamp(34px,4vw,64px);
}

.footer-intro{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.brand--footer .brand-name{ font-size:18px; }

.brand--footer .brand-tag{ color:rgba(232,211,138,.6); }

.footer-copy{
  margin:0;
  max-width:32ch;
  font-size:14px;
  line-height:1.85;
  color:rgba(244,245,242,.66);
}

.footer-note{
  margin:0;
  padding-left:12px;
  border-left:2px solid rgba(201,162,39,.45);
  font-family:var(--font-mono);
  font-size:11px;
  line-height:1.8;
  letter-spacing:.04em;
  color:rgba(138,148,144,.95);
}

.footer-col{ min-width:0; }

.footer-title{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 0 18px;
  font-family:var(--font-mono);
  font-size:11px;
  font-weight:600;
  letter-spacing:.2em;
  line-height:1.4;
  color:var(--gold-soft);
  text-transform:uppercase;
}

.footer-title::after{
  content:"";
  flex:1 1 auto;
  height:1px;
  background:rgba(201,162,39,.22);
}

.footer-list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:11px;
}

.footer-link{
  display:inline-block;
  font-size:14px;
  color:rgba(244,245,242,.72);
  text-decoration:none;
  border-bottom:1px solid transparent;
  transition:color var(--dur) var(--ease),border-color var(--dur) var(--ease);
}

.footer-link:hover{
  color:var(--gold-soft);
  border-bottom-color:rgba(201,162,39,.65);
}

.footer-meta{
  margin:0;
  display:flex;
  flex-direction:column;
  gap:13px;
}

.footer-meta-row{
  display:grid;
  grid-template-columns:46px minmax(0,1fr);
  gap:10px;
  align-items:baseline;
}

.footer-meta-label{
  margin:0;
  font-family:var(--font-mono);
  font-size:10.5px;
  letter-spacing:.16em;
  color:rgba(138,148,144,.95);
}

.footer-meta-value{
  margin:0;
  font-size:13.5px;
  line-height:1.7;
  color:rgba(244,245,242,.84);
  word-break:break-word;
}

.footer-bottom{
  border-top:1px solid rgba(244,245,242,.1);
  background:rgba(0,0,0,.22);
}

.footer-bottom-inner{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:10px 28px;
  padding-top:18px;
  padding-bottom:18px;
}

.footer-legal,
.footer-copyline{
  margin:0;
  font-family:var(--font-mono);
  font-size:11px;
  letter-spacing:.08em;
  line-height:1.6;
  color:rgba(138,148,144,.95);
}

/* =========================================================
   BASE COMPONENTS
   ========================================================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:13px 24px;
  font-family:var(--font-body);
  font-size:14px;
  font-weight:700;
  letter-spacing:.03em;
  line-height:1;
  text-decoration:none;
  border:1px solid transparent;
  border-radius:0;
  background:transparent;
  color:var(--paper);
  cursor:pointer;
  clip-path:polygon(0 0,100% 0,100% calc(100% - 10px),calc(100% - 10px) 100%,0 100%);
  transition:background-color var(--dur) var(--ease),color var(--dur) var(--ease),border-color var(--dur) var(--ease),transform .12s var(--ease);
}

.btn:active{ transform:translateY(1px); }

.btn:focus-visible{
  outline:none;
  box-shadow:inset 0 0 0 2px var(--gold-soft);
}

.btn--gold{
  background:var(--gold);
  color:var(--ink-3);
  border-color:var(--gold);
}

.btn--gold:hover{
  background:var(--gold-soft);
  border-color:var(--gold-soft);
}

.btn--gold:focus-visible{ box-shadow:inset 0 0 0 2px var(--ink-3); }

.btn--ghost{
  background:transparent;
  color:var(--gold-soft);
  border-color:rgba(201,162,39,.55);
}

.btn--ghost:hover{
  background:rgba(201,162,39,.16);
  border-color:var(--gold);
  color:var(--white);
}

.btn--red{
  background:var(--red);
  color:var(--white);
  border-color:var(--red);
}

.btn--red:hover{
  background:var(--red-deep);
  border-color:var(--red-deep);
}

.btn--sm{
  padding:9px 15px;
  font-size:12.5px;
  clip-path:polygon(0 0,100% 0,100% calc(100% - 7px),calc(100% - 7px) 100%,0 100%);
}

.btn--block{
  display:flex;
  width:100%;
}

.text-link{
  color:var(--gold-soft);
  text-decoration:none;
  padding-bottom:1px;
  border-bottom:1px solid rgba(201,162,39,.45);
  transition:color var(--dur) var(--ease),border-color var(--dur) var(--ease);
}

.text-link:hover{
  color:var(--white);
  border-bottom-color:var(--gold);
}

.crumbs{ padding-top:20px; }

.crumbs-list{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  margin:0;
  padding:0;
  list-style:none;
  font-family:var(--font-mono);
  font-size:11px;
  letter-spacing:.1em;
  line-height:1.6;
  color:rgba(138,148,144,.95);
}

.crumbs-link{
  color:rgba(244,245,242,.68);
  text-decoration:none;
  border-bottom:1px solid transparent;
  transition:color var(--dur) var(--ease),border-color var(--dur) var(--ease);
}

.crumbs-link:hover{
  color:var(--gold-soft);
  border-bottom-color:var(--gold);
}

.crumbs-sep{ color:rgba(201,162,39,.5); }

.crumbs-now{ color:var(--gold-soft); }

.tag{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 9px;
  font-family:var(--font-mono);
  font-size:10.5px;
  font-weight:600;
  letter-spacing:.14em;
  line-height:1.5;
  border:1px solid rgba(201,162,39,.45);
  background:rgba(201,162,39,.1);
  color:var(--gold-soft);
  white-space:nowrap;
}

.tag--red{
  border-color:var(--red);
  background:var(--red);
  color:var(--white);
}

.tag--gray{
  border-color:rgba(138,148,144,.42);
  background:rgba(138,148,144,.12);
  color:rgba(244,245,242,.76);
}

.panel{
  position:relative;
  padding:clamp(20px,2.6vw,32px);
  background:var(--ink-2);
  border:1px solid rgba(201,162,39,.2);
  color:var(--paper);
}

.panel--cut{
  border:0;
  box-shadow:inset 0 0 0 1px rgba(201,162,39,.3);
  clip-path:polygon(0 0,calc(100% - 24px) 0,100% 24px,100% 100%,24px 100%,0 calc(100% - 24px));
}

.panel--paper{
  background:var(--paper);
  color:#17281f;
  border-color:rgba(14,42,34,.14);
  box-shadow:none;
}

.panel--paper h2,
.panel--paper h3,
.panel--paper h4{ color:var(--ink); }

.media{
  position:relative;
  display:block;
  overflow:hidden;
  border:1px solid rgba(201,162,39,.18);
  background:
    radial-gradient(120% 90% at 18% 0%,rgba(201,162,39,.16),transparent 58%),
    linear-gradient(160deg,#123A30 0%,#0A1D17 100%);
}

.media--16x9{ aspect-ratio:16 / 9; }
.media--4x3{ aspect-ratio:4 / 3; }
.media--1x1{ aspect-ratio:1 / 1; }
.media--wide{ aspect-ratio:21 / 9; }

.media__img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

.media__scrim{
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(180deg,rgba(10,29,23,0) 40%,rgba(10,29,23,.88) 100%);
}

.media__caption{
  position:absolute;
  left:14px;
  right:14px;
  bottom:12px;
  margin:0;
  display:flex;
  justify-content:space-between;
  gap:12px;
  font-family:var(--font-mono);
  font-size:10.5px;
  letter-spacing:.14em;
  line-height:1.5;
  color:rgba(244,245,242,.86);
}

.stat{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.stat__num{
  font-family:var(--font-mono);
  font-weight:700;
  font-size:clamp(28px,3.4vw,46px);
  line-height:1;
  letter-spacing:-.02em;
  color:var(--gold-soft);
  font-variant-numeric:tabular-nums;
}

.stat__label{
  font-family:var(--font-mono);
  font-size:10.5px;
  letter-spacing:.16em;
  color:rgba(138,148,144,.95);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width:1120px){
  .nav-toggle{ display:inline-flex; }

  .nav{
    position:absolute;
    top:100%;
    left:0;
    right:0;
    display:block;
    margin:0;
    padding:12px var(--gutter) 22px;
    background:var(--ink-3);
    border-bottom:1px solid var(--line);
    box-shadow:0 26px 44px rgba(0,0,0,.5);
    visibility:hidden;
    opacity:0;
    transform:translateY(-10px);
    max-height:calc(100vh - 86px);
    overflow-y:auto;
    transition:opacity var(--dur) var(--ease),transform var(--dur) var(--ease),visibility var(--dur) var(--ease);
  }

  .nav[data-open]{
    visibility:visible;
    opacity:1;
    transform:translateY(0);
  }

  .nav-list{
    flex-direction:column;
    align-items:stretch;
    gap:0;
  }

  .nav-link{
    padding:14px 4px;
    font-size:16px;
    border-bottom:1px solid rgba(244,245,242,.08);
  }

  .nav-link::after{
    left:4px;
    right:4px;
    bottom:9px;
  }

  .nav-actions{
    margin-top:18px;
    flex-wrap:wrap;
  }

  .nav-actions .btn{ flex:1 1 140px; }
}

@media (max-width:980px){
  .footer-shell{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .footer-intro{
    grid-column:1 / -1;
    max-width:52ch;
  }

  .grid--4{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}

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

@media (max-width:640px){
  .header-rail{ min-height:62px; gap:10px; }
  .site-header.is-scrolled .header-rail{ min-height:56px; }
  .brand-tag{ display:none; }
  .brand-name{ font-size:16px; }
  .footer-shell{ grid-template-columns:minmax(0,1fr); }
  .footer-bottom-inner{ flex-direction:column; align-items:flex-start; }
  .grid--2,
  .grid--3,
  .grid--4{ grid-template-columns:minmax(0,1fr); }
  .section-head{ align-items:flex-start; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }

  *,
  *::before,
  *::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
    transition-delay:0ms !important;
  }
}
