/* 全局样式 */
body {
    font-family: 'Microsoft YaHei', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    margin: 0;
    padding: 20px;
}

/* 按钮样式 */
button {
    background: linear-gradient(to bottom, #4a90e2, #357abD);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

button:hover {
    background: linear-gradient(to bottom, #3a7bc8, #2c6aB4);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

th {
    background: linear-gradient(to bottom, #4a90e2, #357abD);
    color: white;
    padding: 12px 15px;
    text-align: left;
}

td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
}

tr:hover {
    background-color: #f0f7ff;
}

/* 模态框样式 */
#publish-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 25px;
    border-radius: 8px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* 输入框样式 */
input[type="text"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

/* 按钮组样式 */
.button-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    table {
        font-size: 14px;
    }
    
    th, td {
        padding: 8px 10px;
    }
    
    .modal-content {
        width: 90%;
    }
}

/* 服务器详情页增强样式 */
.container {
    max-width: 800px;
    margin: 20px auto;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.info-grid {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 15px;
    margin: 25px 0;
}

.map-image {
    max-width: 100%;
    height: auto;
    margin-top: 10px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.player-list {
    background: #f9f9f9;
    border-radius: 6px;
    padding: 15px;
    margin-top: 20px;
}

.player-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.address-cell {
    cursor: pointer;
    transition: all 0.3s;
}

/* 服务器详情页IP地址样式 */
.ip-address {
    cursor: pointer;
    transition: all 0.3s;
}
.ip-address:hover {
    text-decoration: underline;
    color: #1a73e8;
}

/* 快速连接按钮样式 */
.connect-btn {
    margin-left: 15px;
    padding: 5px 10px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
}
.connect-btn:hover {
    background-color: #3e8e41;
}
.header-links {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: #333;
}

.bbs-link {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    background: #4CAF50;
    border-radius: 4px;
}

.bbs-link:hover {
    background: #45a049;
}
.header-links button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 10px;
    transition: background-color 0.3s;
}

.header-links button:hover {
    background-color: #45a049;
}

.header-links a.bbs-link {
    background-color: #008CBA;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.header-links a.bbs-link:hover {
    background-color: #007B9A;
}

.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination a,
.pagination span.current-page {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 3px;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    transition: background-color 0.3s;
}

.pagination a:hover {
    background-color: #f1f1f1;
}

.pagination span.current-page {
    background-color: #007BFF;
    color: white;
    border-color: #007BFF;
}