/* style/index.css */
/* 页面完整样式代码 - 注意：所有选择器必须使用BEM命名规则（双下划线__连接） */

/* General page styling */
.page-index {
    background-color: #1a1a2e; /* Body background from shared.css, page content should adapt */
    color: #ffffff; /* Light text for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.page-index__dark-bg {
    background-color: #1a1a2e;
    color: #ffffff;
}

.page-index__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-index__section {
    padding: 80px 20px;
    text-align: center;
}

.page-index__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-index h1, .page-index h2, .page-index h3 {
    color: #ffffff; /* Default for dark sections */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-index__light-bg h1, .page-index__light-bg h2, .page-index__light-bg h3 {
    color: #017439; /* Brand color for titles on light background */
}

.page-index p {
    margin-bottom: 15px;
}

/* CTA Buttons - General Styling */
.page-index__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-index__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Ensure long words break */
    max-width: 100%; /* Ensure button doesn't exceed container */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.page-index__cta-button--register,
.page-index__cta-button--login {
    background: #C30808; /* Custom color for register/login */
    color: #FFFF00; /* Custom font color */
}

.page-index__cta-button--register:hover,
.page-index__cta-button--login:hover {
    background: #a30606;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-index__cta-button--primary {
    background: #017439; /* Main brand color */
    color: #ffffff;
}

.page-index__cta-button--primary:hover {
    background: #005a2d;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-index__cta-button--secondary {
    background: #ffffff;
    color: #017439;
    border: 2px solid #017439;
}

.page-index__cta-button--secondary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Video Section */
.page-index__video-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure spacing from fixed header */
    background-color: #1a1a2e; /* Match body background */
}

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

.page-index__video-link {
    display: block;
    text-decoration: none;
    position: relative;
    width: 100%;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__video-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-index__video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
    object-fit: cover;
    pointer-events: none; /* Prevent video controls from interfering with click event on parent <a> */
}

.page-index__video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.page-index__video-link:hover .page-index__video-overlay {
    opacity: 1;
}

.page-index__video-click-hint {
    color: #ffffff;
    font-size: 20px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    padding: 12px 25px;
    background: rgba(195, 8, 8, 0.8); /* Use register/login button color */
    border-radius: 5px;
    white-space: nowrap;
}

.page-index__video-cta {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.page-index__play-now-button {
    display: inline-block;
    padding: 15px 40px;
    background: #C30808; /* Custom color for Play Now */
    color: #FFFF00; /* Custom font color */
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.page-index__play-now-button:hover {
    background: #a30606;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Hero Section */
.page-index__hero-section {
    padding: 80px 20px;
    text-align: center;
    background-color: #1a1a2e; /* Dark background */
    color: #ffffff;
}

.page-index__hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-index__main-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 25px;
    color: #FFFF00; /* Highlight H1 with custom font color */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-index__hero-description {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: #f0f0f0;
}

/* Features Section */
.page-index__features-section {
    padding: 80px 20px;
    background-color: #ffffff; /* Light background */
    color: #333333;
}

.page-index__features-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #017439;
}

.page-index__features-description {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: #555555;
}

.page-index__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.page-index__feature-item {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 450px; /* Ensure consistent height for cards */
    display: flex;
    flex-direction: column;
}

.page-index__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-index__feature-icon {
    width: 100%; /* Make image fill card width */
    height: 200px; /* Fixed height for consistency */
    object-fit: cover; /* Cover the area, crop if necessary */
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure it behaves as a block element */
    max-width: 100%; /* Responsive image */
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-index__feature-item-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #017439;
}

.page-index__feature-item-text {
    font-size: 16px;
    color: #666666;
    flex-grow: 1; /* Allow text to grow and push CTA to bottom */
}

.page-index__section-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
    flex-wrap: wrap;
}


/* About Brand Section */
.page-index__about-brand-section {
    padding: 80px 20px;
    background-color: #1a1a2e; /* Dark background */
    color: #ffffff;
    text-align: center;
}

.page-index__about-brand-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #FFFF00; /* Highlight title */
}

.page-index__about-brand-description {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: #f0f0f0;
}

.page-index__brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.page-index__brand-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 500px; /* Consistent height */
    display: flex;
    flex-direction: column;
}

.page-index__brand-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-index__brand-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    max-width: 100%;
    min-width: 200px;
    min-height: 200px;
}

.page-index__brand-item-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #017439; /* Brand color */
}

.page-index__brand-item-text {
    font-size: 16px;
    color: #cccccc;
    flex-grow: 1;
}

/* FAQ Section */
.page-index__faq-section {
    padding: 80px 20px;
    background-color: #ffffff; /* Light background */
    color: #333333;
}

.page-index__faq-main-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #017439;
    text-align: center;
}

.page-index__faq-description {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: #555555;
    text-align: center;
}

.page-index__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-index__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-index__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #f0f0f0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-index__faq-question:hover {
    background: #e5e5e5;
    border-color: #d0d0d0;
}

.page-index__faq-item.active .page-index__faq-question {
    background: #e5e5e5;
    border-color: #d0d0d0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.page-index__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: #333333;
    pointer-events: none;
}

.page-index__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #017439;
    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: 32px;
    height: 32px;
}

.page-index__faq-item.active .page-index__faq-toggle {
    color: #C30808; /* Highlight when active */
    transform: rotate(45deg); /* Plus to X effect */
}