/**
 * About Page Modern Redesign Styles
 * 
 * 关于我们页面现代化样式
 * 继承主题配色方案，保持整体网站风格一致
 * 
 * @package Corporate_Theme
 * @since 2.0.0
 */

/* 使用主题配色变量 */
:root {
    --about-primary: #1976d2;
    --about-primary-light: #42a5f5;
    --about-primary-dark: #1565c0;
    --about-text-primary: #263238;
    --about-text-secondary: #546e7a;
    --about-text-tertiary: #78909c;
    --about-bg-primary: #ffffff;
    --about-bg-secondary: #fafbfc;
    --about-bg-tertiary: #f5f7f9;
    --about-border: #eceff1;
    --about-shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.04);
    --about-shadow-md: 0 4px 8px -2px rgba(0, 0, 0, 0.08);
    --about-shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   1. 标准 Banner - 与其他页面完全一致
   ========================================================================== */

.page-about-modern .archive-hero {
    position: relative;
    background-image: url('http://silica-fume.local/wp-content/uploads/2026/01/3.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding: 4rem 0 3rem;
    min-height: 300px;
    max-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Banner 背景图片通过 banner-images-fixed.css 设置 */
.page-about-modern .archive-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(66, 165, 245, 0.5) 100%);
    z-index: 1;
}

.page-about-modern .archive-hero .container {
    position: relative;
    z-index: 2;
}

.page-about-modern .archive-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.page-about-modern .archive-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.page-about-modern .archive-description {
    font-size: 1.125rem;
    font-weight: 300;
    color: #ffffff;
    line-height: 1.6;
    margin: 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    opacity: 0.95;
}

/* ==========================================================================
   2. Company Introduction
   ========================================================================== */

.page-about-modern .about-intro {
    padding: 120px 0 !important;
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%) !important;
    position: relative;
}

.page-about-modern .about-intro__grid {
    display: grid !important;
    gap: 100px !important;
    align-items: center !important;
}

/* 有视频时：左侧文字占 55%，右侧视频占 45% */
.page-about-modern .about-intro__grid--with-video {
    grid-template-columns: 55fr 45fr !important;
    gap: 100px !important;
}

/* 纯文字时：全宽布局 */
.page-about-modern .about-intro__grid--text-only {
    grid-template-columns: 1fr !important;
    max-width: 900px !important;
    margin: 0 auto !important;
}

.about-intro__text {
    color: var(--about-text-primary);
}

.page-about-modern .section-title {
    font-size: 2.75rem !important;
    font-weight: 700 !important;
    color: var(--about-text-primary) !important;
    margin-bottom: 3rem !important;
    position: relative;
    padding-bottom: 1.5rem !important;
}

.page-about-modern .section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 80px !important;
    height: 5px !important;
    background: linear-gradient(90deg, var(--about-primary), var(--about-primary-light)) !important;
    border-radius: 3px !important;
}

.page-about-modern .intro-content {
    font-size: 1.125rem !important;
    line-height: 2.2 !important;
    color: #546e7a !important;
    letter-spacing: 0.3px !important;
    display: block !important; /* 确保不是grid或flex容器 */
    grid-template-columns: none !important; /* 移除任何grid列定义 */
}

.page-about-modern .intro-content p {
    margin-bottom: 1.5rem !important;
    text-align: justify !important;
}

.page-about-modern .intro-content p:first-of-type {
    font-size: 1.25rem !important;
    font-weight: 500 !important;
    color: var(--about-text-primary) !important;
    line-height: 2 !important;
}

.page-about-modern .intro-content p:last-child {
    margin-bottom: 0 !important;
}

.page-about-modern .intro-content strong {
    color: var(--about-primary) !important;
    font-weight: 600 !important;
}

.page-about-modern .about-intro__video {
    position: relative;
}

.page-about-modern .video-wrapper {
    position: relative;
    padding-bottom: 56.25% !important; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 16px !important;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 0, 0, 0.05) !important;
    background: #000000 !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.page-about-modern .video-wrapper:hover {
    transform: translateY(-8px) !important;
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(0, 0, 0, 0.05) !important;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--about-bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-about-modern .video-play-btn {
    background: rgba(255, 255, 255, 0.95) !important;
    border: none !important;
    cursor: pointer;
    transition: all 0.3s ease !important;
    border-radius: 50% !important;
    width: 90px !important;
    height: 90px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
}

.page-about-modern .video-play-btn:hover {
    transform: scale(1.15) !important;
    background: rgba(255, 255, 255, 1) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3) !important;
}

.page-about-modern .video-play-btn .play-icon {
    width: 90px !important;
    height: 90px !important;
}

.video-iframe-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-iframe {
    width: 100%;
    height: 100%;
}

/* Video Lazy Loading States */
.video-lazy {
    background: var(--about-bg-tertiary);
}

.video-loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    color: var(--about-text-secondary);
}

.video-loading-indicator .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--about-border);
    border-top-color: var(--about-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.video-loading-indicator p {
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

.video-error-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    color: var(--about-text-secondary);
    padding: 20px;
}

.video-error-message svg {
    color: #d32f2f;
    margin-bottom: 15px;
}

.video-error-message p {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--about-text-primary);
    margin: 10px 0;
}

.video-error-message small {
    font-size: 0.875rem;
    color: var(--about-text-tertiary);
    display: block;
}

.video-error .video-cover,
.video-error .video-placeholder {
    filter: grayscale(100%) opacity(0.5);
}

.video-loaded {
    background: transparent;
}

/* Image Lazy Loading States */
.page-about-modern img {
    transition: opacity 0.3s ease;
}

.page-about-modern img.image-loaded {
    opacity: 1;
}

.image-error-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: var(--about-bg-tertiary);
    border: 1px dashed var(--about-border);
    border-radius: 8px;
    color: var(--about-text-tertiary);
    text-align: center;
}

.image-error-placeholder svg {
    margin-bottom: 10px;
    opacity: 0.5;
}

.image-error-placeholder p {
    font-size: 0.875rem;
    margin: 0;
}

/* WebP Support */
picture {
    display: block;
    width: 100%;
    height: 100%;
}

picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* WebP fallback styling */
.no-webp picture source[type="image/webp"] {
    display: none;
}

/* Optimize image rendering */
.page-about-modern img,
.page-about-modern picture img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* ==========================================================================
   3. Data Statistics
   ========================================================================== */

.about-stats {
    padding: 100px 0;
    background: var(--about-bg-secondary);
    border-bottom: 1px solid var(--about-border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.stat-card {
    text-align: center;
    padding: 40px 20px;
    background: var(--about-bg-primary);
    border-radius: 8px;
    border: 1px solid var(--about-border);
    box-shadow: var(--about-shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--about-shadow-lg);
    border-color: var(--about-primary-light);
}

.stat-card__icon {
    color: var(--about-primary);
    margin-bottom: 20px;
}

.stat-card__number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--about-primary);
    margin-bottom: 10px;
}

.stat-card__label {
    font-size: 1rem;
    color: var(--about-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* ==========================================================================
   4. Timeline
   ========================================================================== */

.about-timeline {
    padding: 100px 0;
    background: var(--about-bg-primary);
    border-bottom: 1px solid var(--about-border);
}

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

.timeline__line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--about-primary);
    transform: translateX(-50%);
}

.timeline__item {
    position: relative;
    margin-bottom: 40px; /* 从 60px 减小到 40px，更紧凑 */
    display: flex;
    align-items: center;
}

.timeline__item--left {
    justify-content: flex-end;
    padding-right: calc(50% + 40px);
}

.timeline__item--right {
    justify-content: flex-start;
    padding-left: calc(50% + 40px);
}

.timeline__content {
    background: var(--about-bg-primary);
    padding: 20px 24px; /* 从 30px 减小到 20px 24px，更紧凑 */
    border-radius: 8px;
    border: 1px solid var(--about-border);
    box-shadow: var(--about-shadow-sm);
    max-width: 320px; /* 从 400px 减小到 320px，更紧凑 */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.timeline__content:hover {
    transform: translateY(-4px);
    box-shadow: var(--about-shadow-lg);
    border-color: var(--about-primary-light);
}

.timeline__year {
    display: inline-block;
    background: var(--about-primary);
    color: #ffffff;
    padding: 4px 14px; /* 从 6px 16px 减小到 4px 14px，更精致 */
    border-radius: 20px;
    font-size: 0.8125rem; /* 从 0.875rem 减小到 0.8125rem (13px) */
    font-weight: 600;
    margin-bottom: 12px; /* 从 15px 减小到 12px */
}

.timeline__title {
    font-size: 1.125rem; /* 从 1.25rem 减小到 1.125rem (18px) */
    font-weight: 600;
    color: var(--about-text-primary);
    margin-bottom: 8px; /* 从 10px 减小到 8px */
    line-height: 1.4; /* 添加行高 */
}

.timeline__description {
    font-size: 0.9375rem; /* 从 1rem 减小到 0.9375rem (15px) */
    color: var(--about-text-secondary);
    line-height: 1.6;
    margin: 0; /* 确保没有额外的 margin */
}

.timeline__marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: var(--about-primary);
    border: 4px solid var(--about-bg-primary);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--about-border);
}

/* ==========================================================================
   5. Core Values
   ========================================================================== */

.about-values {
    padding: 100px 0;
    background: var(--about-bg-secondary);
    border-bottom: 1px solid var(--about-border);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.value-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--about-bg-primary);
    border-radius: 8px;
    border: 1px solid var(--about-border);
    box-shadow: var(--about-shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--about-shadow-lg);
    border-color: var(--about-primary-light);
}

.value-card__icon {
    color: var(--about-primary);
    margin-bottom: 20px;
}

.value-card__title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--about-text-primary);
    margin-bottom: 15px;
}

.value-card__description {
    font-size: 1rem;
    color: var(--about-text-secondary);
    line-height: 1.6;
}

/* ==========================================================================
   6. Production Video
   ========================================================================== */

.about-production-video {
    padding: 100px 0;
    background: #fafbfc;
}

.video-section__player {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.video-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-section__info {
    text-align: center;
    margin-top: 40px;
}

.video-title {
    font-size: 2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.video-description {
    font-size: 1.125rem;
    color: #666666;
    max-width: 800px;
    margin: 0 auto;
}

/* ==========================================================================
   7. Global Locations
   ========================================================================== */

.about-locations {
    padding: 100px 0;
    background: #ffffff;
}

/* 只显示图片模式 */
.locations-image-only {
    margin-top: 60px;
    text-align: center;
}

.locations-image-only .locations-full-image,
.locations-image-only picture,
.locations-image-only img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--about-shadow-lg);
    border: 1px solid var(--about-border);
}

/* 地图+位置列表模式 */
.locations-map {
    position: relative;
    margin-top: 60px;
}

.map-background-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.map-background {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.1;
}

.locations-list {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.location-item {
    display: flex;
    align-items: flex-start;
    padding: 30px;
    background: #fafbfc;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.location-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.location-marker {
    width: 40px;
    height: 40px;
    background: #1976d2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.location-marker::before {
    content: '📍';
    font-size: 20px;
}

.location-city {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.location-country {
    font-size: 1rem;
    color: #1976d2;
    margin-bottom: 10px;
}

.location-address {
    font-size: 0.875rem;
    color: #666666;
    line-height: 1.5;
}

/* ==========================================================================
   8. Certificates
   ========================================================================== */

.about-certificates {
    padding: 100px 0;
    background: #fafbfc;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.certificate-item {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.certificate-item:hover {
    transform: scale(1.05);
}

.certificate-item img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Carousel Mode */
.certificates-carousel {
    position: relative;
    margin-top: 60px;
}

.carousel-track {
    display: flex;
    overflow: hidden;
}

.carousel-slide {
    min-width: 100%;
    transition: transform 0.5s ease;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    color: #1976d2;
    cursor: pointer;
    transition: background 0.3s ease;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: #ffffff;
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cccccc;
    cursor: pointer;
    transition: background 0.3s ease;
}

.carousel-dot.active {
    background: #1976d2;
}

/* ==========================================================================
   9. CTA Section
   ========================================================================== */

.about-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--about-primary) 0%, var(--about-primary-dark) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* 添加装饰性背景图案 */
.about-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
}

.cta-description {
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 40px;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    padding: 16px 48px;
    background: #ffffff !important;
    color: #1976d2 !important;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 2px solid #ffffff;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    background: transparent !important;
    color: #ffffff !important;
    border-color: #ffffff;
    text-decoration: none;
}

/* ==========================================================================
   10. Text Color and Contrast Optimization
   ========================================================================== */

/* 
 * Text Color Rules:
 * - Dark text (#333333) on light backgrounds (#ffffff, #fafbfc)
 * - White text (#ffffff) on dark backgrounds (#1976d2, video overlays)
 * - Semi-transparent overlays for text on images/videos
 */

/* Light Background Text Colors */
.about-intro,
.about-stats,
.about-timeline,
.about-values,
.about-production-video,
.about-locations,
.about-certificates {
    color: #333333;
}

.about-intro .section-title,
.about-stats .section-title,
.about-timeline .section-title,
.about-values .section-title,
.about-production-video .section-title,
.about-locations .section-title,
.about-certificates .section-title {
    color: #333333;
}

/* Ensure proper contrast for body text on light backgrounds */
.intro-content,
.timeline__description,
.value-card__description,
.video-description,
.location-address {
    color: #546e7a; /* Darker secondary text for better contrast */
}

/* 文字颜色和对比度 */
.cta-title,
.cta-description {
    color: #ffffff;
}

/* Video overlay for text visibility */
.video-section__player::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    pointer-events: none;
    z-index: 1;
}

.video-play-btn {
    position: relative;
    z-index: 2;
}

/* Ensure CTA button has proper contrast */
.cta-button {
    background: #ffffff !important;
    color: #1976d2 !important;
    font-weight: 600;
}

.cta-button:hover {
    background: transparent !important;
    color: #ffffff !important;
}

/* Timeline year badge - ensure white text on blue background */
.timeline__year {
    background: #1976d2;
    color: #ffffff;
    font-weight: 600;
}

/* Stat card number - ensure sufficient contrast */
.stat-card__number {
    color: #1976d2;
    font-weight: 700;
}

/* Location marker with proper contrast */
.location-marker {
    background: #1976d2;
    color: #ffffff;
}

/* Certificate carousel controls - ensure visibility */
.carousel-prev,
.carousel-next {
    background: rgba(255, 255, 255, 0.95);
    color: #1976d2;
    font-weight: 700;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: #ffffff;
    color: #1565c0;
}

/* Active carousel dot */
.carousel-dot.active {
    background: #1976d2;
}

/* Ensure proper contrast for all card titles */
.stat-card__label,
.value-card__title,
.timeline__title,
.location-city {
    color: #263238; /* Darker for better contrast */
    font-weight: 600;
}

/* Secondary text with proper contrast */
.stat-card__label,
.value-card__description,
.timeline__description,
.location-country,
.location-address,
.video-description {
    color: #546e7a; /* Meets 4.5:1 contrast ratio on white */
}

/* Tertiary text (less important) */
.intro-content strong {
    color: #1976d2;
    font-weight: 600;
}

/* Error and loading states */
.video-error-message p {
    color: #263238;
    font-weight: 600;
}

.video-error-message small {
    color: #78909c;
}

.video-loading-indicator p {
    color: #546e7a;
    font-weight: 500;
}

/* Image error placeholder */
.image-error-placeholder {
    color: #78909c;
    background: #f5f7f9;
}

/* Ensure links have proper contrast */
a {
    color: #1976d2;
    text-decoration: none;
}

a:hover {
    color: #1565c0;
    text-decoration: underline;
}

/* Focus states for accessibility */
a:focus,
button:focus,
.video-play-btn:focus,
.cta-button:focus {
    outline: 2px solid #1976d2;
    outline-offset: 2px;
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
    .page-about-modern .archive-hero::before {
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(66, 165, 245, 0.6) 100%);
    }
    
    .page-about-modern .archive-title,
    .page-about-modern .archive-description {
        text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
    }
    
    .video-section__player::after {
        background: rgba(0, 0, 0, 0.5);
    }
    
    /* Increase contrast for all text */
    .intro-content,
    .timeline__description,
    .value-card__description,
    .video-description,
    .location-address {
        color: #37474f; /* Even darker for high contrast */
    }
    
    /* Ensure borders are visible */
    .stat-card,
    .value-card,
    .timeline__content,
    .location-item,
    .certificate-item {
        border-color: #b0bec5;
    }
}

/* Additional contrast enhancements for specific elements */

/* Ensure stat card labels are readable */
.stat-card__label {
    color: #37474f; /* Darker for better contrast on white */
    font-weight: 600;
}

/* Timeline content text contrast */
.timeline__content {
    background: #ffffff;
}

.timeline__title {
    color: #263238; /* Ensures 4.5:1+ contrast */
}

.timeline__description {
    color: #546e7a; /* Ensures 4.5:1+ contrast */
}

/* Value card text contrast */
.value-card__title {
    color: #263238; /* Ensures 4.5:1+ contrast */
}

.value-card__description {
    color: #546e7a; /* Ensures 4.5:1+ contrast */
}

/* Location text contrast */
.location-city {
    color: #263238; /* Ensures 4.5:1+ contrast */
}

.location-country {
    color: #1976d2; /* Ensures 4.5:1+ contrast */
}

.location-address {
    color: #546e7a; /* Ensures 4.5:1+ contrast */
}

/* Video section text contrast */
.video-title {
    color: #263238; /* Ensures 4.5:1+ contrast */
}

.video-description {
    color: #546e7a; /* Ensures 4.5:1+ contrast */
}

/* Intro content text contrast */
.intro-content {
    color: #546e7a; /* Ensures 4.5:1+ contrast */
}

.intro-content p {
    color: #546e7a;
}

/* Section title contrast */
.section-title {
    color: #263238; /* Ensures 4.5:1+ contrast */
}

/* Ensure all interactive elements have sufficient contrast */
button,
.cta-button,
.video-play-btn {
    /* Minimum 3:1 contrast for UI components */
    border: 2px solid transparent;
}

button:focus,
.cta-button:focus,
.video-play-btn:focus {
    border-color: #1976d2;
    outline: 2px solid #1976d2;
    outline-offset: 2px;
}

/* Carousel controls contrast */
.carousel-prev,
.carousel-next {
    border: 2px solid #1976d2;
}

.carousel-prev:focus,
.carousel-next:focus {
    outline: 2px solid #1976d2;
    outline-offset: 2px;
}

/* Ensure error messages have proper contrast */
.video-error-message p {
    color: #263238; /* Ensures 4.5:1+ contrast */
}

.video-error-message small {
    color: #546e7a; /* Ensures 4.5:1+ contrast */
}

/* Loading indicator contrast */
.video-loading-indicator p {
    color: #546e7a; /* Ensures 4.5:1+ contrast */
}

/* Image error placeholder contrast */
.image-error-placeholder {
    color: #546e7a; /* Ensures 4.5:1+ contrast */
    background: #f5f7f9;
}

.image-error-placeholder p {
    color: #546e7a;
}

/* Ensure link contrast in all contexts */
a {
    color: #1976d2; /* Ensures 4.5:1+ contrast on white */
}

a:hover {
    color: #1565c0; /* Ensures 4.5:1+ contrast on white */
}

a:focus {
    outline: 2px solid #1976d2;
    outline-offset: 2px;
}

/* Text on colored backgrounds - ensure proper contrast */
.timeline__year {
    background: #1976d2;
    color: #ffffff; /* Ensures 4.5:1+ contrast */
    font-weight: 600;
}

.stat-card__number {
    color: #1976d2; /* Ensures 4.5:1+ contrast on white */
}

.location-marker {
    background: #1976d2;
    color: #ffffff; /* Ensures 4.5:1+ contrast */
}

/* CTA section - ensure white text on blue has sufficient contrast */
.cta-title {
    color: #ffffff; /* Ensures 4.5:1+ contrast on #1976d2 */
    font-weight: 700;
}

.cta-description {
    color: #ffffff; /* Ensures 4.5:1+ contrast on #1976d2 */
}

.cta-button {
    background: #ffffff !important;
    color: #1976d2 !important;
    font-weight: 600;
}

/* Additional text shadow for text on images/videos */
.video-section__info h3,
.video-section__info p {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Ensure proper contrast for all card hover states */
.stat-card:hover,
.value-card:hover,
.timeline__content:hover,
.location-item:hover,
.certificate-item:hover {
    /* Maintain text contrast on hover */
    color: inherit;
}

/* Ensure proper contrast for disabled states */
button:disabled,
.cta-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 打印样式 */
@media print {
    .page-about-modern .archive-hero::before {
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(66, 165, 245, 0.6) 100%);
    }
    
    .page-about-modern .archive-title,
    .page-about-modern .archive-description {
        color: #000000;
        text-shadow: none;
    }
    
    .about-cta {
        background: #1976d2;
        color: #ffffff;
    }
}

/* ==========================================================================
   11. Animations
   ========================================================================== */

[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    [data-animate] {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .scroll-arrow::before {
        animation: none;
    }
}

/* ==========================================================================
   12. Responsive Design
   ========================================================================== */

/* Tablet (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Banner - Tablet */
    .page-about-modern .archive-hero {
        padding: 3.5rem 0 2.5rem;
        min-height: 280px;
        max-height: 350px;
    }
    
    .page-about-modern .archive-title {
        font-size: 2.25rem;
    }
    
    .page-about-modern .archive-description {
        font-size: 1.125rem;
    }
    
    /* Company Introduction - Tablet */
    .page-about-modern .about-intro {
        padding: 100px 0 !important;
    }
    
    .page-about-modern .section-title {
        font-size: 2.25rem !important;
        margin-bottom: 2.5rem !important;
    }
    
    /* 平板端：改为上下布局 */
    .page-about-modern .about-intro__grid--with-video {
        grid-template-columns: 1fr !important;
        gap: 60px !important;
    }
    
    .page-about-modern .about-intro__grid--text-only {
        gap: 40px !important;
    }
    
    .page-about-modern .intro-content {
        font-size: 1.0625rem !important;
        line-height: 2 !important;
    }
    
    .page-about-modern .intro-content p:first-of-type {
        font-size: 1.125rem !important;
    }
    
    /* Data Statistics - Tablet */
    .about-stats {
        padding: 80px 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    /* Timeline - Tablet */
    .about-timeline {
        padding: 80px 0;
    }
    
    .timeline__content {
        max-width: 350px;
    }
    
    /* Core Values - Tablet */
    .about-values {
        padding: 80px 0;
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }
    
    /* Production Video - Tablet */
    .about-production-video {
        padding: 80px 0;
    }
    
    /* Global Locations - Tablet */
    .about-locations {
        padding: 80px 0;
    }
    
    .locations-image-only {
        margin-top: 50px;
    }
    
    .locations-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    /* Certificates - Tablet */
    .about-certificates {
        padding: 80px 0;
    }
    
    .certificates-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    /* CTA - Tablet */
    .about-cta {
        padding: 80px 0;
    }
    
    .cta-title {
        font-size: 2.25rem;
    }
    
    .cta-description {
        font-size: 1.125rem;
    }
    
    /* Section Titles - Tablet */
    .section-title {
        font-size: 2rem;
    }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
    /* Global Mobile Settings */
    body {
        font-size: 14px;
        min-font-size: 14px;
    }
    
    /* Ensure all text is at least 14px */
    p, li, span, div, a {
        font-size: 14px !important;
        min-font-size: 14px;
    }
    
    /* Banner - Mobile */
    .page-about-modern .archive-hero {
        padding: 3rem 0 2rem;
        min-height: 250px;
        max-height: 300px;
    }
    
    .page-about-modern .archive-title {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .page-about-modern .archive-description {
        font-size: 1rem;
    }
    
    /* Company Introduction - Mobile */
    .page-about-modern .about-intro {
        padding: 80px 0 !important;
    }
    
    .page-about-modern .section-title {
        font-size: 2rem !important;
        margin-bottom: 2rem !important;
    }
    
    .page-about-modern .section-title::after {
        width: 60px !important;
        height: 4px !important;
    }
    
    /* 移动端：所有布局都变成单列 */
    .page-about-modern .about-intro__grid,
    .page-about-modern .about-intro__grid--with-video,
    .page-about-modern .about-intro__grid--text-only {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
    
    .page-about-modern .intro-content {
        font-size: 1rem !important;
        line-height: 2 !important;
        letter-spacing: 0.2px !important;
    }
    
    .page-about-modern .intro-content p {
        margin-bottom: 1.5rem !important;
        text-align: left !important;
    }
    
    .page-about-modern .intro-content p:first-of-type {
        font-size: 1.0625rem !important;
    }
    
    .page-about-modern .video-play-btn {
        width: 70px !important;
        height: 70px !important;
    }
    
    .page-about-modern .video-play-btn .play-icon {
        width: 70px !important;
        height: 70px !important;
    }
    
    /* Data Statistics - Mobile (2x2 Grid) */
    .about-stats {
        padding: 60px 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-top: 40px;
    }
    
    .stat-card {
        padding: 30px 15px;
    }
    
    .stat-card__number {
        font-size: 2.5rem;
    }
    
    .stat-card__label {
        font-size: 14px;
    }
    
    /* Timeline - Mobile (Single Column) */
    .about-timeline {
        padding: 60px 0;
    }
    
    .timeline {
        margin-top: 40px;
    }
    
    .timeline__line {
        left: 20px;
    }
    
    .timeline__item {
        margin-bottom: 40px;
    }
    
    .timeline__item--left,
    .timeline__item--right {
        padding-left: 60px;
        padding-right: 0;
        justify-content: flex-start;
    }
    
    .timeline__marker {
        left: 20px;
        transform: none;
    }
    
    .timeline__content {
        max-width: 100%;
    }
    
    .timeline__title {
        font-size: 1.125rem;
    }
    
    .timeline__description {
        font-size: 14px;
    }
    
    /* Core Values - Mobile (Vertical Stack) */
    .about-values {
        padding: 60px 0;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 40px;
    }
    
    .value-card {
        padding: 35px 25px;
    }
    
    .value-card__title {
        font-size: 1.375rem;
    }
    
    .value-card__description {
        font-size: 14px;
    }
    
    /* Production Video - Mobile */
    .about-production-video {
        padding: 60px 0;
    }
    
    .video-section__info {
        margin-top: 30px;
    }
    
    .video-title {
        font-size: 1.75rem;
    }
    
    .video-description {
        font-size: 14px;
    }
    
    /* Global Locations - Mobile (List Format) */
    .about-locations {
        padding: 60px 0;
    }
    
    .locations-image-only {
        margin-top: 40px;
    }
    
    .locations-image-only .locations-full-image,
    .locations-image-only picture,
    .locations-image-only img {
        border-radius: 6px;
    }
    
    .locations-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .location-item {
        padding: 25px;
    }
    
    .location-city {
        font-size: 1.125rem;
    }
    
    .location-country {
        font-size: 14px;
    }
    
    .location-address {
        font-size: 14px;
    }
    
    /* Certificates - Mobile (Single Column) */
    .about-certificates {
        padding: 60px 0;
    }
    
    .certificates-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
    
    /* CTA - Mobile */
    .about-cta {
        padding: 60px 0;
    }
    
    .cta-content {
        padding: 0 20px;
    }
    
    .cta-title {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .cta-description {
        font-size: 1.125rem;
        line-height: 1.6;
        margin-bottom: 30px;
    }
    
    /* Section Titles - Mobile */
    .section-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    /* Ensure minimum touch target size (44x44px) */
    .video-play-btn,
    .cta-button,
    .carousel-prev,
    .carousel-next,
    .carousel-dot,
    a.button,
    button {
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .cta-button {
        padding: 14px 40px;
        font-size: 1rem;
    }
    
    /* Carousel dots touch target */
    .carousel-dot {
        width: 16px;
        height: 16px;
        margin: 0 8px;
    }
    
    /* Container padding for mobile */
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    /* Video wrapper mobile optimization */
    .video-wrapper {
        border-radius: 6px;
    }
    
    /* Stat card icon sizing */
    .stat-card__icon {
        font-size: 2.5rem;
    }
    
    /* Value card icon sizing */
    .value-card__icon {
        font-size: 3rem;
    }
}

/* Extra Small Mobile (< 480px) */
@media (max-width: 479px) {
    .page-about-modern .archive-title {
        font-size: 1.75rem;
    }
    
    .page-about-modern .archive-description {
        font-size: 1rem;
    }
    
    .stats-grid {
        gap: 15px;
    }
    
    .stat-card {
        padding: 25px 10px;
    }
    
    .stat-card__number {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 1.75rem;
    }
    
    .cta-description {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 12px 32px;
        font-size: 14px;
    }
}


/* ==========================================================================
   CRITICAL OVERRIDE - 强制覆盖所有冲突样式
   ========================================================================== */

/* 覆盖旧的 about-color-fix.css 和 about-force-fix.css */
body.page-about-modern .about-intro *,
body.page-about-modern .about-intro .entry-content,
body.page-about-modern .about-intro .entry-content *,
.page-about-modern .about-intro *,
.page-about-modern .about-intro .entry-content,
.page-about-modern .about-intro .entry-content * {
    /* 重置旧文件的强制颜色 */
    color: inherit !important;
}

/* 确保布局规则生效 */
body.page-about-modern .about-intro__grid--with-video,
.page-about-modern .about-intro .about-intro__grid--with-video {
    grid-template-columns: 55fr 45fr !important;
    gap: 100px !important;
}

body.page-about-modern .about-intro__grid--text-only,
.page-about-modern .about-intro .about-intro__grid--text-only {
    grid-template-columns: 1fr !important;
    max-width: 900px !important;
    margin: 0 auto !important;
}

/* 确保文字样式生效 */
body.page-about-modern .intro-content,
.page-about-modern .about-intro .intro-content {
    font-size: 1.125rem !important;
    line-height: 2.2 !important;
    color: #546e7a !important;
    letter-spacing: 0.3px !important;
}

body.page-about-modern .intro-content p,
.page-about-modern .about-intro .intro-content p {
    margin-bottom: 1.5rem !important;
    text-align: justify !important;
    color: #546e7a !important;
}

body.page-about-modern .intro-content p:first-of-type,
.page-about-modern .about-intro .intro-content p:first-of-type {
    font-size: 1.25rem !important;
    font-weight: 500 !important;
    color: #263238 !important;
    line-height: 2 !important;
}

body.page-about-modern .intro-content p:last-child,
.page-about-modern .about-intro .intro-content p:last-child {
    margin-bottom: 0 !important;
}

body.page-about-modern .intro-content strong,
.page-about-modern .about-intro .intro-content strong {
    color: #1976d2 !important;
    font-weight: 600 !important;
}

/* 确保标题样式生效 */
body.page-about-modern .section-title,
.page-about-modern .about-intro .section-title {
    font-size: 2.75rem !important;
    font-weight: 700 !important;
    margin-bottom: 3rem !important;
    padding-bottom: 1.5rem !important;
    color: #263238 !important;
}

body.page-about-modern .section-title::after,
.page-about-modern .about-intro .section-title::after {
    width: 80px !important;
    height: 5px !important;
}

/* 确保视频样式生效 */
body.page-about-modern .video-wrapper,
.page-about-modern .about-intro .video-wrapper {
    border-radius: 16px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05) !important;
    background: #000000 !important;
}

body.page-about-modern .video-play-btn,
.page-about-modern .about-intro .video-play-btn {
    width: 90px !important;
    height: 90px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 50% !important;
}

body.page-about-modern .video-play-btn .play-icon,
.page-about-modern .about-intro .video-play-btn .play-icon {
    width: 90px !important;
    height: 90px !important;
}

/* 移动端强制覆盖 */
@media (max-width: 767px) {
    body.page-about-modern .about-intro__grid--with-video,
    .page-about-modern .about-intro .about-intro__grid--with-video {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
    
    body.page-about-modern .intro-content,
    .page-about-modern .about-intro .intro-content {
        font-size: 1rem !important;
        line-height: 2 !important;
    }
    
    body.page-about-modern .intro-content p,
    .page-about-modern .about-intro .intro-content p {
        color: #546e7a !important;
    }
    
    body.page-about-modern .intro-content p:first-of-type,
    .page-about-modern .about-intro .intro-content p:first-of-type {
        font-size: 1.0625rem !important;
        color: #263238 !important;
    }
    
    body.page-about-modern .video-play-btn,
    .page-about-modern .about-intro .video-play-btn {
        width: 70px !important;
        height: 70px !important;
    }
    
    body.page-about-modern .video-play-btn .play-icon,
    .page-about-modern .about-intro .video-play-btn .play-icon {
        width: 70px !important;
        height: 70px !important;
    }
}
