/**
 * 烟花收藏家小程序详情页专用样式
 */

/* ========== Banner区 ========== */
.banner-section {
    position: relative;
    min-height: 56vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    padding-top: 64px;
    overflow: hidden;
}

.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.6;
}

.banner-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    padding: 40px 48px;
    color: white;
}

.banner-text {
    text-align: left;
    margin-left: 0px;
}

.banner-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.4;
}

.banner-subtitle {
    font-size: 1rem;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.banner-image {
    flex-shrink: 0;
    width: 280px;
    height: 539px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
}

.cta-wrapper {
    position: relative;
    display: inline-block;
}

.cta-button {
    display: inline-block;
    padding: 14px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

/* ========== 二维码弹窗模态框 ========== */
.qr-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.qr-modal.active {
    opacity: 1;
    visibility: visible;
}

.qr-modal-content {
    background: white;
    padding: 32px;
    border-radius: var(--radius);
    text-align: center;
    position: relative;
    max-width: 90%;
    animation: qrModalIn 300ms ease;
}

@keyframes qrModalIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.qr-modal-header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 20px;
    margin-top: -6px;
}

.qr-modal-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.qr-modal-close {
    position: absolute;
    right: -16px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-modal-close:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) rotate(90deg);
}

.qr-modal-image {
    width: 260px;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin: 0 auto;
}

.qr-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

/* ========== 功能展示区 ========== */
.features-section {
    padding: 80px 24px;
    background: var(--bg-white);
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.carousel-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 40px;
}

.carousel-item {
    flex: 1;
    max-width: 280px;
    height: 539px;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform: scale(0.95);
    opacity: 0.7;
    overflow: hidden;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
}

.carousel-item.active {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    opacity: 1;
}

.carousel-item:hover {
    opacity: 0.9;
}

.feature-description {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.feature-description h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.feature-description p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* 移动端功能项说明（桌面端隐藏） */
.feature-item-mobile {
    display: none;
    text-align: center;
    margin-top: 16px;
}

.feature-item-mobile h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.feature-item-mobile p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========== 背后故事区 ========== */
.story-section {
    padding: 80px 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.story-container {
    max-width: 700px;
    margin: 0 auto;
}

.story-content {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 2;
}

.story-content p {
    margin-bottom: 20px;
}

.story-content p:last-child {
    margin-bottom: 0;
}

.story-qr {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
}

.qr-item {
    text-align: center;
}

.qr-image {
    width: 156px;
    height: 156px;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 8px;
    overflow: hidden;
}

.qr-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qr-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ========== 响应式 ========== */
@media (max-width: 767px) {
    .banner-section {
        min-height: auto;
        padding: 100px 24px 60px;
    }

    .banner-content {
        flex-direction: column;
        padding: 20px 16px;
    }

    .banner-text {
        text-align: center;
    }

    .banner-title {
        font-size: 1.5rem;
    }

    .banner-subtitle {
        font-size: 0.85rem;
        margin-bottom: 24px;
    }

    .banner-image {
        width: 220px;
        height: 423px;
        margin-top: 32px;
    }

    .banner-image img {
        border-radius: 20px;
    }

    .features-container {
        padding: 0 16px;
    }

    /* 移动端纵向平铺 */
    .carousel-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .carousel-item {
        width: 100%;
        max-width: 280px;
        height: 539px;
        transform: scale(1);
        opacity: 1;
    }

    .carousel-item.active {
        transform: scale(1);
    }

    .carousel-item img {
        border-radius: var(--radius);
    }

    /* 移动端显示每张图的说明 */
    .feature-item-mobile {
        display: block;
    }

    /* 移动端隐藏统一的说明区 */
    .feature-description {
        display: none;
    }

    .story-qr {
        gap: 32px;
    }

    .qr-image {
        width: 130px;
        height: 130px;
    }
}
