/* 潮游网 — 前台样式 (简约大气) */
*{margin:0;padding:0;box-sizing:border-box}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;background:#f5f6fa;color:#2d3436;line-height:1.6}
a{text-decoration:none;color:inherit}
.container{max-width:1100px;margin:0 auto;padding:0 16px}

/* Header */
.site-header{background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.06);position:sticky;top:0;z-index:100}
.header-inner{display:flex;align-items:center;justify-content:space-between;height:60px}
.logo{font-size:22px;font-weight:800;color:#5f27cd;letter-spacing:1px;display:inline-flex;align-items:center;gap:9px}
.logo .logo-icon{width:34px;height:34px;border-radius:8px;object-fit:cover;box-shadow:0 2px 6px rgba(0,0,0,.12)}
.logo b{color:#341f97}
.nav{display:flex;gap:24px;font-size:15px}
.nav a{color:#636e72;font-weight:500;transition:.2s}
.nav a:hover{color:#5f27cd}

/* Hero */
.hero{background:#fff;color:#5f27cd;padding:52px 0;text-align:center;border-bottom:1px solid #f0f2f7;box-shadow:0 2px 10px rgba(95,39,205,.06)}
.hero h1{font-size:30px;margin-bottom:8px;font-weight:800;color:#5f27cd}
.hero p{opacity:1;font-size:16px;color:#341f97}

/* Section */
.section-title{display:flex;align-items:baseline;justify-content:space-between;margin:0 0 16px;padding:0 4px}
.section-title h2{font-size:20px;font-weight:800;color:#2d3436}
.section-title .more{color:#5f27cd;font-size:14px}

/* Game grid */
.game-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
@media(max-width:900px){.game-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:600px){.game-grid{grid-template-columns:repeat(2,1fr)}}
.game-card{background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 1px 6px rgba(0,0,0,.06);transition:.2s;display:flex;flex-direction:column}
.game-card:hover{transform:translateY(-4px);box-shadow:0 8px 20px rgba(0,0,0,.12)}
.card-cover{position:relative;aspect-ratio:1/1;background:#eee;overflow:hidden}
.card-cover img{width:100%;height:100%;object-fit:cover;display:block}
.card-cover.noframe{background:linear-gradient(135deg,#5f27cd,#341f97)}
.card-cover.noframe::after{content:"🎮";position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:48px}
.card-cat{position:absolute;top:8px;left:8px;background:rgba(0,0,0,.55);color:#fff;font-size:11px;padding:2px 8px;border-radius:20px}
.card-body{padding:10px 12px 14px}
.card-body h3{font-size:15px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.card-meta{font-size:12px;color:#b2bec3;margin:2px 0 8px}
.dl-btn{display:inline-block;background:#5f27cd;color:#fff;font-size:12px;padding:4px 14px;border-radius:20px}

/* Detail */
.detail{background:#fff;border-radius:12px;margin:24px 0;overflow:hidden;box-shadow:0 1px 6px rgba(0,0,0,.06)}
.detail-head{display:flex;gap:24px;padding:24px}
.detail-cover{width:200px;flex-shrink:0;aspect-ratio:1/1}
.detail-cover img{width:100%;height:100%;object-fit:cover;border-radius:10px;box-shadow:0 4px 12px rgba(0,0,0,.15)}
.detail-cover.noframe{background:linear-gradient(135deg,#5f27cd,#341f97);border-radius:10px;min-height:200px;position:relative}
.detail-cover.noframe::after{content:"🎮";position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:64px}
.detail-info{flex:1}
.detail-info h1{font-size:26px;margin-bottom:12px}
.detail-meta{display:flex;flex-wrap:wrap;gap:8px 16px;font-size:13px;color:#636e72;margin-bottom:20px}
.big-dl-btn{display:inline-block;background:linear-gradient(135deg,#00b894,#00a381);color:#fff;font-size:18px;font-weight:700;padding:12px 32px;border-radius:30px;box-shadow:0 4px 14px rgba(0,184,148,.4)}
.big-dl-btn:hover{transform:translateY(-2px)}
.big-dl-btn.disabled{background:linear-gradient(135deg,#b2bec3,#95a5a6);box-shadow:none;cursor:not-allowed}
.big-dl-btn.disabled:hover{transform:none}
.dl-tip{font-size:12px;color:#b2bec3;margin-top:8px}
.detail-body{padding:0 24px 24px}
.detail-body h2{font-size:18px;margin:16px 0 8px;padding-left:10px;border-left:4px solid #5f27cd}
.detail-desc{color:#2d3436;font-size:15px;line-height:1.9}
/* 详情页截图：竖版 480×800 (3:5) */
.detail-shots{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
@media(max-width:600px){.detail-head{flex-direction:column}.detail-cover{width:100%;max-width:160px;margin:0 auto}.detail-shots{grid-template-columns:repeat(2,1fr)}}
.shot{aspect-ratio:0.6;overflow:hidden;border-radius:8px}
.shot img{width:100%;height:100%;object-fit:cover}

/* Home 左右两栏：左侧推荐游戏，右侧游戏资讯+榜单 */
.home-main{display:flex;gap:24px;align-items:flex-start}
.home-col-games{flex:1 1 auto;min-width:0}
.home-col-side{flex:0 0 340px;display:flex;flex-direction:column;gap:20px}
.side-card.news-section{margin-bottom:0}
@media(max-width:900px){.home-main{flex-direction:column}.home-col-side{flex:1 1 auto}}

/* 分类胶囊条 */
.cat-bar{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:8px}
.cat-chip{background:#fff;border:1px solid #eee;color:#5f27cd;font-size:13px;padding:7px 16px;border-radius:20px;transition:.2s}
.cat-chip:hover{border-color:#5f27cd;background:#f3eefe}
.cat-chip.on{background:#5f27cd;border-color:#5f27cd;color:#fff;font-weight:600}

/* Banner 轮播 */
.banner-wrap{padding:16px 0 0}
.banner-viewport{position:relative;overflow:hidden;border-radius:14px;box-shadow:0 6px 22px rgba(0,0,0,.12)}
.banner-track{display:flex;transition:transform .3s ease;animation:bannerScroll 9s linear infinite}
.banner-track:hover{animation-play-state:paused}
.slide{position:relative;flex:0 0 100%;height:240px;display:block;overflow:hidden}
.slide-img{position:absolute;inset:0;z-index:0}
.slide-img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:1}
.slide-bg{position:absolute;inset:0;z-index:0}
.slide-ov{position:absolute;inset:0;z-index:2;background:linear-gradient(90deg,rgba(20,5,45,.82) 0%,rgba(20,5,45,.35) 55%,rgba(20,5,45,.05) 100%)}
.slide-txt{position:absolute;left:36px;top:50%;transform:translateY(-50%);color:#fff;max-width:60%;z-index:3}
.slide-cat{display:inline-block;background:rgba(255,255,255,.2);border:1px solid rgba(255,255,255,.4);font-size:12px;padding:3px 12px;border-radius:20px;margin-bottom:14px;backdrop-filter:blur(4px)}
.slide-txt h2{font-size:26px;font-weight:800;margin-bottom:8px;text-shadow:0 2px 8px rgba(0,0,0,.4)}
.slide-txt p{font-size:14px;opacity:.9;margin-bottom:16px;line-height:1.6}
.slide-dl{display:inline-block;background:linear-gradient(135deg,#ff6b6b,#ee5a24);color:#fff;font-size:14px;font-weight:700;padding:9px 22px;border-radius:24px;box-shadow:0 4px 12px rgba(238,90,36,.4)}
.slide-dl:hover{transform:translateY(-2px)}
@keyframes bannerScroll{0%{transform:translateX(0)}30%{transform:translateX(0)}33.33%{transform:translateX(-100%)}63.33%{transform:translateX(-100%)}66.66%{transform:translateX(-200%)}96.66%{transform:translateX(-200%)}100%{transform:translateX(-200%)}}
/* 轮播指示点（3张） */
.banner-viewport .banner-dots{position:absolute;left:50%;bottom:12px;transform:translateX(-50%);z-index:5;display:flex;gap:7px;padding:4px 10px;background:rgba(0,0,0,.25);border-radius:20px}
.banner-dots .dot{width:7px;height:7px;border-radius:50%;background:rgba(255,255,255,.5);transition:.3s}
.banner-dots .dot.on{background:#fff;width:16px;border-radius:4px}

/* 热门下载榜 */
.rank-list{list-style:none}
.rank-item{display:flex;align-items:center;gap:10px;padding:9px 0;border-bottom:1px dashed #f0f0f0;font-size:14px}
.rank-item:last-child{border-bottom:none}
.rank-no{flex-shrink:0;width:22px;height:22px;border-radius:6px;background:#eef1f6;color:#5f27cd;font-weight:700;font-size:12px;display:flex;align-items:center;justify-content:center}
.rank-no.top{background:linear-gradient(135deg,#ff6b6b,#ee5a24);color:#fff}
.rank-item a{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#2d3436}
.rank-item a:hover{color:#5f27cd}
.rank-item em{font-size:12px;color:#b2bec3;font-style:normal}

/* 卡片 meta 下载量 */
.card-meta.dl{color:#ff5d48;font-weight:600;margin:0 0 8px}

/* News */
.news-section{background:#fff;border-radius:12px;padding:24px;margin-bottom:24px;box-shadow:0 1px 6px rgba(0,0,0,.06)}
.news-list{list-style:none}
.news-list li{padding:10px 0;border-bottom:1px dashed #eee}
.news-list li:last-child{border-bottom:none}
.news-list a{font-size:15px;color:#2d3436}
.news-list a:hover{color:#5f27cd}
.n-date{font-size:12px;color:#b2bec3;margin-right:10px}

/* Info page */
.info-page{background:#fff;border-radius:12px;padding:28px;margin:24px 0;box-shadow:0 1px 6px rgba(0,0,0,.06)}
.info-page h1{font-size:24px;margin-bottom:16px}
.info-content{font-size:15px;line-height:1.9;color:#2d3436}
.info-content p{margin-bottom:10px}

/* Footer */
.site-footer{background:#fff;border-top:1px solid #eee;padding:28px 0;margin-top:24px;text-align:center;color:#636e72;font-size:13px}
.site-footer p{margin:4px 0}
.footer-links{display:flex;justify-content:center;gap:20px;margin-top:8px!important}
.footer-links a{color:#5f27cd}
.empty{text-align:center;color:#b2bec3;padding:40px 0;font-size:15px}
