/**
 * 首页专用样式 (front-page.css)
 * 仅应用于网站首页，不会影响其他页面
 */

/* ==================== 首页专用网格（两列卡片） ==================== */
.grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.info-block {
    background: #fafcff;
    border-radius: 20px;
    padding: 20px;
    border: 1px solid #eef2f8;
}

.info-block h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e2a32;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-left: 3px solid #4a8bb7;
    padding-left: 12px;
    cursor: default;
}

.info-list {
    list-style: none;
}

.info-list li {
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #edf2f7;
    font-size: 0.9rem;
}

.info-list li strong {
    color: #2c5f8a;
    font-weight: 600;
}

.info-list a {
    cursor: pointer;
}

.badge {
    background: #eef2ff;
    padding: 2px 8px;
    border-radius: 30px;
    font-size: 0.65rem;
    font-weight: 500;
    color: #2c5f8a;
    margin-left: 8px;
}

.map-detail {
    font-size: 0.8rem;
    color: #5a6e7c;
    margin-top: 6px;
}

.equip-highlight {
    color: #2c5f8a;
    font-weight: 600;
}

/* ==================== 卡片点击区域 ==================== */
.card-clickable .section-title,
.card-clickable .section-sub {
    cursor: pointer;
}

/* ==================== 可点击的描述文字样式 ==================== */
.clickable-desc {
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    display: inline-block;
    border-radius: 4px;
    padding: 0 2px;
}

.clickable-desc:hover {
    background: #e8f4f8;
    color: #2c5f8a;
    text-decoration: underline;
}

.info-list li .clickable-desc {
    display: inline;
}

.map-detail.clickable-map,
.info-list .map-detail.clickable-map {
    cursor: pointer;
    transition: background 0.2s;
}

.map-detail.clickable-map:hover,
.info-list .map-detail.clickable-map:hover {
    background: #f0f7ff;
    text-decoration: underline;
}

/* ==================== 最新开服表格铺满样式 ==================== */
.full-width-card {
    width: 100%;
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
}

.full-width-card .server-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.full-width-card .server-table {
    width: 100%;
    min-width: 100%;
}

/* 强制最新开服铺满 */
#openserver.full-width-card,
#openserver.full-width-card .server-table-wrapper,
#openserver.full-width-card .server-table {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
}

#openserver.full-width-card {
    padding: 28px 0 !important;
}

#openserver.full-width-card .section-title,
#openserver.full-width-card .section-sub {
    padding-left: 32px !important;
    padding-right: 32px !important;
}

#openserver.full-width-card .server-table-wrapper {
    overflow-x: auto !important;
    padding: 0 !important;
    margin: 16px 0 0 0 !important;
}

#openserver.full-width-card .server-table {
    display: table !important;
    table-layout: auto !important;
    border-radius: 0 !important;
}

#openserver.full-width-card .server-table th,
#openserver.full-width-card .server-table td {
    text-align: left;
}

#openserver.full-width-card .server-table th:first-child,
#openserver.full-width-card .server-table td:first-child {
    padding-left: 32px;
}

#openserver.full-width-card .server-table th:last-child,
#openserver.full-width-card .server-table td:last-child {
    padding-right: 32px;
}

/* ==================== 沉默版本高亮标签 ==================== */
.tag-silence {
    background: #c9a03d !important;
    color: #fff !important;
}

/* ==================== 开服表格基础样式 ==================== */
.server-table-wrapper {
    overflow-x: auto;
    width: 100%;
}

.server-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
}

.server-table th,
.server-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #eef2f6;
}

.server-table th {
    background: #f8fafc;
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.85rem;
}

.server-table td {
    color: #2d3e4f;
    vertical-align: middle;
}

.server-table tr:hover {
    background: #f9fbfd;
}

/* 沉默版本行高亮 */
.server-table tr.silence-row {
    background: #fffef7;
}

.server-table tr.silence-row:hover {
    background: #fef9e8;
}

/* 服务器名称列 */
.server-name-cell {
    font-weight: 700;
    color: #1e2a32;
}

/* 版本标签容器 */
.version-cell .tag-sm {
    display: inline-block;
    background: #eef2ff;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 500;
    color: #2c5f8a;
    white-space: nowrap;
    margin: 2px;
}

/* 特色标签列 */
.feature-cell .tag-sm {
    max-width: 220px;
    white-space: normal;
    word-break: break-word;
    background: #e8f4f8;
}

/* 操作按钮 */
.btn-sm {
    display: inline-block;
    background: transparent;
    border: 1px solid #cbdde9;
    color: #2c5f8a;
    padding: 5px 14px;
    border-radius: 40px;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: 0.2s;
}

.btn-sm:hover {
    background: #eef2ff;
    border-color: #4a8bb7;
}

/* 时间列 */
.time-cell {
    white-space: nowrap;
}

/* 线路列 */
.line-cell {
    white-space: nowrap;
}

/* 操作列 */
.action-cell {
    white-space: nowrap;
}

/* ==================== 响应式 ==================== */
@media (max-width: 780px) {
    .grid-2col {
        grid-template-columns: 1fr;
    }
    
    .server-table th,
    .server-table td {
        padding: 8px 10px;
        font-size: 0.7rem;
    }
    
    .server-table td {
        word-break: break-word;
    }
    
    .feature-cell .tag-sm {
        max-width: 150px;
    }
    
    .time-cell,
    .line-cell,
    .action-cell {
        white-space: normal;
    }
    
    .tag-sm {
        padding: 2px 6px;
        font-size: 0.6rem;
    }
    
    .btn-sm {
        padding: 4px 10px;
        font-size: 0.65rem;
    }
}