* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}

body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
}

.header h1 {
    color: #ffd700;
    font-size: 2.2em;
    margin-bottom: 8px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.header p {
    color: #FF0000;
    font-size: 1.2em;
    font-weight: bold;
}

/* 按钮区域样式 - 紧凑一行 */
.button-section {
    margin-bottom: 20px;
    text-align: center;
}

.button-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.top-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 80px;
    white-space: nowrap;
}

.top-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.table-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.server-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.server-table th {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    padding: 12px 8px;
    text-align: center;
    font-weight: bold;
    color: white;
    border: none;
    font-size: 14px;
}

.server-table td {
    padding: 10px 8px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    vertical-align: middle;
    height: 60px;
}

.server-table tr:hover td {
    background: rgba(255, 255, 255, 0.1);
}

/* 服务器名样式 - 完美居中 */
.server-cell {
    text-align: center;
    vertical-align: middle;
}

.server-name {
    text-align: center;
    line-height: 1.2;
    word-wrap: break-word;
    word-break: break-all;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 40px;
}

/* 服务器名链接样式 - 移除下划线 */
.server-link {
    text-decoration: none !important;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.server-link:hover {
    text-decoration: none !important;
}

/* 开区时间样式 */
.time-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 40px;
}

.server-time {
    text-align: center;
    line-height: 1.3;
    font-weight: bold;
    white-space: nowrap;
    text-shadow: 0 0 5px rgba(78, 205, 196, 0.3);
}

/* 版本介绍样式 */
.version-container {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    height: 100%;
    min-height: 40px;
    padding-top: 0;
}

.version-info {
    text-align: left;
    line-height: 1.3;
    white-space: pre-line;
    margin: 0;
    padding: 0;
    margin-top: -2px;
}

.action-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 6px;
}

/* 开区状态样式 - 支持自定义 */
.status {
    padding: 6px 12px;
    border-radius: 15px;
    font-weight: bold;
    display: inline-block;
    min-width: 70px;
}

.download-btn {
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    min-width: 90px;
    font-size: 14px;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(116, 185, 255, 0.4);
}

.content-link {
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.content-link:hover {
    text-decoration: underline;
}

/* 页脚样式 - 调整备案信息 */
.footer {
    text-align: center;
    margin-top: 20px;
    color: #ccc;
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
}

.beian {
    color: #888;
    font-size: 13px;
    margin-top: 8px;
    line-height: 1.5;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.beian a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
}

.beian a:hover {
    color: #4ecdc4;
}

/* 公安备案样式 - 预留警徽位置 */
.gongan-beian {
    display: flex;
    align-items: center;
    gap: 5px;
}

.police-badge {
    width: 16px;
    height: 16px;
    background: #888;
    border-radius: 2px;
    display: inline-block;
}

.loading {
    text-align: center;
    padding: 30px;
    color: #ccc;
}

@media (max-width: 768px) {
    .server-time {
        font-size: 12px;
        white-space: normal;
    }
    .button-row {
        gap: 6px;
    }
    
    .top-button {
        padding: 6px 10px;
        font-size: 11px;
        min-width: 70px;
    }
    
    .server-table {
        font-size: 0.85em;
    }
    
    .server-table th,
    .server-table td {
        padding: 8px 4px;
    }
    
    .server-name {
        font-size: 13px;
    }
    
    .server-time {
        font-size: 12px;
        white-space: normal;
    }
    
    .beian {
        flex-direction: column;
        gap: 8px;
    }
}