/* style/index-brand-story.css */

/* Base styles for the brand story page */
.page-index-brand-story {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Dark text for light background */
    line-height: 1.6;
    background-color: #f8f8f8; /* Slightly off-white background for main content */
}

.page-index-brand-story__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-index-brand-story__section {
    padding: 60px 0;
    text-align: center;
}

.page-index-brand-story__section-title {
    font-size: 36px;
    color: #000080; /* Dark blue for main titles */
    margin-bottom: 30px;
    font-weight: bold;
}

.page-index-brand-story__text-block {
    font-size: 17px;
    max-width: 900px;
    margin: 0 auto 20px auto;
    text-align: left;
    color: #333333;
}

/* HERO Section */
.page-index-brand-story__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    background: linear-gradient(135deg, #FFD700, #000080); /* Blend brand colors */
    color: #ffffff; /* White text for dark/gradient background */
}

.page-index-brand-story__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-index-brand-story__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-index-brand-story__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
    /* No filter here */
}

.page-index-brand-story__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-index-brand-story__main-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-index-brand-story__intro-text {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: #f0f0f0;
    text-align: center;
}

.page-index-brand-story__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #FFD700; /* Primary brand color */
    color: #000080; /* Dark blue text for contrast */
    text-decoration: none;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
}

.page-index-brand-story__cta-button:hover {
    background: #e6c200; /* Slightly darker gold on hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Introduction Section */
.page-index-brand-story__introduction {
    background-color: #ffffff;
}

/* Journey Section */
.page-index-brand-story__journey {
    background-color: #000080; /* Dark blue background */
    color: #ffffff; /* White text for dark background */
}

.page-index-brand-story__journey .page-index-brand-story__section-title {
    color: #FFD700; /* Gold title for dark background */
}

.page-index-brand-story__journey .page-index-brand-story__text-block {
    color: #f0f0f0;
}

.page-index-brand-story__image-wrapper {
    margin: 40px auto;
    max-width: 800px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-index-brand-story__image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    /* No filter here */
}

/* Philosophy Section */
.page-index-brand-story__philosophy {
    background-color: #f8f8f8;
}

/* Products Section */
.page-index-brand-story__products {
    background-color: #000080; /* Dark blue background */
    color: #ffffff; /* White text for dark background */
}

.page-index-brand-story__products .page-index-brand-story__section-title {
    color: #FFD700; /* Gold title for dark background */
}

.page-index-brand-story__product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-index-brand-story__product-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white */
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.page-index-brand-story__product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-index-brand-story__product-title {
    font-size: 24px;
    color: #FFD700; /* Gold title for product cards */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-index-brand-story__product-title a {
    color: #FFD700; /* Gold link text */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-index-brand-story__product-title a:hover {
    color: #ffffff; /* White on hover */
    text-decoration: underline;
}

.page-index-brand-story__product-card p {
    font-size: 16px;
    color: #f0f0f0;
    text-align: left;
}

/* Future Vision Section */
.page-index-brand-story__future-vision {
    background-color: #ffffff;
}

.page-index-brand-story__cta-group {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping for multiple buttons */
}

.page-index-brand-story__btn-primary,
.page-index-brand-story__btn-secondary {
    display: inline-block;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 2px solid;
}

.page-index-brand-story__btn-primary {
    background: #FFD700;
    color: #000080;
    border-color: #FFD700;
}

.page-index-brand-story__btn-primary:hover {
    background: #e6c200;
    border-color: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-index-brand-story__btn-secondary {
    background: transparent;
    color: #000080;
    border-color: #000080;
}

.page-index-brand-story__btn-secondary:hover {
    background: #000080;
    color: #FFD700;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-index-brand-story__faq {
    background-color: #f8f8f8;
}

.page-index-brand-story__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
    text-align: left;
}

/* FAQ容器样式 */
.page-index-brand-story__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* FAQ默认状态 - 答案隐藏 */
.page-index-brand-story__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 20px;
    opacity: 0;
    background-color: #f9f9f9;
    color: #333333;
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-index-brand-story__faq-item.active .page-index-brand-story__faq-answer {
    max-height: 2000px !important; /* 🚨 使用!important确保优先级，值足够大以容纳任何内容 */
    padding: 20px !important;
    opacity: 1;
    border-radius: 0 0 8px 8px;
}

/* 问题样式 */
.page-index-brand-story__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.page-index-brand-story__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-index-brand-story__faq-question:active {
    background: #eeeeee;
}

/* 问题标题样式 */
.page-index-brand-story__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: #333333;
    pointer-events: none; /* 防止h3标签阻止点击事件 */
}

/* 切换图标 */
.page-index-brand-story__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #000080; /* Dark blue for toggle icon */
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* 防止图标阻止点击事件 */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.page-index-brand-story__faq-item.active .page-index-brand-story__faq-toggle {
    color: #FFD700; /* Gold when active */
    transform: rotate(45deg); /* Rotate for 'x' effect, or simply change text */
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-index-brand-story__section-title {
        font-size: 32px;
    }
    .page-index-brand-story__main-title {
        font-size: 40px;
    }
    .page-index-brand-story__intro-text {
        font-size: 18px;
    }
    .page-index-brand-story__product-title {
        font-size: 22px;
    }
    .page-index-brand-story__product-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-index-brand-story__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile padding for header */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-index-brand-story__section {
        padding: 40px 0;
    }
    .page-index-brand-story__container {
        padding: 0 15px;
    }
    .page-index-brand-story__section-title {
        font-size: 28px;
        margin-bottom: 25px;
    }
    .page-index-brand-story__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-index-brand-story__intro-text {
        font-size: 16px;
        margin-bottom: 25px;
    }
    .page-index-brand-story__cta-button {
        max-width: 100% !important; /* Mobile button width */
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-index-brand-story__image-wrapper {
        margin: 30px auto;
    }
    .page-index-brand-story__image-wrapper img,
    .page-index-brand-story__hero-image img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-index-brand-story__text-block {
        font-size: 16px;
        text-align: justify;
    }
    .page-index-brand-story__product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-index-brand-story__product-card {
        padding: 25px;
    }
    .page-index-brand-story__product-title {
        font-size: 20px;
    }
    .page-index-brand-story__cta-group {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-index-brand-story__btn-primary,
    .page-index-brand-story__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* FAQ Mobile Styles */
    .page-index-brand-story__faq-question {
        padding: 15px;
    }
    .page-index-brand-story__faq-question h3 {
        font-size: 16px;
    }
    .page-index-brand-story__faq-toggle {
        font-size: 24px;
        width: 25px;
        height: 25px;
    }
    .page-index-brand-story__faq-answer {
        padding: 0 15px;
    }
    .page-index-brand-story__faq-item.active .page-index-brand-story__faq-answer {
        padding: 15px !important;
    }
}

@media (max-width: 480px) {
    .page-index-brand-story__main-title {
        font-size: 28px;
    }
    .page-index-brand-story__section-title {
        font-size: 24px;
    }
    .page-index-brand-story__text-block {
        font-size: 15px;
    }
}