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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* 头部样式 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    text-decoration: none;
}

.nav {
    display: flex;
    gap: 20px;
}

.nav-item {
    color: #666;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-item:hover,
.nav-item.active {
    color: #2c3e50;
    background-color: #f0f0f0;
}

/* 主内容样式 */
.main {
    padding: 40px 0;
}



/* 联系页面特定样式 */
.contact-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-top: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-title {
    color: #333;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #28a745;
    padding-bottom: 0.5rem;
    text-align: center;
}

.contact-content {
    line-height: 1.8;
    color: #555;
}

.contact-content p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
        height: auto;
        padding: 10px 20px;
    }
    
    .nav {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
        gap: 10px;
    }
    

    
    .logo {
        font-size: 20px;
    }
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 1.2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #28a745;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    font-size: 2rem;
    margin-right: 1.5rem;
    color: #28a745;
}

.contact-info h3 {
    margin: 0 0 0.5rem 0;
    color: #444;
    font-size: 1.2rem;
}

.contact-link {
    color: #007bff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

.contact-note {
    text-align: center;
    font-style: italic;
    color: #666;
    padding: 1rem;
    background-color: #f1f8e9;
    border-radius: 8px;
    border: 1px solid #c8e6c9;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .contact-container {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .contact-title {
        font-size: 1.8rem;
    }
    
    .contact-item {
        padding: 1rem;
    }
    
    .contact-icon {
        font-size: 1.8rem;
        margin-right: 1rem;
    }
    
    .contact-info h3 {
        font-size: 1.1rem;
    }
    
    .contact-link {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .contact-container {
        padding: 1.2rem;
    }
    
    .contact-title {
        font-size: 1.6rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .contact-icon {
        margin-right: 0;
    }
    
    .contact-content p {
        font-size: 1rem;
    }
}

/* 链接悬停效果增强 */
.contact-link {
    position: relative;
}

.contact-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #0056b3;
    transition: width 0.3s ease;
}

.contact-link:hover::after {
    width: 100%;
}

/* 页脚样式 */
.footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 30px 0;
    margin-top: 60px;
}

.footer .container {
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        height: auto;
        padding: 20px;
    }
    
    .nav {
        margin-top: 15px;
    }
}
