/* 首页专属样式 */

/* Hero轮播区域 */
.hero-carousel {
    width: 100%;
    background-color: white;
    padding: 16px 0;
}

/* Swiper容器 */
.hero-swiper {
    width: 100%;
    padding-bottom: 50px;
}

.hero-swiper .swiper-slide {
    display: flex;
    justify-content: center;
}

.carousel-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 16px;
}

.carousel-slide {
    scroll-snap-align: center;
    flex-shrink: 0;
    width: 85vw;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    position: relative;
}

.hero-swiper .carousel-slide {
    width: 100%;
}

.carousel-slide:hover .slide-image {
    transform: scale(1.05);
}

.slide-image {
    width: 100%;
    aspect-ratio: 2/1;
    background-position: center;
    background-size: cover;
    transition: transform 0.5s ease;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 24px 32px;
    color: white;
    width: 100%;
}

.slide-badge {
    display: inline-block;
    padding: 4px 12px;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: bold;
    color: white;
    border-radius: 9999px;
}

.slide-badge.brand {
    background-color: #2b8cee;
}

.slide-badge.promo {
    background-color: #f97316;
}

.slide-badge.available {
    background-color: #22c55e;
}

.slide-content h3 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 8px;
}

.slide-content p {
    color: #e5e7eb;
    font-size: 14px;
}

/* Swiper分页器样式 */
.hero-swiper .swiper-pagination {
    bottom: 10px;
}

.hero-swiper .swiper-pagination-bullet {
    background: #2b8cee;
    opacity: 0.5;
    width: 8px;
    height: 8px;
}

.hero-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    width: 24px;
    border-radius: 4px;
}

/* 主内容区域 */
.main-section {
    width: 100%;
    padding: 40px 16px;
    max-width: 1280px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 32px;
}

.section-title {
    font-size: 32px;
    font-weight: bold;
    line-height: 1.2;
}

.section-subtitle {
    color: #64748b;
}

.split-layout {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: flex-start;
}

/* 左侧：二维码区域（固定） */
.qr-section {
    width: 100%;
}

.qr-sticky {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 32px;
    border: 1px solid #f1f5f9;
}

.qr-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    color: #2b8cee;
}

.qr-header .material-symbols-outlined {
    font-size: 30px;
}

.qr-header h3 {
    font-size: 20px;
    font-weight: bold;
    color: #111418;
}

.qr-codes {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.qr-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background-color: #f6f7f8;
    padding: 16px;
    border-radius: 8px;
}

.qr-code {
    background-color: white;
    padding: 8px;
    border-radius: 4px;
    flex-shrink: 0;
}

.qr-code-image {
    width: 80px;
    height: 80px;
    background-color: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
}

.qr-info {
    display: flex;
    flex-direction: column;
}

.qr-info .title {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 4px;
}

.qr-info .description {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 8px;
}

.qr-info .badge {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    width: fit-content;
}

.qr-info .badge.primary {
    color: #2b8cee;
    background-color: rgba(43, 140, 238, 0.1);
}

.qr-info .badge.orange {
    color: #f97316;
    background-color: rgba(249, 115, 22, 0.1);
}

.qr-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #f1f5f9;
}

.qr-footer p {
    font-size: 12px;
    text-align: center;
    color: #94a3b8;
}

/* 右侧：图片展示区域 */
.gallery-section {
    width: 100%;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.gallery-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 12px;
    background-color: white;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #f1f5f9;
}

.gallery-image {
    width: 100%;
    aspect-ratio: 16/9;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.gallery-image:hover .image-overlay {
    background-color: rgba(0, 0, 0, 0.1);
}

.image-overlay {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.3s;
}

.gallery-content {
    display: flex;
    flex-direction: column;
}

.gallery-content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.gallery-content-header p {
    font-size: 18px;
    font-weight: bold;
    color: #111418;
}

.gallery-content-header .material-symbols-outlined {
    color: #2b8cee;
}

.gallery-content p:last-child {
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

/* 特色功能区域 */
.features-section {
    background-color: white;
    padding: 64px 0;
}

.features-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

.features-header {
    text-align: center;
    margin-bottom: 48px;
}

.features-header h2 {
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 16px;
}

.features-divider {
    width: 64px;
    height: 4px;
    background-color: #2b8cee;
    margin: 0 auto;
    border-radius: 9999px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: all 0.3s;
}

.feature-icon.blue {
    background-color: rgba(59, 130, 246, 0.1);
}

.feature-icon.green {
    background-color: rgba(34, 197, 94, 0.1);
}

.feature-icon.orange {
    background-color: rgba(249, 115, 22, 0.1);
}

.feature-icon.purple {
    background-color: rgba(147, 51, 234, 0.1);
}

.feature-item:hover .feature-icon.blue {
    background-color: #2b8cee;
}

.feature-item:hover .feature-icon.green {
    background-color: #22c55e;
}

.feature-item:hover .feature-icon.orange {
    background-color: #f97316;
}

.feature-item:hover .feature-icon.purple {
    background-color: #9333ea;
}

.feature-icon .material-symbols-outlined {
    font-size: 30px;
    transition: color 0.3s;
}

.feature-icon.blue .material-symbols-outlined {
    color: #2b8cee;
}

.feature-icon.green .material-symbols-outlined {
    color: #22c55e;
}

.feature-icon.orange .material-symbols-outlined {
    color: #f97316;
}

.feature-icon.purple .material-symbols-outlined {
    color: #9333ea;
}

.feature-item:hover .feature-icon .material-symbols-outlined {
    color: white;
}

.feature-item h3 {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 8px;
}

.feature-item p {
    font-size: 14px;
    color: #64748b;
}

/* 品牌故事区域 */
.brand-story-section {
    padding: 64px 0;
    background-color: #f6f7f8;
}

.brand-story-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
}

.brand-story-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.brand-story-label {
    color: #2b8cee;
    font-weight: bold;
    letter-spacing: 0.1em;
    font-size: 14px;
    text-transform: uppercase;
}

.brand-story-title {
    font-size: 32px;
    font-weight: bold;
    color: #111418;
    line-height: 1.2;
}

.brand-story-text {
    color: #64748b;
    line-height: 1.8;
    font-size: 18px;
}

.brand-story-cta {
    padding-top: 16px;
}

.brand-story-cta button {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2b8cee;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
    transition: gap 0.3s;
}

.brand-story-cta button:hover {
    gap: 12px;
}

.brand-story-cta button .material-symbols-outlined {
    font-size: 14px;
}

.brand-story-image {
    flex: 1;
    position: relative;
}

.brand-story-image-wrapper {
    position: relative;
    z-index: 10;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.brand-story-image-wrapper img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.brand-story-decoration {
    position: absolute;
    bottom: -24px;
    right: -24px;
    width: 100%;
    height: 100%;
    border: 2px solid #2b8cee;
    border-radius: 16px;
    z-index: 0;
    display: none;
}

/* 响应式设计 - 首页 */
@media (min-width: 768px) {
    .carousel-slide {
        width: 600px;
    }

    .hero-swiper .carousel-slide {
        width: 100%;
    }

    .slide-content h3 {
        font-size: 30px;
    }

    .slide-content p {
        font-size: 16px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item.full-width {
        grid-column: span 2;
    }

    .gallery-item.full-width .gallery-image {
        aspect-ratio: 21/9;
    }

    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .brand-story-container {
        flex-direction: row;
    }

    .brand-story-decoration {
        display: block;
    }
}

@media (min-width: 1024px) {
    .carousel-slide {
        width: 800px;
    }

    .hero-swiper .carousel-slide {
        width: 100%;
    }

    .split-layout {
        flex-direction: row;
    }

    .qr-section {
        width: 33.333%;
    }

    .qr-sticky {
        position: sticky;
        top: 96px;
        height: fit-content;
    }

    .gallery-section {
        width: 66.667%;
        height: fit-content;
    }
}
