/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    line-height: 1.5;
    color: #333;
    background-color: #ffffff;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
header {
    background-color: #4a90e2;
    color: white;
    padding: 15px 0;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 5px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

header p {
    font-size: 1rem;
    opacity: 0.9;
}

/* 导航样式 */
nav {
    background-color: #2c3e50;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 500;
}

nav ul li a:hover,
nav ul li a:focus {
    background-color: #34495e;
    transform: translateY(-2px);
}

/* 通用区块样式 */
section {
    padding: 50px 0;
    scroll-margin-top: 60px;
}

section:nth-child(even) {
    background-color: #fafafa;
}

/* 英雄区块样式 */
.hero {
    background-color: #4a90e2;
    color: white;
    text-align: center;
    padding: 100px 20px;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 按钮样式 */
.join-button {
    display: inline-block;
    background-color: #ff6b6b;
    color: white;
    padding: 10px 30px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.join-button:hover {
    background-color: #ee5253;
    transform: translateY(-2px);
}

/* 标题样式 */
h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 25px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid #4a90e2;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
}

h3 {
    font-size: 1.5rem;
    color: #34495e;
    margin-bottom: 15px;
}

h4 {
    font-size: 1.1rem;
    color: #34495e;
    margin-bottom: 10px;
}

/* 特色区块样式 */
.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 30px;
    gap: 20px;
}

.feature-item {
    flex: 1;
    min-width: 250px;
    margin: 10px;
    padding: 25px 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-left: 3px solid #4a90e2;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.feature-item h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.feature-item p {
    color: #7f8c8d;
    line-height: 1.7;
}

/* 服务器信息样式 */
.server-info {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-top: 30px;
    border: 1px solid #e9ecef;
}

.server-info h3 {
    text-align: center;
    margin-bottom: 20px;
    margin-top: 40px;
}

.server-info h3:first-child {
    margin-top: 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.info-item {
    text-align: center;
    padding: 15px 10px;
    background-color: #f8f9fa;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.info-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.info-item h4 {
    color: #4a90e2;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 1.1rem;
}

.info-item p {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 8px;
}

.info-item a {
    color: #4a90e2 !important;
    text-decoration: none !important;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.info-item a:hover {
    color: #9013fe !important;
    text-decoration: underline !important;
}

.info-item a::after {
    content: '↗';
    margin-left: 5px;
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.info-item a:hover::after {
    transform: translateX(3px);
}

.status-online {
    color: #4caf50;
    font-weight: bold;
    font-size: 1rem;
    display: inline-block;
    padding: 3px 10px;
    background-color: rgba(76, 175, 80, 0.1);
    border-radius: 15px;
    margin-bottom: 8px;
}

.status-online::before {
    content: '●';
    color: #4caf50;
    margin-right: 5px;
}

/* 联系我们样式 */
.contact {
    background-color: #f8f9fa;
    text-align: center;
    padding: 50px 20px;
}

.contact-info {
    margin: 25px 0;
}

.contact-info a {
    color: #4a90e2;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #9013fe;
    text-decoration: underline;
}

/* 联系信息消息样式 */
.contact-message {
    margin-top: 30px;
    text-align: center;
}

/* B站链接样式 */
#bilibili-link {
    margin-top: 15px;
}

/* 页脚样式 */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 30px 0;
}

footer p {
    margin: 0;
    opacity: 0.9;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .features {
        flex-direction: column;
        align-items: center;
    }
    
    .feature-item {
        width: 100%;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    .hero {
        padding: 80px 20px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 5px 0;
    }
    
    section {
        padding: 40px 0;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .server-info {
        padding: 25px;
    }
    
    .info-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .join-button {
        padding: 10px 25px;
        font-size: 1rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .server-info {
        padding: 20px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}

