/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: #0066cc;
    transition: color 0.3s ease;
}

a:hover {
    color: #004499;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
header {
    background-color: #004499;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
}

.logo span {
    color: #ff6600;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: #fff;
    font-size: 16px;
}

.nav-links a:hover {
    color: #ffcc00;
}

.nav-links a.active {
    color: #ffcc00;
    font-weight: bold;
}

/* 主要内容区域 */
main {
    margin-top: 65px;
    min-height: calc(100vh - 200px);
}

/* Banner样式 */
.banner {
    background: linear-gradient(135deg, #004499 0%, #0066cc 100%);
    color: #fff;
    padding: 100px 0;
    text-align: center;
}

.banner h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.banner p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #ff6600;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #ff8800;
}

.btn-large {
    padding: 15px 40px;
    font-size: 18px;
}

/* 章节样式 */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    color: #004499;
    margin-bottom: 20px;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin-bottom: 50px;
}

/* 服务卡片 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: #f9f9f9;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-card h3 {
    font-size: 22px;
    color: #004499;
    margin-bottom: 15px;
}

.service-card p {
    color: #666;
    font-size: 14px;
}

/* 关于我们页面样式 */
.about-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 2;
}

.about-content h3 {
    color: #004499;
    font-size: 28px;
    margin-bottom: 20px;
}

.about-content p {
    margin-bottom: 20px;
    font-size: 16px;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-item {
    text-align: center;
    padding: 30px 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.feature-item h4 {
    color: #004499;
    font-size: 20px;
    margin-bottom: 15px;
}

.feature-item p {
    color: #666;
    font-size: 14px;
}

/* 服务详情页面样式 */
.service-detail {
    margin-bottom: 60px;
}

.service-detail h3 {
    color: #004499;
    font-size: 28px;
    margin-bottom: 20px;
}

.service-detail p {
    color: #666;
    font-size: 16px;
    line-height: 2;
    margin-bottom: 15px;
}

.service-detail ul {
    list-style: none;
    margin-top: 20px;
}

.service-detail li {
    padding: 10px 0;
    color: #666;
    font-size: 16px;
    border-bottom: 1px solid #eee;
}

.service-detail li:before {
    content: "✓";
    color: #ff6600;
    font-weight: bold;
    margin-right: 10px;
}

/* 联系我们页面样式 */
.contact-section {
    padding: 80px 0;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.contact-item {
    text-align: center;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 10px;
}

.contact-item h4 {
    color: #004499;
    font-size: 20px;
    margin-bottom: 15px;
}

.contact-item p {
    color: #666;
    font-size: 16px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: #f9f9f9;
    padding: 40px;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #004499;
}

.form-submit {
    width: 100%;
    padding: 15px;
    background-color: #004499;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-submit:hover {
    background-color: #003377;
}

/* 底部样式 */
footer {
    background-color: #003366;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #ffcc00;
}

.footer-section p,
.footer-section a {
    color: #ccc;
    font-size: 14px;
    line-height: 2;
    display: block;
}

.footer-section a:hover {
    color: #fff;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #004499;
    color: #999;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #004499;
        padding: 20px 0;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        margin: 15px 0;
        text-align: center;
    }
    
    .banner h1 {
        font-size: 32px;
    }
    
    .banner p {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 3px 0;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
}
