/*
Theme Name: 游戏开服表
Theme URI: 
Author: FMBlog
Description: 网页游戏开服表主题，适用于游戏开服信息展示网站
Version: 1.0.0
*/

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", Arial, sans-serif; font-size: 14px; color: #333; background: #f8f8f8 var(--header-bg-image, none) no-repeat top center; }
a { text-decoration: none; color: #333; }
a:hover { color: #ff7800; text-decoration: underline; }
ul, li { list-style: none; }
table { border-collapse: collapse; }

/* Layout */
.wrap { max-width: 900px; margin: 0 auto; padding: 0 10px; }
.main { margin-top: 15px; }

/* Breadcrumbs */
.breadcrumbs { padding: 12px 0; font-size: 13px; color: #999; }
.breadcrumbs a { color: #666; }
.breadcrumbs a:hover { color: #ff7800; }
.breadcrumbs .arrow { margin: 0 5px; color: #ccc; }
.breadcrumbs .current { color: #999; }

/* Box Common */
.box { background: #fff; margin-bottom: 15px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.box-hd { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 2px solid #00b4a0; background: #fff; }
.box-hd h2 { font-size: 16px; color: #333; font-weight: bold; }

/* Table */
.table-wrap { overflow-x: auto; }
.server-table { width: 100%; border-collapse: collapse; }
.server-table thead { background: #00b4a0; }
.server-table thead th { padding: 12px 8px; color: #fff; font-size: 13px; font-weight: normal; text-align: center; white-space: nowrap; }
.server-table thead th.c1 { text-align: left; padding-left: 16px; width: 160px; }
.server-table thead th.c2 { width: 80px; }
.server-table thead th.c4 { width: 120px; }
.server-table thead th.c6 { width: 90px; }
.server-table tbody tr { transition: background 0.15s; }
.server-table tbody tr:nth-child(even) { background: #f8fcfb; }
.server-table tbody tr:hover { background: #e6f7f4; }
.server-table tbody tr.hot-row { background-color: #fff8f0; background-image: linear-gradient(90deg, transparent 0%, transparent 20%, rgba(255,255,255,0.6) 45%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0.6) 55%, transparent 80%, transparent 100%); background-size: 300% 100%; background-repeat: no-repeat; animation: shineSweep 2.5s ease-in-out infinite; }
.server-table tbody tr.hot-row:hover { background: #ffe8cc; background-image: none; animation: none; }
.server-table tbody tr.hot-row td { border-bottom-color: #ffe0c0 !important; }
.server-table tbody tr.hot-row td.c5 { color: #ff7800; }
@keyframes shineSweep {
    0% { background-position: -100% 0; }
    100% { background-position: 200% 0; }
}
.server-table tbody td { padding: 10px 8px; text-align: center; border-bottom: 1px solid #f0f0f0; font-size: 13px; vertical-align: middle; }
.server-table tbody td.c1 { text-align: left; padding-left: 16px; white-space: nowrap; }
.server-table tbody td.c1 a { font-weight: bold; color: #333; }
.server-table tbody td.c1 a:hover { color: #ff7800; }
.server-table tbody td.c2 { white-space: nowrap; }
.ad-type { display: inline-block; padding: 2px 8px; font-size: 11px; line-height: 18px; }
.ad-top { background: #ff4444; color: #fff; }
.ad-rec { background: #e6f7f4; color: #00b4a0; border: 1px solid #b3e8df; }
.server-table tbody td.c4 a { color: #00b4a0; font-family: Consolas, "Courier New", monospace; font-size: 12px; }
.server-table tbody td.c4 a:hover { color: #ff7800; }
.server-table tbody td.c6 { white-space: nowrap; }
.server-table tbody td.c5 { text-align: left; padding-left: 10px; }
.server-table .cell-text { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.server-table .cell-name { display: inline-block; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.server-table tbody td.c5 .cell-text { max-width: 360px; }

/* Hot icon */
.ico-hot { display: inline-block; vertical-align: middle; margin-left: 4px; padding: 1px 5px; background: #ff4444; color: #fff; font-size: 10px; font-style: normal; line-height: 16px; animation: hotPulse 1.2s ease-in-out infinite; }
@keyframes hotPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,68,68,0.5); }
    50% { transform: scale(1.15); box-shadow: 0 0 8px 2px rgba(255,68,68,0.4); }
}

/* Enter btn */
.enter-btn { display: inline-block; padding: 5px 16px; background: #ff7800; color: #fff !important; font-size: 12px; white-space: nowrap; transition: background 0.2s; }
.enter-btn:hover { background: #e56a00; color: #fff !important; text-decoration: none !important; }

/* Article List */
.article-list { padding: 0; }
.article-list li { border-bottom: 1px dashed #eee; }
.article-list li:last-child { border-bottom: none; }
.article-item { display: flex; align-items: center; padding: 12px 20px; gap: 10px; transition: background 0.15s; }
.article-item:hover { background: #f9fffe; text-decoration: none; color: #333; }
.article-tag { display: inline-block; padding: 2px 6px; font-size: 11px; color: #00b4a0; background: #e6f7f4; border: 1px solid #b3e8df; flex-shrink: 0; line-height: 16px; }
.article-tag.tag-hot { color: #ff7800; background: #fff3e6; border-color: #ffd4a8; }
.article-title { flex: 1; font-size: 13px; color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.article-item:hover .article-title { color: #ff7800; }
.article-date { font-size: 12px; color: #bbb; flex-shrink: 0; }
.article-cats { display: flex; gap: 0; }
.article-cats a { font-size: 13px; color: #999; padding: 4px 14px; border-radius: 14px; transition: all 0.2s; }
.article-cats a:hover { color: #ff7800; background: #fff3e6; text-decoration: none; }
.article-cats a.active { color: #fff; background: #00b4a0; }

/* Tags */
.tags-box { padding: 14px 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.tags-box a { display: inline-block; padding: 4px 12px; font-size: 12px; color: #666; background: #f5f5f5; border-radius: 3px; transition: all 0.2s; }
.tags-box a:hover { color: #fff; background: #00b4a0; text-decoration: none; }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 20px; flex-wrap: wrap; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; font-size: 13px; border-radius: 4px; transition: all 0.2s; }
.pagination a { color: #666; background: #f5f5f5; padding: 0 4px; }
.pagination a:hover { background: #00b4a0; color: #fff; text-decoration: none; }
.pagination .page-btn { color: #555; background: #f0f0f0; font-weight: 500; }
.pagination .page-btn:hover { background: #00b4a0; color: #fff; text-decoration: none; }
.pagination .page-btn.active { background: #00b4a0; color: #fff; box-shadow: 0 2px 6px rgba(0,180,160,0.3); }
.pagination .page-dots { color: #999; background: none; min-width: auto; pointer-events: none; }
.pagination span.current { background: #00b4a0; color: #fff; min-width: 34px; }
.pagination span.disabled { color: #ccc; background: #f8f8f8; cursor: default; min-width: 34px; }
/* 上一页/下一页按钮突出 */
.pagination a.page-btn:first-child,
.pagination a.page-btn:last-child,
.pagination a.page-arrow { background: #fff; border: 1px solid #ddd; color: #555; font-weight: 500; padding: 0 14px; height: 34px; }
.pagination a.page-btn:first-child:hover,
.pagination a.page-btn:last-child:hover,
.pagination a.page-arrow:hover { background: #ff7800; border-color: #ff7800; color: #fff; text-decoration: none; }

/* Article Content */
.article-header { padding: 30px 30px 0; border-bottom: 1px solid #f0f0f0; }
.article-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.article-meta .tag { display: inline-block; padding: 2px 8px; font-size: 11px; color: #00b4a0; background: #e6f7f4; border: 1px solid #b3e8df; line-height: 18px; }
.article-meta .time { font-size: 12px; color: #bbb; }
.article-meta .views { font-size: 12px; color: #bbb; }
.article-header h1 { font-size: 22px; color: #333; font-weight: bold; line-height: 1.5; margin-bottom: 16px; }
.article-body { padding: 24px 30px 30px; font-size: 15px; line-height: 1.9; color: #555; }
.article-body p { margin-bottom: 16px; text-indent: 2em; }
.article-body h3 { font-size: 17px; color: #333; margin: 24px 0 12px; padding-left: 12px; border-left: 3px solid #00b4a0; }
.article-body ul, .article-body ol { margin: 12px 0 16px 2em; }
.article-body li { margin-bottom: 6px; list-style: disc; }
.article-body ol li { list-style: decimal; }
.article-body .tip { background: #f0faf8; border-left: 3px solid #00b4a0; padding: 12px 16px; margin: 16px 0; font-size: 13px; color: #666; }
.article-body .highlight { color: #ff7800; font-weight: bold; }
.article-body img { max-width: 100%; height: auto; }
.article-footer { padding: 16px 30px; border-top: 1px solid #f0f0f0; display: flex; align-items: center; justify-content: space-between; }
.article-tags { display: flex; align-items: center; gap: 8px; }
.article-tags span { font-size: 12px; color: #999; }
.article-tags a { font-size: 12px; color: #00b4a0; padding: 2px 8px; background: #e6f7f4; border-radius: 3px; }
.article-tags a:hover { color: #ff7800; background: #fff3e6; text-decoration: none; }
.article-nav { padding: 20px 30px; display: flex; flex-direction: column; gap: 10px; }
.article-nav a { font-size: 13px; color: #666; display: flex; align-items: center; gap: 6px; }
.article-nav a:hover { color: #ff7800; }
.article-nav a .label { color: #999; flex-shrink: 0; }

/* Links */
.links-box { padding: 12px 16px; }
.links-box a { display: inline-block; margin: 4px 8px 4px 0; font-size: 12px; color: #888; }
.links-box a:hover { color: #ff7800; }

/* Header & Top Bar */
.header { width: 900px; display: flex; align-items: center; justify-content: space-between; height: 100px; margin: 0 auto; padding: 0 10px; }
.header-logo { display: flex; align-items: center; }
.header-logo a { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.header-logo img { max-height: 80px; width: auto; }
.top-bar { width: 100%; height: 40px; background: #1a1a1a; display: flex; align-items: center; }
.top-bar-inner { max-width: 900px; margin: 0 auto; padding: 0 10px; display: flex; align-items: center; justify-content: space-between; width: 100%; }
.top-bar .top-nav a { color: #aaa; font-size: 13px; margin-right: 20px; transition: color 0.2s; }
.top-bar .top-nav a:hover { color: #ff7800; text-decoration: none; }
.top-bar .top-right { display: flex; align-items: center; gap: 15px; }
.top-bar .top-right a { color: #888; font-size: 12px; }
.top-bar .top-right a:hover { color: #ff7800; text-decoration: none; }
.top-notice { color: #ffc107; font-size: 12px; display: flex; align-items: center; animation: noticeBlink 2s ease-in-out infinite; }
@keyframes noticeBlink { 0%,100% { opacity: 1; } 50% { opacity: 0.6; } }
.header-search { display: flex; align-items: center; }
.header-search .search-box { position: relative; display: flex; align-items: center; }
.header-search input { width: 240px; height: 38px; border: 1px solid rgba(255,255,255,0.6); background: rgba(255,255,255,0.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #333; font-size: 13px; padding: 0 40px 0 14px; outline: none; transition: all 0.25s; }
.header-search input::placeholder { color: #999; }
.header-search input:focus { border-color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.85); width: 280px; }
.header-search .search-icon { position: absolute; right: 0; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #666; transition: color 0.2s; }
.header-search .search-icon:hover { color: #ff7800; }
.header-search .search-icon svg { width: 16px; height: 16px; }

/* Footer */
.footer { background: #2c2c2c; margin-top: 20px; padding: 30px 0 24px; }
.footer-inner { max-width: 900px; margin: 0 auto; padding: 0 10px; }
.footer-links { text-align: center; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid #444; }
.footer-links a { color: #aaa; font-size: 13px; transition: color 0.2s; }
.footer-links a:hover { color: #ff7800; text-decoration: none; }
.footer-links .sep { color: #555; margin: 0 8px; font-size: 12px; }
.footer-info { text-align: center; }
.footer-info p { color: #888; font-size: 12px; line-height: 2; }
.footer-info .copyright { color: #666; margin-top: 4px; }

/* Page Content */
.page-content { padding: 30px; font-size: 15px; line-height: 1.9; color: #555; }
.page-content p { margin-bottom: 16px; }
.page-content img { max-width: 100%; height: auto; }

/* 404 */
.not-found { text-align: center; padding: 60px 20px; }
.not-found h1 { font-size: 72px; color: #00b4a0; margin-bottom: 10px; }
.not-found p { font-size: 16px; color: #999; margin-bottom: 20px; }
.not-found a { display: inline-block; padding: 8px 24px; background: #00b4a0; color: #fff; border-radius: 4px; font-size: 14px; }
.not-found a:hover { background: #009688; text-decoration: none; color: #fff; }

/* Mobile Cards (hidden on desktop) */
.mobile-cards { display: none; }

/* Responsive */
@media (max-width: 900px) {
    .server-table thead th.c1, .server-table tbody td.c1 { min-width: 140px; }
}

@media (max-width: 768px) {
    /* Show mobile cards, hide desktop table */
    .desktop-table { display: none; }
    .mobile-cards { display: block; }
    .box:has(.mobile-cards) { background: transparent; box-shadow: none; border: none; }

    /* Mobile Card */
    .m-card { background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 12px 14px; margin-bottom: 10px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
    .m-card:last-child { margin-bottom: 0; }
    .m-card-hot { background: #fff8f0; border-color: #ffd4a8; border-left: 3px solid #ff7800; }
    .m-card-hd { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
    .m-card-name { font-size: 16px; font-weight: bold; color: #333; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .m-card-name a { color: #333; text-decoration: none; }
    .m-card-name a:hover { color: #ff7800; }
    .m-card-hd .ad-type { flex-shrink: 0; }
    .m-card-feature { font-size: 13px; color: #666; line-height: 1.5; margin-bottom: 10px; padding: 6px 8px; background: rgba(0,0,0,0.02); border-radius: 4px; }
    .m-feature-hot { color: #ff7800; font-weight: 500; background: rgba(255,120,0,0.06); }
    .m-card-ft { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
    .m-card-qq { font-size: 12px; color: #888; }
    .m-card-ft .enter-btn { font-size: 12px; padding: 5px 16px; border-radius: 4px; }

    /* Top bar */
    .top-bar { height: auto; }
    .top-bar-inner { flex-wrap: wrap; padding: 8px 12px; gap: 6px; justify-content: center; }
    .top-bar .top-nav { display: flex; flex-wrap: wrap; gap: 0; }
    .top-bar .top-nav a { margin-right: 0; font-size: 13px; padding: 4px 10px; }
    .top-bar .top-right { display: none; }

    /* Header */
    .header { width: 100%; height: auto; padding: 12px; flex-direction: column; gap: 10px; align-items: stretch; }
    .header-logo { text-align: center; }
    .header-logo img { max-height: 44px; }
    .header-search { width: 100%; }
    .header-search .search-box { width: 100%; }
    .header-search input { width: 100%; height: 36px; font-size: 14px; }
    .header-search input:focus { width: 100%; }

    /* Wrap */
    .wrap { padding: 0 8px; }

    /* Box */
    .box { margin-bottom: 10px; border-radius: 6px; overflow: hidden; }
    .box-hd { padding: 10px 14px; flex-wrap: wrap; gap: 6px; border-bottom-width: 2px; }
    .box-hd h2 { font-size: 15px; }
    .article-cats { flex-wrap: wrap; gap: 4px; margin-top: 4px; }
    .article-cats a { font-size: 12px; padding: 2px 10px; }

    /* Article list */
    .article-item { padding: 10px 14px; gap: 8px; }
    .article-tag { font-size: 10px; padding: 1px 5px; }
    .article-title { font-size: 14px; }
    .article-date { font-size: 11px; }

    /* Article detail */
    .article-header { padding: 14px 14px 0; }
    .article-header h1 { font-size: 18px; line-height: 1.4; }
    .article-meta { gap: 10px; flex-wrap: wrap; }
    .article-body { padding: 14px; font-size: 14px; line-height: 1.8; }
    .article-body p { text-indent: 0; margin-bottom: 12px; }
    .article-body img { margin: 10px 0; }
    .article-footer { padding: 10px 14px; flex-wrap: wrap; gap: 6px; }
    .article-tags { flex-wrap: wrap; gap: 6px; }
    .article-nav { padding: 12px 14px; }
    .article-nav a { font-size: 13px; line-height: 1.5; }

    /* Tags */
    .tags-box { padding: 10px 14px; gap: 6px; }
    .tags-box a { padding: 4px 10px; font-size: 12px; }

    /* Pagination */
    .pagination { padding: 12px 8px; gap: 4px; }
    .pagination a, .pagination span { min-width: 32px; height: 32px; font-size: 12px; border-radius: 4px; }
    .pagination a.page-btn:first-child,
    .pagination a.page-btn:last-child { padding: 0 10px; height: 32px; }

    /* Breadcrumbs */
    .breadcrumbs { padding: 8px 2px; font-size: 12px; }

    /* Page content */
    .page-content { padding: 14px; font-size: 14px; }
    .page-content p { text-indent: 0; }

    /* 404 */
    .not-found { padding: 40px 20px; }
    .not-found h1 { font-size: 56px; }
    .not-found p { font-size: 14px; }

    /* Footer */
    .footer { padding: 16px 0 12px; margin-top: 10px; }
    .footer-inner { padding: 0 12px; }
    .footer-links { margin-bottom: 10px; padding-bottom: 10px; }
    .footer-links a { font-size: 12px; }
    .footer-info p { font-size: 11px; line-height: 1.8; }

    /* Search page */
    .box-hd span { font-size: 12px; }
}

@media (max-width: 400px) {
    .m-card-name { font-size: 15px; }
    .m-card-ft { flex-wrap: wrap; }
    .m-card-ft .enter-btn { width: 100%; text-align: center; margin-top: 4px; }
}
