/**
 * 关于我们页面样式
 * About Us Page Styles
 *
 * @package JUOU_Theme
 * @since 1.0.0
 */

/* 页面整体背景色 */
body.page-template-page-about {
    background-color: #f8f9fa;
}

/* 统一背景为浅色 */
.about-section,
.features-section,
.team-section,
.timeline-section,
.page-content {
    background-color: #f8f9fa !important;
}

/* 确保优势卡片容器高度一致 */
.features-section .row {
    display: flex;
    flex-wrap: wrap;
}

.features-section .row > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

/* 移除section-bg类的深色背景 */
.page-template-page-about .section-bg {
    background-color: #f8f9fa !important;
}

/* 标题和文字样式 */
.page-template-page-about .section-title .sub-title {
    color: #6B41FF;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.page-template-page-about .section-title .title {
    color: #2c3e50;
    font-weight: 700;
    line-height: 1.3;
}

/* 关于我们内容区域 */
.about-content {
    padding: 30px;
}

.about-content p {
    color: #555;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* 关于我们图片 */
.about-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.about-image:hover {
    transform: translateY(-5px);
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* 优势卡片样式 */
.feature-card-items {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-top: 30px;
}

.feature-card-items:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.feature-image {
    width: 100%;
    height: 200px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 12px;
    position: relative;
}

.feature-image img {
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* SVG图标样式 - 由JavaScript动态添加 */
.feature-image.svg-icon {
    background: linear-gradient(135deg, #6B41FF 0%, #8B5FFF 100%);
    border-radius: 50%;
    padding: 20px;
}

.feature-image.svg-icon img {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
    object-fit: none;
    position: static;
}

.feature-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.feature-content h3 {
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    flex-shrink: 0;
}

.feature-content p {
    color: #666;
    font-size: 15px;
    line-height: 1.7;
    flex: 1;
    margin: 0;
}

/* 团队卡片样式 */
.team-card-items {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.team-card-items:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.team-image {
    position: relative;
    overflow: hidden;
}

/* 团队照片容器样式 - 确保图片水平居中 */
body.page-template-page-about .team-card-items .team-image,
.page-template-page-about .team-card-items .team-image {
    display: block;
    text-align: center;
    padding: 0; /* 移除main.css中的padding */
    overflow: hidden;
}

/* 团队照片样式 - 宽度自适应，水平居中，高度440px */
body.page-template-page-about .team-card-items .team-image img,
.page-template-page-about .team-card-items .team-image img {
    display: inline-block; /* 用于水平居中 */
    max-width: 100%; /* 宽度自适应，不超过容器 */
    height: 440px !important; /* 强制固定高度 */
    width: auto !important; /* 宽度自适应 */
    object-fit: cover; /* 保持比例，填充容器 */
    object-position: center; /* 图片水平居中裁剪 */
    transition: transform 0.3s ease;
    border-radius: 0 !important; /* 覆盖main.css中的20px圆角 */
    margin: 0 auto; /* 水平居中 */
}

/* 备用选择器，确保样式生效 */
body.page-template-page-about .team-image img,
.page-template-page-about .team-image img {
    display: inline-block;
    max-width: 100%;
    height: 440px !important;
    width: auto !important;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    border-radius: 0 !important;
    margin: 0 auto;
}

/* 悬停效果 - 使用更强的选择器 */
body.page-template-page-about .team-card-items:hover .team-image img,
.page-template-page-about .team-card-items:hover .team-image img {
    transform: scale(1.05);
}

.team-content {
    padding: 30px 25px;
    text-align: center;
}

.team-name {
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.team-designation {
    color: #6B41FF;
    font-size: 14px;
    font-weight: 500;
    display: block;
    margin-bottom: 15px;
}

.team-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* 时间线样式 */
.timeline-wrapper {
    position: relative;
    padding: 20px 0;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 50px;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    display: none; /* 隐藏圆点 */
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 127px;
    top: 46px;
    width: 2px;
    height: calc(100% + 20px);
    background: #e9ecef;
    z-index: 1;
}

.timeline-item:last-child::after {
    display: none;
}

.timeline-date {
    flex: 0 0 120px;
    text-align: right;
    padding-right: 30px;
}

.timeline-date span {
    background: #6B41FF;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.timeline-content {
    flex: 1;
    padding-left: 50px;
}

.timeline-content h4 {
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.timeline-content p {
    color: #666;
    font-size: 15px;
    line-height: 1.7;
}

/* WordPress页面内容样式 */
.content-wrapper {
    background: #ffffff;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.content-wrapper h1,
.content-wrapper h2,
.content-wrapper h3,
.content-wrapper h4,
.content-wrapper h5,
.content-wrapper h6 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 20px;
}

.content-wrapper p {
    color: #555;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.content-wrapper ul,
.content-wrapper ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.content-wrapper li {
    color: #555;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 8px;
}

/* CTA区域样式 */
.cta-section {
    background-color: #2c3e50 !important;
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 62, 80, 0.8);
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
}

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

.cta-description {
    color: #e9ecef;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.gt-theme-btn {
    background: #6B41FF;
    color: #ffffff;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.gt-theme-btn:hover {
    background: #5a35e0;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(107, 65, 255, 0.3);
}

/* 响应式设计 */
@media (max-width: 991px) {
    .about-content {
        padding: 20px;
        margin-top: 30px;
    }

    .feature-card-items {
        padding: 30px 20px;
    }

    .timeline-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-left: 0;
    }

    .timeline-date {
        flex: none;
        text-align: center;
        padding-right: 0;
        margin-bottom: 15px;
        order: -1;
    }

    .timeline-content {
        padding-left: 0;
        padding-top: 10px;
    }

    .timeline-item::before {
        display: none; /* 在移动端隐藏圆点 */
    }

    .timeline-item::after {
        display: none; /* 在移动端隐藏时间线连线 */
    }
}

@media (max-width: 767px) {
    .content-wrapper {
        padding: 30px 20px;
    }

    .cta-title {
        font-size: 24px;
    }

    .cta-description {
        font-size: 16px;
    }

    .gt-theme-btn {
        padding: 12px 30px;
        font-size: 14px;
    }
}