/* ==========================================================================
   金沙娱乐 JINZI MIAOMIAO — 全站样式表
   目录：Variables / Reset / Base / Typography / Topbar / Header / Navigation / Hero /
        Buttons / Section / Grid / Cards / Article Card / Meta Row / Tag / Breadcrumb /
        Article / Author / Sidebar / FAQ / CTA / Footer / Back To Top / Responsive
   ========================================================================== */

/* ---------- Variables ---------- */
:root{
  --ink-950:#05070f;
  --ink-900:#0a0e22;
  --ink-800:#111738;
  --ink-700:#1b2254;
  --violet-700:#5232d6;
  --violet-600:#6b45f5;
  --violet-500:#8b6bff;
  --cyan-400:#22d3ee;
  --cyan-300:#67e8f9;
  --mint-400:#39ff9c;
  --gold-400:#f5c451;
  --mist-50:#f7f6ff;
  --mist-100:#eeecfd;
  --mist-200:#dcd8f8;
  --white:#ffffff;
  --text-900:#12142b;
  --text-700:#363a5a;
  --text-500:#5f6485;
  --text-400:#8087a8;
  --line:#e4e2f5;
  --line-soft:#efeefa;
  --success:#14a86b;
  --radius-lg:18px;
  --radius-md:12px;
  --radius-sm:8px;
  --shadow-card:0 4px 24px rgba(27,34,84,.07);
  --shadow-pop:0 12px 40px rgba(27,34,84,.18);
  --maxw:1240px;
  --font:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei","Helvetica Neue",Arial,sans-serif;
}

/* ---------- Reset ---------- */
*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{margin:0;font-family:var(--font);color:var(--text-700);background:var(--white);line-height:1.75;font-size:16px;-webkit-font-smoothing:antialiased;}
img{max-width:100%;display:block;}
button{font-family:inherit;}

/* ---------- Base ---------- */
a{color:var(--violet-600);text-decoration:none;}
a:hover{text-decoration:underline;}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 20px;}
.skip-link{position:absolute;left:-999px;top:0;background:var(--violet-600);color:#fff;padding:10px 16px;z-index:999;border-radius:0 0 8px 0;}
.skip-link:focus{left:0;}

/* ---------- Typography ---------- */
h1,h2,h3,h4{color:var(--text-900);line-height:1.38;margin:0 0 .6em;font-weight:700;}
p{margin:0 0 1em;}
ul,ol{margin:0 0 1em;padding-left:1.4em;}

/* ---------- Topbar ---------- */
.topbar{background:var(--ink-950);color:var(--mist-200);font-size:13px;}
.topbar .wrap{display:flex;justify-content:space-between;align-items:center;min-height:36px;gap:12px;flex-wrap:nowrap;overflow:hidden;white-space:nowrap;}
.topbar span{opacity:.85;overflow:hidden;text-overflow:ellipsis;}
.topbar .topbar-tag{color:var(--mint-400);letter-spacing:.06em;font-weight:600;flex:none;opacity:1;}

/* ---------- Header ---------- */
.site-header{position:sticky;top:0;z-index:60;background:var(--ink-900);border-bottom:1px solid rgba(255,255,255,.07);}
.header-row{display:flex;align-items:center;justify-content:space-between;height:64px;gap:14px;}
.brand{display:flex;align-items:center;gap:10px;color:#fff;font-weight:700;font-size:18px;flex:0 0 auto;}
.brand:hover{text-decoration:none;}
.brand .logo-mark{width:34px;height:34px;flex:none;}
.brand small{display:block;font-size:10.5px;font-weight:600;color:var(--gold-400);letter-spacing:.14em;}

/* ---------- Navigation ---------- */
.main-nav{display:flex;align-items:center;gap:0;flex:1 1 auto;justify-content:center;min-width:0;}
.main-nav a{color:var(--mist-100);font-size:13px;font-weight:500;padding:8px 7px;border-radius:8px;white-space:nowrap;}
.main-nav a:hover,.main-nav a:focus-visible{background:rgba(255,255,255,.09);text-decoration:none;}
.main-nav a[aria-current="page"]{color:#fff;background:rgba(139,107,255,.32);}
.header-actions{display:flex;align-items:center;gap:10px;flex:0 0 auto;}
.nav-toggle{display:none;background:transparent;border:1px solid rgba(255,255,255,.3);border-radius:8px;width:40px;height:40px;flex:none;cursor:pointer;position:relative;}
.nav-toggle span,.nav-toggle::before,.nav-toggle::after{content:"";position:absolute;left:9px;right:9px;height:2px;background:#fff;border-radius:2px;}
.nav-toggle span{top:19px;}
.nav-toggle::before{top:13px;}
.nav-toggle::after{top:25px;}

/* ---------- Buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:9px 18px;border-radius:999px;font-size:14px;font-weight:600;border:1px solid transparent;cursor:pointer;white-space:nowrap;}
.btn:hover{text-decoration:none;}
.btn-primary{background:linear-gradient(135deg,var(--violet-600),var(--cyan-400));color:#fff;}
.btn-primary:hover{filter:brightness(1.08);}
.btn-ghost{background:transparent;color:var(--mist-100);border-color:rgba(255,255,255,.3);}
.btn-ghost:hover{background:rgba(255,255,255,.09);}
.btn-outline{background:transparent;color:var(--violet-600);border-color:var(--violet-600);}
.btn-outline:hover{background:var(--mist-50);}
.btn-block{width:100%;}
.btn-lg{padding:13px 26px;font-size:15.5px;}
.btn[disabled]{opacity:.55;cursor:not-allowed;}

/* ---------- Breadcrumb ---------- */
.breadcrumb{font-size:13.5px;color:var(--text-500);padding:16px 0;}
.breadcrumb a{color:var(--text-500);}
.breadcrumb a:hover{color:var(--violet-600);}
.breadcrumb .sep{margin:0 6px;color:var(--text-400);}
.breadcrumb .current{color:var(--text-700);}

/* ---------- Hero ---------- */
.hero{background:
  radial-gradient(1000px 520px at 85% -10%,rgba(34,211,238,.20),transparent 60%),
  radial-gradient(900px 520px at -8% 12%,rgba(107,69,245,.34),transparent 58%),
  linear-gradient(160deg,var(--ink-950),var(--ink-900) 60%,var(--ink-800));
  color:var(--mist-100);padding:56px 0 64px;}
.hero-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:40px;align-items:center;}
.eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:12.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--mint-400);margin-bottom:14px;}
.hero h1{color:#fff;font-size:clamp(28px,4vw,42px);margin-bottom:18px;}
.hero h1 em{font-style:normal;color:var(--gold-400);}
.hero p.lead{font-size:16.5px;color:var(--mist-200);max-width:600px;}
.hero-actions{display:flex;gap:12px;margin-top:26px;flex-wrap:wrap;}
.hero-visual{border-radius:var(--radius-lg);overflow:hidden;border:1px solid rgba(255,255,255,.14);box-shadow:0 20px 60px rgba(0,0,0,.4);}
.hero-visual img{width:100%;height:auto;}
.hero-panel{background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.14);border-radius:var(--radius-lg);padding:26px;}
.hero-panel .quote{font-size:16px;color:#fff;font-weight:600;margin-bottom:10px;}
.hero-flow{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px;}
.hero-flow span{font-size:12.5px;padding:6px 10px;border-radius:999px;background:rgba(255,255,255,.08);color:var(--mist-100);border:1px solid rgba(255,255,255,.14);}
.hero-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:36px;}
.hero-strip div{background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.1);border-radius:var(--radius-md);padding:14px 16px;}
.hero-strip b{display:block;color:var(--cyan-300);font-size:12.5px;margin-bottom:4px;}
.hero-strip span{color:var(--mist-100);font-size:13.5px;}
.hero-compact{padding:44px 0 48px;}
.hero-compact .hero-grid{grid-template-columns:1.2fr .8fr;}
.hero-compact .hero-visual{max-width:420px;justify-self:end;}

/* ---------- Section ---------- */
.section{padding:60px 0;}
.section-tight{padding:40px 0;}
.section-alt{background:var(--mist-50);}
.section-dark{background:var(--ink-900);color:var(--mist-100);}
.section-dark h2,.section-dark h3{color:#fff;}
.section-head{max-width:760px;margin:0 0 32px;}
.section-head.center{margin-left:auto;margin-right:auto;text-align:center;}
.section-head h2{font-size:clamp(22px,3vw,30px);}
.section-head p{color:var(--text-500);font-size:15.5px;}
.section-dark .section-head p{color:var(--mist-200);}
.section-kicker{font-size:12.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--violet-600);margin-bottom:10px;display:block;}
.section-dark .section-kicker{color:var(--mint-400);}
.prose-cols{display:grid;grid-template-columns:1fr 1fr;gap:36px;align-items:start;}
.more-link{display:inline-block;margin-top:22px;font-weight:700;}

/* ---------- Grid ---------- */
.grid{display:grid;gap:20px;}
.grid-2{grid-template-columns:repeat(2,1fr);}
.grid-3{grid-template-columns:repeat(3,1fr);}
.grid-4{grid-template-columns:repeat(4,1fr);}

/* ---------- Cards ---------- */
.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius-md);padding:22px;box-shadow:var(--shadow-card);}
.card h3{font-size:17px;}
.card p{font-size:14px;color:var(--text-500);}
.matrix-item{background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.13);border-radius:var(--radius-md);padding:20px;}
.matrix-item h4{color:#fff;font-size:15px;margin-bottom:6px;}
.matrix-item p{color:var(--mist-200);font-size:13.5px;margin:0;}
.num-badge{display:inline-flex;width:30px;height:30px;border-radius:9px;background:linear-gradient(135deg,var(--violet-600),var(--cyan-400));color:#fff;font-weight:700;font-size:13px;align-items:center;justify-content:center;margin-bottom:10px;}
.qa-card h3{font-size:16px;}

/* ---------- Article Card ---------- */
.article-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius-md);overflow:hidden;box-shadow:var(--shadow-card);display:flex;flex-direction:column;height:100%;}
.article-card .thumb{aspect-ratio:16/9;background:var(--mist-100);overflow:hidden;display:block;}
.article-card .thumb img{width:100%;height:100%;object-fit:cover;}
.article-card .body{padding:18px 20px 20px;display:flex;flex-direction:column;flex:1;}
.article-card h3{font-size:16.5px;margin-bottom:8px;}
.article-card h3 a{color:var(--text-900);}
.article-card h3 a:hover{color:var(--violet-600);text-decoration:none;}
.article-card p.excerpt{font-size:14px;color:var(--text-500);flex:0 1 auto;}
.article-card.featured{flex-direction:row;align-items:stretch;}
.article-card.featured .thumb{width:34%;aspect-ratio:16/9;flex:none;align-self:flex-start;margin:24px 0 24px 24px;border-radius:10px;}
.article-card.featured .body{width:66%;padding:24px 28px 26px;}
.article-card.featured h3{font-size:20px;}
.article-card.featured p.excerpt{font-size:14.5px;color:var(--text-700);}
.stack{display:flex;flex-direction:column;gap:24px;}

/* ---------- Meta Row ---------- */
.meta-row{font-size:12.5px;color:var(--text-400);display:flex;gap:10px;flex-wrap:wrap;margin-bottom:8px;align-items:center;}
.meta-row .cat{color:var(--violet-600);font-weight:700;}

/* ---------- Tag ---------- */
.tag-row{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0;}
.tag{font-size:12px;color:var(--violet-700);background:var(--mist-100);padding:3px 9px;border-radius:999px;font-weight:600;}
.read-more{font-size:13.5px;font-weight:700;color:var(--violet-600);display:inline-flex;align-items:center;gap:4px;margin-top:auto;}
.read-more:hover{text-decoration:none;gap:8px;transition:gap .15s;}
.chip-row{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 20px;}
.chip{border:1px solid var(--line);background:#fff;color:var(--text-700);font-size:13px;padding:6px 14px;border-radius:999px;cursor:pointer;font-weight:600;}
.chip.is-active,.chip:hover{background:var(--violet-600);border-color:var(--violet-600);color:#fff;}

/* ---------- Checklist / lists ---------- */
.checklist{list-style:none;padding:0;margin:14px 0 0;}
.checklist li{display:flex;gap:10px;font-size:14.5px;color:var(--text-700);margin-bottom:9px;}
.checklist li::before{content:"";flex:none;width:6px;height:6px;border-radius:50%;background:var(--violet-600);margin-top:10px;}
.link-list{list-style:none;padding:0;margin:0;}
.link-list li{padding:10px 0;border-bottom:1px solid var(--line-soft);font-size:14.5px;}
.link-list li small{color:var(--text-400);margin-left:8px;}

/* ---------- Article ---------- */
.article-layout{display:grid;grid-template-columns:minmax(0,760px) 290px;gap:44px;align-items:start;padding-bottom:50px;}
.article-head{margin-bottom:8px;}
.article-cat a{color:var(--violet-600);font-weight:700;font-size:13px;letter-spacing:.04em;}
.article-head h1{font-size:clamp(24px,3.4vw,33px);margin:10px 0 16px;}
.article-meta{display:flex;flex-wrap:wrap;gap:16px;font-size:13.5px;color:var(--text-500);padding-bottom:20px;border-bottom:1px solid var(--line);margin-bottom:24px;}
.article-meta .author{display:flex;align-items:center;gap:8px;color:var(--text-700);font-weight:600;}
.article-meta .avatar{width:28px;height:28px;border-radius:50%;flex:none;}
.article-figure{margin:0 0 26px;border-radius:var(--radius-md);overflow:hidden;border:1px solid var(--line);}
.article-figure img{width:100%;height:auto;}
.article-body{font-size:16.5px;color:var(--text-700);}
.article-body h2{font-size:21px;margin-top:1.7em;}
.article-body h3{font-size:18px;margin-top:1.4em;}
.article-body p{margin-bottom:1.15em;}
.article-body li{margin-bottom:.4em;}
.article-body a{border-bottom:1px solid rgba(107,69,245,.35);}
.article-body blockquote{margin:1.4em 0;padding:.6em 1.2em;border-left:4px solid var(--violet-500);background:var(--mist-50);color:var(--text-700);}
.article-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:34px;}
.related-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px;margin-top:22px;}
.related-grid .article-card h3{font-size:14.5px;}

/* ---------- Author ---------- */
.author-hero{display:flex;gap:24px;align-items:center;padding:36px 0;}
.author-hero .avatar-lg{width:88px;height:88px;border-radius:22px;flex:none;}
.author-focus{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px;}

/* ---------- Sidebar ---------- */
.sidebar-box{background:var(--mist-50);border:1px solid var(--line);border-radius:var(--radius-md);padding:20px;margin-bottom:20px;}
.sidebar-box h4{font-size:14.5px;margin-bottom:12px;}
.sidebar-box .mini-card{display:flex;gap:10px;margin-bottom:14px;}
.sidebar-box .mini-card:last-child{margin-bottom:0;}
.sidebar-box .mini-card .n{flex:none;width:26px;height:26px;border-radius:50%;background:var(--violet-600);color:#fff;font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center;}
.sidebar-box .mini-card a{color:var(--text-900);font-size:13.6px;font-weight:600;line-height:1.5;}
.sidebar-box .mini-card a:hover{color:var(--violet-600);}

/* ---------- FAQ ---------- */
.faq{border-top:1px solid var(--line);}
.faq-item{border-bottom:1px solid var(--line);}
.faq-q{width:100%;text-align:left;background:none;border:none;cursor:pointer;padding:18px 4px;font-size:15.5px;font-weight:600;color:var(--text-900);display:flex;justify-content:space-between;align-items:center;gap:16px;}
.faq-q::after{content:"+";font-size:20px;color:var(--violet-600);flex:none;transition:transform .2s;}
.faq-item.open .faq-q::after{transform:rotate(45deg);}
.faq-a{max-height:0;overflow:hidden;transition:max-height .25s ease;font-size:14.5px;color:var(--text-500);}
.faq-item.open .faq-a{max-height:600px;}
.faq-a-inner{padding:0 4px 18px;}

/* ---------- Forms / notice / table / doc ---------- */
.form-card{max-width:440px;margin:0 auto;background:#fff;border:1px solid var(--line);border-radius:var(--radius-lg);padding:34px;box-shadow:var(--shadow-card);}
.form-field{margin-bottom:16px;}
.form-field label{display:block;font-size:13.8px;font-weight:600;color:var(--text-700);margin-bottom:6px;}
.form-field input{width:100%;padding:11px 13px;border:1px solid var(--line);border-radius:var(--radius-sm);font-size:14.5px;font-family:var(--font);background:var(--mist-50);}
.form-note{font-size:12.8px;color:var(--text-500);text-align:center;margin-top:16px;}
.notice-box{background:var(--mist-50);border:1px solid var(--line);border-radius:var(--radius-md);padding:16px 18px;font-size:13.8px;color:var(--text-500);margin-bottom:20px;}
.notice-box strong{color:var(--text-900);}
.table-wrap{overflow-x:auto;margin:1.4em 0;}
table.plain{border-collapse:collapse;width:100%;font-size:14.5px;}
table.plain th,table.plain td{border:1px solid var(--line);padding:10px 12px;text-align:left;vertical-align:top;}
table.plain th{background:var(--mist-50);font-weight:700;color:var(--text-900);}
.doc-page{max-width:820px;margin:0 auto;}
.doc-page h2{margin-top:1.8em;}
.doc-page .updated{color:var(--text-400);font-size:13.5px;margin-bottom:30px;}
.search-box{display:flex;gap:10px;max-width:640px;margin:0 0 20px;}
.search-box input{flex:1;padding:12px 16px;border:1px solid var(--line);border-radius:999px;font-size:15px;font-family:var(--font);}

/* ---------- CTA ---------- */
.cta-band{background:linear-gradient(120deg,var(--ink-950),var(--ink-700));border-radius:var(--radius-lg);padding:44px;text-align:center;color:#fff;}
.cta-band h2{color:#fff;}
.cta-band p{color:var(--mist-200);max-width:600px;margin:0 auto 22px;}
.cta-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;}

/* ---------- Footer ---------- */
.site-footer{background:var(--ink-950);color:var(--text-400);padding:52px 0 24px;}
.footer-grid{display:grid;grid-template-columns:1.4fr repeat(4,1fr);gap:28px;padding-bottom:32px;border-bottom:1px solid rgba(255,255,255,.08);}
.footer-brand .brand{color:#fff;margin-bottom:10px;}
.footer-brand p{font-size:13.5px;color:var(--text-400);max-width:290px;}
.footer-col h5{color:var(--mist-100);font-size:13.5px;letter-spacing:.03em;margin-bottom:14px;}
.footer-col ul{list-style:none;padding:0;margin:0;}
.footer-col li{margin-bottom:9px;}
.footer-col a{color:var(--text-400);font-size:13.8px;}
.footer-col a:hover{color:var(--cyan-300);text-decoration:none;}
.footer-bottom{padding-top:20px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;font-size:12.8px;}

/* ---------- Back To Top ---------- */
.back-to-top{position:fixed;right:20px;bottom:20px;width:44px;height:44px;border-radius:50%;background:var(--violet-600);color:#fff;display:none;align-items:center;justify-content:center;box-shadow:var(--shadow-pop);border:none;cursor:pointer;z-index:50;font-size:18px;}
.back-to-top.show{display:flex;}

/* ---------- Responsive ---------- */
@media (max-width:1280px){
  .main-nav{position:absolute;left:0;right:0;top:64px;flex-direction:column;align-items:stretch;gap:0;background:var(--ink-900);border-top:1px solid rgba(255,255,255,.08);max-height:0;overflow:hidden;transition:max-height .25s ease;justify-content:flex-start;}
  .site-header.is-open .main-nav{max-height:640px;}
  .main-nav a{padding:14px 20px;border-radius:0;border-bottom:1px solid rgba(255,255,255,.06);font-size:14.5px;}
  .hide-mobile{display:none;}
  .nav-toggle{display:block;}
}
@media (max-width:960px){
  .article-layout{grid-template-columns:1fr;}
  .footer-grid{grid-template-columns:repeat(2,1fr);}
}
@media (max-width:900px){
  .hero-grid,.hero-compact .hero-grid{grid-template-columns:1fr;}
  .hero-compact .hero-visual{justify-self:stretch;max-width:none;}
  .hero-strip{grid-template-columns:repeat(2,1fr);}
  .grid-3,.grid-4{grid-template-columns:repeat(2,1fr);}
  .prose-cols{grid-template-columns:1fr;}
}
@media (max-width:760px){
  .article-card.featured{flex-direction:column;}
  .article-card.featured .thumb,.article-card.featured .body{width:100%;}
  .article-card.featured .thumb{margin:0;border-radius:0;align-self:stretch;}
  .related-grid{grid-template-columns:1fr;}
}
@media (max-width:640px){
  .topbar .wrap>span:not(.topbar-tag){display:none;}
  .grid-2,.grid-3,.grid-4{grid-template-columns:1fr;}
  .footer-grid{grid-template-columns:1fr;}
  .section{padding:44px 0;}
  .cta-band{padding:30px 20px;}
  .author-hero{flex-direction:column;align-items:flex-start;}
}
