/* about.css - 关于页面特有样式 - 优化版 */

/* === 变量定义 === */
:root {
    --primary: #E74C3C;
    --white: #FFFFFF;
    --dark: #010101;
    --text: #333333;
    --transition: all 0.3s ease;
}

/* === About页面专用样式 === */

/* 板块1: About Banner */
.about-banner {
    height: 450px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: #fffdf9;
    text-align: center;
    padding-top: 80px;
}

.about-banner-content {
    z-index: 2;
    width: 100%;
}

/* H1降级后的样式 */
.banner-main-text {
    font-size: 3.125rem; /* 50px - 保持原h1样式 */
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--dark);
    text-align: center;
    font-weight: 400;
}

/* H2降级后的样式 */
.banner-sub-text {
    font-size: 1.125rem; /* 18px - 保持原h2样式 */
    margin-bottom: 25px;
    color: var(--dark);
    text-align: center;
    font-weight: 400;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.about-banner .discuss-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.9375rem; /* 15px */
    color: #666666;
    text-decoration: none;
    transition: var(--transition);
}

.about-banner .discuss-link:hover {
    color: var(--primary);
}

.about-banner .red-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: var(--primary);
    border-radius: 50%;
    margin-left: 10px;
    position: relative;
}

.about-banner .red-arrow::after {
    content: '➔';
    color: var(--white);
    font-size: 14px;
    font-weight: bold;
    transform: rotate(-45deg);
    display: block;
}

/* 板块2: 介绍区域 */
.about-intro {
    padding: 100px 0;
    background-color: var(--white);
}

.intro-header {
    text-align: center;
    margin-bottom: 60px;
}

/* H2提升为H1的样式 */
.about-intro .intro-header h1 {
    font-size: 2.8125rem; /* 45px - 保持原h2样式 */
    color: #010101;
    line-height: 1.3;
    font-weight: 400;
    display: inline-block;
    text-align: center;
    margin: 0;
}

.intro-header .line-break {
    display: block;
}

.intro-container {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.intro-image-container {
    flex: 1;
    position: relative;
    height: 600px;
    border-radius: 20px;
    overflow: hidden;
}

.intro-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.intro-image-container img.active {
    opacity: 1;
}

.intro-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.content-box {
    border-top: 1px solid #cacaca;
    padding: 35px 0;
    cursor: pointer;
    transition: var(--transition);
}

.content-box:last-child {
    border-bottom: 1px solid #cacaca;
}

.content-box.active {
    padding-bottom: 50px;
}

.content-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    transition: var(--transition);
}

.content-box.active .content-box-header {
    margin-bottom: 25px;
}

/* H3提升为H2的样式 */
.content-box h2 {
    font-size: 1.625rem; /* 26px - 保持原h3样式 */
    color: #999;
    font-weight: 400;
    position: relative;
    padding-right: 30px;
    transition: color 0.3s ease;
    margin: 0;
}

.content-box.active h2 {
    color: var(--dark);
}

/* 红色斜向上箭头角标 */
.content-box h2::after {
    content: '➔';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.2rem;
    color: var(--primary);
    transform: rotate(-45deg);
    opacity: 0;
    transition: opacity 0.3s ease;
    margin-top: 3px;
}

.content-box.active h2::after {
    opacity: 1;
}

/* 隐藏原有的切换按钮 */
.content-box-toggle {
    display: none;
}

.content-box-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    opacity: 0;
}

.content-box.active .content-box-content {
    max-height: 1000px;
    opacity: 1;
}

.content-box-content p {
    font-size: 1.0625rem; /* 17px */
    color: #7e7e7e;
    line-height: 1.7;
    margin-bottom: 20px;
}

.content-box-content p:last-child {
    margin-bottom: 30px;
}

/* 新增的内容区域样式 */
.content-features {
    display: flex;
    align-items: flex-start;
    padding-top: 20px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    width: 120px;
    position: relative;
    padding-right: 0;
}

.feature-item:not(:last-child) {
    margin-right: 0;
    padding-right: 20px;
}

.feature-icon {
    width: 36px;
    height: 36px;
    background-color: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 1rem;
}

.feature-title {
    font-size: 15px;
    color: #7e7e7e;
    font-weight: 500;
}

/* 板块3: 服务范畴 */
.service-scope {
    padding: 100px 0;
    background-color: #fffdf9;
}

.scope-part1 {
    display: flex;
    margin-bottom: 100px;
    align-items: flex-start;
}

.scope-left {
    flex: 0 0 560px;
}

.scope-left h2 {
    font-size: 45px;
    color: var(--dark);
    font-weight: 400;
    line-height: 1.3;
    text-align: left;
}

.scope-left h2 .line-break {
    display: block;
}

.scope-right {
    flex: 1;
}

.scope-right p {
    font-size: 1.125rem; /* 18px */
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 25px;
}

.scope-right p:last-child {
    margin-bottom: 0;
}

/* 板块3: 服务范畴 - 第2部分 */
.scope-part2 {
    position: relative;
}

.scope-box {
    background-color: var(--white);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
    display: flex;
    transition: all 0.5s ease;
    transform-origin: top;
    width: 100%;
    min-height: 400px;
    cursor: pointer;
}

.scope-box:last-child {
    margin-bottom: 0;
}

/* 滚动交互效果 */
.scope-box.scaled {
    transform: scale(0.85);
    opacity: 0.7;
}

.scope-box.scaled-more {
    transform: scale(0.65);
    opacity: 0.4;
}

.scope-box.hidden {
    transform: scale(0.4);
    opacity: 0;
    visibility: hidden;
}

.scope-box-content {
    flex: 0 0 560px;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
    z-index: 2;
    position: relative;
    padding-bottom: 80px;
}

/* 序号样式 */
.scope-number {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    line-height: 1;
}

.current-number {
    color: var(--primary);
    font-size: 14px;
    margin-right: 2px;
    position: relative;
    top: -5px;
}

.total-number {
    color: #9d9d9d;
    font-size: 14px;
    position: relative;
    top: 0;
}

.total-number::before {
    content: '/';
    font-size: 20px;
    color: #ccc;
    margin-right: 2px;
}

.cc {
    text-align: center;
}

/* 保持原有H3样式 */
.scope-box h3 {
    font-size: 40px;
    color: #010101;
    margin-bottom: 15px;
    font-weight: 400;
    line-height: 1.2;
    margin-top: 30px;
}

.scope-box p {
    font-size: 16px;
    color: #878686;
    line-height: 1.6;
    margin-bottom: 25px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 概念logo样式 */
.concept-logo {
    position: absolute;
    left: 60px;
    bottom: 20px;
    font-size: 24px;
    font-weight: 700;
    color: #e0e0e0;
    font-style: italic;
    letter-spacing: 2px;
    text-transform: uppercase;
    background-color: transparent;
    border-radius: 0;
    width: auto;
    height: auto;
    display: block;
    padding: 0;
}

.scope-box-image {
    flex: 1;
    position: relative;
    overflow: hidden;
}

/* 将图片调整为背景图片完全填充 */
.scope-box-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 将图片调整为背景图片完全填充 - 添加WebP支持 */
#scope-box1 .scope-box-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url('/wp-content/themes/geo-theme/img/web-card-2.webp');
    background-image: -webkit-image-set(
        url('/wp-content/themes/geo-theme/img/web-card-2.webp') 1x,
        url('/wp-content/themes/geo-theme/img/web-card-2.jpg') 1x
    );
    background-image: image-set(
        url('/wp-content/themes/geo-theme/img/web-card-2.webp') 1x,
        url('/wp-content/themes/geo-theme/img/web-card-2.jpg') 1x
    );
}

#scope-box2 .scope-box-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url('/wp-content/themes/geo-theme/img/geo-card-1.webp');
    background-image: -webkit-image-set(
        url('/wp-content/themes/geo-theme/img/geo-card-1.webp') 1x,
        url('/wp-content/themes/geo-theme/img/geo-card-1.jpg') 1x
    );
}

#scope-box3 .scope-box-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url('/wp-content/themes/geo-theme/img/web-card-4.webp');
    background-image: -webkit-image-set(
        url('/wp-content/themes/geo-theme/img/web-card-4.webp') 1x,
        url('/wp-content/themes/geo-theme/img/web-card-4.jpg') 1x
    );
}

#scope-box4 .scope-box-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url('/wp-content/themes/geo-theme/img/seo-card-3.webp');
    background-image: -webkit-image-set(
        url('/wp-content/themes/geo-theme/img/seo-card-3.webp') 1x,
        url('/wp-content/themes/geo-theme/img/seo-card-3.jpg') 1x
    );
}

/* 板块4: FAQ区域 */
.faq-section {
    padding: 100px 0;
    background-color: #f7f6f3;
}

.faq-header {
    margin-bottom: 50px;
}

.faq-header h2 {
    font-size: 2.5rem;
    color: #333;
    font-weight: 400;
    text-align: left;
    margin-bottom: 0;
}

.faq-content {
    display: none;
}

.faq-content p {
    margin-bottom: 15px;
    font-size: 1rem;
    color: var(--text);
    line-height: 1.6;
}

.faq-content p:last-child {
    margin-bottom: 0;
}

.faq-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.faq-item {
    background-color: var(--white);
    border-radius: 15px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.faq-question-content {
    display: flex;
    align-items: flex-start;
    flex: 1;
}

.faq-question-mark {
    width: 24px;
    height: 24px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
    font-size: 14px;
    margin-right: 15px;
    flex-shrink: 0;
}

.faq-question h3 {
    font-size: 18px;
    color: var(--dark);
    font-weight: 500;
    line-height: 1.5;
    flex: 1;
}

.faq-toggle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--dark);
    font-size: 1rem;
    flex-shrink: 0;
    margin-left: 10px;
}

.faq-item:hover .faq-toggle {
    background-color: var(--primary);
    color: var(--white);
}

/* FAQ弹窗样式 */
.faq-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1100;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.faq-modal.active {
    display: flex;
}

.faq-modal-content {
    background: linear-gradient(135deg, #ffffff, #f8f8f8);
    border-radius: 30px;
    width: 90%;
    max-width: 800px;
    padding: 50px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
    max-height: 80vh;
    overflow-y: auto;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-modal-close {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 36px;
    height: 36px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--white);
    font-weight: bold;
    font-size: 18px;
    transition: var(--transition);
    z-index: 10;
}

.faq-modal-close:hover {
    transform: rotate(90deg);
    background-color: #d63400;
}

.faq-modal-title {
    font-size: 34px;
    color: #000;
    margin-bottom: 30px;
    font-weight: 600;
    line-height: 1.3;
    padding-right: 40px;
}

.faq-modal-answer {
    background-color: #f5f5f7;
    border-radius: 20px;
    padding: 30px;
    line-height: 1.7;
    text-align: left;
    max-height: 50vh;
    overflow-y: auto;
}

.faq-modal-answer p {
    margin-bottom: 15px;
    font-size: 1.0625rem;
    color: var(--text);
}

.faq-modal-answer p:last-child {
    margin-bottom: 0;
}

/* 无FAQ提示样式 */
.no-faq {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
    grid-column: 1 / -1;
}

/* 更多FAQ按钮样式 */
.more-faq-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    color: #575757;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 30px;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.more-faq-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
    position: relative;
    transition: all 0.3s ease;
}

.more-faq-arrow::after {
    content: '➔';
    color: #575757;
    font-size: 14px;
    font-weight: bold;
    transform: rotate(-45deg);
    display: block;
    transition: all 0.3s ease;
}

/* 悬停效果 */
.more-faq-btn:hover {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.2);
}

.more-faq-btn:hover .more-faq-arrow::after {
    color: var(--white);
}

/* === 响应式设计 - 优化移动适配 === */

@media (max-width: 1200px) {
    .scope-left {
        flex: 0 0 500px;
    }
    
    .scope-box-content {
        flex: 0 0 500px;
        padding: 50px;
        padding-bottom: 70px;
    }
    
    .concept-logo {
        left: 50px;
        bottom: 50px;
        font-size: 22px;
    }
    
    .faq-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 移动端：Banner区域优化 */
@media (max-width: 992px) {
    .about-banner {
        height: auto;
        min-height: 300px;
        padding: 100px 0 60px;
    }
    
    .banner-main-text {
        font-size: 2.5rem;
        margin-bottom: 15px;
        line-height: 1.2;
    }
    
    .banner-sub-text {
        font-size: 1.125rem;
        margin-bottom: 20px;
    }
    
    .intro-header h1 {
        font-size: 2.5rem;
    }
    
    .intro-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .intro-image-container {
        width: 100%;
        height: 400px;
    }
    
    .scope-part1 {
        flex-direction: column;
        gap: 40px;
        margin-bottom: 80px;
    }
    
    .scope-left {
        flex: 1;
    }
    
    .scope-box {
        flex-direction: column;
        min-height: auto;
    }
    
    .scope-box-content {
        flex: 1;
        padding: 40px;
        width: 100%;
        padding-bottom: 80px;
    }
    
    .scope-box-image {
        height: 300px;
        order: -1;
        width: 100%;
    }
    
    .concept-logo {
        left: 40px;
        bottom: 40px;
        font-size: 20px;
    }
    
    .scope-box h3 {
        font-size: 32px;
    }
    
    .faq-container {
        grid-template-columns: 1fr;
    }
}

/* 移动端：进一步优化 */
@media (max-width: 768px) {
    .banner-main-text {
        font-size: 2rem;
    }
    
    .banner-sub-text {
        font-size: 1rem;
    }
    
    .about-banner .discuss-link {
        font-size: 0.875rem;
    }
    
    .about-intro,
    .service-scope,
    .faq-section {
        padding: 80px 0;
    }
    
    .intro-header h1 {
        font-size: 2.2rem;
    }
    
    .content-box {
        padding: 25px 0;
    }
    
    .content-box.active {
        padding-bottom: 35px;
    }
    
    .content-box h2 {
        font-size: 1.4rem;
        padding-right: 40px;
    }
    
    .scope-left h2 {
        font-size: 2rem;
    }
    
    .scope-right p {
        font-size: 1rem;
    }
    
    .scope-box-content {
        padding: 30px 25px 70px 25px;
    }
    
    .scope-box h3 {
        font-size: 28px;
        margin-top: 20px;
    }
    
    .scope-box p {
        font-size: 15px;
    }
    
    .concept-logo {
        left: 25px;
        bottom: 25px;
        font-size: 18px;
        letter-spacing: 1px;
    }
    
    .faq-header h2 {
        font-size: 26px;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .faq-modal-content {
        padding: 40px 30px;
    }
    
    .faq-modal-title {
        font-size: 28px;
    }
    
    /* 移动端：特征项优化 */
    .content-features {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .feature-item {
        flex: 0 0 calc(50% - 10px);
        text-align: center;
        margin-bottom: 0;
    }
    
    .feature-icon {
        margin: 0 auto 10px auto;
    }
    
    .more-faq-btn {
        padding: 10px 24px;
        font-size: 13px;
        border-radius: 25px;
    }
    
    .more-faq-arrow::after {
        font-size: 13px;
    }
}

/* 小屏幕设备 */
@media (max-width: 576px) {
    .about-banner {
        padding: 80px 0 50px;
    }
    
    .banner-main-text {
        font-size: 1.8rem;
    }
    
    .banner-sub-text {
        font-size: 0.95rem;
    }
    
    .intro-header h1 {
        font-size: 1.8rem;
    }
    
    .content-box h2 {
        font-size: 1.2rem;
    }
    
    .scope-left h2 {
        font-size: 1.8rem;
    }
    
    .scope-box-content {
        padding: 25px 20px 60px 20px;
    }
    
    .scope-box h3 {
        font-size: 24px;
    }
    
    .scope-number {
        font-size: 13px;
    }
    
    .scope-number .current-number {
        font-size: 22px;
        top: -4px;
    }
    
    .scope-number .total-number {
        font-size: 16px;
    }
    
    .scope-number .total-number::before {
        font-size: 22px;
    }
    
    .concept-logo {
        left: 20px;
        bottom: 20px;
        font-size: 16px;
        letter-spacing: 0.5px;
    }
    
    .intro-image-container {
        height: 350px;
    }
    
    .faq-header h2 {
        font-size: 24px;
    }
    
    .faq-question h3 {
        font-size: 0.95rem;
    }
    
    .faq-question-mark {
        width: 20px;
        height: 20px;
        font-size: 12px;
        margin-right: 12px;
    }
    
    .faq-modal-content {
        padding: 25px 20px;
        border-radius: 20px;
    }
    
    .faq-modal-title {
        font-size: 22px;
    }
    
    .faq-modal-close {
        top: 15px;
        right: 15px;
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    
    /* 移动端：特征项垂直布局 */
    .content-features {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .feature-item {
        flex: 0 0 100%;
        flex-direction: row;
        text-align: left;
        justify-content: flex-start;
        align-items: center;
    }
    
    .feature-icon {
        margin: 0 15px 0 0;
        flex-shrink: 0;
        width: 32px;
        height: 32px;
    }
    
    .feature-title {
        font-size: 15px;
    }
    
    .more-faq-btn {
        padding: 8px 20px;
        font-size: 12px;
        border-radius: 20px;
    }
    
    .more-faq-arrow::after {
        font-size: 12px;
    }
}

/* 超小屏幕设备 */
@media (max-width: 480px) {
    .banner-main-text {
        font-size: 1.6rem;
    }
    
    .banner-sub-text {
        font-size: 0.9rem;
    }
    
    .scope-box h3 {
        font-size: 1.3rem;
    }
    
    .intro-image-container {
        height: 300px;
    }
    
    .content-features {
        gap: 15px;
    }
    
    .feature-item {
        margin-bottom: 10px;
    }
}

/* 服务卡片点击效果优化 */
.scope-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* 打印样式 */
@media print {
    .about-banner .discuss-link,
    .news-plus-icon,
    .faq-modal-close,
    .more-faq-btn {
        display: none !important;
    }
    
    .scope-box {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* === 服务卡片链接样式优化：保持flex布局，去除默认链接样式 === */
.scope-box {
    display: flex;
    text-decoration: none;
    color: inherit;
}

/* 确保卡片内所有文字颜色不受链接默认样式影响 */
.scope-box,
.scope-box h3,
.scope-box p,
.scope-box .scope-number,
.scope-box .concept-logo {
    color: inherit;
}

/* 确保卡片内所有文字颜色在hover时不受影响 */
.scope-box:hover,
.scope-box:hover h3,
.scope-box:hover p,
.scope-box:hover .scope-number,
.scope-box:hover .concept-logo {
    color: inherit;
}

/* 保持原有hover效果已在现有CSS中定义，无需重复 */