/* 全局变量 */
:root {
    --primary-color: #2E8B57;    /* 主题绿色 */
    --secondary-color: #1E6B47;  /* 深绿 */
    --accent-color: #FF6B35;     /* 强调色 */
    --background: #1A1A1A;       /* 深色背景 */
    --card-bg: #2D2D2D;          /* 卡片背景 */
    --text-light: #FFFFFF;       /* 浅色文字 */
    --text-gray: #CCCCCC;        /* 灰色文字 */
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
    --button-color: #4A90E2;     /* 新按钮颜色 */
    --button-hover: #357ABD;     /* 按钮悬停颜色 */
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background);
    color: var(--text-light);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 导航栏 */
.navbar {
    background-color: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.nav-brand h1 i {
    margin-right: 10px;
}

.nav-menu ul {
    display: flex;
    list-style: none;
}

.nav-menu ul li {
    margin-left: 25px;
}

.nav-menu ul li a {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 12px;
    border-radius: var(--border-radius);
}

.nav-menu ul li a:hover {
    color: var(--primary-color);
    background-color: rgba(46, 139, 87, 0.1);
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* 英雄区域 */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('https://images.unsplash.com/photo-1511512578047-dfb367046420?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    display: flex;
    align-items: center;
    text-align: center;
    padding-top: 80px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--text-light);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: var(--text-gray);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn.primary {
    background-color: var(--button-color);
    color: white;
}

.btn.primary:hover {
    background-color: var(--button-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(74, 144, 226, 0.4);
}

.btn.secondary {
    background-color: transparent;
    color: var(--button-color);
    border: 2px solid var(--button-color);
    margin-left: 15px;
}

.btn.secondary:hover {
    background-color: rgba(74, 144, 226, 0.1);
    transform: translateY(-3px);
}

.btn.small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* 卡片网格 */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-light);
}

.card p {
    color: var(--text-gray);
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.card-address {
    font-family: monospace;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* 章节样式 */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: var(--text-light);
    position: relative;
}

.section-title i {
    color: var(--primary-color);
    margin-right: 15px;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 15px auto;
    border-radius: 2px;
}

/* 服务器状态 */
.server-status {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.status-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--box-shadow);
}

.status-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-light);
}

.server-info {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.server-info code {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-size: 1.2rem;
    margin-right: 15px;
    font-family: monospace;
}

.status-badge {
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.status-badge.online {
    background-color: #28a745;
    color: white;
}

/* 页脚 */
.footer {
    background-color: #252525;
    padding: 50px 0 20px;
    border-top: 1px solid #333;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-info h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.footer-info p {
    color: var(--text-gray);
    max-width: 300px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-gray);
    margin-left: 20px;
    text-decoration: none;
    transition: var(--transition);
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.footer-beian {
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition);
}

.footer-beian:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* 响应式设计 */
@media screen and (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media screen and (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .btn.secondary {
        margin-left: 0;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .server-status {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .footer-links a {
        margin: 0 10px;
    }
}

@media screen and (max-width: 576px) {
    .container {
        width: 95%;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .card {
        padding: 20px;
    }
    
    .card-icon {
        font-size: 2rem;
    }
    
    .server-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .server-info code {
        margin-right: 0;
        font-size: 1rem;
    }
}