/* ==================== 基础样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== 按钮样式 ==================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: #4a90d9;
    color: #fff;
}

.btn-primary:hover {
    background-color: #357abd;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 217, 0.3);
}

.btn-secondary {
    background-color: #fff;
    color: #4a90d9;
    border: 2px solid #4a90d9;
}

.btn-secondary:hover {
    background-color: #4a90d9;
    color: #fff;
    transform: translateY(-2px);
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1em;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9em;
    display: block;
    width: 80%;
    margin: 0 auto;
    text-align: center;
}

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

.navbar {
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8em;
    font-weight: bold;
    color: #4a90d9;
    text-decoration: none;
}

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

.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #4a90d9;
}

.nav-link.active {
    font-weight: 600;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: all 0.3s ease;
}

/* ==================== 首页英雄区域 ==================== */
.hero {
    margin-top: 70px;
    background: linear-gradient(135deg, #667eea 0%, #4a90d9 100%);
    color: #fff;
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/banner.svg') no-repeat center center;
    background-size: cover;
    opacity: 0.9;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3em;
    margin-bottom: 10px;
    font-weight: bold;
}

.hero-subtitle {
    font-size: 2em;
    margin-bottom: 20px;
    font-weight: 600;
}

.hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ==================== 子页面标题区域 ==================== */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #4a90d9 100%);
    color: #fff;
    padding: 100px 0 60px;
    text-align: center;
    margin-top: 70px;
}

.page-title {
    font-size: 3em;
    font-weight: bold;
    margin-bottom: 15px;
}

.page-subtitle {
    font-size: 1.3em;
    opacity: 0.95;
}

/* ==================== 通用区块样式 ==================== */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
    color: #333;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #4a90d9;
    margin: 15px auto 0;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2em;
    color: #666;
    margin-bottom: 40px;
}

/* ==================== 关于我们 ==================== */
.about,
.about-page {
    background-color: #fff;
}

.about {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.about-page {
    padding: 80px 0;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-page .about-content {
    margin-bottom: 60px;
}

.about-text {
    text-align: justify;
    line-height: 2;
}

.about-text h2 {
    font-size: 2em;
    color: #4a90d9;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #4a90d9;
}

.about-text p {
    margin-bottom: 20px;
    color: #555;
    font-size: 1.05em;
}

.about-highlight {
    font-weight: 600;
    color: #4a90d9;
    font-size: 1.15em;
}

.about-divider {
    height: 2px;
    background: linear-gradient(to right, transparent, #4a90d9, transparent);
    margin: 40px 0;
}

/* ==================== CTA 区域 ==================== */
.cta-section {
    text-align: center;
    padding: 60px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.cta-section h3 {
    font-size: 2em;
    color: #333;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 30px;
}

.cta-section .btn {
    margin: 0 10px;
}

/* ==================== 产品展示 ==================== */
.products,
.products-page {
    background-color: #f8f9fa;
}

.products-page {
    padding: 60px 0 80px;
}

.products-page .products-grid {
    margin-bottom: 50px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.product-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.products-page .product-card {
    padding-bottom: 25px;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.product-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    padding: 20px;
}

.products-page .product-image {
    height: 250px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-image svg {
    width: 100px;
    height: 100px;
}

.product-title {
    padding: 20px 20px 10px;
    font-size: 1.3em;
    color: #333;
    margin-bottom: 10px;
}

.products-page .product-title {
    padding: 25px 25px 15px;
    font-size: 1.5em;
}

.product-description {
    padding: 0 20px 20px;
    color: #666;
    line-height: 1.6;
}

.products-page .product-description {
    padding: 0 25px 15px;
    line-height: 1.7;
    font-size: 1em;
}

.product-features {
    list-style: none;
    padding: 0 25px 20px;
    margin: 0;
}

.product-features li {
    color: #555;
    padding: 5px 0;
    font-size: 0.95em;
}

.products-cta {
    text-align: center;
}

.products-page .products-cta {
    padding: 60px;
    background-color: #4a90d9;
    color: #fff;
    border-radius: 15px;
}

.products-cta h3 {
    font-size: 2em;
    margin-bottom: 15px;
}

.products-cta p {
    font-size: 1.2em;
    margin-bottom: 30px;
    opacity: 0.95;
}

.products-page .products-cta .btn {
    background-color: #fff;
    color: #4a90d9;
}

.products-page .products-cta .btn:hover {
    background-color: #f8f9fa;
    color: #357abd;
}

/* ==================== 核心优势 ==================== */
.advantages {
    background-color: #fff;
}

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

.advantage-card {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.advantage-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.advantage-icon svg {
    width: 100%;
    height: 100%;
}

.advantage-title {
    font-size: 1.4em;
    color: #333;
    margin-bottom: 15px;
}

.advantage-description {
    color: #666;
    line-height: 1.7;
}

/* ==================== 联系我们 ==================== */
.contact {
    background-color: #f8f9fa;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 100%;
    height: 100%;
}

.contact-text h3 {
    color: #333;
    margin-bottom: 5px;
    font-size: 1.2em;
}

.contact-text p,
.contact-text a {
    color: #666;
    text-decoration: none;
}

.contact-text a:hover {
    color: #4a90d9;
}

.contact-message {
    background-color: #4a90d9;
    color: #fff;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
}

.contact-message p {
    font-size: 1.1em;
    margin-bottom: 25px;
    line-height: 1.8;
}

/* ==================== 页脚 ==================== */
.footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 60px 0 20px;
}

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

.footer-section h3 {
    font-size: 1.3em;
    margin-bottom: 20px;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.8;
}

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

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #3d566e;
}

.footer-bottom p {
    color: #bdc3c7;
}

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

.product-card,
.advantage-card,
.contact-item {
    animation: fadeInUp 0.6s ease-out;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5em;
    }

    .hero-subtitle {
        font-size: 1.6em;
    }

    .page-title {
        font-size: 2.5em;
    }

    .page-subtitle {
        font-size: 1.1em;
    }

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

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        text-align: center;
        padding: 20px 0;
        transition: left 0.3s ease;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

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

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero-title {
        font-size: 2em;
    }

    .hero-subtitle {
        font-size: 1.3em;
    }

    .hero-description {
        font-size: 1em;
    }

    .section-title {
        font-size: 2em;
    }

    .page-title {
        font-size: 2em;
    }

    .about-text h2 {
        font-size: 1.6em;
    }

    .about-text p {
        font-size: 1em;
    }

    .cta-section {
        padding: 40px 20px;
    }

    .cta-section .btn {
        display: block;
        width: 100%;
        margin: 10px 0;
    }

    .products-grid,
    .products-page .products-grid {
        grid-template-columns: 1fr;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }

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

    .products-cta {
        padding: 40px 20px;
    }

    .products-cta h3 {
        font-size: 1.6em;
    }

    .products-cta p {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 0;
    }

    .hero-title {
        font-size: 1.8em;
    }

    .hero-subtitle {
        font-size: 1.1em;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .page-header {
        padding: 80px 0 40px;
    }

    .page-title {
        font-size: 1.8em;
    }

    .page-subtitle {
        font-size: 1em;
    }
}
