/* ===== 大发彩票登录 · 共享样式 /assets/site.css ===== */

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body,h1,h2,h3,h4,h5,p,ul,ol,li,figure,blockquote{margin:0}
ul,ol{padding:0;list-style:none}
img,svg{display:block;max-width:100%}
button{font:inherit;color:inherit;background:none;border:0}
a{color:inherit;text-decoration:none}

:root{
  --ink:#0B1B2B;
  --ink-deep:#08131F;
  --teal:#0F3A3F;
  --wine:#5B1F2A;
  --gold:#C8A04A;
  --gold-soft:rgba(200,160,74,.45);
  --cinnabar:#D4472F;
  --celadon:#7FA99B;
  --sand:#D9C6A5;
  --paper:#F3EBDD;
  --mist:#B9C6D2;
  --white:#FFFFFF;
  --line:rgba(217,198,165,.18);
  --line-strong:rgba(217,198,165,.34);
  --font-head:"PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,-apple-system,"Helvetica Neue",Arial,sans-serif;
  --font-body:system-ui,-apple-system,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans SC",sans-serif;
  --font-mono:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;
  --wrap:1320px;
  --radius:2px;
}

html{scroll-behavior:smooth}

body{
  min-height:100%;
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.78;
  letter-spacing:.01em;
  color:var(--mist);
  background-color:var(--ink);
  background-image:
    repeating-linear-gradient(90deg,rgba(217,198,165,.045) 0 1px,transparent 1px 104px),
    repeating-linear-gradient(0deg,rgba(217,198,165,.035) 0 1px,transparent 1px 104px),
    radial-gradient(110% 70% at 88% -12%,rgba(15,58,63,.92),transparent 62%),
    radial-gradient(80% 55% at -8% 4%,rgba(91,31,42,.55),transparent 58%);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

h1,h2,h3,h4{
  font-family:var(--font-head);
  font-weight:800;
  font-stretch:90%;
  line-height:1.24;
  letter-spacing:-.02em;
  color:var(--paper);
}

a{color:var(--sand);transition:color .18s ease,border-color .18s ease,background-color .18s ease,padding-left .18s ease}
a:hover{color:var(--gold)}
strong{color:var(--sand)}
::selection{background:var(--gold);color:var(--ink-deep)}

:focus-visible{outline:2px solid var(--gold);outline-offset:3px;border-radius:1px}
[id="main-content"]{scroll-margin-top:7rem}

.skip-link{
  position:fixed;top:.6rem;left:.6rem;z-index:200;
  transform:translateY(-190%);
  background:var(--gold);color:#161006;
  font-family:var(--font-mono);font-size:12px;letter-spacing:.14em;
  padding:.55rem .95rem;border-radius:2px;
  box-shadow:0 10px 24px rgba(0,0,0,.45);
  transition:transform .18s ease;
}
.skip-link:focus{transform:translateY(0);color:#161006}

/* ---------- 容器 ---------- */
.wrap{width:100%;max-width:var(--wrap);margin-inline:auto;padding-inline:clamp(1.1rem,4vw,2.5rem)}
.wrap--narrow{max-width:860px}

/* ---------- 头部 ---------- */
.site-head{
  position:sticky;top:0;z-index:80;
  background:linear-gradient(180deg,rgba(11,27,43,.985),rgba(11,27,43,.9));
  border-bottom:1px solid var(--line-strong);
  transition:box-shadow .22s ease,background-color .22s ease;
}
.site-head[data-condensed="true"]{box-shadow:0 14px 34px rgba(0,0,0,.5)}

.head-rail{
  overflow:hidden;height:29px;
  background:var(--teal);
  border-bottom:1px solid rgba(127,169,155,.28);
  color:rgba(217,198,165,.86);
  font-family:var(--font-mono);font-size:11px;letter-spacing:.14em;
  transition:height .22s ease,opacity .18s ease,border-color .22s ease;
}
.site-head[data-condensed="true"] .head-rail{height:0;opacity:0;border-color:transparent}

.rail-inner{
  max-width:var(--wrap);margin-inline:auto;
  padding:.34rem clamp(1.1rem,4vw,2.5rem);
  display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;
}
.rail-chip{display:inline-flex;align-items:center;gap:.5rem;white-space:nowrap}
.rail-dot{width:6px;height:6px;border-radius:50%;background:var(--cinnabar);box-shadow:0 0 0 3px rgba(212,71,47,.22)}
.rail-mono{font-family:var(--font-mono);color:var(--gold);letter-spacing:.06em}

.head-body{
  position:relative;
  max-width:var(--wrap);margin-inline:auto;
  padding:1.05rem clamp(1.1rem,4vw,2.5rem) 1rem;
  display:flex;align-items:flex-start;justify-content:space-between;
  gap:clamp(1rem,3vw,2.5rem);
  transition:padding .22s ease;
}
.site-head[data-condensed="true"] .head-body{padding-top:.5rem;padding-bottom:.5rem}

.head-brand{flex:1 1 42%;min-width:0;display:flex;flex-direction:column;gap:.4rem}
.brand{display:inline-flex;align-items:center;gap:.7rem;color:var(--paper)}
.brand:hover{color:var(--paper)}
.brand__seal{
  position:relative;flex:0 0 auto;
  width:46px;height:46px;display:grid;place-items:center;
  font-family:var(--font-head);font-weight:800;font-size:21px;line-height:1;
  color:var(--gold);
  background:linear-gradient(155deg,rgba(200,160,74,.2),rgba(91,31,42,.42));
  border:1px solid var(--gold-soft);border-radius:2px;
  transition:width .22s ease,height .22s ease,font-size .22s ease;
}
.brand__seal::after{content:"";position:absolute;inset:4px;border:1px solid rgba(200,160,74,.32);border-radius:1px}
.site-head[data-condensed="true"] .brand__seal{width:36px;height:36px;font-size:17px}

.brand__text{display:flex;flex-direction:column;gap:.12rem;min-width:0}
.brand__name{
  font-family:var(--font-head);font-weight:800;font-stretch:90%;
  font-size:clamp(1.05rem,1.9vw,1.32rem);line-height:1.1;letter-spacing:-.02em;color:var(--paper);
}
.brand__line{font-family:var(--font-mono);font-size:9.5px;letter-spacing:.3em;color:var(--gold);text-transform:uppercase}
.brand__tagline{
  padding-left:.15rem;font-size:12.5px;letter-spacing:.06em;color:rgba(185,198,210,.9);
  transition:opacity .18s ease,height .22s ease;
}
.site-head[data-condensed="true"] .brand__tagline{opacity:0;height:0;overflow:hidden}

.nav-toggle{
  display:none;align-items:center;gap:.55rem;
  padding:.5rem .75rem;border:1px solid var(--gold-soft);border-radius:2px;
  font-family:var(--font-mono);font-size:11px;letter-spacing:.2em;color:var(--sand);
  cursor:pointer;
  transition:border-color .18s ease,color .18s ease,background-color .18s ease;
}
.nav-toggle:hover{border-color:var(--gold);color:var(--gold)}
.nav-toggle__lines{display:flex;flex-direction:column;gap:4px;width:16px}
.nav-toggle__lines span{display:block;height:1.5px;background:currentColor;transition:transform .2s ease}
.site-head[data-open="true"] .nav-toggle{border-color:var(--cinnabar);color:var(--white);background:rgba(212,71,47,.18)}
.site-head[data-open="true"] .nav-toggle__lines span:first-child{transform:translateY(2.75px) rotate(45deg)}
.site-head[data-open="true"] .nav-toggle__lines span:last-child{transform:translateY(-2.75px) rotate(-45deg)}

.site-nav{flex:1 1 58%;display:flex;justify-content:flex-end;min-width:0}
.site-nav__list{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.1rem}
.site-nav__link{
  position:relative;
  display:flex;flex-direction:column;gap:.1rem;
  padding:.45rem .68rem .6rem;
  font-size:.9rem;letter-spacing:.02em;color:var(--sand);
  border-radius:1px;
}
.nav-idx{font-family:var(--font-mono);font-size:9.5px;letter-spacing:.18em;color:rgba(185,198,210,.6);transition:color .18s ease}
.site-nav__link::after{
  content:"";position:absolute;left:.68rem;right:.68rem;bottom:.28rem;height:1px;
  background:var(--gold);transform:scaleX(0);transform-origin:left;
  transition:transform .22s ease,background-color .18s ease,height .18s ease;
}
.site-nav__link:hover{color:var(--white);background:rgba(200,160,74,.08)}
.site-nav__link:hover::after{transform:scaleX(1)}
.site-nav__link[aria-current="page"]{color:var(--gold);background:rgba(200,160,74,.09)}
.site-nav__link[aria-current="page"] .nav-idx{color:var(--cinnabar)}
.site-nav__link[aria-current="page"]::after{transform:scaleX(1);height:2px;background:var(--cinnabar)}

.head-progress{position:absolute;left:0;right:0;bottom:-1px;height:2px;pointer-events:none;background:transparent}
.head-progress__bar{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--gold),var(--cinnabar));transition:width .1s linear}

/* ---------- 通用按钮 ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  padding:.72rem 1.15rem;
  font-family:var(--font-body);font-size:.9rem;font-weight:600;letter-spacing:.03em;
  border:1px solid transparent;border-radius:2px;cursor:pointer;
  transition:background-color .18s ease,color .18s ease,border-color .18s ease,transform .18s ease;
}
.btn:active{transform:translateY(1px)}
.btn--primary{background:var(--cinnabar);border-color:var(--cinnabar);color:var(--white)}
.btn--primary:hover{background:#b93a25;border-color:var(--gold);color:var(--white)}
.btn--ghost{background:transparent;border-color:var(--gold-soft);color:var(--sand)}
.btn--ghost:hover{border-color:var(--gold);color:var(--gold);background:rgba(200,160,74,.08)}

/* ---------- 面包屑 ---------- */
.crumb{font-family:var(--font-mono);font-size:11px;letter-spacing:.14em;color:rgba(185,198,210,.85)}
.crumb__list{display:flex;flex-wrap:wrap;align-items:center;gap:.45rem}
.crumb__sep{color:rgba(185,198,210,.45)}
.crumb a{color:var(--sand);border-bottom:1px solid transparent}
.crumb a:hover{color:var(--gold);border-bottom-color:var(--gold-soft)}
.crumb [aria-current="page"]{color:var(--gold)}

/* ---------- 标签 ---------- */
.tag{
  display:inline-flex;align-items:center;gap:.4rem;
  padding:.18rem .5rem;border:1px solid var(--gold-soft);border-radius:2px;
  font-family:var(--font-mono);font-size:10.5px;letter-spacing:.16em;text-transform:uppercase;
  color:var(--gold);background:rgba(200,160,74,.08);
}
.tag--cinnabar{color:#F5DCD4;border-color:rgba(212,71,47,.62);background:rgba(212,71,47,.2)}
.tag--celadon{color:#CFE3DB;border-color:rgba(127,169,155,.62);background:rgba(127,169,155,.18)}

/* ---------- 票据卡 ---------- */
.ticket{
  position:relative;
  padding:1.15rem 1.25rem;
  background:linear-gradient(170deg,rgba(243,235,221,.06),rgba(15,58,63,.3));
  border:1px solid var(--line);border-radius:2px;
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;
}
.ticket::before{
  content:"";position:absolute;left:0;top:0;bottom:0;width:3px;
  background:var(--gold-soft);transition:background-color .2s ease;
}
.ticket:hover{transform:translateY(-3px);border-color:var(--gold-soft);box-shadow:0 16px 30px rgba(0,0,0,.3)}
.ticket:hover::before{background:var(--cinnabar)}

/* ---------- 图形 / 图片容器基础 ---------- */
.figure{margin:0;display:flex;flex-direction:column;gap:.55rem}
.figure__media{
  position:relative;overflow:hidden;
  aspect-ratio:16/10;
  border:1px solid var(--line-strong);border-radius:2px;
  background-image:
    repeating-linear-gradient(115deg,rgba(200,160,74,.1) 0 2px,transparent 2px 15px),
    radial-gradient(120% 100% at 18% 0%,rgba(15,58,63,.96),rgba(11,27,43,.99));
}
.figure__media>img,.figure__media>svg{width:100%;height:100%;object-fit:cover}
.figure__media::after{
  content:"";position:absolute;left:0;right:0;bottom:0;height:38%;
  background:linear-gradient(180deg,transparent,rgba(8,19,31,.74));pointer-events:none;
}
.figure--wide .figure__media{aspect-ratio:21/9}
.figure--tall .figure__media{aspect-ratio:3/4}
.figure__cap{font-family:var(--font-mono);font-size:11px;letter-spacing:.1em;color:rgba(185,198,210,.82)}

/* ---------- 栅格与正文 ---------- */
.layout-grid{display:grid;gap:clamp(1rem,2.4vw,1.7rem)}
.layout-grid--2{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
.layout-grid--3{grid-template-columns:repeat(auto-fit,minmax(212px,1fr))}

.prose{max-width:38em;line-height:1.86;color:var(--mist)}
.prose p+p{margin-top:.9em}
.prose h2,.prose h3{margin-top:1.8em;margin-bottom:.5em;color:var(--paper)}
.prose a{border-bottom:1px solid var(--gold-soft)}
.prose a:hover{color:var(--gold);border-bottom-color:var(--gold)}

/* ---------- 页脚 ---------- */
.site-foot{
  position:relative;margin-top:clamp(3rem,7vw,5.5rem);
  padding-top:clamp(2.4rem,5vw,3.8rem);
  color:var(--mist);
  background:linear-gradient(180deg,var(--ink) 0%,var(--ink-deep) 58%,#0d2c33 100%);
  border-top:1px solid var(--gold-soft);
  overflow:hidden;
}
.foot-grain{
  position:absolute;inset:0;pointer-events:none;opacity:.4;
  background-image:
    repeating-linear-gradient(0deg,rgba(217,198,165,.06) 0 1px,transparent 1px 42px),
    radial-gradient(80% 60% at 92% 0%,rgba(91,31,42,.5),transparent 66%);
}
.site-foot>.wrap{position:relative;z-index:1}

.foot-grid{display:grid;grid-template-columns:minmax(240px,1.5fr) minmax(130px,.8fr) minmax(130px,.8fr) minmax(240px,1.2fr);gap:clamp(1.4rem,3vw,2.4rem)}

.foot-mark{
  display:grid;place-items:center;width:42px;height:42px;
  font-family:var(--font-head);font-weight:800;font-size:19px;line-height:1;
  color:var(--gold);background:rgba(91,31,42,.42);
  border:1px solid var(--gold-soft);border-radius:2px;
}
.foot-name{
  margin-top:.7rem;
  font-family:var(--font-head);font-weight:800;font-stretch:90%;
  font-size:1.22rem;letter-spacing:-.01em;color:var(--paper);
}
.foot-summary{margin-top:.45rem;max-width:34ch;font-size:.9rem;line-height:1.8;color:rgba(185,198,210,.9)}
.foot-cta{margin-top:.95rem}

.foot-col__title{
  display:flex;align-items:center;gap:.5rem;
  padding-bottom:.45rem;margin-bottom:.7rem;
  border-bottom:1px solid var(--line);
  font-family:var(--font-mono);font-size:10.5px;font-weight:600;letter-spacing:.22em;
  color:var(--gold);text-transform:uppercase;
}
.foot-col__title::before{content:"";flex:0 0 auto;width:6px;height:6px;background:var(--cinnabar)}

.foot-list a{display:block;padding:.32rem 0;font-size:.92rem;color:var(--sand);border-bottom:1px solid transparent}
.foot-list a:hover{color:var(--gold);padding-left:.35rem;border-bottom-color:rgba(200,160,74,.3)}

.foot-contact__list{display:flex;flex-direction:column;gap:.5rem}
.foot-contact__list li{
  display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;
  padding-bottom:.45rem;border-bottom:1px dashed rgba(217,198,165,.16);
}
.foot-key{flex:0 0 auto;font-family:var(--font-mono);font-size:10px;letter-spacing:.18em;color:rgba(185,198,210,.72)}
.foot-val{font-family:var(--font-mono);font-size:12.5px;letter-spacing:.01em;color:var(--sand);word-break:break-all}

.copy-btn{
  font-family:var(--font-mono);font-size:10px;letter-spacing:.14em;
  padding:.18rem .45rem;border:1px solid rgba(200,160,74,.42);border-radius:2px;
  color:var(--gold);cursor:pointer;
  transition:background-color .18s ease,color .18s ease,border-color .18s ease;
}
.copy-btn:hover{background:var(--gold);color:#161006;border-color:var(--gold)}
.copy-btn[data-state="done"]{background:var(--celadon);border-color:var(--celadon);color:#0B1B2B}
.copy-btn[data-state="fail"]{background:var(--cinnabar);border-color:var(--cinnabar);color:var(--white)}

.foot-note{margin-top:.8rem;max-width:36ch;font-size:.8rem;line-height:1.7;color:rgba(185,198,210,.74)}
.foot-inquiry{
  display:inline-flex;align-items:center;gap:.4rem;margin-top:.9rem;padding-bottom:.12rem;
  font-family:var(--font-mono);font-size:11.5px;letter-spacing:.14em;color:var(--gold);
  border-bottom:1px solid var(--gold-soft);
}
.foot-inquiry:hover{color:var(--white);border-bottom-color:var(--white)}

.foot-bottom{
  margin-top:clamp(1.8rem,4vw,2.6rem);
  padding:1.05rem 0 1.6rem;
  border-top:1px solid var(--line);
  display:flex;flex-wrap:wrap;justify-content:space-between;gap:.6rem;
  font-family:var(--font-mono);font-size:11px;letter-spacing:.1em;color:rgba(185,198,210,.74);
}
.foot-legal{line-height:1.6}
.foot-legal--right{color:rgba(185,198,210,.55)}

/* ---------- 平板 ---------- */
@media (max-width:1080px){
  .foot-grid{grid-template-columns:1fr 1fr}
  .head-body{gap:1.2rem}
  .head-brand{flex:1 1 46%}
  .site-nav{flex:1 1 54%}
  .site-nav__link{padding:.4rem .5rem .55rem;font-size:.85rem}
  .site-nav__link::after{left:.5rem;right:.5rem}
}

/* ---------- 移动端 ---------- */
@media (max-width:900px){
  .head-body{padding:.7rem clamp(1rem,4vw,1.5rem);align-items:center}
  .head-brand{flex:1 1 auto;gap:.25rem}
  .brand__tagline{display:none}
  .nav-toggle{display:inline-flex}
  .site-nav{
    position:absolute;left:0;right:0;top:100%;z-index:90;
    display:block;
    max-height:min(72vh,540px);overflow:auto;
    padding:.4rem clamp(1rem,4vw,1.5rem) 1rem;
    background:linear-gradient(180deg,#0d3138,#0a2129);
    border-top:1px solid var(--gold-soft);
    border-bottom:2px solid var(--gold-soft);
    box-shadow:0 26px 44px rgba(0,0,0,.5);
    opacity:0;visibility:hidden;transform:translateY(-8px);
    transition:opacity .18s ease,transform .18s ease,visibility .18s ease;
  }
  .site-head[data-open="true"] .site-nav,
  .site-nav[data-open="true"]{opacity:1;visibility:visible;transform:none}
  .site-nav__list{flex-direction:column;align-items:stretch;justify-content:flex-start;gap:0}
  .site-nav__link{
    flex-direction:row;align-items:center;gap:.8rem;
    padding:.85rem .2rem;font-size:1rem;
    border-bottom:1px solid rgba(217,198,165,.14);border-radius:0;
  }
  .site-nav__link:last-child{border-bottom:0}
  .site-nav__link::after{display:none}
  .site-nav__link:hover,.site-nav__link[aria-current="page"]{background:rgba(200,160,74,.08);padding-left:.6rem}
  .site-nav__link[aria-current="page"]{border-bottom-color:rgba(212,71,47,.5)}
  .head-progress{bottom:-2px}
}

@media (max-width:720px){
  .rail-chip--wide{display:none}
  .rail-inner{justify-content:space-between;gap:.6rem}
  .foot-grid{grid-template-columns:1fr;gap:1.7rem}
  .foot-summary,.foot-note{max-width:none}
  .foot-bottom{flex-direction:column;gap:.35rem}
}

@media (max-width:420px){
  .brand__seal{width:38px;height:38px;font-size:18px}
  .brand__line{letter-spacing:.2em;font-size:9px}
  .btn{width:100%}
  .foot-cta{width:auto}
}

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