/*
Theme Name: 老登冰雪绿色版官网 - 终极全功能整合版
Author: Gemini
Version: 8.0
Description: 包含：Logo适配、纯白背景、内页去黑边补丁、服务器动态发光、新手指引美化、500px内页Banner、分类页与文章页浮动布局。
*/

/* ================= 1. 基础重置与全局布局 ================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { 
    width: 100%; 
    min-height: 100%;
    background-color: #fff; /* 全局背景纯白 */
    font-family: "Microsoft YaHei", "微软雅黑", sans-serif; 
    color: #333; 
    line-height: 1.5;
}
body { min-width: 1200px; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container { 
    width: 1200px; 
    margin: 0 auto; 
    position: relative; 
}

/* ================= 2. Header (全局导航与背景) ================= */
.site-header { 
    height: 950px; 
    background: #fff url('img/top-bg.jpg') center top no-repeat; 
    background-size: 1920px auto; 
    position: relative; 
    overflow: hidden; 
}

/* 顶部导航栏 */
.nav-bar { 
    height: 60px; 
    background: rgba(0, 0, 0, 0.85); 
    position: absolute; 
    top: 0; 
    width: 100%; 
    z-index: 1000; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.nav-content { 
    width: 1200px; 
    margin: 0 auto; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    height: 60px; 
}
.nav-content a { color: #fff; margin: 0 25px; font-size: 16px; font-weight: bold; }
.nav-content a:hover { color: #28a745; }

/* Logo 专项适配 */
.logo-link { display: flex; align-items: center; height: 60px; margin: 0 30px; }
.site-logo { height: 50px; width: auto; transition: 0.3s; }
.site-logo:hover { transform: scale(1.05); }

/* 首页下载面板定位 */
.download-panel { 
    position: absolute; 
    top: 580px; 
    right: calc(50% - 600px); 
    /* width: 520px;  */
    display: flex; 
    gap: 15px; 
    z-index: 90; 
}
.qr-box { 
    width: 135px; flex-shrink: 0; background: #fff; padding: 10px; border-radius: 4px; 
    border: 2px solid #c5a059; text-align: center; 
}
.qr-box p { font-size: 11px; font-weight: bold; color: #333; margin-top: 8px; }

.btn-group { width: 160px; flex-shrink: 0; display: flex; flex-direction: column; justify-content: space-between; }
.btn-group a { display: block; height: 48px; line-height: 48px; text-align: center; color: #fff; font-weight: bold; border-radius: 4px; font-size: 15px; }
.btn-android { background: linear-gradient(#44ca68, #28a745); }
.btn-ios { background: linear-gradient(#444, #111); }
.btn-pc { background: linear-gradient(#3a98f4, #007bff); }

/* 服务器状态 - 增强特效 */
.server-status-v2 { 
    flex: 1; background: rgba(0,0,0,0.85); border: 1px solid #c5a059; padding: 2px; border-radius: 4px; 
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.3);
}
.status-inner { 
    border: 1px solid rgba(197, 160, 89, 0.4); height: 100%; padding: 10px; text-align: center; 
    display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.status-tag { 
    background: #c5a059; color: #000; font-size: 11px; font-weight: bold; padding: 2px 10px; 
    border-radius: 2px; margin-bottom: 6px; animation: tag-glow 2s infinite;
}
.status-title { 
    color: #fceabb; font-size: 15px; font-weight: bold; 
    text-shadow: 0 0 8px rgba(252, 234, 187, 0.8), 0 0 2px rgba(197, 160, 89, 1);
}
.btn-enter { 
    width: 100%; background: linear-gradient(to bottom, #fceabb, #c5a059); 
    color: #000; font-size: 13px; font-weight: bold; padding: 6px 0; border-radius: 2px; 
    margin-top: 8px; transition: 0.3s; display: block;
}
@keyframes tag-glow {
    0%, 100% { opacity: 1; box-shadow: 0 0 2px #c5a059; }
    50% { opacity: 0.7; box-shadow: 0 0 12px #c5a059; }
}

/* ================= 3. Index 首页主体样式 ================= */
.news-row { 
    display: flex; justify-content: space-between; gap: 20px; 
    margin: -100px auto 40px; background: #fff; padding: 25px; 
    box-shadow: 0 15px 45px rgba(0,0,0,0.12); border-radius: 4px; 
    z-index: 80; position: relative; border: 1px solid #eee;
}

.slider-box { width: 400px; height: 280px; flex-shrink: 0; background: #fff; overflow: hidden; position: relative; }
.slider-box img { width: 100% !important; height: 100% !important; object-fit: cover; }

.news-tabs { flex: 1; min-width: 0; margin: 0 10px; }
.tab-head { display: flex; border-bottom: 2px solid #f0f0f0; margin-bottom: 15px; }
.tab-btn { padding: 10px 15px; cursor: pointer; font-weight: bold; color: #666; }
.tab-btn.active { color: #28a745; border-bottom: 2px solid #28a745; margin-bottom: -2px; }

.news-list { display: none; }
.news-list.active { display: block; }
.news-list li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed #eee; font-size: 14px; }
.news-list a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; margin-right: 15px; }
.news-list .date { color: #999; flex-shrink: 0; }

.fast-links { width: 200px; flex-shrink: 0; display: flex; flex-direction: column; gap: 10px; }
.link-item { height: 62px; display: flex; align-items: center; justify-content: center; font-weight: bold; color: #fff; border-radius: 4px; }
.btn-reg { background: #e67e22; }
.btn-down { background: #27ae60; }
.btn-strat { background: #2980b9; }
.btn-live { background: #8e44ad; }

/* 资源二栏布局 */
.resource-row { display: flex; gap: 40px; margin-top: 60px; margin-bottom: 60px; }
.res-half-col { width: 50%; }
.res-header { border-bottom: 2px solid #333; padding-bottom: 10px; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: flex-end; }
.res-header h3 { font-size: 20px; border-left: 4px solid #28a745; padding-left: 12px; }
.more-btn { font-size: 12px; color: #999; border: 1px solid #eee; padding: 2px 8px; border-radius: 12px; }

/* 游戏资料强化 */
.info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 15px; }
.grid-btn { 
    display: block; background: #fff; border: 1px solid #e0e6e0; 
    padding: 15px 5px; text-align: center; font-size: 14px; color: #444;
    font-weight: bold; border-radius: 4px; transition: 0.3s;
}
.grid-btn:hover { 
    background: #28a745; color: #fff !important; border-color: #28a745; 
    transform: translateY(-2px); box-shadow: 0 5px 15px rgba(40, 167, 69, 0.2);
}

/* 新手指引美化 */
.guide-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.guide-card { 
    display: flex; align-items: center; background: #fbfdfb; border: 1px solid #e0eadd; 
    border-left: 4px solid #28a745; border-radius: 4px; padding: 12px; transition: 0.3s; 
}
.guide-card:hover { border-color: #28a745; transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.card-icon { 
    width: 35px; height: 35px; background: #28a745; border-radius: 50%; margin-right: 12px; 
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #fff; font-size: 10px; font-weight: bold; 
}
.card-txt strong { display: block; font-size: 14px; margin-bottom: 2px; }
.card-txt span { font-size: 12px; color: #999; }

.article-list li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed #eee; font-size: 14px; }
.article-list a span { color: #d9534f; margin-right: 5px; font-weight: bold; }

/* ================= 4. 内页通用补丁 (彻底解决去黑边) ================= */
.page-top-filler { height: 60px; background: transparent; width: 100%; }

/* 列表页和详情页：Banner 高度 500px & 强制去黑 */
body.single .site-header, 
body.archive .site-header, 
body.category .site-header { 
    height: 500px !important; 
    min-height: 500px !important; 
    background-color: #fff !important; 
    background-position: center top !important; 
    overflow: hidden !important;
}

body.single .download-panel, 
body.archive .download-panel, 
body.category .download-panel { display: none !important; }

/* ================= 5. Category 分类列表页 ================= */
.archive-main { 
    display: flex; gap: 30px; margin: -200px auto 80px; position: relative; z-index: 100;
}
.archive-list-box { 
    flex: 1; background: #fff; padding: 40px; border-radius: 4px; 
    box-shadow: 0 15px 45px rgba(0,0,0,0.12); min-height: 700px; border: 1px solid #eee;
}
.archive-list li { display: flex; justify-content: space-between; padding: 18px 0; border-bottom: 1px dashed #eee; }
.archive-list .post-title { font-size: 16px; color: #333; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.archive-list .post-title:hover { color: #28a745; }
.archive-list .post-date { color: #999; font-size: 14px; margin-left: 20px; }

.pagination { margin-top: 40px; display: flex; justify-content: center; gap: 8px; }
.pagination a, .pagination span { padding: 8px 16px; border: 1px solid #ddd; color: #666; background: #fff; }
.pagination .current { background: #28a745; color: #fff; border-color: #28a745; }

.archive-sidebar { width: 320px; }
.side-box { background: #fff; padding: 20px; border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); margin-bottom: 20px; border: 1px solid #eee; }

/* ================= 6. Single 详情页 ================= */
.single-page-main { margin: -200px auto 80px; position: relative; z-index: 100; }
.single-wrapper { 
    background: #fff; padding: 50px 60px; border-radius: 4px; 
    box-shadow: 0 15px 45px rgba(0,0,0,0.12); min-height: 600px; border: 1px solid #eee;
}
.post-breadcrumb { font-size: 14px; color: #888; margin-bottom: 30px; padding-bottom: 15px; border-bottom: 1px solid #eee; }
.post-header { text-align: center; margin-bottom: 40px; }
.post-header h1 { font-size: 30px; color: #222; margin-bottom: 15px; }
.post-meta { font-size: 14px; color: #999; }
.post-entry { font-size: 16px; line-height: 1.8; color: #333; }
.post-entry img { max-width: 100% !important; margin: 20px auto; border-radius: 4px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.post-nav { margin-top: 50px; padding-top: 20px; border-top: 1px solid #eee; display: flex; justify-content: space-between; }
.post-nav a { color: #28a745; font-weight: bold; }

/* ================= 7. Footer 页脚美化 ================= */
footer { 
    background: #1a1a1a; color: #bbb; padding: 50px 0; text-align: center; font-size: 14px; position: relative;
    border-top: 4px solid #1e7e34; /* 深绿色装饰条 */
}
footer p { margin: 5px 0; line-height: 1.8; }
footer a:hover { color: #28a745; }