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

body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

a {
    text-decoration: none;
    color: #333;
}

ul {
    list-style: none;
}

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

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #1a5276;
}

.logo span {
    color: #f39c12;
}

.nav-menu {
    display: flex;
}

.nav-menu li {
    margin-left: 2rem;
}

.nav-menu a {
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #1a5276;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px;
    transition: all 0.3s;
}

/* 页面标题样式 */
.page-title {
    background: linear-gradient(135deg, #1a5276, #3498db);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 80px;
    text-align: center;
}

.page-title h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* 章节标题样式 */
.section-title {
    text-align: center;
    margin: 3rem 0;
}

.section-title h2 {
    font-size: 2rem;
    color: #1a5276;
    position: relative;
    padding-bottom: 1rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #f39c12;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: #1a5276;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #f39c12;
}

.btn-secondary:hover {
    background-color: #e67e22;
}

/* 卡片样式 */
.card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

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

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.2rem;
    color: #1a5276;
    margin-bottom: 0.5rem;
}

/* 页脚样式 */
.footer {
    background-color: #1a5276;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

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

.footer-section h3 {
    margin-bottom: 1rem;
    color: #f39c12;
}

.footer-section p,
.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: white;
    transition: color 0.3s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #3498db;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 1s ease-out;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .nav-menu {
        position: absolute;
        right: 0;
        top: 80px;
        background-color: white;
        width: 50%;
        height: calc(100vh - 80px);
        flex-direction: column;
        align-items: center;
        justify-content: space-around;
        transform: translateX(100%);
        transition: transform 0.5s;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu li {
        margin: 0;
        opacity: 0;
    }

    .burger {
        display: block;
    }

    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .toggle .line2 {
        opacity: 0;
    }

    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    @keyframes navLinkFade {
        from {
            opacity: 0;
            transform: translateX(50px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
}

/* 首页样式 */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero-banner.jpg') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 8rem 0;
    margin-top: 80px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.about-us {
    padding: 3rem 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.products {
    padding: 3rem 0;
    background-color: #f8f9fa;
}

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

.certifications {
    padding: 3rem 0;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.cert-item {
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cert-item i {
    font-size: 3rem;
    color: #1a5276;
    margin-bottom: 1rem;
}

/* 关于我们页面样式 */
.company-info {
    padding: 3rem 0;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: #1a5276;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -12px;
    background-color: white;
    border: 4px solid #f39c12;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-left {
    left: 0;
}

.timeline-right {
    left: 50%;
}

.timeline-left::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid white;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent white;
}

.timeline-right::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid white;
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
}

.timeline-right::after {
    left: -13px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.timeline-year {
    color: #1a5276;
    font-weight: bold;
}

.team {
    padding: 3rem 0;
    background-color: #f8f9fa;
}

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

.team-member {
    text-align: center;
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

/* 产品服务页面样式 */
.product-categories {
    padding: 3rem 0;
}

.category-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.category-tab {
    padding: 0.8rem 2rem;
    margin: 0 0.5rem;
    background-color: #f8f9fa;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.category-tab.active,
.category-tab:hover {
    background-color: #1a5276;
    color: white;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-item {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.product-item:hover {
    transform: translateY(-5px);
}

.product-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-details {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.2rem;
    color: #1a5276;
    margin-bottom: 0.5rem;
}

.product-description {
    color: #666;
    margin-bottom: 1rem;
}

/* 成功案例页面样式 */
.case-filter {
    padding: 3rem 0 1rem;
    text-align: center;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    margin: 0 0.5rem 0.5rem;
    background-color: #f8f9fa;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
    background-color: #1a5276;
    color: white;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.case-item {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.case-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.case-content {
    padding: 1.5rem;
}

.case-title {
    font-size: 1.3rem;
    color: #1a5276;
    margin-bottom: 0.5rem;
}

.case-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* 新闻资讯页面样式 */
.news-search {
    padding: 3rem 0 1rem;
    text-align: center;
}

.search-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
}

.search-form input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
}

.search-form button {
    padding: 0.8rem 2rem;
    background-color: #1a5276;
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

.news-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.news-category {
    padding: 0.6rem 1.5rem;
    margin: 0 0.5rem 0.5rem;
    background-color: #f8f9fa;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.news-category.active,
.news-category:hover {
    background-color: #1a5276;
    color: white;
}

.news-list {
    padding: 2rem 0;
}

.news-item {
    display: flex;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.news-item img {
    width: 300px;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 1.5rem;
    flex: 1;
}

.news-title {
    font-size: 1.3rem;
    color: #1a5276;
    margin-bottom: 0.5rem;
}

.news-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.news-excerpt {
    color: #666;
    margin-bottom: 1rem;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.pagination li {
    margin: 0 0.5rem;
}

.pagination a {
    padding: 0.6rem 1rem;
    background-color: #f8f9fa;
    border-radius: 5px;
    transition: all 0.3s;
}

.pagination a.active,
.pagination a:hover {
    background-color: #1a5276;
    color: white;
}

/* 招聘中心页面样式 */
.recruitment-info {
    padding: 3rem 0;
}

.job-list {
    padding: 3rem 0;
    background-color: #f8f9fa;
}

.job-item {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.job-item:hover {
    transform: translateY(-5px);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.job-title {
    font-size: 1.3rem;
    color: #1a5276;
}

.job-salary {
    color: #f39c12;
    font-weight: bold;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.job-meta span {
    margin-right: 2rem;
    color: #666;
}

.job-description {
    color: #666;
    margin-bottom: 1.5rem;
}

/* 联系我们页面样式 */
.contact-info {
    padding: 3rem 0;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-item i {
    font-size: 3rem;
    color: #1a5276;
    margin-bottom: 1rem;
}

.contact-form {
    padding: 3rem 0;
    background-color: #f8f9fa;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.map {
    padding: 3rem 0;
}

.faq {
    padding: 3rem 0;
    background-color: #f8f9fa;
}

.faq-item {
    background-color: white;
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 1.5rem;
    background-color: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: #f8f9fa;
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
}

.faq-answer.active {
    max-height: 500px;
    padding: 1.5rem;
}

.faq-toggle {
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.faq-toggle.active {
    transform: rotate(45deg);
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::before {
        left: 60px;
        border: medium solid white;
        border-width: 10px 10px 10px 0;
        border-color: transparent white transparent transparent;
    }

    .timeline-left::after,
    .timeline-right::after {
        left: 18px;
    }

    .timeline-right {
        left: 0%;
    }

    .news-item {
        flex-direction: column;
    }

    .news-item img {
        width: 100%;
        height: 200px;
    }

    .job-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .job-salary {
        margin-top: 0.5rem;
    }
}

/* 懒加载图片样式 */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy-load.loaded {
    opacity: 1;
}

/* 滚动动画 */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s;
}

.scroll-animate.animated {
    opacity: 1;
    transform: translateY(0);
}