/* 品牌故事页面样式 */

/* 页面头部 */
.story-header {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.story-header .header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.85) 0%, rgba(205, 133, 63, 0.85) 100%), url(/static/upload/image/20260308/1772963619660901.jpg) center/cover no-repeat;
    z-index: 1;
}

.story-header .header-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url({pboot:sitetplpath}/images/pattern.png) repeat;
    opacity: 0.1;
}

.story-header .container {
    position: relative;
    z-index: 2;
}

.story-header .sub-title {
    color: rgba(255, 255, 255, 0.9);
    font-size: 46px;
    margin-bottom: 20px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.story-header h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 300;
    letter-spacing: 4px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.story-header .desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto -100px;
    line-height: 1.8;
}

.scroll-down {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-down i {
    font-size: 30px;
    color: rgba(255, 0, 0, 0.86);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* 波浪形过渡 - 使用SVG背景 */
.wave-top {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 120px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120'%3E%3Cpath fill='%23f8f5f0' d='M0,30C120,25 240,35 360,30C480,25 600,40 720,35C840,30 960,45 1080,40C1200,35 1320,50 1440,45L1440,120L0,120Z'/%3E%3C/svg%3E");
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    z-index: 1;
}

.wave-bottom {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 120px;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: 1;
}

/* 引用部分 */
.quote-section {
    padding: 100px 0;
    text-align: center;
    position: relative;
    background: linear-gradient(180deg, rgb(209 142 75) 0%, rgb(97 14 14 / 46%) 100%), url(/static/images/242276234.jpg) center / cover no-repeat;
    overflow: hidden;
}

.quote-section::before,
.quote-section::after {
    content: '"';
    font-size: 120px;
    color: #8B4513;
    opacity: 0.15;
    position: absolute;
    font-family: serif;
    font-weight: bold;
}

.quote-section::before {
    top: 30px;
    left: 5%;
}

.quote-section::after {
    bottom: 30px;
    right: 5%;
}

.quote-text {
    font-size: 30px;
    line-height: 1.8;
    color: #333;
    max-width: 900px;
    margin: 0 auto 30px;
    position: relative;
    z-index: 2;
    font-weight: 300;
}

.quote-author {
    font-size: 16px;
    color: #ffffff;
    font-style: italic;
    position: relative;
    z-index: 2;
}

/* 品牌使命与愿景 */
.mission-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #faf8f5 0%, #d09051 100%);
    position: relative;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 2;
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
}

.section-title h2 {
    font-size: 36px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 300;
    letter-spacing: 2px;
}

.section-title p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.title-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #8B4513 0%, #CD853F 100%);
    margin: 0 auto;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.mission-item {
    text-align: center;
    padding: 50px 35px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.mission-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #8B4513 0%, #CD853F 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.mission-item:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.mission-item:hover::before {
    transform: scaleX(1);
}

.mission-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #8B4513 0%, #CD853F 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 36px;
    box-shadow: 0 8px 20px rgba(139, 69, 19, 0.3);
    transition: all 0.4s ease;
}

.mission-item:hover .mission-icon {
    transform: scale(1.1) rotate(5deg);
}

.mission-item h3 {
    font-size: 22px;
    color: #333;
    margin-bottom: 18px;
    font-weight: 500;
}

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

/* 发展历程 */
.history-section {
    padding: 100px 0;
    background: linear-gradient(360deg, rgb(249 248 245) 0%, rgb(250 248 245 / 77%) 100%), url(/static/images/index-7.jpg) center / cover;
    position: relative;
}

.history-section::before {
    content: '';
    position: absolute;
    top: 200px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: #e0e0e0;
}

.timeline {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 30px;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff4d4f;
    z-index: 3;
}

.timeline-year {
    font-size: 18px;
    font-weight: bold;
    color: #ff4d4f;
    text-align: center;
}

.timeline-content {
    flex: 1;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
    max-width: 350px;
}

.timeline-content .timeline-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
}

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

.timeline-content:hover .timeline-image img {
    transform: scale(1.05);
}

.timeline-content .timeline-text {
    padding: 10px;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 40px;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 40px;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.timeline-content h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 500;
}

.timeline-content p {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* 加盟合作 */
.join-section {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(180deg, #faf8f5 0%, #ececec 100%);
    position: relative;
    overflow: hidden;
}

.join-section h2 {
    font-size: 36px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 300;
    letter-spacing: 2px;
}

.join-section p {
    font-size: 16px;
    color: #c8c8c8;
    margin-bottom: 60px;
}

/* 社区餐饮市场前景 */
.market-section {
    background: linear-gradient(135deg, #a17345 0%, #CD853F 100%);
    color: #fff;
    padding: 80px 20px;
    border-radius: 20px;
    margin: 0 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(139, 69, 19, 0.3);
    position: relative;
}

.market-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.market-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
    position: relative;
    z-index: 2;
}

.market-text {
    flex: 1;
    min-width: 280px;
}

.market-text h3 {
    font-size: 28px;
    margin-bottom: 25px;
    font-weight: 500;
}

.market-text p {
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 35px;
    opacity: 0.95;
}

.market-stats {
    display: flex;
    gap: 25px;
    margin-bottom: 35px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    flex: 1;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 13px;
    opacity: 0.9;
}

.btn-join {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    background: #fff;
    color: #8B4513;
    border-radius: 30px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-join:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.btn-join i {
    transition: transform 0.3s ease;
}

.btn-join:hover i {
    transform: translateX(5px);
}

.market-image,
.case-carousel {
    flex: 1;
    min-width: 320px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    height: 350px;
}

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

.market-image:hover img {
    transform: scale(1.05);
}

/* 成功案例轮播 */
.case-carousel {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.case-swiper {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
}

.case-swiper .swiper-wrapper {
    height: 100%;
}

.case-swiper .swiper-slide {
    height: 100%;
}

.case-slide-item {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.case-slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-slide-item:hover img {
    transform: scale(1.05);
}

.case-slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 60px 20px 20px;
    color: #fff;
}

.case-slide-overlay h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.case-slide-overlay p {
    font-size: 14px;
    opacity: 0.9;
}

.case-pagination {
    bottom: 15px !important;
}

.case-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.case-pagination .swiper-pagination-bullet-active {
    background: #fff;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .history-section::before {
        left: 20px;
    }
    
    .timeline-item {
        flex-direction: column !important;
        align-items: flex-start;
        padding-left: 60px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin: 0;
        max-width: 100%;
    }
    
    .timeline-item::before {
        left: 14px;
        top: 30px;
    }
    
    .timeline-content .timeline-image {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .story-header {
        height: 450px;
    }
    
    .story-header h1 {
        font-size: 32px;
    }
    
    .wave-top,
    .wave-bottom {
        height: 60px;
    }
    
    .quote-section {
        padding: 60px 0;
    }
    
    .quote-text {
        font-size: 20px;
    }
    
    .mission-section,
    .history-section,
    .join-section {
        padding: 60px 0;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .join-section h2 {
        font-size: 28px;
    }
    
    .mission-grid {
        grid-template-columns: 1fr;
    }
    
    .market-section {
        padding: 50px 15px;
        margin: 0 10px;
        border-radius: 16px;
    }
    
    .market-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .market-text,
    .market-image,
    .case-carousel {
        width: 100%;
        min-width: auto;
        padding: 0;
    }
    
    .market-text {
        text-align: center;
    }
    
    .market-text h3 {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .market-text p {
        font-size: 14px;
        line-height: 1.8;
        margin-bottom: 25px;
    }
    
    .market-stats {
        justify-content: center;
        gap: 15px;
        margin-bottom: 25px;
    }
    
    .stat-item {
        padding: 20px 15px;
    }
    
    .stat-value {
        font-size: 26px;
    }
    
    .case-carousel {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .story-header {
        height: 380px;
    }
    
    .story-header h1 {
        font-size: 26px;
        letter-spacing: 2px;
    }
    
    .wave-top,
    .wave-bottom {
        height: 40px;
    }
    
    .quote-text {
        font-size: 18px;
    }
    
    .timeline-item {
        padding-left: 70px;
    }
    
    .market-section {
        padding: 40px 15px;
        margin: 0 8px;
        border-radius: 12px;
    }
    
    .market-content {
        gap: 25px;
    }
    
    .market-text h3 {
        font-size: 22px;
        margin-bottom: 15px;
    }
    
    .market-text p {
        font-size: 13px;
        line-height: 1.7;
        margin-bottom: 20px;
    }
    
    .market-stats {
        flex-direction: row;
        gap: 10px;
    }
    
    .stat-item {
        padding: 15px 10px;
        min-width: 0;
    }
    
    .stat-value {
        font-size: 22px;
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    .market-chart {
        height: 250px;
        padding: 10px;
    }
    
    .btn-join {
        padding: 12px 25px;
        font-size: 14px;
    }
}