/**
 * 首页专用样式 — 180合击自然柔和风
 */

.main-content {
    padding: 20px 0 30px;
}

/* 首页顶部留空 - 避免被固定导航遮挡 */
.main-content .container {
    padding-top: 70px;
}

/* ===== 开服列表 ===== */
.server-section {
    margin: 28px 0 36px;
    background: var(--color-surface);
    border-radius: var(--radius-card);
    padding: 24px 28px 20px;
    box-shadow: var(--color-shadow);
    border: 1px solid var(--color-border);
}

.server-section .header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.server-section .header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.server-section .header h2 i {
    color: var(--color-primary-light);
    font-size: 22px;
}

.server-section .header .more {
    font-size: 14px;
    color: #7a8f7a;
    transition: 0.2s;
    cursor: pointer;
    font-weight: 500;
}

.server-section .header .more:hover {
    color: var(--color-primary);
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.filter-tags span {
    background: #f3f0eb;
    padding: 4px 18px;
    border-radius: 30px;
    font-size: 13px;
    color: #6b6560;
    cursor: pointer;
    transition: 0.25s;
    border: 1px solid transparent;
    font-weight: 450;
}

.filter-tags span:hover,
.filter-tags span.active {
    background: var(--color-primary-soft);
    color: var(--color-primary);
    border-color: #b8cfc0;
}

.filter-tags span i {
    margin-right: 4px;
}

.server-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.server-table thead th {
    text-align: left;
    padding: 10px 12px 10px 0;
    font-weight: 600;
    color: #7a8f7a;
    border-bottom: 2px solid var(--color-border);
    font-size: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.server-table tbody tr {
    border-bottom: 1px solid var(--color-border-light);
    transition: background 0.2s;
}

.server-table tbody tr:hover {
    background: #f9f7f4;
}

.server-table tbody tr:last-child {
    border-bottom: none;
}

.server-table tbody td {
    padding: 12px 12px 12px 0;
    vertical-align: middle;
}

.server-table .col-server {
    font-weight: 600;
    color: #2d3a2d;
}

.server-table .col-server i {
    color: var(--color-primary-light);
    margin-right: 8px;
    font-size: 13px;
}

.server-table .badge {
    font-size: 11px;
    padding: 2px 14px;
    border-radius: 30px;
    font-weight: 600;
    display: inline-block;
}
.badge-hot {
    background: #f0e6d0;
    color: #8a6a3a;
}
.badge-new {
    background: #dce8e0;
    color: var(--color-primary);
}
.badge-rec {
    background: #e6ece6;
    color: #3a6a4a;
}
.badge-stable {
    background: #edf0ed;
    color: #5a6a5a;
}

.server-table .col-type {
    color: #6b6560;
    font-size: 13px;
}
.server-table .col-players {
    color: #6b6560;
    font-size: 13px;
}
.server-table .col-players i {
    color: #9aae9a;
    margin-right: 4px;
}
.server-table .col-time {
    color: #6b6560;
    font-size: 13px;
    font-weight: 450;
}
.server-table .col-time i {
    color: #9aae9a;
    margin-right: 4px;
}
.server-table .col-action a {
    display: inline-block;
    padding: 4px 18px;
    background: var(--color-primary-soft);
    color: var(--color-primary);
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    transition: 0.25s;
}
.server-table .col-action a:hover {
    background: var(--color-primary);
    color: #ffffff;
}

/* ===== 各栏目最新信息 ===== */
.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 10px;
}

.section-title i {
    color: var(--color-primary-light);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 6px;
    margin-bottom: 12px;
}

.category-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: 20px 22px 18px;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.category-card:hover {
    border-color: #c8d6c8;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

.category-card .cat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--color-text);
    font-size: 15px;
}

.category-card .cat-header i {
    color: var(--color-primary-light);
    margin-right: 8px;
}

.category-card .cat-header .more-link {
    font-size: 12px;
    color: #9aae9a;
    transition: 0.2s;
    font-weight: 450;
    cursor: pointer;
}

.category-card .cat-header .more-link:hover {
    color: var(--color-primary);
}

.category-card .item-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.category-card .item-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13.5px;
    color: #4d4945;
    padding: 7px 0;
    border-bottom: 1px solid var(--color-border-light);
    transition: 0.2s;
    cursor: pointer;
}

.category-card .item-list a:last-child {
    border-bottom: none;
}

.category-card .item-list a:hover {
    color: var(--color-primary);
    padding-left: 6px;
}

.category-card .item-list .time {
    font-size: 11px;
    color: #b0a89e;
    white-space: nowrap;
    margin-left: 12px;
    flex-shrink: 0;
}

.category-card .item-list .tag {
    font-size: 10px;
    background: #f3f0eb;
    padding: 1px 12px;
    border-radius: 30px;
    color: #7a8f7a;
    margin-left: 8px;
    flex-shrink: 0;
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .server-table thead th:nth-child(4),
    .server-table tbody td:nth-child(4) {
        display: none;
    }
}

@media (max-width: 768px) {
    .main-content .container {
        padding-top: 80px !important;
    }
    .server-section {
        padding: 18px 16px;
    }
    .server-table thead th:nth-child(5),
    .server-table tbody td:nth-child(5) {
        display: none;
    }
    .server-table .col-players {
        display: none;
    }
    .server-table thead th:nth-child(3),
    .server-table tbody td:nth-child(3) {
        display: none;
    }
    .category-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .main-content .container {
        padding-top: 90px !important;
    }
}

@media (max-width: 480px) {
    .server-table {
        font-size: 13px;
    }
    .server-table tbody td {
        padding: 10px 6px 10px 0;
    }
    .server-table .col-action a {
        padding: 2px 12px;
        font-size: 11px;
    }
    .server-table .badge {
        font-size: 10px;
        padding: 1px 10px;
    }
}