/* ================================
   正奥石业官网 - 首页样式
   ================================ */

body {
    display: flex;
    flex-direction: column;
}

.hero {
    order: 1;
}

.product-highlights {
    order: 2;
}

.features {
    order: 3;
}

.contact-cta {
    order: 4;
}

.footer {
    order: 5;
}

/* ====================
   Hero 区域 - Banner轮播
   ==================== */
.hero {
    position: relative;
    margin-top: 70px;
    min-height: 80vh;
    overflow: hidden;
}

.banner-slides {
    position: relative;
    width: 100%;
    height: 80vh;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-slide.active {
    opacity: 1;
    z-index: 1;
}

.banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem;
    max-width: 1560px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.banner-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.banner-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    animation: fadeInUp 1s ease;
}

.banner-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

.btn-banner {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
}

.btn-banner:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* 轮播控制按钮 */
.banner-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--text-dark);
}

.banner-nav-btn:hover {
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.banner-prev {
    left: 20px;
}

.banner-next {
    right: 20px;
}

/* 轮播指示点 */
.banner-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.banner-dot.active {
    background: white;
    transform: scale(1.2);
}

/* 占位符slide */
.placeholder-slide {
    background: linear-gradient(135deg, rgba(45, 52, 54, 0.9), rgba(45, 52, 54, 0.8));
}

.placeholder-slide .banner-content {
    color: white;
}

/* ====================
   核心优势
   ==================== */
.features {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background-color: var(--light-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--accent-color), #357ABD);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* ====================
   产品亮点（容器）
   CardStack 组件在 components.css 中
   ==================== */
.product-highlights {
    padding: 40px 0;
    background-color: var(--secondary-color);
    overflow-x: clip;
}

.product-highlights h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* 产品亮点网格（备用方案，不使用CardStack时） */
.product-highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-highlight-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-highlight-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.product-highlight-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-highlight-content {
    padding: 1.5rem;
}

.product-category {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
}

.product-highlight-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.product-highlight-content p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.product-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.product-link:hover {
    gap: 1rem;
}

/* ====================
   联系我们 CTA
   ==================== */
.contact-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), #1A1A1A);
    color: white;
    text-align: center;
}

.contact-cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-cta-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.contact-cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-cta .btn {
    background-color: white;
    color: var(--primary-color);
}

.contact-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

.contact-cta .btn-outline {
    background-color: transparent;
    color: white;
    border-color: white;
}

/* ====================
   首页响应式
   ==================== */

/* 平板设备 */
@media screen and (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* 手机设备 */
@media screen and (max-width: 768px) {
    .banner-content h1 {
        font-size: 2rem;
    }

    .banner-content p {
        font-size: 1rem;
    }

    .banner-nav-btn {
        width: 40px;
        height: 40px;
    }

    .banner-prev {
        left: 10px;
    }

    .banner-next {
        right: 10px;
    }

    .banner-indicators {
        bottom: 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .features {
        padding: 40px 0;
    }
}

@media screen and (max-width: 480px) {
    .banner-slides {
        min-height: 60vh;
        height: 60vh;
    }

    .banner-content h1 {
        font-size: 1.8rem;
    }

    .banner-content p {
        font-size: 1rem;
    }

    .btn-banner {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    .features h2,
    .product-highlights h2,
    .contact-cta-content h2 {
        font-size: 2rem;
    }

    .product-highlights {
        padding: 2rem 0;
    }

    .contact-cta-actions {
        flex-direction: column;
    }

    .contact-cta .btn {
        width: 100%;
    }
}
