﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

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

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

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

    .logo img {
        height: 50px;
        margin-right: 15px;
    }

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #000000;
}

.logo-subtext {
    font-size: 14px;
    color: #666;
    margin-top: 2px;
}

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

    .nav-menu li {
        margin-left: 30px;
        position: relative;
    }

    .nav-menu a {
        color: #333;
        text-decoration: none;
        font-size: 16px;
        transition: color 0.3s;
        padding: 5px 0;
        display: block;
        font-weight: 500;
    }

        .nav-menu a:hover, .nav-menu a.active {
            color: #1a4b8c;
        }

        .nav-menu a.active {
            border-bottom: 2px solid #1a4b8c;
        }

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #333;
    font-size: 24px;
    cursor: pointer;
}

/* 语言切换 */
.language-switcher {
    display: flex;
    align-items: center;
}

    .language-switcher select {
        background: #f8f9fa;
        color: #333;
        border: 1px solid #ddd;
        padding: 6px 12px;
        border-radius: 4px;
        cursor: pointer;
    }

/* 主横幅 */
.main-banner {
    background: #990101;
    color: white;
    padding: 20px 0;
    text-align: center;
}

.banner-content h1 {
    font-size: 42px;
    font-weight: 700;
}

.banner-content p {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.banner-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.btn-primary {
    background: #ff6b35;
    color: white;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    display: inline-block;
}

    .btn-primary:hover {
        background: #e55a2b;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

.btn-secondary {
    background: transparent;
    color: white;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    display: inline-block;
    border: 2px solid white;
}

    .btn-secondary:hover {
        background: rgba(255,255,255,0.1);
        transform: translateY(-2px);
    }

/* 主要内容区域 */
.main-content {
    padding: 20px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

    .section-title h2 {
        font-size: 32px;
        color: #1a4b8c;
        margin-bottom: 15px;
        font-weight: 700;
    }

    .section-title p {
        font-size: 18px;
        color: #666;
        max-width: 800px;
        margin: 0 auto;
    }

/* 服务卡片 */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.service-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

    .service-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    }

.service-icon {
    width: 80px;
    height: 80px;
    background: #f0f7ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

    .service-icon i {
        font-size: 36px;
        color: #1a4b8c;
    }

.service-card h3 {
    font-size: 22px;
    color: #1a4b8c;
    margin-bottom: 15px;
}

.service-card p {
    color: #666;
    margin-bottom: 20px;
}

.service-link {
    display: inline-block;
    color: #1a4b8c;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s;
}

    .service-link:hover {
        color: #ff6b35;
    }

/* 考试信息 */
.exam-info {
    background: #f0f7ff;
    padding: 60px 0;
    margin: 60px 0;
}

.exam-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.exam-item {
    background: white;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

    .exam-item h3 {
        font-size: 20px;
        color: #1a4b8c;
        margin-bottom: 15px;
    }

    .exam-item p {
        color: #666;
        margin-bottom: 15px;
    }

/* 新闻部分 */
.news-section {
    margin-bottom: 60px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

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

.news-image {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.news-content {
    padding: 20px;
}

.news-date {
    color: #999;
    font-size: 14px;
    margin-bottom: 10px;
}

.news-title {
    font-size: 18px;
    color: #1a4b8c;
    margin-bottom: 10px;
    font-weight: 600;
}

.news-excerpt {
    color: #666;
    margin-bottom: 15px;
}

.news-link {
    color: #ff6b35;
    font-weight: 500;
    text-decoration: none;
}

/* 合作伙伴 */
.partners {
    background: #f8f9fa;
    padding: 60px 0;
    text-align: center;
}

.partner-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
}

.partner-logo {
    height: 60px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s;
}

    .partner-logo:hover {
        filter: grayscale(0%);
        opacity: 1;
    }

/* 底部 */
.footer {
    background: #333333;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: #ff6b35;
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-section p, .footer-section a {
    color: #ccc;
    margin-bottom: 10px;
    display: block;
    text-decoration: none;
    transition: color 0.3s;
}

    .footer-section a:hover {
        color: #ff6b35;
    }

.contact-info i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    color: #ff6b35;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

    .social-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        background: rgba(255,255,255,0.1);
        border-radius: 50%;
        transition: all 0.3s;
    }

        .social-links a:hover {
            background: #ff6b35;
            transform: translateY(-3px);
        }

.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

        .nav-menu.active {
            display: flex;
        }

        .nav-menu li {
            margin: 10px 0;
        }

    .mobile-menu-btn {
        display: block;
    }

    .banner-content h1 {
        font-size: 32px;
    }

    .banner-content p {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }

    .logo {
        margin-bottom: 10px;
    }

    .banner-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .banner-content h1 {
        font-size: 28px;
    }

    .section-title h2 {
        font-size: 28px;
    }
}

@media (max-width: 576px) {
    .logo-text {
        font-size: 20px;
    }

    .services, .exam-grid, .news-grid, .footer-content {
        grid-template-columns: 1fr;
    }

    .partner-logos {
        gap: 20px;
    }
}
