@charset "UTF-8";

/* ===== 基础样式 ===== */
.inner-page {
    min-height: 100vh;
    background-color: var(--bg-primary, #ffffff);
    color: var(--text-primary, #1a1a2e);
}

/* 确保内页body使用正确的背景和文字颜色 */
.inner-page body {
    background-color: var(--bg-primary, #ffffff);
    color: var(--text-primary, #1a1a2e);
}

.inner-hero {
    padding: 3rem 0;
    text-align: center;
    background: rgba(15, 20, 25, 0.95);
    border-bottom: 2px solid rgba(254, 221, 0, 0.2);
    color: var(--text-white);
}

.inner-hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-yellow, #FEDD00);
    margin-bottom: 1rem;
}

.inner-hero .hero-description {
    font-size: 1.1rem;
    color: var(--text-white);
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.inner-content-section {
    padding: 3rem 0;
    /* 默认浅色背景使用深色文字 */
    background-color: var(--bg-primary, #ffffff) !important;
    color: var(--text-primary, #1a1a2e) !important;
}

/* 重置所有内页内容区域的文字颜色，然后根据背景设置 */
.inner-content-section * {
    color: inherit;
}

/* 浅色背景区域的文字颜色 */
.inner-content-section:not(:nth-child(even)) {
    background-color: var(--bg-primary, #ffffff) !important;
    color: var(--text-primary, #1a1a2e) !important;
}

.inner-content-section:not(:nth-child(even)) .inner-section-title {
    color: var(--primary-yellow, #FEDD00) !important;
}

.inner-content-section:not(:nth-child(even)) .inner-section-subtitle {
    color: var(--text-secondary, #666) !important;
}

.inner-content-section:not(:nth-child(even)) .content-text,
.inner-content-section:not(:nth-child(even)) .content-text p,
.inner-content-section:not(:nth-child(even)) p,
.inner-content-section:not(:nth-child(even)) h1,
.inner-content-section:not(:nth-child(even)) h2,
.inner-content-section:not(:nth-child(even)) h3,
.inner-content-section:not(:nth-child(even)) h4,
.inner-content-section:not(:nth-child(even)) h5,
.inner-content-section:not(:nth-child(even)) h6,
.inner-content-section:not(:nth-child(even)) span,
.inner-content-section:not(:nth-child(even)) div:not(.image-grid-main):not(.image-grid-item) {
    color: var(--text-primary, #1a1a2e) !important;
}

.inner-content-section:not(:nth-child(even)) .inner-section-title {
    color: var(--primary-yellow, #FEDD00) !important;
}

.inner-content-section:not(:nth-child(even)) .content-text strong {
    color: var(--primary-green, #009739) !important;
}

.inner-content-section:nth-child(even) {
    background: rgba(15, 20, 25, 0.5) !important;
    color: var(--text-white) !important;
}

.inner-content-section:nth-child(even) .inner-section-title {
    color: var(--primary-yellow, #FEDD00) !important;
}

.inner-content-section:nth-child(even) .inner-section-subtitle,
.inner-content-section:nth-child(even) h1,
.inner-content-section:nth-child(even) h2,
.inner-content-section:nth-child(even) h3,
.inner-content-section:nth-child(even) h4,
.inner-content-section:nth-child(even) h5,
.inner-content-section:nth-child(even) h6,
.inner-content-section:nth-child(even) p,
.inner-content-section:nth-child(even) .content-text,
.inner-content-section:nth-child(even) .content-text p,
.inner-content-section:nth-child(even) span,
.inner-content-section:nth-child(even) div:not(.image-grid-main):not(.image-grid-item) {
    color: var(--text-white) !important;
}

.inner-content-section:nth-child(even) .inner-section-title {
    color: var(--primary-yellow, #FEDD00) !important;
}

.inner-content-section:nth-child(even) .content-text strong {
    color: var(--primary-yellow, #FEDD00) !important;
}

.inner-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-yellow, #FEDD00);
    margin-bottom: 1rem;
    text-align: center;
}

/* 确保浅色背景区域的标题使用黄色（在浅色背景上） */
.inner-content-section:not(:nth-child(even)) .inner-section-title {
    color: var(--primary-yellow, #FEDD00);
}

/* 确保深色背景区域的标题使用黄色（在深色背景上） */
.inner-content-section:nth-child(even) .inner-section-title {
    color: var(--primary-yellow, #FEDD00);
}

.inner-section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary, #666);
    text-align: center;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 浅色背景区域的副标题使用深灰色 */
.inner-content-section:not(:nth-child(even)) .inner-section-subtitle {
    color: var(--text-secondary, #666) !important;
}

/* 深色背景区域的副标题使用白色 */
.inner-content-section:nth-child(even) .inner-section-subtitle {
    color: var(--text-white) !important;
}

.image-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

/* 图片网格主容器 */
.image-grid-main {
    width: 100%;
    border-radius: 15px;
    border: 2px solid rgba(254, 221, 0, 0.3);
    background: transparent;
    color: #000000;
}

.image-grid-main img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    display: block;
}

/* 图片说明区域 */
.image-grid-main .image-caption {
    padding: 1.5rem;
    background: transparent;
    border-top: 2px solid rgba(254, 221, 0, 0.3);
    color: #000000;
}

.image-grid-main .image-caption * {
    color: #000000;
}

/* 图片网格标题 */
.image-grid-main .image-title,
.image-grid-main h3.image-title,
.image-grid-main h4.image-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 0.75rem;
}

.image-grid-main .image-description {
    font-size: 1rem;
    color: #000000;
    line-height: 1.7;
    margin: 0;
}

.image-grid-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

/* 图片网格项 */
.image-grid-item {
    border-radius: 10px;
    border: 2px solid rgba(254, 221, 0, 0.2);
    background: transparent;
    color: #000000;
}

.image-grid-item img {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: contain;
    display: block;
}

/* 图片说明区域 */
.image-grid-item .image-caption {
    padding: 1rem;
    background: transparent;
    border-top: 1px solid rgba(254, 221, 0, 0.2);
    color: #000000;
}

.image-grid-item .image-caption * {
    color: #000000;
}

/* 图片网格标题 */
.image-grid-item .image-title,
.image-grid-item h3.image-title,
.image-grid-item h4.image-title {
    font-size: 1rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.5rem;
}

.image-grid-item .image-description {
    font-size: 0.85rem;
    color: #000000;
    line-height: 1.6;
    margin: 0;
}

.content-text {
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    /* 默认浅色背景使用深色文字 */
    color: var(--text-primary, #1a1a2e);
}

.content-text p {
    margin-bottom: 1rem;
    color: var(--text-primary, #1a1a2e);
}

.content-text strong {
    color: var(--primary-green, #009739);
}

/* 浅色背景区域的文字使用深色 */
.inner-content-section:not(:nth-child(even)) .content-text,
.inner-content-section:not(:nth-child(even)) .content-text p {
    color: var(--text-primary, #1a1a2e) !important;
}

.inner-content-section:not(:nth-child(even)) .content-text strong {
    color: var(--primary-green, #009739) !important;
}

/* 深色背景区域的文字都是白色 */
.inner-content-section:nth-child(even) .content-text,
.inner-content-section:nth-child(even) .content-text p {
    color: var(--text-white) !important;
}

.inner-content-section:nth-child(even) .content-text strong {
    color: var(--primary-yellow, #FEDD00) !important;
}

@media (max-width: 767px) {
    .inner-hero h1 {
        font-size: 1.8rem;
    }
    
    .inner-hero .hero-description {
        font-size: 1rem;
    }
    
    .inner-section-title {
        font-size: 1.6rem;
    }
    
    .image-grid-row {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .image-grid-main img {
        max-height: 350px;
    }
    
    .image-grid-item img {
        max-height: 200px;
    }
    
    .image-grid-main .image-title {
        font-size: 1.2rem;
    }
    
    .image-grid-main .image-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .inner-hero {
        padding: 2rem 0;
    }
    
    .inner-hero h1 {
        font-size: 1.5rem;
    }
    
    .inner-content-section {
        padding: 2rem 0;
    }
}
