* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #1a1a2e;
    color: #e6e6e6;
    line-height: 1.6;
    padding: 20px;
    background-image: linear-gradient(to bottom, #0f3460, #1a1a2e);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: rgba(26, 26, 46, 0.9);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #3498db;
}

header h1 {
    color: #3498db;
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.subtitle {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
}

.stat {
    background-color: #162447;
    padding: 15px 25px;
    border-radius: 10px;
    min-width: 140px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.stat:hover {
    transform: translateY(-5px);
}

.stat-value {
    display: block;
    font-size: 2.2rem;
    font-weight: bold;
    color: #2ecc71;
}

.stat-label {
    font-size: 0.9rem;
    color: #bdc3c7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.controls {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-box {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.search-box i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #7f8c8d;
}

.search-box input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    border-radius: 50px;
    border: 2px solid #3498db;
    background-color: #162447;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.filter-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 50px;
    background-color: #2c3e50;
    color: white;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: #34495e;
    transform: translateY(-2px);
}

.filter-btn.active {
    background-color: #3498db;
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.server-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.server-card {
    background-color: #162447;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border-left: 5px solid #3498db;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.server-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
}

.server-card.online {
    border-left-color: #2ecc71;
}

.server-card.offline {
    border-left-color: #e74c3c;
    opacity: 0.8;
}

.server-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.server-name {
    font-size: 1.4rem;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.server-status {
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
}

.status-online {
    background-color: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.status-offline {
    background-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.server-address {
    background-color: rgba(52, 152, 219, 0.1);
    padding: 10px 15px;
    border-radius: 8px;
    margin: 15px 0;
    font-family: monospace;
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copy-btn {
    background: none;
    border: none;
    color: #3498db;
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.copy-btn:hover {
    color: #2980b9;
}

.server-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: #bdc3c7;
    font-size: 0.9rem;
}

.server-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.tag {
    background-color: #2c3e50;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    color: #ecf0f1;
}

.add-server {
    background-color: rgba(22, 36, 71, 0.8);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    margin: 40px 0;
    border: 2px dashed #3498db;
}

.add-server h3 {
    color: #3498db;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.add-server p {
    color: #bdc3c7;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

#contact-btn {
    padding: 12px 30px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

#contact-btn:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #2c3e50;
    color: #7f8c8d;
    font-size: 0.9rem;
}

footer p {
    margin-bottom: 10px;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #162447;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    color: #7f8c8d;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #e74c3c;
}

.modal-server-name {
    color: #3498db;
    font-size: 2rem;
    margin-bottom: 10px;
}

.modal-server-address {
    font-family: monospace;
    font-size: 1.2rem;
    background-color: rgba(52, 152, 219, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.modal-description {
    margin: 20px 0;
    line-height: 1.8;
    color: #ecf0f1;
}

.modal-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.detail-item {
    background-color: rgba(44, 62, 80, 0.5);
    padding: 15px;
    border-radius: 8px;
}

.detail-label {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.detail-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ecf0f1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .stats {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .server-list {
        grid-template-columns: 1fr;
    }
    
    .filter-buttons {
        flex-wrap: wrap;
    }
    
    .server-card {
        padding: 20px;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}
/* 添加文本输入框样式 */
.address-input {
    width: 100%;
    padding: 10px 15px;
    background-color: rgba(52, 152, 219, 0.1);
    border: 2px solid #3498db;
    border-radius: 8px;
    color: white;
    font-family: monospace;
    font-size: 1rem;
    margin: 10px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.address-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
}

.address-input::selection {
    background-color: #3498db;
    color: white;
}

.input-wrapper {
    position: relative;
}

.input-copy-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.input-copy-btn:hover {
    background: #2980b9;
}

.input-copy-btn.copied {
    background: #2ecc71;
}

/* 移除连接按钮相关样式 */
.connect-btn,
.modal-actions {
    display: none;
}

/* GitHub链接样式 */
#github-link {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

#github-link:hover {
    color: #2980b9;
    text-decoration: underline;
}