/* X007 主题 - 首页样式 */

/* ========== Layout Container Override ========== */
.main-content .container {
    max-width: 100%;
    width: 100%;
    padding: 0;
    height: auto;
    display: block;
}

/* ========== Video Hero Section (default主题风格) ========== */
.video-hero {
    position: relative;
    width: 100%;
    height: 480px;
    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: #000;
    z-index: 0;
}

.video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    opacity: 1;
    transition: opacity 0.3s;
}

.video-loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

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

.video-title {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 20px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out;
}

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

.video-cta-btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--accent);
    color: #fff;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.video-cta-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

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

/* ========== Hero Section ========== */
.hero {
    position: relative;
    min-height: 600px;
    background: url('../images/hero-bg.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.9) 0%, rgba(44, 82, 130, 0.85) 100%);
}
.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);
}

@media (max-width: 768px) {
    .hero { min-height: 450px; }
    .hero h1 { font-size: 32px; }
    .hero p { font-size: 16px; }
    .hero-btns { flex-direction: column; align-items: center; }
}

/* ========== 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 {
    margin: 30px 0;
}
.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;
}
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.category-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 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;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.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;
}
.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);
}
.why-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: var(--bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.why-icon i {
    font-size: 28px;
    color: var(--accent);
}
.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;
}

/* ========== Section 基础样式 (default主题风格) ========== */
.popular-categories,
.feature-products,
.latest-articles,
.main-categories,
.popular-products,
.service-promise {
    padding: 60px 20px;
    background: #fff;
}

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

.section-header-inline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.section-title {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.section-label-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-icon {
    font-size: 20px;
    color: var(--accent);
    display: inline-block;
}

.section-icon i {
    font-size: inherit;
    line-height: 1;
    color: var(--accent);
}

.section-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--accent);
    text-transform: uppercase;
}

.section-title h2 {
    margin: 0;
    font-size: 32px;
    font-weight: 600;
    color: #0f0f0f;
}

.section-description {
    margin: 0 0 40px 0;
    color: #666;
    line-height: 1.6;
    font-size: clamp(14px, 0.833vw, 16px);
    max-width: 100%;
}

.section-actions {
    margin-top: 10px;
}

.btn-see-all {
    display: inline-block;
    padding: 10px 24px;
    background: var(--primary);
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s;
}

.btn-see-all:hover {
    background: var(--accent);
    color: #fff;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.category-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.category-image {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    background: #f5f5f5;
}

.category-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.category-name {
    padding: 15px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #0f0f0f;
}

/* Service Promise - 与Default一致的class名称以支持装修编辑 */
.service-promise-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-item {
    text-align: center;
    padding: 30px 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

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

.service-item h4 {
    font-size: 18px;
    color: #0f0f0f;
    margin-bottom: 10px;
}

.service-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.article-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.article-image {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
}

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

.article-content {
    padding: 20px;
}

.article-date {
    font-size: 12px;
    color: #999;
}

.article-content h4 {
    font-size: 18px;
    margin: 10px 0;
}

.article-content h4 a {
    color: #0f0f0f;
    text-decoration: none;
}

.article-content h4 a:hover {
    color: var(--accent);
}

.article-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.btn-read-more {
    font-size: 14px;
    color: var(--accent);
    text-decoration: none;
}

.btn-read-more:hover {
    text-decoration: underline;
}

/* Land Banner */
.land-banner {
    position: relative;
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    text-align: center;
    color: #fff;
}

.land-banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/banner01.jpg') no-repeat center center/cover;
    opacity: 0.2;
}

.land-banner-content {
    position: relative;
    z-index: 1;
}

.land-banner h3 {
    font-size: 36px;
    margin-bottom: 15px;
}

.land-banner p {
    font-size: 18px;
    margin-bottom: 25px;
    opacity: 0.9;
}

.land-banner-btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--accent);
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}

.land-banner-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* Contact Info */
.contact-info-section {
    padding: 60px 20px;
    background: #f9f9f9;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 28px;
    color: #0f0f0f;
    margin-bottom: 15px;
}

.contact-info p {
    color: #666;
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    color: #0f0f0f;
}

.contact-item i {
    font-size: 20px;
    color: var(--accent);
}

.contact-form-wrapper h4 {
    font-size: 20px;
    color: #0f0f0f;
    margin-bottom: 20px;
}

.contact-form .form-group {
    margin-bottom: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    font-size: 14px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
    outline: none;
}

.btn-submit {
    width: 100%;
    padding: 12px 24px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: var(--accent);
}

/* ========== 产品轮播 ========== */
.popular-products-carousel {
    position: relative;
    padding: 0 50px;
}

.carousel-container {
    overflow: hidden;
}

.carousel-wrapper {
    display: flex;
    gap: 20px;
    transition: transform 0.3s ease;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e5e5e5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.carousel-nav:hover {
    background: #ff6b35;
    border-color: #ff6b35;
    color: #fff;
}

.carousel-nav:hover i {
    color: #fff;
}

.carousel-nav.carousel-prev {
    left: 0;
}

.carousel-nav.carousel-next {
    right: 0;
}

.carousel-nav.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========== 产品卡片 ========== */
.product-card {
    flex: 0 0 calc(25% - 15px);
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
}

.product-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

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

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

.product-actions {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2;
}

.product-card:hover .product-actions {
    opacity: 1;
}

.btn-add-to-cart {
    display: inline-block;
    padding: 12px 30px;
    background: #fff;
    color: #000;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.btn-add-to-cart:hover {
    background: #ff6b35;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.product-quick-actions {
    display: flex;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.product-quick-actions li {
    margin: 0;
}

.product-quick-actions a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s;
    color: #0f0f0f;
}

.product-quick-actions a:hover {
    background: #000;
    color: #fff;
    transform: scale(1.1);
}

.product-info {
    padding: 15px;
}

.product-name {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-name a {
    color: #0f0f0f;
    text-decoration: none;
}

.product-name a:hover {
    color: #ff6b35;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
}

.product-price .current-price {
    color: #e74c3c;
}

/* Responsive */
@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .promise-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .product-card {
        flex: 0 0 calc(33.333% - 14px);
    }
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .articles-grid {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .section-header-inline {
        flex-direction: column;
        gap: 15px;
    }
}

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