:root {
    --primary: #2B5AED;
    --primary-dark: #1E3FA8;
    --primary-light: #4B7BFF;
    --secondary: #00C4B3;
    --dark: #1A1F3D;
    --gray: #6B7280;
    --light: #F3F4F6;
    --white: #FFFFFF;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.15);
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    
    --base-font-size: 16px;
    --base-line-height: 1.6;
}

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: var(--base-font-size);
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: var(--base-line-height);
    color: var(--dark);
    background: var(--white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 进度条 */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--primary);
    z-index: 1000;
    width: 0;
    transition: width 0.3s ease;
}

/* 主横幅 */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 180px 20px 180px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/dianzicaiping/hero-bg.webp');
    background-size: cover;
    background-position: center;
    z-index: 1;
}
.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgb(0 0 0 / 90%), rgb(103 129 211 / 30%));
    z-index: 2;
}
.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 40px;
    font-weight: 700;
}

.hero-features {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-number {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.hero-btns {
    display: flex;
    gap: 24px;
}

.video-btn,
.primary-btn {
    padding: 16px 32px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.video-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.primary-btn {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(43, 90, 237, 0.3);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(43, 90, 237, 0.4);
}

.hero-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* 核心优势 */
.features {
    padding: 100px 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    margin-bottom: 16px;
    color: var(--dark);
}

.section-subtitle {
    font-size: 18px;
    color: var(--gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    padding: 40px;
    background: var(--light);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--white);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-icon i {
    font-size: 28px;
    color: var(--primary);
}

.feature-content h3 {
    font-size: 20px;
    margin-bottom: 16px;
}

.feature-content ul {
    list-style: none;
}

.feature-content li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    color: var(--gray);
}

.feature-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

/* 应用场景 */
.scenarios {
    padding: 100px 0;
    background: var(--light);
}

.scenario-slider {
    position: relative;
    overflow: hidden;
    padding: 0 40px;
}

.scenario-track {
    display: flex;
    transition: transform 0.3s ease;
}

.scenario-card {
    flex: 0 0 100%;
    padding: 0 15px;
}

.scenario-card img {
    width: 100%;
    height: 500px;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}

.scenario-content {
    text-align: center;
}

.scenario-content h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    background: var(--white);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.slider-btn.prev {
    left: 0;
}

.slider-btn.next {
    right: 0;
}

/* 成功案例 */
.cases {
    padding: 100px 0;
    background: var(--white);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.case-card {
    background: var(--light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.case-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.case-content {
    padding: 24px;
}

.case-content h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.case-content p {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.6;
}

/* 视频弹窗 */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .hero-text h1 {
        font-size: 40px;
    }
    
    .features-grid,
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hero {
        padding: 80px 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-features {
        justify-content: center;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-image {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 32px;
    }

    .features-grid,
    .cases-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 30px;
    }

    .section-title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .hero-features {
        flex-direction: column;
        align-items: center;
    }

    .hero-btns {
        flex-direction: column;
        gap: 16px;
    }

    .video-btn,
    .primary-btn {
        width: 100%;
        justify-content: center;
    }
}

/* 性能优化 */
.hero-content,
.feature-card,
.case-card {
    will-change: transform;
    transform: translateZ(0);
}

/* 图片懒加载 */
.lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy.loaded {
    opacity: 1;
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    :root {
        --white: #1A1F3D;
        --light: #2A2F4D;
        --dark: #F3F4F6;
        --gray: #9CA3AF;
    }
}

/* 减少动画 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* 产品优势 */
.advantages {
    padding: 100px 0;
    background: var(--white);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.advantage-card {
    padding: 40px;
    background: var(--light);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.advantage-icon i {
    font-size: 32px;
    color: var(--primary);
}

.advantage-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.advantage-card p {
    color: var(--gray);
    margin-bottom: 24px;
}

.advantage-features {
    list-style: none;
    text-align: left;
}

.advantage-features li {
    padding: 8px 0;
    color: var(--dark);
    position: relative;
    padding-left: 24px;
}

.advantage-features li::before {
    content: '✓';
    color: var(--primary);
    position: absolute;
    left: 0;
}

/* 解决方案 */
.solutions {
    padding: 100px 0;
    background: var(--light);
}

.solutions-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.solution-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.tab-btn {
    padding: 16px 32px;
    border: none;
    background: var(--white);
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: var(--dark);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.tab-btn:hover::after {
    width: 100%;
}

.tab-btn.active::after {
    width: 100%;
}

.tab-btn i {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.tab-btn:hover i {
    transform: scale(1.1);
}

.tab-btn.active {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.solution-panel {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.solution-panel.active {
    display: grid;
    opacity: 1;
}

.solution-info h3 {
    font-size: 32px;
    margin-bottom: 20px;
}

.solution-info p {
    color: var(--gray);
    margin-bottom: 24px;
}

.solution-features {
    list-style: none;
    margin-bottom: 32px;
}

.solution-features li {
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
}

.solution-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.2;
}

.solution-btn {
    display: inline-block;
    padding: 16px 32px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.solution-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.solution-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* 联系我们 */
.contact {
    padding: 100px 0;
    background: var(--white);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.info-item {
    text-align: center;
    padding: 40px;
    background: var(--light);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.info-item i {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 20px;
}

.info-item h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.info-item p {
    color: var(--gray);
}

/* 响应式调整 */
@media (max-width: 992px) {
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .solution-panel {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .solution-features {
        text-align: left;
    }

    .solution-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .advantages-grid,
    .contact-info {
        grid-template-columns: 1fr;
    }

    .solution-tabs {
        flex-direction: column;
    }

    .tab-btn {
        width: 100%;
        justify-content: center;
    }
} 