/* x032 主题 - 首页商城样式 (科技蓝色系) */

/* ========== Video Hero Section ========== */
.video-hero {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

.video-background.loaded,
.video-background.playing {
    opacity: 1;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 50%, #1976d2 100%);
    z-index: 0;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.7) 0%, rgba(21, 101, 192, 0.5) 100%);
    z-index: 2;
}

.video-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #fff;
    padding: 20px;
    max-width: 800px;
}

.video-title {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(0, 176, 255, 0.5);
    animation: x032-fadeInUp 1s ease-out;
}

.video-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: x032-fadeInUp 1s ease-out 0.2s both;
}

.video-cta-btn {
    display: inline-block;
    padding: 14px 36px;
    background: var(--accent);
    color: #fff;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    animation: x032-fadeInUp 1s ease-out 0.4s both;
    box-shadow: 0 4px 20px rgba(0, 176, 255, 0.4);
}

.video-cta-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 176, 255, 0.5);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== Hero Section (图片背景) ========== */
.hero {
    position: relative;
    min-height: 600px;
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.9) 0%, rgba(21, 101, 192, 0.85) 100%);
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

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

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

.btn-outline-white {
    display: inline-block;
    padding: 12px 28px;
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    border-radius: var(--radius);
    font-size: 14px;
    transition: all 0.3s;
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--primary);
}

/* ========== About Section ========== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-images {
    position: relative;
}

.about-main {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-small {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 45%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--white);
}

.about-content h2 {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 10px;
}

.title-line {
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin-bottom: 25px;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 15px;
}

.about-features i {
    color: var(--accent);
    font-size: 18px;
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-small {
        right: 0;
        bottom: -20px;
    }
}

/* ========== Categories Section ========== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.category-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 1px solid var(--border);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.category-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon i {
    font-size: 28px;
    color: var(--white);
}

.category-card h4 {
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 8px;
}

.category-card span {
    font-size: 13px;
    color: var(--text-muted);
}

@media (max-width: 992px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== Featured Products ========== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 1px solid var(--border);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.product-img {
    position: relative;
    padding-top: 100%;
    background: var(--bg);
    overflow: hidden;
}

.product-img a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent);
    color: var(--white);
    padding: 4px 12px;
    font-size: 12px;
    border-radius: var(--radius);
}

.product-info {
    padding: 20px;
}

.product-info h4 {
    font-size: 15px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-info h4 a {
    color: var(--text);
}

.product-info h4 a:hover {
    color: var(--accent);
}

.product-model {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
}

.btn-view {
    font-size: 13px;
    color: var(--accent);
    padding: 6px 12px;
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    transition: all 0.3s;
}

.btn-view:hover {
    background: var(--accent);
    color: var(--white);
}

.section-cta {
    text-align: center;
    margin-top: 50px;
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== Why Choose Us ========== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.why-card {
    background: var(--white);
    padding: 35px 25px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.why-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.why-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-icon i {
    font-size: 28px;
    color: var(--white);
}

.why-card h4 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 12px;
}

.why-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

@media (max-width: 992px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .why-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== CTA Section ========== */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 80px 0;
    text-align: center;
    color: var(--white);
}

.cta-content h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* ========== 装修 Hero：编辑器浮动按钮（由模板内联样式迁入） ========== */
.theme-x032 .video-hero .video-edit-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
    background: rgba(21, 101, 192, 0.9);
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.theme-x032 .video-hero .video-edit-btn:hover {
    background: rgba(21, 101, 192, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* ========== 特色商品：保留 default 的装修 DOM，在 X032 用网格展示（非 default 的横向轮播视觉） ========== */
.theme-x032 .x032-feature-products .feature-products-carousel {
    position: relative;
}

.theme-x032 .x032-feature-products .carousel-nav {
    display: none;
}

.theme-x032 .x032-feature-products .carousel-container {
    overflow: visible;
}

.theme-x032 .x032-feature-products .carousel-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    transform: none !important;
}

@media (max-width: 992px) {
    .theme-x032 .x032-feature-products .carousel-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .theme-x032 .x032-feature-products .carousel-wrapper {
        grid-template-columns: 1fr;
    }
}

/* ========== 热门分类：X032 卡片圆角与强调色 ========== */
.theme-x032 .x032-popular-categories .category-card {
    border-radius: var(--radius-lg);
    transition: transform 0.25s, box-shadow 0.25s;
}

.theme-x032 .x032-popular-categories .category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* ========== 服务承诺：覆盖 default store.css 的橙色条，使用 X032 主色渐变 ========== */
.theme-x032 .x032-service-promise.service-promise-bar {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    background: linear-gradient(135deg, #0d47a1 0%, #1976d2 50%, #00b0ff 100%);
    box-shadow: 0 4px 16px rgba(13, 71, 161, 0.25);
}

/* ========== 最新文章：与首页区块统一的间距 ========== */
.theme-x032 .x032-latest-articles .articles-carousel {
    position: relative;
}

.theme-x032 .x032-latest-articles .carousel-nav {
    background: rgba(21, 101, 192, 0.85);
    color: #fff;
}

.theme-x032 .x032-latest-articles .carousel-nav:hover {
    background: var(--accent);
}
