/* ========================================
   辅材云平台官网 - 首页样式
   ======================================== */

/* Hero 区域 */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 64px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 50%, var(--secondary-color) 100%);
    z-index: -1;
}

/* Hero 轮播 */
.hero-slider {
    position: relative;
    text-align: center;
    color: var(--white);
    padding: 40px 20px;
    max-width: 900px;
    width: 100%;
}

.hero-slide {
    opacity: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    transition: opacity 0.8s ease;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    pointer-events: auto;
}

.hero-slide h1 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 简单文字页 - 字体更大 */
.hero-slide[data-style="simple"] h1 {
    font-size: 56px;
}

/* 多行文字页 - 字体稍小 */
.hero-slide[data-style="multiline"] h1 {
    font-size: 36px;
}

.hero-slide .highlight {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 600;
}

.hero-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.hero-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dots .dot.active {
    background: var(--white);
    transform: scale(1.2);
}

.hero-dots .dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* 核心功能模块 */
.features-section {
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

/* 产品价值 */
.value-section {
    background: var(--bg-color);
}

.value-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.value-item {
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    min-width: 200px;
}

.value-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    color: var(--white);
    font-size: 24px;
}

.value-item h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--secondary-color);
}

.value-item p {
    font-size: 14px;
    color: var(--text-light);
}

.value-arrow {
    color: var(--primary-color);
    font-size: 24px;
}

/* 客户案例 */
.cases-section {
    background: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(255, 107, 53, 0.1));
    border-radius: var(--radius-md);
}

.stat-label {
    font-size: 16px;
    color: var(--text-light);
    margin-top: 12px;
}

/* 关于我们简介 */
.about-section {
    background: linear-gradient(135deg, var(--secondary-color), #2D4A7C);
    color: var(--white);
}

.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-content h2 {
    font-size: 32px;
    margin-bottom: 24px;
}

.about-content p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 16px;
    opacity: 0.9;
}

.about-content .btn-secondary {
    margin-top: 20px;
    border-color: var(--white);
    color: var(--white);
}

.about-content .btn-secondary:hover {
    background: var(--white);
    color: var(--secondary-color);
}

/* ========================================
   响应式设计
   ======================================== */

/* 平板 */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero-content h1 {
        font-size: 40px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 手机 */
@media (max-width: 768px) {
    .hero-slide h1 {
        font-size: 24px;
    }
    
    .hero-slide[data-style="simple"] h1 {
        font-size: 36px;
    }
    
    .hero-slide[data-style="multiline"] h1 {
        font-size: 22px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .value-flow {
        flex-direction: column;
    }
    
    .value-arrow {
        transform: rotate(90deg);
    }
    
    .value-item {
        min-width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .counter {
        font-size: 36px;
    }
}
