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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    scroll-behavior: smooth;
}

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

/* 标题样式 */
h1, h2, h3, h4 {
    font-weight: 600;
    color: #1a1a1a;
}

h1 {
    font-size: 48px;
}

h2 {
    font-size: 36px;
}

h3 {
    font-size: 24px;
}

h4 {
    font-size: 18px;
}

/* 导航栏 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo img {
    height: 40px;
    width: auto;
}

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

.nav-links li {
    margin-left: 24px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #007aff;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

/* 英雄区 */
.hero {
    background: url('assets/hero-bg.webp') center/cover no-repeat;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    position: relative;
}

.hero-home {
    background-image: url('assets/hero-bg.webp');
}

.hero-about {
    background-image: url('assets/about-bg.webp');
}

.hero-blog {
    background-image: url('assets/blog-bg.webp');
}

.hero-services {
    background-image: url('assets/services-bg.webp');
}

.hero-contact {
    background-image: url('assets/contact-bg.webp');
}

.hero-products {
    background-image: url('assets/products-bg.webp');
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    max-width: 800px;
    padding: 20px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
    color:white
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #007aff;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background-color: #005bb5;
    transform: translateY(-2px);
}

/* 简介区 */
.intro {
    padding: 60px 0;
    text-align: center;
    background-color: #ffffff;
}

.intro h2 {
    margin-bottom: 20px;
}

.intro p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 30px;
    color: #666;
}

.learn-more {
    color: #007aff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.learn-more:hover {
    color: #005bb5;
    text-decoration: underline;
}

/* 服务亮点 */
.services {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.services h2 {
    text-align: center;
    margin-bottom: 40px;
}

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

.service-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

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

.service-card h3 {
    padding: 20px;
    font-size: 24px;
}

.service-card p {
    padding: 0 20px 20px;
    font-size: 16px;
    color: #666;
}

/* 博客动态 */
.blog {
    padding: 60px 0;
    background-color: #ffffff;
}

.blog h2 {
    text-align: center;
    margin-bottom: 40px;
}

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

.blog-card {
    background-color: #f9f9f9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

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

.blog-card h3 {
    padding: 20px;
    font-size: 22px;
}

.blog-card p {
    padding: 0 20px 20px;
    font-size: 16px;
    color: #666;
}

.read-more {
    display: block;
    padding: 0 20px 20px;
    color: #007aff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #005bb5;
    text-decoration: underline;
}

.view-all {
    display: block;
    text-align: center;
    margin-top: 30px;
    color: #007aff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.view-all:hover {
    color: #005bb5;
    text-decoration: underline;
}

/* 号召行动 */
.cta {
    padding: 60px 0;
    background-color: #007aff;
    color: #ffffff;
    text-align: center;
}

.cta h2 {
    margin-bottom: 20px;
}

.cta p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 30px;
}

.cta .cta-button {
    background-color: #ffffff;
    color: #007aff;
}

.cta .cta-button:hover {
    background-color: #f0f0f0;
    color: #005bb5;
}

/* 页脚 */
footer {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 40px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.footer-logo img {
    height: 40px;
    width: auto;
    margin-bottom: 10px;
}

.footer-logo p {
    font-size: 14px;
    color: #ccc;
}

.footer-links h4,
.footer-contact h4 {
    margin-bottom: 10px;
    color: #ffffff;
}

.footer-links ul {
    list-style: none;
}

.footer-links a,
.footer-contact p {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.8;
}

.footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #ccc;
}

/* 响应式设计 */
@media (max-width: 768px) {
    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 28px;
    }

    h3 {
        font-size: 20px;
    }

    .navbar {
        padding: 15px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
    }

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

    .nav-links li {
        margin: 10px 0;
        text-align: center;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        height: 60vh;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .intro,
    .services,
    .blog,
    .cta {
        padding: 40px 0;
    }

    .intro p,
    .cta p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 14px;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 14px;
    }

    .service-card img,
    .blog-card img {
        height: 160px;
    }
}

/* 图片优化 */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.hero-content,
.intro,
.services,
.blog,
.cta {
    animation: fadeIn 0.6s ease-out;
}

/* 关于我们 - 使命与愿景 */
.mission {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.mission h2 {
    text-align: center;
    margin-bottom: 40px;
}

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

.mission-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.mission-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.mission-card p {
    font-size: 16px;
    color: #666;
}

/* 关于我们 - 团队 */
.team {
    padding: 60px 0;
    background-color: #ffffff;
}

.team h2 {
    text-align: center;
    margin-bottom: 20px;
}

.team p {
    text-align: center;
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 40px;
    color: #666;
}

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

.team-card {
    background-color: #f9f9f9;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.team-card h3 {
    font-size: 22px;
    padding: 20px 20px 10px;
}

.team-card p {
    font-size: 16px;
    padding: 0 20px 20px;
    color: #666;
}

/* 服务 - 案例展示 */
.case-studies {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.case-studies h2 {
    text-align: center;
    margin-bottom: 40px;
}

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

.case-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.case-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.case-card p {
    font-size: 16px;
    color: #666;
}

/* 响应式设计 - 新增模块 */
@media (max-width: 768px) {
    .mission,
    .team,
    .case-studies {
        padding: 40px 0;
    }

    .mission-card,
    .team-card,
    .case-card {
        padding: 15px;
    }

    .team-card img {
        height: 160px;
    }
}

/* 产品 - 产品列表 */
.products {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.products h2 {
    text-align: center;
    margin-bottom: 40px;
}

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

.product-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow marathon: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

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

.product-card h3 {
    padding: 20px;
    font-size: 24px;
}

.product-card p {
    padding: 0 20px 20px;
    font-size: 16px;
    color: #666;
}

.product-card .learn-more {
    display: block;
    padding: 0 20px 20px;
    color: #007aff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
}

.product-card .learn-more:hover {
    text-decoration: underline;
}

/* 产品 - 优势 */
.advantages {
    padding: 60px 0;
    background-color: #ffffff;
}

.advantages h2 {
    text-align: center;
    margin-bottom: 40px;
}

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

.advantage-card {
    text-align: center;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.advantage-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.advantage-card p {
    font-size: 16px;
    color: #666;
}

/* 联系我们 - 联系方式与表单 */
.contact {
    padding: 60px 0;
    background-color: #ffffff;
}

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

.contact-info h3,
.contact-form h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.contact-info p {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}

.contact-info h4 {
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.social-links a {
    display: inline-block;
    margin-right: 15px;
    color: #007aff;
    text-decoration: none;
    font-size: 16px;
}

.social-links a:hover {
    color: #005bb5;
    text-decoration: underline;
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    width: 100%;
    background-color: #f9f9f9;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    align-self: flex-start;
}

.contact-form button:hover {
    background-color: #005bb5;
}

/* 响应式设计 - 新增模块 */
@media (max-width: 768px) {
    .products,
    .advantages,
    .contact {
        padding: 40px 0;
    }

    .product-card img {
        height: 160px;
    }

    .contact-grid {
        gap: 20px;
    }

    .contact-form button {
        width: 100%;
        text-align: center;
    }
}
