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

a {
    text-decoration: none;
}

body {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    color: #333;
    min-height: 100vh;
    padding: 20px;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #3498db, #2ecc71, #e74c3c, #f39c12);
}

h1 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 2.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

h1 i {
    color: #3498db;
}

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

.protocol-notice {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-top: 10px;
}

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

.stat-card {
    background: rgba(52, 152, 219, 0.9);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    text-align: center;
    min-width: 150px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

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

.stat-value {
    font-size: 2rem;
    font-weight: bold;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.tabs {
    display: flex;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tab {
    flex: 1;
    text-align: center;
    padding: 15px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.tab.active {
    background: #3498db;
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

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

.service-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.card-header {
    padding: 20px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header.http {
    background: #3498db;
}

.card-header.tcp {
    background: #2ecc71;
}

.card-header.management {
    background: #9b59b6;
}

.card-header i {
    font-size: 1.5rem;
    margin-right: 10px;
}

.status {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.status.online {
    background: rgba(255, 255, 255, 0.3);
}

.card-body {
    padding: 20px;
}

.info-row {
    display: flex;
    margin-bottom: 12px;
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
}

.info-label {
    font-weight: bold;
    width: 100px;
    color: #7f8c8d;
}

.info-value {
    flex: 1;
    word-break: break-all;
}

.domains {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}

.domain {
    background: #f1f2f6;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.85rem;
}

.btn {
    display: block;
    text-align: center;
    padding: 12px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    margin-top: 15px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn:hover {
    background: #2980b9;
}

.btn-tcp {
    background: #7f8c8d;
    cursor: not-allowed;
}

.btn-tcp:hover {
    background: #7f8c8d;
}

/* 博客导航样式 */
.blog-navigation {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.blog-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.section-header i {
    font-size: 1.5rem;
    margin-right: 12px;
    color: #3498db;
}

.section-header h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin: 0;
}

.blog-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.blog-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.blog-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: white;
}

.link-text {
    font-weight: 500;
    font-size: 0.9rem;
    flex: 1;
}

.link-icon {
    font-size: 1.1rem;
    margin-left: 8px;
}

/* 管理界面样式 */
.management-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.management-card {
    width: 100%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.management-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

footer {
    text-align: center;
    padding: 20px;
    color: white;
    margin-top: 40px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .services {
        grid-template-columns: 1fr;
    }
    
    .stats {
        flex-direction: column;
        align-items: center;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .blog-navigation {
        grid-template-columns: 1fr;
    }
    
    .blog-links {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .blog-link {
        padding: 10px 12px;
    }
    
    .link-text {
        font-size: 0.85rem;
    }
    
    h1 {
        font-size: 2.2rem;
    }
}