/* ===== 全局样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    background-color: #1a1a1a;
    color: #ffffff;
    overflow-x: hidden;
}

/* ===== 自定义颜色变量 ===== */
:root {
    /* 自定义浅绿色 - 用于当前页面导航文字高亮 */
    --color-highlight-green: #4ade80;
    /* 橙色 - 用于在线玩家数量显示 */
    --color-online-orange: #fb923c;
    /* 半透明黑色背景 */
    --bg-semi-transparent: rgba(0, 0, 0, 0.6);
}

/* ===== 导航栏样式 ===== */
.nav-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: background-color 0.3s ease;
}

/* 导航栏在第一个容器位置时显示半透明黑底 */
.nav-header.scrolled {
    background-color: var(--bg-semi-transparent);
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-brand {
    flex: 0 0 auto;
    text-decoration: none;
}

.brand-name {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    letter-spacing: 2px;
    text-decoration: none;
}

.nav-brand .brand-name {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
    text-decoration: none;
    color: inherit;
}
.nav-brand img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 4px;
}

.nav-links {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex: 1;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

/* 当前页面样式 - 浅绿色文字 + 下划线 */
.nav-link.active {
    color: var(--color-highlight-green);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background-color: var(--color-highlight-green);
}

/* 非当前页面hover效果 */
.nav-link:not(.active):hover {
    color: #e0e0e0;
}

/* ===== 首页 Hero 容器样式 ===== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 20px;
}

.hero-title {
    font-size: 56px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: -20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: 4px;
}

.hero-subtitle {
    font-size: 18px;
    color: #e0e0e0;
    margin-bottom: 10px;
    max-width: 600px;
    line-height: 1.6;
}

/* ===== 在线玩家数量显示 ===== */
.online-status {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.online-count {
    font-size: 64px;
    font-weight: bold;
    color: var(--color-online-orange);
    line-height: 1;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.online-label {
    font-size: 16px;
    color: #ffffff;
    margin-top: 10px;
    letter-spacing: 2px;
}
.foot {
    font-size: 16px;
    color: #ffffff;
    margin-top: 10px;
    letter-spacing: 2px;
}
.foot-text {
    position: absolute;
    bottom:10px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}
/* ===== 首页新闻卡片样式 ===== */
.news-card {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 420px;
    max-width: 45vw;
    background-color: var(--bg-semi-transparent);
    border-radius: 12px;
    padding: 24px;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.news-card-title {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.news-card .news-item-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-card .news-item-content {
    font-size: 14px;
    color: #c0c0c0;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-view-more {
    text-align: right;
}

.news-view-more a {
    color: var(--color-highlight-green);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.news-view-more a:hover {
    opacity: 0.8;
}

/* ===== 加载动画样式 ===== */
.loading-dots {
    display: inline-block;
    animation: loadingDots 1.5s infinite;
}

@keyframes loadingDots {
    0%, 20% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

/* ========================================
   新闻列表页面样式 (news.php)
   ======================================== */

/* ===== 新闻页面 Hero 区域 - 固定高度 ===== */
.news-hero {
    position: relative;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    background-size: cover;
    background-position: center;
}

.news-hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.6) 100%
    );
}

.news-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 20px;
}

.news-hero-title {
    font-size: 42px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 16px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: 6px;
}

.news-hero-desc {
    color: #e0e0e0;
    font-size: 15px;
    line-height: 1.8;
}

.news-hero-desc p {
    margin: 4px 0;
}

/* ===== 新闻列表区域 ===== */
.news-list-section {
    background-color: #0f0f0f;
    padding: 30px 20px 60px;
    min-height: calc(100vh - 280px);
}

.news-list-container {
    max-width: 900px;
    margin: 0 auto;
}

/* ===== 工具栏：筛选 + 搜索 ===== */
.news-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

/* 标签筛选 */
.news-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-tag {
    padding: 6px 16px;
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    text-decoration: none;
    border-radius: 16px;
    font-size: 13px;
    transition: all 0.2s ease;
}

.filter-tag:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.filter-tag.active {
    background-color: var(--color-highlight-green);
    color: #000000;
    font-weight: 500;
}

/* 搜索框 */
.news-search form {
    display: flex;
    gap: 8px;
}

.news-search input {
    padding: 10px 14px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: #ffffff;
    font-size: 13px;
    outline: none;
    width: 200px;
    transition: border-color 0.2s ease;
}

.news-search input:focus {
    border-color: var(--color-highlight-green);
}

.news-search input::placeholder {
    color: #888888;
}

.news-search button {
    padding: 10px 18px;
    background-color: var(--color-highlight-green);
    color: #000000;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.news-search button:hover {
    opacity: 0.85;
}

/* ===== 新闻空状态 ===== */
.news-empty {
    text-align: center;
    padding: 80px 20px;
}

.news-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.6;
}

.news-empty p {
    color: #888888;
    font-size: 16px;
}

/* ===== 新闻列表 ===== */
.news-list {
    display: flex;
    flex-direction: column;
}

/* ===== 新闻条 ===== */
.news-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    margin-bottom: 12px;
}

.news-item:hover {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

/* 新闻封面 */
.news-item-cover {
    flex-shrink: 0;
    width: 180px;
    height: 120px;
    border-radius: 6px;
    overflow: hidden;
    background-color: #2a2a2a;
}

.news-item-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 新闻内容区 */
.news-item-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

/* 新闻标题 */
.news-item-body .news-item-title {
    font-size: 17px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 新闻摘要 */
.news-item-summary {
    font-size: 14px;
    color: #a0a0a0;
    line-height: 1.6;
    margin-bottom: 12px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 新闻底部信息 */
.news-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* 左侧元信息 */
.news-item-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #888888;
}

.meta-tags {
    display: flex;
    gap: 6px;
}

.meta-tag {
    padding: 2px 8px;
    background-color: rgba(74, 222, 128, 0.15);
    color: var(--color-highlight-green);
    border-radius: 3px;
    font-size: 12px;
}

.meta-author,
.meta-date {
    color: #888888;
}

/* 右侧统计 */
.news-item-stats {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    color: #888888;
}

.stat-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ===== 分页 ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-btn {
    padding: 8px 14px;
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 13px;
    transition: all 0.2s ease;
}

.page-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-btn.active {
    background-color: var(--color-highlight-green);
    color: #000000;
    font-weight: 500;
}

.page-ellipsis {
    padding: 8px 10px;
    color: #888888;
}

/* ========================================
   新闻详情页样式 (detail/rget.php)
   ======================================== */

.news-detail {
    padding-top: 80px;
    min-height: 100vh;
    background-color: #0f0f0f;
}

.news-detail-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

/* 封面 */
.news-detail-cover {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 24px;
}

.news-detail-cover img {
    width: 100%;
    height: auto;
    display: block;
}

/* 标签 */
.news-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.news-tag {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
}

/* 标题 */
.news-detail-title {
    font-size: 28px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 16px;
    line-height: 1.4;
}

/* 元信息 */
.news-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #a0a0a0;
}

.meta-icon {
    font-size: 15px;
}

/* 正文 */
.news-detail-content {
    font-size: 16px;
    line-height: 1.8;
    color: #e0e0e0;
}

.news-detail-content p {
    margin-bottom: 16px;
}

.news-detail-content ul,
.news-detail-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.news-detail-content li {
    margin-bottom: 8px;
}

.news-detail-content h2 {
    font-size: 22px;
    margin: 28px 0 14px;
    color: #ffffff;
}

.news-detail-content h3 {
    font-size: 18px;
    margin: 22px 0 10px;
    color: #ffffff;
}

.news-detail-content img {
    max-width: 100%;
    border-radius: 6px;
    margin: 16px 0;
}

/* 底部操作 */
.news-detail-actions {
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-back {
    display: inline-block;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.btn-back:hover {
    background-color: rgba(255, 255, 255, 0.18);
}

/* ========================================
   响应式设计
   ======================================== */

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 12px;
    }
    
    .nav-links {
        gap: 24px;
    }
    
    /* 首页新闻卡片 */
    .news-card {
        left: 15px;
        right: 15px;
        width: auto;
        max-width: none;
        top: auto;
        bottom: 180px;
        transform: none;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .online-count {
        font-size: 48px;
    }
    
    /* 新闻列表页 */
    .news-toolbar {
        flex-direction: column;
        gap: 16px;
    }
    
    .news-search form {
        width: 100%;
    }
    
    .news-search input {
        flex: 1;
        width: auto;
    }
    
    /* 新闻条 */
    .news-item {
        flex-direction: column;
        gap: 14px;
    }
    
    .news-item-cover {
        width: 100%;
        height: 160px;
    }
    
    .news-item-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .news-item-stats {
        width: 100%;
        justify-content: flex-start;
    }
    
    /* 新闻详情 */
    .news-detail-title {
        font-size: 22px;
    }
    
    .news-detail-meta {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .brand-name {
        font-size: 18px;
    }
    
    .nav-links {
        gap: 16px;
    }
    
    .nav-link {
        font-size: 14px;
    }
    
    .news-hero-title {
        font-size: 32px;
        letter-spacing: 4px;
    }
    
    .news-hero-desc {
        font-size: 13px;
    }
    
    .filter-tag {
        padding: 5px 12px;
        font-size: 12px;
    }
    
    .news-item-body .news-item-title {
        font-size: 15px;
    }
    
    .news-item-summary {
        font-size: 13px;
    }
    
    .news-item-meta {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .pagination {
        gap: 4px;
    }
    
    .page-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* ========================================
   排行榜页面样式 (ranking.php)
   ======================================== */

/* ===== Hero区域 ===== */
.ranking-hero {
    position: relative;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ranking-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.ranking-hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.ranking-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 20px;
}

.ranking-hero-title {
    font-size: 42px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 16px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: 6px;
}

.ranking-hero-desc {
    color: #e0e0e0;
    font-size: 15px;
    line-height: 1.8;
}

.ranking-hero-desc p {
    margin: 4px 0;
}

/* ===== 排行榜主体 ===== */
.ranking-section {
    background-color: #0f0f0f;
    padding: 30px 20px 60px;
    min-height: calc(100vh - 280px);
}

.ranking-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== 列表模式布局 ===== */
.ranking-main {
    display: flex;
    gap: 24px;
}

/* 左侧边栏 */
.ranking-sidebar {
    width: 200px;
    flex-shrink: 0;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mode-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mode-item {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.2s ease;
}

.mode-item:hover:not(.disabled) {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

.mode-item.active {
    background-color: rgba(74, 222, 128, 0.15);
    border-color: var(--color-highlight-green);
    color: var(--color-highlight-green);
}

.mode-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.mode-name {
    font-size: 14px;
    font-weight: 500;
}

.mode-status {
    font-size: 11px;
    color: #888888;
    margin-top: 4px;
}

/* 右侧内容 */
.ranking-content {
    flex: 1;
    min-width: 0;
}

/* 搜索框 */
.ranking-search {
    margin-bottom: 20px;
}

.ranking-search form {
    display: flex;
    gap: 10px;
}

.ranking-search input {
    padding: 10px 16px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    width: 280px;
    transition: border-color 0.2s ease;
}

.ranking-search input:focus {
    border-color: var(--color-highlight-green);
}

.ranking-search input::placeholder {
    color: #888888;
}

.ranking-search button {
    padding: 10px 24px;
    background-color: var(--color-highlight-green);
    color: #000000;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.ranking-search button:hover {
    opacity: 0.85;
}

/* 暂未开放 */
.ranking-unavailable {
    text-align: center;
    padding: 80px 20px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.unavailable-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.ranking-unavailable h3 {
    font-size: 20px;
    color: #ffffff;
    margin-bottom: 8px;
}

.ranking-unavailable p {
    color: #888888;
    font-size: 14px;
}

/* ===== 排行榜表格 ===== */
.ranking-table-wrapper {
    overflow-x: auto;
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    overflow: hidden;
}

.ranking-table th,
.ranking-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ranking-table th {
    background-color: rgba(255, 255, 255, 0.05);
    font-size: 13px;
    font-weight: 600;
    color: #a0a0a0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ranking-table th.sortable:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.08);
}

.sort-indicator {
    margin-left: 4px;
    color: var(--color-highlight-green);
}

.ranking-table td {
    font-size: 14px;
    color: #e0e0e0;
}

.ranking-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.ranking-table tbody tr.top-1,
.ranking-table tbody tr.top-2,
.ranking-table tbody tr.top-3 {
    background-color: rgba(255, 215, 0, 0.05);
}

/* 排名徽章 */
.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.rank-badge.rank-1 {
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
    color: #000000;
}

.rank-badge.rank-2 {
    background: linear-gradient(135deg, #c0c0c0 0%, #a0a0a0 100%);
    color: #000000;
}

.rank-badge.rank-3 {
    background: linear-gradient(135deg, #cd7f32 0%, #a0522d 100%);
    color: #ffffff;
}

.rank-badge.rank-normal {
    background-color: rgba(255, 255, 255, 0.1);
    color: #a0a0a0;
}

/* 列宽设置 */
.col-rank { width: 70px; }
.col-name { min-width: 120px; }
.col-kills { width: 90px; }
.col-beds { width: 90px; }
.col-kdr { width: 80px; }
.col-wins { width: 90px; }
.col-score { width: 100px; }
.col-action { width: 100px; }

/* 查看详情按钮 */
.btn-detail {
    display: inline-block;
    padding: 6px 12px;
    background-color: rgba(74, 222, 128, 0.15);
    color: var(--color-highlight-green);
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    transition: all 0.2s ease;
}

.btn-detail:hover {
    background-color: rgba(74, 222, 128, 0.25);
}

/* 无数据 */
.no-data {
    text-align: center;
    color: #888888;
    padding: 40px !important;
}

/* ===== 详情模式 ===== */
.ranking-detail {
    max-width: 800px;
    margin: 0 auto;
}

.btn-back-detail {
    display: inline-block;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 24px;
    transition: all 0.2s ease;
}

.btn-back-detail:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.detail-header {
    margin-bottom: 24px;
}

.detail-title {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
}

.detail-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 24px;
}

.detail-stat-item {
    text-align: center;
    padding: 16px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.stat-label {
    display: block;
    font-size: 13px;
    color: #888888;
    margin-bottom: 8px;
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
}

.stat-value.highlight {
    color: var(--color-highlight-green);
}

.detail-not-found {
    text-align: center;
    padding: 60px 20px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    color: #888888;
}

/* ===== 排行榜响应式 ===== */
@media (max-width: 900px) {
    .ranking-main {
        flex-direction: column;
    }
    
    .ranking-sidebar {
        width: 100%;
    }
    
    .mode-list {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .mode-item {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }
    
    .mode-status {
        margin-top: 0;
    }
    
    .detail-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .ranking-hero-title {
        font-size: 32px;
        letter-spacing: 4px;
    }
    
    .ranking-search form {
        flex-direction: column;
    }
    
    .ranking-search input {
        width: 100%;
    }
    
    .ranking-table th,
    .ranking-table td {
        padding: 10px 8px;
        font-size: 12px;
    }
    
    .col-rank { width: 50px; }
    .col-kills { width: 70px; }
    .col-beds { width: 70px; }
    .col-kdr { width: 60px; }
    .col-wins { width: 70px; }
    .col-score { width: 80px; }
    .col-action { width: 80px; }
    
    .btn-detail {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .detail-stats {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 16px;
    }
    
    .detail-stat-item {
        padding: 12px;
    }
    
    .stat-value {
        font-size: 20px;
    }
}
