/* ===================================
   About Us Page - 重构版
   =================================== */

/* 预加载隐藏状态，避免闪烁 */
.about-preload-hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.about-preload-visible {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* 区块 1：Hero 区域 */
.about-hero {
    margin-top: 70px;
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--light-blue) 100%);
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(30, 58, 138, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

.about-hero .container {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.about-hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeUp 1s ease-out;
}

.about-hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin: 0;
    line-height: 1.6;
    animation: fadeUp 1s ease-out 0.3s backwards;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 区块 2：核心数据 */
.about-stats {
    background: linear-gradient(135deg, #F0F4FF 0%, #E8EEF8 100%);
    padding: 60px 0;
    color: var(--text-dark);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 1rem;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1rem;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: rgba(10, 36, 99, 0.15);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary-color);
    line-height: 1;
    margin-bottom: 0.75rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* 区块 3：公司简介 */
.about-intro {
    padding: 80px 0;
    background: var(--white);
}

.about-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-intro-text h2 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.about-intro-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
}

.about-intro-text p.about-intro-desc {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-top: 1.5rem;
}

.about-intro-image {
    position: relative;
}

.about-intro-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.about-image-placeholder {
    width: 100%;
    height: 450px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--gray) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--dark-gray);
    border: 2px dashed var(--gray);
}

.about-image-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.about-image-placeholder span {
    font-size: 1rem;
}

.about-intro-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 80px;
    height: 80px;
    background: var(--secondary-color);
    border-radius: 8px;
    opacity: 0.2;
    z-index: 0;
}

.about-intro-image::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 8px;
    opacity: 0.15;
    z-index: 0;
}

.about-intro-image img,
.about-intro-image .about-image-placeholder {
    position: relative;
    z-index: 1;
}

/* 区块 4：精选产品 */
.about-featured {
    padding: 80px 0;
    background: var(--light-gray);
}

.about-featured .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.about-featured .section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}

.about-featured .section-header p {
    color: var(--text-light);
    font-size: 1.125rem;
}

.about-featured .text-center {
    margin-top: 3rem;
    text-align: center;
}

/* 区块 5：FAQ */
.about-faq {
    padding: 80px 0;
    background: var(--white);
}

.about-faq .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.about-faq .section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}

.about-faq .section-header p {
    color: var(--text-light);
    font-size: 1.125rem;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--gray);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.faq-item.active {
    border-color: var(--secondary-color);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: color 0.2s;
    font-family: inherit;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-item.active .faq-question {
    color: var(--primary-color);
    border-bottom: 1px solid var(--gray);
}

.faq-icon {
    color: var(--secondary-color);
    transition: transform 0.3s;
    font-size: 1rem;
    margin-left: 1rem;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(135deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 1.5rem;
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

/* 区块 6：CTA 模块 */
.contact-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-blue) 100%);
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.contact-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(212, 175, 55, 0.05) 35px, rgba(212, 175, 55, 0.05) 70px);
}

.contact-cta .container {
    position: relative;
    z-index: 1;
}

.contact-cta h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* 响应式适配 */
@media (max-width: 968px) {
    .about-hero {
        padding: 50px 0;
    }
    .about-hero h1 {
        font-size: 2.5rem;
    }
    .about-hero p {
        font-size: 1.05rem;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1rem;
    }
    .stat-item:not(:last-child)::after {
        display: none;
    }
    .stat-number {
        font-size: 2.5rem;
    }
    .about-intro-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .about-intro-image {
        order: -1;
    }
    .about-intro-image img,
    .about-image-placeholder {
        height: 350px;
    }
    .contact-cta h2 {
        font-size: 2rem;
    }
}

@media (max-width: 640px) {
    .about-hero {
        padding: 40px 0;
    }
    .about-hero h1 {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    .about-hero p {
        font-size: 1rem;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem 0.5rem;
    }
    .stat-number {
        font-size: 2rem;
    }
    .stat-label {
        font-size: 0.8rem;
    }
    .about-intro {
        padding: 50px 0;
    }
    .about-intro-text h2 {
        font-size: 1.75rem;
    }
    .about-intro-text p.about-intro-desc {
        font-size: 1rem;
    }
    .about-intro-image img,
    .about-image-placeholder {
        height: 250px;
    }
    .about-featured,
    .about-faq,
    .contact-cta {
        padding: 50px 0;
    }
    .contact-cta h2 {
        font-size: 1.5rem;
    }
    .contact-cta p {
        font-size: 1rem;
    }
    .cta-buttons {
        flex-direction: column;
    }
    .cta-buttons .btn {
        width: 100%;
    }
    .faq-question {
        padding: 1.25rem;
        font-size: 0.95rem;
    }
    .faq-answer p {
        padding: 1.25rem;
        font-size: 0.95rem;
    }
}

/* RTL 阿拉伯语适配 */
[dir="rtl"] .about-intro-text h2::after {
    left: auto;
    right: 0;
}

[dir="rtl"] .about-intro-image::before {
    left: auto;
    right: -20px;
}

[dir="rtl"] .about-intro-image::after {
    right: auto;
    left: -20px;
}

[dir="rtl"] .faq-icon {
    margin-left: 0;
    margin-right: 1rem;
}