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

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

/* 颜色变量定义 */
:root {
    --primary-blue: #1e88e5;
    --primary-blue-dark: #1565c0;
    --primary-orange: #ff9800;
    --primary-orange-dark: #f57c00;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f5f7fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
}

/* 头部导航 */
header {
    background-color: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo h1 {
    color: var(--primary-blue);
    font-size: 28px;
    font-weight: bold;
}

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

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

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-blue);
}

.contact-btn a {
    text-decoration: none;
    background-color: var(--primary-orange);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.contact-btn a:hover {
    background-color: var(--primary-orange-dark);
}

/* 英雄区 */
.hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: white;
    padding: 120px 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: bold;
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

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

.btn-primary {
    background-color: var(--primary-orange);
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--primary-orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-blue);
    transform: translateY(-2px);
}

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

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-weight: bold;
}

.section-header p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

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

/* 服务介绍 */
.services {
    background-color: var(--bg-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-card {
    background-color: var(--bg-white);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-blue);
}

.service-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--primary-orange);
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
    font-size: 16px;
}

/* 产品展示 */
.products-preview {
    background-color: var(--bg-light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

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

.product-img {
    height: 200px;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-card h3 {
    font-size: 20px;
    margin: 20px 20px 10px;
    color: var(--text-dark);
}

.product-card p {
    margin: 0 20px 20px;
    color: var(--text-light);
    font-size: 16px;
}

.learn-more {
    display: inline-block;
    margin: 0 20px 20px;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.learn-more:hover {
    color: var(--primary-blue-dark);
}

/* 项目案例 */
.cases-preview {
    background-color: var(--bg-white);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.case-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 300px;
    transition: all 0.3s ease;
}

.case-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.case-card:hover img {
    transform: scale(1.05);
}

.case-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 30px;
    transition: all 0.3s ease;
}

.case-card:hover .case-overlay {
    padding-top: 50px;
}

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

.case-overlay p {
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.case-card:hover .case-overlay p {
    opacity: 1;
}

.view-all-cases {
    display: block;
    text-align: center;
    margin-top: 40px;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
}

.view-all-cases:hover {
    color: var(--primary-blue-dark);
}

/* 关于我们预览 */
.about-preview {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: white;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.about-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: bold;
}

.about-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.8;
}

/* 联系方式 */
.contact-section {
    background-color: var(--bg-white);
}

.contact-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-content h2 {
    font-size: 36px;
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-weight: bold;
}

.contact-content p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
    color: var(--text-dark);
}

.contact-icon {
    font-size: 24px;
    color: var(--primary-orange);
}

/* 页脚 */
footer {
    background-color: var(--text-dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.footer-logo h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: white;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
}

.footer-links h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: white;
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-orange);
}

.footer-contact h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: white;
}

.qrcode-container {
    margin-bottom: 20px;
    padding-top: 10px;
    /* text-align: center; */
}

.wechat-qrcode {
    width: 120px;
    height: 120px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.wechat-qrcode:hover {
    transform: scale(1.05);
}

.qrcode-container p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 0;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    margin-bottom: 12px;
}

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

/* 产品中心页面 */
.page-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
}

.products-section {
    background-color: var(--bg-white);
    padding: 80px 0;
}

.product-detail {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.product-detail.reverse {
    flex-direction: row-reverse;
}

.product-image {
    flex: 1;
    max-width: 500px;
}

.product-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.product-info {
    flex: 1;
}

.product-info h2 {
    font-size: 30px;
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-weight: bold;
}

.product-desc {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 30px;
    line-height: 1.8;
}

.product-features h3 {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.product-features ul {
    list-style: none;
    margin-bottom: 30px;
}

.product-features li {
    padding: 8px 0 8px 25px;
    position: relative;
    color: var(--text-dark);
    font-size: 16px;
}

.product-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-orange);
    font-weight: bold;
}

/* 项目案例页面 */
.case-categories {
    background-color: var(--bg-white);
    padding: 30px 0;
    border-bottom: 1px solid var(--border-color);
}

.category-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.category-btn {
    background-color: var(--bg-light);
    color: var(--text-dark);
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover,
.category-btn.active {
    background-color: var(--primary-blue);
    color: white;
}

.cases-section {
    background-color: var(--bg-white);
    padding: 60px 0;
}

.cases-section .cases-grid {
    gap: 40px;
}

.cases-section .case-card {
    height: auto;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cases-section .case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.cases-section .case-card img {
    height: 250px;
    object-fit: cover;
}

.case-info {
    padding: 25px;
}

.case-category {
    color: var(--primary-orange);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
}

.case-info h3 {
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.case-desc {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.6;
}

/* 解决方案页面 */
.solutions-overview {
    background-color: var(--bg-white);
    padding: 60px 0;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.solution-card {
    background-color: var(--bg-white);
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    width: 300px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.solution-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-blue);
}

.solution-icon {
    font-size: 64px;
    margin-bottom: 20px;
    color: var(--primary-orange);
}

.solution-card h2 {
    font-size: 24px;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.solution-card p {
    font-size: 16px;
    color: var(--text-light);
}

.solutions-detail {
    background-color: var(--bg-light);
    padding: 80px 0;
}

.solution-item {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 40px;
    background-color: var(--bg-white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.solution-item.reverse {
    flex-direction: row-reverse;
}

.solution-image {
    flex: 1;
    max-width: 400px;
}

.solution-image img {
    width: 100%;
    border-radius: 10px;
}

.solution-info {
    flex: 1;
}

.solution-info h3 {
    font-size: 28px;
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-weight: bold;
}

.solution-desc {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 25px;
    line-height: 1.8;
}

.solution-info h4 {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.solution-info ul {
    list-style: none;
    margin-bottom: 20px;
}

.solution-info li {
    padding: 8px 0 8px 25px;
    position: relative;
    color: var(--text-dark);
    font-size: 16px;
}

.solution-info li:before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-orange);
    font-weight: bold;
}

/* 关于我们页面 */
.company-intro {
    background-color: var(--bg-white);
    padding: 80px 0;
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.intro-content {
    flex: 1;
}

.intro-content h2 {
    font-size: 30px;
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-weight: bold;
}

.intro-content p {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.8;
}

.intro-image {
    flex: 1;
    max-width: 500px;
}

.intro-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.our-advantages {
    background-color: var(--bg-light);
    padding: 80px 0;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.advantage-card {
    background-color: var(--bg-white);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-blue);
}

.advantage-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--primary-orange);
}

.advantage-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.advantage-card p {
    color: var(--text-light);
    font-size: 16px;
}

.development-history {
    background-color: var(--bg-white);
    padding: 80px 0;
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.timeline:before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--primary-blue);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 0;
    width: 20px;
    height: 20px;
    background-color: var(--primary-orange);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-content {
    width: 45%;
    padding: 20px;
    background-color: var(--bg-white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-content h3 {
    font-size: 20px;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.timeline-date {
    font-size: 14px;
    color: var(--primary-orange);
    font-weight: 500;
    margin-bottom: 10px;
}

.timeline-content p {
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.6;
}

.about-contact {
    background-color: var(--bg-light);
    padding: 60px 0;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero h2 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .section-header h2 {
        font-size: 30px;
    }
    
    .product-detail,
    .solution-item,
    .company-intro {
        flex-direction: column;
        text-align: center;
    }
    
    .product-detail.reverse,
    .solution-item.reverse {
        flex-direction: column;
    }
    
    .timeline:before {
        left: 30px;
    }
    
    .timeline-dot {
        left: 30px;
    }
    
    .timeline-content {
        width: 100%;
        margin-left: 70px !important;
    }
}

@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        height: auto;
        padding: 20px;
    }
    
    .nav-links {
        margin: 20px 0;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-links li {
        margin: 10px 20px;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons a {
        width: 200px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .page-header h1 {
        font-size: 30px;
    }
    
    .product-info h2,
    .solution-info h3,
    .intro-content h2 {
        font-size: 26px;
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero h2 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .category-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .category-btn {
        width: 200px;
    }
    
    .solution-card {
        width: 100%;
        margin: 0 20px;
    }
    
    .solution-item,
    .product-detail {
        padding: 20px;
    }
}

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

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* 滚动监听 */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--primary-blue);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}