:root{
  --nav-dark:#172237;--brand-blue:#346fbb;--game-purple:#6853a5;--adv-green:#27836d;
  --vivid-orange:#e48538;--update-red:#d94c55;--accent-gold:#d5aa45;--bg:#f2f4f6;
  --card:#ffffff;--text:#28343c;--text-secondary:#6f7b84;--border:#dce4e8;
}
*{box-sizing:border-box;margin:0;padding:0;}
body{font-family:"Microsoft YaHei","PingFang SC",sans-serif;background:var(--bg);color:var(--text);line-height:1.8;font-size:15px;}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
.container{max-width:1200px;margin:0 auto;padding:0 20px;}
.content-narrow{max-width:820px;}
ul{list-style:none;}
h1,h2,h3,h4{line-height:1.35;}

/* header */
.site-header{position:sticky;top:0;z-index:50;background:var(--nav-dark);box-shadow:0 2px 10px rgba(0,0,0,.15);}
.nav-inner{max-width:1200px;margin:0 auto;padding:0 20px;display:flex;align-items:center;justify-content:space-between;height:64px;}
.nav-menu{display:flex;gap:20px;flex-wrap:wrap;}
.nav-menu a{color:#dce4e8;font-size:14px;padding:6px 2px;border-bottom:2px solid transparent;transition:.2s;}
.nav-menu a:hover,.nav-menu a.active{color:#fff;border-color:var(--accent-gold);}
.nav-actions{display:flex;align-items:center;gap:14px;}
.nav-cta{background:var(--vivid-orange);color:#fff;padding:9px 18px;border-radius:20px;font-size:14px;font-weight:600;}
.nav-toggle{display:none;flex-direction:column;gap:4px;background:none;border:0;cursor:pointer;}
.nav-toggle span{width:22px;height:2px;background:#fff;}

/* breadcrumb */
.breadcrumb{padding:14px 20px;font-size:13px;color:var(--text-secondary);}
.breadcrumb a{color:var(--brand-blue);}
.breadcrumb span{margin:0 6px;}

/* hero */
.hero{background:linear-gradient(120deg,var(--nav-dark),var(--brand-blue));color:#fff;padding:52px 0;}
.hero-grid{display:grid;grid-template-columns:1.1fr 0.9fr;gap:40px;align-items:center;}
.hero-badge{display:inline-block;background:var(--accent-gold);color:#172237;font-size:12px;font-weight:700;padding:4px 12px;border-radius:14px;margin-bottom:14px;}
.hero h1{font-size:32px;margin-bottom:14px;}
.hero .sub{font-size:16px;color:#dce4e8;margin-bottom:16px;}
.hero p.intro{color:#c7d2da;margin-bottom:22px;font-size:14px;}
.hero-btns{display:flex;gap:14px;margin-bottom:26px;flex-wrap:wrap;}
.btn{display:inline-block;padding:12px 26px;border-radius:22px;font-size:14px;font-weight:700;cursor:pointer;border:0;transition:.2s;}
.btn-primary{background:var(--vivid-orange);color:#fff;}
.btn-primary:hover{background:#c96f28;}
.btn-outline{background:transparent;color:#fff;border:1px solid #6f8aa8;}
.btn-outline:hover{background:rgba(255,255,255,.08);}
.hero-stats{display:flex;gap:24px;flex-wrap:wrap;}
.hero-stats div{font-size:13px;color:#c7d2da;}
.hero-stats b{display:block;font-size:19px;color:#fff;}
.hero-visual img{border-radius:18px;box-shadow:0 20px 50px rgba(0,0,0,.35);}
.page-hero{background:linear-gradient(120deg,var(--nav-dark),var(--brand-blue));color:#fff;padding:44px 0;}
.page-hero h1{font-size:28px;margin-bottom:10px;}
.page-hero p{color:#dce4e8;font-size:14.5px;max-width:760px;}

/* zones */
.zone{padding:50px 0;}
.zone-alt{background:#fff;}
.zone-head{margin-bottom:26px;}
.zone-eyebrow{font-size:12px;color:var(--brand-blue);font-weight:700;letter-spacing:1px;}
.zone-title{font-size:23px;margin-top:6px;}
.zone-desc{color:var(--text-secondary);font-size:13.5px;margin-top:6px;}
.notice-strip{background:#fff4e8;border:1px solid #f0d3ab;color:#8a5a1c;font-size:13px;padding:10px 16px;border-radius:10px;margin-bottom:20px;}

/* download console */
.console{background:var(--nav-dark);border-radius:18px;padding:28px;color:#fff;display:grid;grid-template-columns:1.4fr 1fr;gap:26px;}
.console-tabs{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:16px;}
.console-tab{background:#22314a;color:#c7d2da;border:0;padding:9px 16px;border-radius:16px;font-size:13px;cursor:pointer;}
.console-tab.active{background:var(--brand-blue);color:#fff;}
.console-panel{display:none;}
.console-panel.active{display:block;}
.console-meta-row{display:flex;flex-wrap:wrap;gap:14px;font-size:12.5px;color:#b9c6d1;margin-bottom:10px;}
.console-list{margin:10px 0;padding-left:18px;list-style:disc;font-size:13px;color:#dce4e8;}
.console-note{background:#22314a;padding:10px 14px;border-radius:10px;font-size:12.5px;color:#b9c6d1;margin-bottom:14px;}
.qr-box{background:#22314a;border-radius:14px;padding:18px;display:flex;gap:14px;align-items:center;font-size:12px;color:#b9c6d1;}
.compare-wrap{overflow-x:auto;margin-top:22px;}
table.compare{width:100%;border-collapse:collapse;background:#fff;border-radius:10px;overflow:hidden;font-size:13px;}
table.compare th,table.compare td{padding:10px 12px;border-bottom:1px solid var(--border);text-align:left;}
table.compare th{background:#eef1f3;font-weight:700;}

/* advisor */
.advisor-box{background:#fff;border-radius:16px;border:1px solid var(--border);padding:22px;margin-bottom:22px;}
.advisor-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:16px;}
.advisor-q p{font-size:13.5px;margin:6px 0 10px;}
.advisor-q .qn{font-size:11.5px;color:var(--brand-blue);font-weight:700;}
.advisor-q .opts{display:flex;gap:8px;}
.advisor-q .opts button{background:#eef1f3;border:0;padding:8px 14px;border-radius:14px;font-size:12.5px;cursor:pointer;}
.advisor-q .opts button.selected{background:var(--brand-blue);color:#fff;}
.advisor-result{background:#eef6ff;border-radius:12px;padding:14px 18px;font-size:14px;}
.advisor-result .r-value{font-size:18px;font-weight:700;color:var(--brand-blue);}

/* games / bento */
.game-bento{display:grid;grid-template-columns:repeat(6,1fr);gap:16px;}
.game-big{grid-column:span 3;background:#fff;border-radius:16px;overflow:hidden;border:1px solid var(--border);transition:.2s;}
.game-big:hover{box-shadow:0 10px 24px rgba(0,0,0,.08);}
.game-big img{height:200px;object-fit:cover;width:100%;}
.game-row{grid-column:span 6;display:grid;grid-template-columns:repeat(4,1fr);gap:16px;}
.game-h{background:#fff;border-radius:14px;overflow:hidden;border:1px solid var(--border);display:flex;flex-direction:column;}
.game-h img{height:120px;object-fit:cover;width:100%;}
.game-compact-row{grid-column:span 6;display:grid;grid-template-columns:repeat(3,1fr);gap:16px;}
.game-c{background:#fff;border-radius:14px;padding:14px;border:1px solid var(--border);}
.game-body{padding:14px;}
.game-tags{display:flex;gap:8px;font-size:11px;color:var(--text-secondary);margin-bottom:6px;flex-wrap:wrap;}
.game-tags span{background:#eef1f3;padding:2px 8px;border-radius:10px;}
.game-body h4{font-size:16px;margin-bottom:6px;}
.game-body p{font-size:12.5px;color:var(--text-secondary);margin-bottom:8px;}
.game-meta{font-size:11.5px;color:var(--text-secondary);display:flex;gap:10px;flex-wrap:wrap;margin-bottom:8px;}
.game-more{font-size:12.5px;color:var(--brand-blue);font-weight:700;}

/* game archive (games.html) */
.archive-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;}
.archive-card{background:#fff;border-radius:14px;overflow:hidden;border:1px solid var(--border);}
.archive-card img{width:100%;height:170px;object-fit:cover;}
.archive-body{padding:16px;}
.archive-body h4{font-size:15px;margin-bottom:8px;}
.archive-facts{display:grid;grid-template-columns:1fr 1fr;gap:4px 10px;font-size:11.5px;color:var(--text-secondary);margin-bottom:10px;}
.archive-facts b{color:var(--text);}
.archive-body p{font-size:12.5px;color:var(--text-secondary);margin-bottom:8px;}

/* categories */
.cat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;}
.cat-card{background:#fff;border-radius:14px;padding:18px;border:1px solid var(--border);cursor:pointer;transition:.2s;}
.cat-card.hidden{display:none;}
.cat-card svg{margin-bottom:10px;}
.cat-card h4{font-size:15px;margin-bottom:6px;}
.cat-card p{font-size:12px;color:var(--text-secondary);}
.cat-filters{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:20px;}
.cat-filters button{background:#fff;border:1px solid var(--border);padding:8px 16px;border-radius:16px;font-size:13px;cursor:pointer;}
.cat-filters button.active{background:var(--brand-blue);color:#fff;border-color:var(--brand-blue);}

/* articles (guides / features) */
.article-full{max-width:850px;margin:0 auto 34px;background:#fff;border-radius:16px;border:1px solid var(--border);overflow:hidden;}
.article-full img{width:100%;height:280px;object-fit:cover;}
.article-full .body{padding:26px;}
.article-meta{display:flex;gap:12px;font-size:12px;color:var(--text-secondary);margin-bottom:10px;flex-wrap:wrap;}
.article-meta span{background:#eef1f3;padding:2px 9px;border-radius:10px;}
.article-full h2{font-size:22px;margin-bottom:10px;}
.article-full .lead{font-size:14.5px;color:var(--text-secondary);margin-bottom:14px;}
.article-full p{margin-bottom:12px;font-size:14.5px;}
.article-full h3{font-size:16px;margin:16px 0 8px;color:var(--brand-blue);}
.article-tip{background:#eef6ff;border-radius:10px;padding:12px 16px;font-size:13px;margin:12px 0;}
.article-warn{background:#fff4e8;border-radius:10px;padding:12px 16px;font-size:13px;margin:12px 0;color:#8a5a1c;}
.article-summary{background:#f7f8f9;border-radius:10px;padding:14px 16px;font-size:13.5px;margin-top:14px;}
.article-tags{font-size:11.5px;color:var(--text-secondary);margin-top:14px;}
.article-related{font-size:12.5px;margin-top:12px;border-top:1px solid var(--border);padding-top:12px;}
.article-related div{margin-bottom:6px;}
.article-related a{color:var(--brand-blue);margin-right:14px;}
.article-nav{display:flex;justify-content:space-between;margin-top:14px;font-size:12.5px;}
.article-nav a{color:var(--brand-blue);}
.toc-box{background:#f7f8f9;border-radius:10px;padding:14px 18px;font-size:13px;margin-bottom:16px;}
.toc-box b{display:block;margin-bottom:6px;}
.toc-box a{color:var(--brand-blue);display:block;margin-bottom:4px;}

/* article compact rows for index */
.article-row-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:20px;}
.article-row{background:#fff;border-radius:14px;overflow:hidden;border:1px solid var(--border);}
.article-row img{width:100%;height:150px;object-fit:cover;}
.article-row .body{padding:16px;}
.article-row h4{font-size:15.5px;margin-bottom:8px;}
.article-row p{font-size:12.5px;color:var(--text-secondary);margin-bottom:8px;}
.article-compact-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;}
.article-compact{background:#fff;border-radius:12px;padding:16px;border:1px solid var(--border);}
.article-compact h4{font-size:14px;margin-bottom:8px;}
.article-compact p{font-size:12px;color:var(--text-secondary);}

/* guide/feature filter + list index pages */
.guide-filters{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:22px;}
.guide-filters button{background:#fff;border:1px solid var(--border);padding:8px 16px;border-radius:16px;font-size:13px;cursor:pointer;}
.guide-filters button.active{background:var(--brand-blue);color:#fff;border-color:var(--brand-blue);}
.guide-card{display:none;}
.guide-card.show{display:block;}

/* updates */
.update-main{background:#fff;border-radius:14px;padding:20px;border:1px solid var(--border);margin-bottom:16px;}
.update-row-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:16px;}
.update-row{background:#fff;border-radius:12px;padding:14px;border:1px solid var(--border);}
.update-list{background:#fff;border-radius:14px;border:1px solid var(--border);overflow:hidden;}
.update-list-item{padding:14px 18px;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;cursor:pointer;}
.update-list-item:last-child{border-bottom:0;}
.update-list-item .time{font-size:12px;color:var(--text-secondary);min-width:100px;}
.update-list-item .title{font-size:13.5px;flex:1;}
.update-detail{display:none;font-size:12.5px;color:var(--text-secondary);padding:0 18px 14px;}
.update-detail.open{display:block;}

/* versions */
.ver-console{display:grid;grid-template-columns:220px 1fr;gap:20px;background:#fff;border-radius:16px;border:1px solid var(--border);overflow:hidden;}
.ver-rail{background:#eef1f3;padding:10px;}
.ver-rail button{display:block;width:100%;text-align:left;background:none;border:0;padding:10px 12px;border-radius:8px;font-size:13px;cursor:pointer;margin-bottom:4px;}
.ver-rail button.active{background:var(--brand-blue);color:#fff;}
.ver-panels{padding:22px;}
.ver-panel{display:none;}
.ver-panel.active{display:block;}
.ver-panel h4{font-size:17px;margin-bottom:6px;}
.ver-panel .meta{font-size:12px;color:var(--text-secondary);margin-bottom:10px;}
.ver-panel ul{padding-left:18px;list-style:disc;font-size:13px;color:var(--text);}

/* features grid */
.feat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;}
.feat-big{grid-column:span 2;background:#fff;border-radius:14px;padding:22px;border:1px solid var(--border);}
.feat-row{grid-column:span 1;background:#fff;border-radius:14px;padding:18px;border:1px solid var(--border);}
.feat-icon{width:40px;height:40px;border-radius:10px;background:var(--brand-blue);display:flex;align-items:center;justify-content:center;margin-bottom:10px;}
.feat-grid h4{font-size:15px;margin-bottom:6px;}
.feat-grid p{font-size:12.5px;color:var(--text-secondary);}

/* install */
.install-routes{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:24px;}
.route-card{background:#fff;border-radius:14px;padding:16px;border:1px solid var(--border);}
.route-card h4{font-size:14.5px;margin-bottom:10px;}
.route-step{font-size:12px;color:var(--text-secondary);padding:5px 0;border-bottom:1px dashed var(--border);}
.route-step:last-child{border-bottom:0;}
.trouble-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;}
.trouble-item{background:#fff;border-radius:12px;padding:14px;border:1px solid var(--border);}
.trouble-item h4{font-size:13.5px;margin-bottom:6px;color:var(--update-red);}
.trouble-item p{font-size:12px;color:var(--text-secondary);}

/* faq */
.faq-list{background:#fff;border-radius:14px;border:1px solid var(--border);overflow:hidden;}
.faq-item{border-bottom:1px solid var(--border);}
.faq-item:last-child{border-bottom:0;}
.faq-q{width:100%;text-align:left;background:none;border:0;padding:16px 18px;font-size:14px;font-weight:600;cursor:pointer;display:flex;justify-content:space-between;}
.faq-q::after{content:"+";color:var(--brand-blue);font-size:18px;}
.faq-item.open .faq-q::after{content:"−";}
.faq-a{display:none;padding:0 18px 16px;font-size:13px;color:var(--text-secondary);}
.faq-item.open .faq-a{display:block;}

/* footer */
.site-footer{background:var(--nav-dark);color:#c7d2da;padding:44px 0 20px;margin-top:20px;}
.footer-grid{display:grid;grid-template-columns:1.4fr repeat(3,1fr);gap:24px;margin-bottom:22px;}
.footer-col h4{color:#fff;font-size:14px;margin-bottom:12px;}
.footer-col ul li{margin-bottom:8px;font-size:12.5px;}
.footer-brand p{font-size:12.5px;color:#b9c6d1;margin-top:10px;}
.footer-disclaimer,.footer-brand-note,.footer-seo-note{font-size:12px;color:#98a6b3;border-top:1px solid #2c3a52;padding-top:14px;margin-top:10px;}
.footer-bottom{font-size:12px;color:#7f8ea0;margin-top:14px;}

.back-top{position:fixed;right:22px;bottom:22px;width:44px;height:44px;border-radius:50%;background:var(--brand-blue);color:#fff;border:0;font-size:18px;cursor:pointer;display:none;box-shadow:0 6px 16px rgba(0,0,0,.25);}
.back-top.show{display:block;}

@media(max-width:992px){
  .hero-grid{grid-template-columns:1fr;}
  .console{grid-template-columns:1fr;}
  .game-big{grid-column:span 6;}
  .game-row{grid-template-columns:repeat(2,1fr);}
  .game-compact-row{grid-template-columns:repeat(2,1fr);}
  .cat-grid{grid-template-columns:repeat(2,1fr);}
  .archive-grid{grid-template-columns:repeat(2,1fr);}
  .article-row-grid{grid-template-columns:1fr;}
  .article-compact-grid{grid-template-columns:1fr;}
  .update-row-grid{grid-template-columns:1fr;}
  .ver-console{grid-template-columns:1fr;}
  .feat-grid{grid-template-columns:repeat(2,1fr);}
  .feat-big{grid-column:span 2;}
  .install-routes{grid-template-columns:repeat(2,1fr);}
  .trouble-grid{grid-template-columns:repeat(2,1fr);}
  .footer-grid{grid-template-columns:1fr 1fr;}
  .advisor-steps{grid-template-columns:1fr;}
}
@media(max-width:768px){
  .nav-menu{display:none;}
  .nav-toggle{display:flex;}
  .site-header.open .nav-menu{display:flex;flex-direction:column;position:absolute;top:64px;left:0;right:0;background:var(--nav-dark);padding:16px 20px;gap:10px;}
  .game-row{grid-template-columns:1fr;}
  .game-compact-row{grid-template-columns:1fr;}
  .cat-grid{grid-template-columns:1fr;}
  .archive-grid{grid-template-columns:1fr;}
  .feat-grid{grid-template-columns:1fr;}
  .feat-big{grid-column:span 1;}
  .install-routes{grid-template-columns:1fr;}
  .trouble-grid{grid-template-columns:1fr;}
  .footer-grid{grid-template-columns:1fr;}
  .hero h1{font-size:26px;}
  .article-full .body{padding:18px;}
}
