/* ========== Reset ========== */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
body,html{min-height:100%;font-family:"Microsoft Yahei",Arial,Helvetica,sans-serif;font-size:14px;line-height:1.6;color:#333;background:#f2f2f2;overflow-x:hidden}
ul,ol{list-style:none}
a{color:#333;text-decoration:none;transition:color .2s}
a:hover{color:#FFBA25}
img{vertical-align:middle;border:0;max-width:100%}
.clearfix::after{content:"";display:table;clear:both}
.fl{float:left}.fr{float:right}

/* ========== Layout ========== */
.container{width:1200px;margin:0 auto;padding:0 15px}
.main-wrap{display:flex;gap:24px;margin-top:24px}
.main-content{flex:1;min-width:0}
.sidebar{width:300px;flex-shrink:0}

/* ========== Header ========== */
.site-header{background:#141414;position:sticky;top:0;z-index:100;box-shadow:0 2px 12px rgba(0,0,0,.3)}
.site-header .container{display:flex;align-items:center;height:70px}
.site-logo{font-size:22px;font-weight:700;color:#FFBA25;margin-right:40px;white-space:nowrap}
.site-logo span{color:#fff}
.site-nav{display:flex;gap:6px}
.site-nav a{color:#ccc;font-size:15px;padding:8px 18px;border-radius:20px;transition:all .25s}
.site-nav a:hover,.site-nav a.active{background:#FFBA25;color:#141414;font-weight:600}
.header-search{margin-left:auto;position:relative}
.header-search input{width:200px;height:36px;border-radius:18px;border:1px solid #444;background:#222;color:#fff;padding:0 38px 0 16px;font-size:13px;outline:none;transition:border-color .2s}
.header-search input:focus{border-color:#FFBA25}
.header-search button{position:absolute;right:4px;top:4px;width:28px;height:28px;border-radius:50%;border:none;background:#FFBA25;color:#141414;font-size:14px;cursor:pointer}

/* ========== Hero / Banner ========== */
.hero-section{background:linear-gradient(135deg,#141414 0%,#2a2a2a 100%);padding:40px 0;margin-bottom:0}
.hero-inner{display:flex;align-items:center;justify-content:space-between}
.hero-text h1{font-size:28px;color:#fff;margin-bottom:12px}
.hero-text h1 em{color:#FFBA25;font-style:normal}
.hero-text p{color:#999;font-size:15px;max-width:500px}
.hero-stats{display:flex;gap:32px}
.hero-stat{text-align:center}
.hero-stat .num{font-size:28px;font-weight:700;color:#FFBA25}
.hero-stat .label{font-size:12px;color:#999;margin-top:4px}

/* ========== Section Title ========== */
.section-title{display:flex;align-items:center;margin-bottom:20px;padding-bottom:12px;border-bottom:2px solid #FFBA25}
.section-title h2{font-size:20px;font-weight:700;color:#333}
.section-title .more{margin-left:auto;color:#999;font-size:13px}
.section-title .more:hover{color:#FFBA25}

/* ========== Game Card Grid ========== */
.game-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.game-card{background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 4px 16px rgba(0,0,0,.06);transition:transform .25s,box-shadow .25s}
.game-card:hover{transform:translateY(-4px);box-shadow:0 8px 24px rgba(255,186,37,.15)}
.game-card .thumb{width:100%;aspect-ratio:4/3;object-fit:cover;display:block;background:#eee}
.game-card .card-body{padding:14px}
.game-card .card-title{font-size:15px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:6px}
.game-card .card-title a{color:#333}
.game-card .card-title a:hover{color:#FFBA25}
.game-card .card-desc{font-size:12px;color:#999;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.5;min-height:36px}
.game-card .card-meta{display:flex;align-items:center;justify-content:space-between;margin-top:10px;font-size:12px;color:#bbb}
.game-card .card-meta .views{display:flex;align-items:center;gap:4px}
.game-card .download-btn{display:inline-block;background:linear-gradient(135deg,#FFD100,#FFBA25);color:#141414;font-size:12px;font-weight:600;padding:4px 14px;border-radius:12px;margin-top:8px}

/* ========== App List (vertical) ========== */
.app-list .app-item{display:flex;align-items:center;padding:14px 0;border-bottom:1px solid #f0f0f0}
.app-list .app-item:last-child{border-bottom:none}
.app-list .app-icon{width:56px;height:56px;border-radius:14px;object-fit:cover;margin-right:14px;flex-shrink:0;background:#eee}
.app-list .app-info{flex:1;min-width:0}
.app-list .app-name{font-size:15px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.app-list .app-name a{color:#333}
.app-list .app-name a:hover{color:#FFBA25}
.app-list .app-desc{font-size:12px;color:#999;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.app-list .app-action{margin-left:12px}
.app-list .app-action a{display:inline-block;padding:6px 16px;background:linear-gradient(135deg,#FFD100,#FFBA25);color:#141414;border-radius:14px;font-size:12px;font-weight:600}

/* ========== Sidebar ========== */
.sidebar-block{background:#fff;border-radius:16px;padding:20px;margin-bottom:20px;box-shadow:0 4px 12px rgba(0,0,0,.04)}
.sidebar-block .sb-title{font-size:16px;font-weight:700;color:#333;margin-bottom:14px;padding-bottom:10px;border-bottom:2px solid #FFBA25}
.sidebar-block .tag-cloud{display:flex;flex-wrap:wrap;gap:8px}
.sidebar-block .tag-cloud a{display:inline-block;padding:4px 12px;background:#f7f7f7;border-radius:14px;font-size:12px;color:#666;transition:all .2s}
.sidebar-block .tag-cloud a:hover{background:#FFBA25;color:#141414}
.sidebar-block .rank-list li{display:flex;align-items:center;padding:8px 0;border-bottom:1px solid #f5f5f5}
.sidebar-block .rank-list li:last-child{border-bottom:none}
.sidebar-block .rank-list .rank-num{width:22px;height:22px;border-radius:6px;background:#f0f0f0;color:#999;font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center;margin-right:10px;flex-shrink:0}
.sidebar-block .rank-list li:nth-child(1) .rank-num,.sidebar-block .rank-list li:nth-child(2) .rank-num,.sidebar-block .rank-list li:nth-child(3) .rank-num{background:#FFBA25;color:#141414}
.sidebar-block .rank-list .rank-title{font-size:13px;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sidebar-block .rank-list .rank-title a{color:#333}
.sidebar-block .rank-list .rank-title a:hover{color:#FFBA25}

/* ========== Breadcrumb ========== */
.breadcrumb{padding:14px 0;font-size:13px;color:#999}
.breadcrumb a{color:#666}
.breadcrumb a:hover{color:#FFBA25}
.breadcrumb span{margin:0 6px;color:#ccc}

/* ========== Article Detail ========== */
.article-header{background:#fff;border-radius:16px;padding:28px;margin-bottom:20px;box-shadow:0 4px 12px rgba(0,0,0,.04)}
.article-header .app-head{display:flex;align-items:flex-start;gap:20px}
.article-header .app-icon-lg{width:80px;height:80px;border-radius:20px;object-fit:cover;flex-shrink:0}
.article-header .app-meta h1{font-size:22px;font-weight:700;color:#333;margin-bottom:8px}
.article-header .app-meta .meta-row{display:flex;flex-wrap:wrap;gap:16px;font-size:13px;color:#999}
.article-header .app-meta .meta-row span{display:flex;align-items:center;gap:4px}
.article-header .app-download{margin-top:16px}
.article-header .app-download a{display:inline-block;padding:10px 32px;background:linear-gradient(135deg,#FFD100,#FFBA25);color:#141414;font-size:15px;font-weight:700;border-radius:24px;box-shadow:0 4px 16px rgba(255,186,37,.3);transition:box-shadow .25s}
.article-header .app-download a:hover{box-shadow:0 6px 24px rgba(255,186,37,.5)}

.article-body{background:#fff;border-radius:16px;padding:28px;margin-bottom:20px;box-shadow:0 4px 12px rgba(0,0,0,.04)}
.article-body .content{line-height:1.8;font-size:15px;color:#444}
.article-body .content img{max-width:100%;border-radius:8px;margin:12px 0}
.article-body .content p{margin-bottom:12px}

.related-list{background:#fff;border-radius:16px;padding:20px 28px;box-shadow:0 4px 12px rgba(0,0,0,.04)}
.related-list h3{font-size:16px;font-weight:700;margin-bottom:14px;color:#333}
.related-list ul{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.related-list ul li a{display:block;padding:8px 12px;background:#f7f7f7;border-radius:8px;font-size:13px;color:#333;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:all .2s}
.related-list ul li a:hover{background:#FFBA25;color:#141414}

/* ========== Pagination ========== */
.pagination{display:flex;justify-content:center;align-items:center;gap:8px;padding:24px 0}
.pagination a,.pagination b{display:inline-block;padding:8px 14px;border-radius:8px;font-size:13px;background:#fff;color:#333;border:1px solid #e8e8e8;transition:all .2s}
.pagination a:hover,.pagination a.active{background:#FFBA25;color:#141414;border-color:#FFBA25}
.pagination b{background:#f5f5f5;color:#999;border-color:#f5f5f5}

/* ========== Footer ========== */
.site-footer{background:#141414;margin-top:40px;padding:40px 0 20px}
.footer-inner{display:flex;justify-content:space-between;align-items:flex-start;gap:40px;padding-bottom:24px;border-bottom:1px solid #2a2a2a}
.footer-col h4{color:#FFBA25;font-size:15px;margin-bottom:12px}
.footer-col p,.footer-col a{color:#888;font-size:13px;line-height:2}
.footer-col a:hover{color:#FFBA25}
.footer-links{padding-top:16px;display:flex;flex-wrap:wrap;gap:12px}
.footer-links a{color:#666;font-size:12px}
.footer-links a:hover{color:#FFBA25}
.footer-bottom{text-align:center;padding-top:20px;color:#555;font-size:12px}
.footer-bottom a{color:#666;margin:0 4px}
.footer-bottom a:hover{color:#FFBA25}

/* ========== Responsive ========== */
@media(max-width:1240px){.container{width:100%;padding:0 20px}}
@media(max-width:960px){
  .main-wrap{flex-direction:column}.sidebar{width:100%}
  .game-grid{grid-template-columns:repeat(2,1fr)}
  .site-nav{display:none}
  .hero-stats{gap:16px}
}
@media(max-width:600px){
  .game-grid{grid-template-columns:1fr 1fr;gap:12px}
  .container{padding:0 12px}
  .site-header .container{height:56px}
  .site-logo{font-size:18px}
}
