/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #62a8ea;
    --secondary-color: #4a90e2;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f5f5f5;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 40px;
    position: relative;
}

.nav-brand h1 {
    font-size: 28px;
    color: var(--primary-color);
    margin: 0;
}

.nav-brand .tagline {
    font-size: 12px;
    color: var(--text-light);
    display: block;
    margin-top: -5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 16px;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    transition: all 0.3s;
}

/* 轮播图 */
.banner-slider {
    margin-top: 70px;
    position: relative;
    width: 100%;
    height: calc(100vh - 70px);
    min-height: 700px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    text-align: center;
    color: var(--white);
    background: rgba(0, 0, 0, 0.5);
    padding: 40px 60px;
    border-radius: 10px;
}

.slide-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-content p {
    font-size: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 30px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

.slider-prev:hover,
.slider-next:hover {
    background: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: var(--white);
    width: 30px;
    border-radius: 6px;
}

/* 标语区 */
.slogan-section {
    padding: 60px 0;
    text-align: center;
    background: var(--bg-light);
}

.slogan-section h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.slogan-section p {
    font-size: 18px;
    color: var(--text-light);
}

/* 产品展示 */
.products-section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    color: var(--text-color);
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 50px;
}

.product-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}

.tab-btn {
    padding: 10px 25px;
    border: 2px solid var(--border-color);
    background: var(--white);
    color: var(--text-color);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.product-link {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: var(--bg-light);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.product-info p {
    font-size: 14px;
    color: var(--text-light);
}

.product-card.hidden {
    display: none;
}

/* 核心优势 */
.features-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.feature-card {
    text-align: center;
    padding: 40px 20px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* 新闻资讯 */
.news-section {
    padding: 80px 0;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 50px;
}

.news-item {
    display: flex;
    gap: 30px;
    padding: 30px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.news-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateX(5px);
}

.news-image {
    width: 200px;
    height: 150px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    flex: 1;
}

.news-content h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.news-content p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.8;
}

.news-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--text-light);
}

/* 关于我们预览 */
.about-preview {
    padding: 80px 0;
    background: var(--bg-light);
    text-align: center;
}

.about-content h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-content p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 15px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 16px;
    margin-top: 30px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* 页脚 */
.footer {
    background: #2c3e50;
    color: var(--white);
    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: 20px;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom p {
    margin-bottom: 10px;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

/* 页面Banner */
.page-banner {
    margin-top: 70px;
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    text-align: center;
    color: var(--white);
}

.page-banner h2 {
    font-size: 42px;
}

/* 子导航 */
.sub-nav {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
}

.sub-nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.sub-nav-list a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 16px;
    padding: 8px 20px;
    border-radius: 20px;
    transition: all 0.3s;
}

.sub-nav-list a:hover,
.sub-nav-list a.active {
    background: var(--primary-color);
    color: var(--white);
}

/* 解决方案内容 */
.solution-content {
    padding: 60px 0;
}

.solution-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.solution-image-item {
    width: 100%;
    text-align: center;
}

.solution-image-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* 关于我们页面 */
.about-content-page {
    padding: 60px 0;
}

.about-intro {
    text-align: center;
    margin-bottom: 60px;
}

.about-intro h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-intro .lead {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.about-text {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.about-text p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 20px;
}

.about-features {
    margin-top: 60px;
}

.about-features .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.feature-item {
    text-align: center;
    padding: 30px 20px;
}

.feature-item h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-item p {
    color: var(--text-light);
    line-height: 1.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar .container {
        justify-content: space-between;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        padding: 20px;
        box-shadow: var(--shadow);
        transition: left 0.3s;
        gap: 15px;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
        margin-left: auto;
    }

    .banner-slider {
        height: calc(100vh - 70px);
        min-height: 500px;
    }
    
    .slider-container {
        height: 100%;
    }
    
    .slide {
        height: 100%;
    }

    .slide-content {
        padding: 20px 30px;
    }

    .slide-content h2 {
        font-size: 28px;
    }

    .slide-content p {
        font-size: 16px;
    }

    .slogan-section h2 {
        font-size: 28px;
    }

    .section-title {
        font-size: 28px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .news-item {
        flex-direction: column;
    }

    .news-image {
        width: 100%;
        height: 200px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-tabs {
        gap: 10px;
    }

    .tab-btn {
        padding: 8px 15px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .nav-brand h1 {
        font-size: 22px;
    }

    .banner-slider {
        height: calc(100vh - 70px);
        min-height: 400px;
    }
    
    .slider-container {
        height: 100%;
    }
    
    .slide {
        height: 100%;
    }

    .slide-content h2 {
        font-size: 24px;
    }

    .slide-content p {
        font-size: 14px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .slider-prev,
    .slider-next {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
}

