/* 公益无双官网 - 参考txws.cn风格（深蓝背景图+白色内容卡片+青色点缀） */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    background: #0d1520 url('bg001.jpg') no-repeat center top fixed;
    background-size: cover;
    color: #333;
    font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
    font-size: 14px;
    line-height: 1.7;
}
a { color: #33bbbd; text-decoration: none; transition: color .2s; }
a:hover { color: #5ed4ad; }
img { max-width: 100%; }

/* ===== 顶部导航 ===== */
.navbar {
    background: transparent;
    border-bottom: none;
    position: sticky; top: 0; z-index: 100;
}
.nav-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
    display: flex; align-items: center; height: 60px;
}
.nav-logo {
    font-family: "KaiTi", "楷体", "STKaiti", serif;
    font-size: 24px; color: #fff; font-weight: bold;
    letter-spacing: 4px; margin-right: 40px;
    display: flex; align-items: center;
}
.nav-logo img { height: 40px; width: auto; display: block; }
.nav-logo .admin-tag { font-size: 16px; letter-spacing: 2px; margin-left: 10px; color: #33bbbd; }
.nav-links { display: flex; gap: 6px; flex: 1; align-items: center; }
.nav-links > a, .nav-item > a {
    color: #fff; font-size: 15px; padding: 8px 16px;
    border-bottom: 2px solid transparent; display: block;
    letter-spacing: 1px;
    text-shadow: 0 1px 4px rgba(0,0,0,.6);
}
.nav-links > a:hover, .nav-links > a.active,
.nav-item:hover > a, .nav-item > a.active { color: #33bbbd; border-bottom-color: #33bbbd; }

/* 悬停下拉菜单 */
.nav-item { position: relative; }
.nav-dropdown {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    min-width: 140px; background: rgba(255,255,255,.95);
    border: 1px solid #ddd; border-top: 2px solid #33bbbd;
    box-shadow: 0 8px 20px rgba(0,0,0,.2);
    padding: 6px 0;
    opacity: 0; visibility: hidden;
    transition: opacity .18s ease, visibility .18s;
    z-index: 200;
}
.nav-dropdown::before {
    content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px;
}
.nav-item:hover .nav-dropdown { opacity: 1; visibility: visible; }
.nav-dropdown a {
    display: block; padding: 10px 18px;
    font-size: 14px; color: #555; text-align: center;
    border-bottom: none !important; white-space: nowrap;
    text-shadow: none;
}
.nav-dropdown a:hover { background: #f5f9fb; color: #33bbbd; }

.nav-recharge {
    background: #33bbbd;
    color: #0d1520 !important; font-weight: bold;
    padding: 7px 20px; border-radius: 3px;
    border-bottom: none !important; margin-left: 10px;
    text-shadow: none;
}
.nav-recharge:hover { background: #5ed4ad; color: #0d1520 !important; }

/* ===== Hero横幅 ===== */
.hero {
    position: relative;
    min-height: 480px;
    display: flex; align-items: center;
    background: transparent;
    overflow: hidden;
}
.hero-inner {
    position: relative; z-index: 1;
    max-width: 1200px; width: 100%;
    margin: 0 auto; padding: 60px 20px;
}
.hero h1 {
    font-family: "KaiTi", "楷体", "STKaiti", serif;
    font-size: 56px; color: #fff; letter-spacing: 14px;
    margin-bottom: 16px; text-shadow: 0 2px 16px rgba(0,0,0,.9), 0 0 40px rgba(0,0,0,.5);
}
.hero p {
    color: #a57831; font-size: 22px; letter-spacing: 8px;
    margin-bottom: 40px; text-shadow: 0 1px 10px rgba(0,0,0,.9);
}
.hero-btns { display: flex; justify-content: flex-start; gap: 20px; }
.btn {
    display: inline-block; padding: 12px 44px; font-size: 16px;
    border-radius: 3px; letter-spacing: 3px; cursor: pointer;
    border: 1px solid #33bbbd; transition: all .25s;
}
.btn-gold {
    background: #33bbbd;
    color: #0d1520; font-weight: bold;
}
.btn-gold:hover { background: #5ed4ad; color: #0d1520; }
.btn-ghost { background: rgba(0,0,0,.3); color: #33bbbd; border-color: #33bbbd; }
.btn-ghost:hover { background: rgba(51,187,189,.15); color: #5ed4ad; }
.btn-sm { padding: 8px 24px; font-size: 13px; }

/* ===== 主体容器 ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 30px 20px; }
.section-title {
    display: flex; align-items: center; gap: 14px;
    margin: 28px 0 18px;
}
.section-title h2 {
    font-family: "KaiTi", "楷体", "STKaiti", serif;
    font-size: 24px; color: #fff; letter-spacing: 3px;
    border-left: 4px solid #33bbbd; padding-left: 12px;
}
.section-title .line { flex: 1; height: 1px; background: linear-gradient(90deg, #223b54, transparent); }
.section-title .more { font-size: 13px; color: #33bbbd; }

/* ===== 首页三栏布局 ===== */
.home-row { display: grid; grid-template-columns: 180px 1fr 340px; gap: 18px; margin-bottom: 22px; }

/* 左栏：快捷导航 */
.quick-nav { background: #fff; border: 1px solid #ddd; border-radius: 4px; padding: 0; overflow: hidden; }
.quick-nav .dl-big {
    display: block; text-align: center; padding: 22px 16px;
    background: linear-gradient(180deg, #f5c242 0%, #e0a020 100%);
    color: #fff; font-weight: bold;
}
.quick-nav .dl-big:hover { background: linear-gradient(180deg, #ffd055 0%, #f0b030 100%); }
.quick-nav .dl-big-t { display: block; font-size: 20px; letter-spacing: 4px; font-family: "KaiTi","楷体",serif; }
.quick-nav .dl-big-s { display: block; font-size: 11px; letter-spacing: 2px; margin-top: 4px; opacity: .85; }
.quick-nav a {
    display: block; padding: 16px 16px; color: #555;
    border-bottom: 1px solid #eee; text-align: center;
    font-size: 15px; letter-spacing: 2px;
}
.quick-nav a:last-child { border-bottom: none; }
.quick-nav a:not(.dl-big):hover { background: #f5f9fb; color: #33bbbd; }

/* 中栏：轮播+资料站 */
.home-center { display: flex; flex-direction: column; gap: 18px; }
.carousel {
    position: relative; background: #f5f5f5; border: 1px solid #ddd;
    border-radius: 4px; overflow: hidden; height: 280px;
}
.carousel img { width: 100%; height: 100%; object-fit: cover; }
.carousel-dots {
    position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 8px;
}
.carousel-dots span {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255,255,255,.4); cursor: pointer;
}
.carousel-dots span.active { background: #33bbbd; }

/* 右栏：新闻公告 */
.home-panel {
    background: #fff; border: 1px solid #ddd; border-radius: 4px;
    padding: 18px 20px; min-height: 280px;
}
.home-panel h3 {
    font-family: "KaiTi", "楷体", serif;
    color: #333; font-size: 18px; letter-spacing: 2px;
    padding-bottom: 12px; margin-bottom: 8px;
    border-bottom: 1px solid #eee;
    display: flex; justify-content: space-between; align-items: center;
}
.home-panel h3 a { font-size: 12px; font-family: "Microsoft YaHei"; letter-spacing: 0; }
.home-list { list-style: none; }
.home-list li {
    display: flex; justify-content: space-between; align-items: center;
    padding: 9px 0; border-bottom: 1px dashed #eee;
}
.home-list li:last-child { border-bottom: none; }
.home-list .t {
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    max-width: 70%; color: #555; font-size: 14px;
}
.home-list .t:hover { color: #33bbbd; }
.home-list .d { color: #999; font-size: 12px; flex-shrink: 0; }
.home-gal { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.home-gal a {
    display: block; height: 100px; overflow: hidden;
    border: 1px solid #eee; border-radius: 3px;
}
.home-gal img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.home-gal a:hover img { transform: scale(1.08); }

/* ===== 资料站板块 ===== */
.gamedata-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.gamedata-box {
    background: #fff; border: 1px solid #ddd; border-radius: 4px;
    padding: 14px 12px;
}
.gamedata-box h4 {
    color: #a57831; font-size: 15px; margin-bottom: 8px;
    padding-bottom: 8px; border-bottom: 1px solid #eee;
    font-family: "KaiTi", "楷体", serif; letter-spacing: 1px;
}
.gamedata-box ul { list-style: none; }
.gamedata-box li { padding: 4px 0; }
.gamedata-box a { color: #666; font-size: 13px; }
.gamedata-box a:hover { color: #33bbbd; }

/* ===== 精彩瞬间 ===== */
.screenshots {
    background: #fff; border: 1px solid #ddd; border-radius: 4px;
    padding: 20px; margin-top: 22px;
}
.screenshots .tabs { display: flex; gap: 20px; margin-bottom: 16px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.screenshots .tabs a { font-size: 15px; color: #999; padding-bottom: 8px; border-bottom: 2px solid transparent; }
.screenshots .tabs a.active { color: #33bbbd; border-bottom-color: #33bbbd; }
.ss-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ss-grid a {
    display: block; height: 140px; overflow: hidden;
    border: 1px solid #eee; border-radius: 3px;
}
.ss-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.ss-grid a:hover img { transform: scale(1.06); }

/* ===== 列表页 ===== */
.list-head {
    display: flex; align-items: center; gap: 16px;
    padding: 22px 0 16px; border-bottom: 1px solid #ddd;
}
.list-head h1 {
    font-family: "KaiTi", "楷体", serif;
    font-size: 28px; color: #333; letter-spacing: 3px;
}
.list-head .sub { color: #999; font-size: 13px; }
.post-list { list-style: none; background: #fff; border: 1px solid #ddd; border-radius: 4px; margin-top: 16px; padding: 0 20px; }
.post-list li {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 6px; border-bottom: 1px dashed #eee;
}
.post-list li:last-child { border-bottom: none; }
.post-list li:hover { background: #f5f9fb; }
.post-list .t { font-size: 15px; color: #555; }
.post-list li:hover .t { color: #33bbbd; }
.post-list .d { color: #999; font-size: 13px; flex-shrink: 0; margin-left: 20px; }
.empty { padding: 60px 0; text-align: center; color: #999; }

/* 分页 */
.pager { display: flex; justify-content: center; gap: 8px; margin: 30px 0 10px; }
.pager a, .pager span {
    display: inline-block; min-width: 34px; text-align: center;
    padding: 6px 12px; border: 1px solid #ddd; border-radius: 3px;
    color: #555; font-size: 13px; background: #fff;
}
.pager .cur { background: #33bbbd; color: #fff; font-weight: bold; border-color: #33bbbd; }
.pager a:hover { border-color: #33bbbd; color: #33bbbd; }

/* ===== 文章详情 ===== */
.post-head { text-align: center; padding: 26px 0 20px; border-bottom: 1px solid #ddd; }
.post-head h1 { font-size: 26px; color: #333; margin-bottom: 12px; line-height: 1.4; }
.post-meta { color: #999; font-size: 13px; display: flex; justify-content: center; gap: 20px; }
.post-meta .cat {
    color: #33bbbd; border: 1px solid #ddd; padding: 1px 10px; border-radius: 20px;
}
.post-body { padding: 28px 24px 18px; font-size: 15px; color: #444; background: #fff; border: 1px solid #ddd; border-radius: 4px; margin-top: 16px; }
.post-body p { margin-bottom: 14px; }
.post-body img { display: block; max-width: 88%; margin: 18px auto; border-radius: 4px; border: 1px solid #eee; }
.back-link { display: inline-block; margin-top: 24px; color: #999; }
.back-link:hover { color: #33bbbd; }

/* ===== 图库 ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.gallery-grid .item {
    position: relative; border: 1px solid #ddd; border-radius: 4px;
    overflow: hidden; background: #fff;
}
.gallery-grid .item img { width: 100%; height: 200px; object-fit: cover; display: block; transition: transform .3s; }
.gallery-grid .item:hover img { transform: scale(1.06); }
.gallery-grid .cap {
    padding: 10px 14px; font-size: 14px; color: #555;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ===== 下载中心 ===== */
.dl-card {
    background: #fff; border: 1px solid #ddd; border-radius: 4px;
    padding: 24px 28px; margin-bottom: 16px;
    display: flex; align-items: center; gap: 24px;
}
.dl-icon {
    width: 60px; height: 60px; flex-shrink: 0; border-radius: 4px;
    background: #f0f9fa;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: #33bbbd;
}
.dl-info { flex: 1; }
.dl-info h3 { color: #333; font-size: 18px; margin-bottom: 4px; }
.dl-info .meta { color: #999; font-size: 13px; margin-bottom: 6px; }
.dl-info .desc { color: #666; font-size: 14px; }
.dl-btn {
    display: inline-block; padding: 10px 30px; flex-shrink: 0;
    background: #33bbbd;
    color: #fff !important; font-weight: bold; border-radius: 3px; letter-spacing: 2px;
}
.dl-btn:hover { background: #5ed4ad; }

/* ===== 后台 ===== */
.admin-wrap { max-width: 860px; margin: 30px auto; padding: 0 20px; }
.admin-box {
    background: #fff; border: 1px solid #ddd; border-radius: 4px;
    padding: 26px 30px;
}
.admin-box h2 {
    font-family: "KaiTi", "楷体", serif; color: #333;
    font-size: 20px; letter-spacing: 3px; margin-bottom: 18px;
}
.admin-tab { display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 1px solid #ddd; }
.admin-tab a {
    padding: 10px 18px; color: #999; border-bottom: 2px solid transparent; font-size: 14px;
}
.admin-tab a.active { color: #33bbbd; border-bottom-color: #33bbbd; }
table.admin-tb { width: 100%; border-collapse: collapse; margin: 8px 0 18px; }
table.admin-tb th, table.admin-tb td {
    padding: 10px 8px; border-bottom: 1px solid #eee; text-align: left; font-size: 13px;
}
table.admin-tb th { color: #33bbbd; font-weight: normal; }
table.admin-tb td a.op { margin-right: 12px; font-size: 13px; }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; color: #666; font-size: 13px; margin-bottom: 6px; }
.form-row input[type=text], .form-row input[type=password], .form-row select, .form-row textarea {
    width: 100%; background: #fafafa; border: 1px solid #ddd; border-radius: 3px;
    color: #333; padding: 9px 12px; font-size: 14px; font-family: inherit;
}
.form-row textarea { min-height: 200px; resize: vertical; line-height: 1.7; }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
    outline: none; border-color: #33bbbd;
}
.btn-line { display: flex; gap: 14px; align-items: center; margin-top: 20px; }
.admin-msg { padding: 10px 14px; border-radius: 3px; margin-bottom: 16px; font-size: 13px; }
.admin-msg.ok { background: #eef8f8; border: 1px solid #b8e5e6; color: #2a8a8c; }
.admin-msg.err { background: #fbeceb; border: 1px solid #e4c0bd; color: #97352d; }
.login-tip { color: #999; font-size: 12px; margin-top: 12px; text-align: center; }

/* ===== 游戏指南三级分类 ===== */
.crumb { font-size: 13px; color: #999; margin: 16px 0 0; }
.crumb a { color: #666; }
.crumb a:hover { color: #33bbbd; }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0 10px; }
.guide-grid.four { grid-template-columns: repeat(4, 1fr); }
.guide-card {
    position: relative; display: block; overflow: hidden;
    background: #fff; border: 1px solid #ddd; border-radius: 4px;
    padding: 26px 22px;
    transition: transform .2s, border-color .2s;
}
.guide-card:hover {
    transform: translateY(-3px); border-color: #33bbbd;
}
.guide-card .gc-title {
    font-family: "KaiTi", "楷体", "STKaiti", serif;
    font-size: 22px; color: #333; letter-spacing: 3px; margin-bottom: 8px;
}
.guide-card .gc-desc { color: #666; font-size: 13px; line-height: 1.6; min-height: 42px; }
.guide-card .gc-count { color: #33bbbd; font-size: 13px; margin-top: 10px; }
.guide-card.job { padding: 32px 20px 24px; text-align: center; }
.gc-mark {
    font-family: "KaiTi", "楷体", "STKaiti", serif;
    position: absolute; right: -6px; top: -18px;
    font-size: 110px; line-height: 1; color: rgba(51,187,189,.08);
    pointer-events: none; user-select: none;
}
.guide-card.job .gc-title { font-size: 24px; margin-bottom: 12px; }
.sub-tabs { display: flex; gap: 6px; margin: 20px 0 4px; border-bottom: 1px solid #ddd; }
.sub-tabs a {
    padding: 10px 22px; font-size: 14px; color: #999;
    border-bottom: 2px solid transparent;
}
.sub-tabs a.active { color: #33bbbd; border-bottom-color: #33bbbd; }
.sub-tabs a:hover { color: #33bbbd; }
.gtag {
    display: inline-block; font-size: 11px; color: #33bbbd;
    border: 1px solid rgba(51,187,189,.4); border-radius: 3px;
    padding: 0 6px; margin-right: 8px; white-space: nowrap;
    vertical-align: 1px; flex: none;
}

/* ===== 页脚 ===== */
.footer {
    margin-top: 50px; border-top: 1px solid #ddd;
    background: rgba(255, 255, 255, 0.92); text-align: center;
    padding: 28px 20px 24px; color: #666; font-size: 13px;
}
.footer .fq { color: #333; margin-bottom: 6px; }
.footer .fq b { color: #333; font-size: 15px; letter-spacing: 1px; }

/* ===== 响应式 ===== */
@media (max-width: 1000px) {
    .home-row { grid-template-columns: 1fr; }
    .quick-nav { display: grid; grid-template-columns: repeat(2, 1fr); }
    .quick-nav a { border-bottom: 1px solid #223b54; }
    .gamedata-grid { grid-template-columns: repeat(3, 1fr); }
    .ss-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
    .nav-links { display: none; }
    .hero { min-height: 280px; }
    .hero-inner { padding: 30px 20px; }
    .hero h1 { font-size: 36px; letter-spacing: 8px; }
    .hero p { font-size: 16px; letter-spacing: 4px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .guide-grid, .guide-grid.four { grid-template-columns: 1fr; }
    .gamedata-grid { grid-template-columns: repeat(2, 1fr); }
    .dl-card { flex-direction: column; text-align: center; }
}
