/* 
 * 淘好建站 - 首页专用样式
 * taohaoshop.com
 */

/* ========== Hero Banner ========== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--deep-gray) 0%, var(--charcoal) 50%, var(--brick-red) 100%);
    overflow: hidden;
    margin-top: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/hero-bg.jpg') center/cover no-repeat;
    opacity: 0.2;
    z-index: 0;
}

.hero-diagonal {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(135deg, transparent 40%, var(--brick-red) 40%, var(--brick-red) 60%, transparent 60%);
    opacity: 0.3;
    transform: skewX(-15deg);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 64px;
    color: var(--light-brown);
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 24px;
    color: var(--cream);
    margin-bottom: 40px;
    font-weight: 300;
    letter-spacing: 2px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 45%;
    max-width: 600px;
    z-index: 1;
    border: 4px solid var(--light-brown);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

/* ========== 核心优势板块 ========== */
.features-section {
    padding: 100px 0;
    background: var(--cream);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 42px;
    color: var(--deep-gray);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--brick-red), var(--light-brown));
}

.section-subtitle {
    font-size: 18px;
    color: var(--rust);
    margin-top: 20px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--deep-gray);
    border: 3px solid var(--light-brown);
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(196, 165, 116, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.feature-card:hover::before {
    top: 100%;
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border-color: var(--brick-red);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: var(--brick-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--light-brown);
    border: 3px solid var(--cream);
}

.feature-title {
    font-size: 20px;
    color: var(--light-brown);
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.feature-text {
    color: var(--cream);
    font-size: 14px;
    line-height: 1.8;
}

/* ========== 快速入口 ========== */
.quick-access {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--charcoal) 0%, var(--deep-gray) 100%);
    position: relative;
}

.access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.access-card {
    background: var(--cream);
    border: 2px solid var(--brick-red);
    padding: 35px 25px;
    text-align: center;
    transition: all 0.4s ease;
    cursor: pointer;
}

.access-card:hover {
    background: var(--brick-red);
    transform: translateY(-8px);
}

.access-card:hover .access-title,
.access-card:hover .access-text {
    color: var(--cream);
}

.access-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--brick-red);
    transition: color 0.4s ease;
}

.access-card:hover .access-icon {
    color: var(--cream);
}

.access-title {
    font-size: 18px;
    color: var(--deep-gray);
    text-transform: uppercase;
    margin-bottom: 10px;
    transition: color 0.4s ease;
}

.access-text {
    font-size: 13px;
    color: var(--charcoal);
    transition: color 0.4s ease;
}

/* ========== 资讯列表 ========== */
.news-section {
    padding: 100px 0;
    background: var(--cream);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* ========== CTA 板块 ========== */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--brick-red) 0%, var(--rust) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.cta-title {
    font-size: 48px;
    color: var(--light-brown);
    text-transform: uppercase;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.cta-text {
    font-size: 20px;
    color: var(--cream);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 48px;
    }

    .hero-image {
        width: 40%;
        right: 2%;
    }
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-image {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 80%;
        margin: 40px auto 0;
    }

    .hero-buttons {
        justify-content: center;
    }

    .section-title {
        font-size: 32px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .cta-title {
        font-size: 32px;
    }

    .cta-text {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }
}
