/**
 * About Page Styles - 关于我们页面样式
 *
 * 颜色参考自 root.css 中定义的主题变量：
 * --thm-base: #2d76c0     主题蓝色
 * --thm-color: #3A97FF    亮蓝色
 * --thm-black: #14296C    深蓝黑
 * --thm-f6: #F1F8FF       浅蓝色背景
 * --thm-p: #0b2336        深色文字
 */


.atf-page-heading.atf-align-left .atf-page-heading-title,
.atf-page-heading.atf-align-left .atf-post-label > span:not(:last-child)::after,
.atf-page-heading.atf-align-left .atf-post-label > span,
.atf-page-heading.atf-align-left .atf-post-label > span:last-child,
.atf-page-heading.atf-align-left .atf-post-label span a,.atf-page-heading.atf-align-left .atf-post-label > span:not(:has(a)){
    color:var(--bs-white);
}

@media (min-width: 768px) {
    .atf-page-heading.atf-align-left .atf-page-heading-title {
        font-size: var(--v2-h0-font-size) !important;
        line-height: var(--v2-h0-line-height) !important;
        font-weight: 500 !important;
    }
}

@media (max-width: 767px) {
    .atf-page-heading.atf-align-left .atf-page-heading-title,
    .atf-page-heading.atf-align-left .atf-post-label > span,
    .atf-page-heading.atf-align-left .atf-post-label > span a,
    .atf-page-heading.atf-align-left .atf-post-label > span:not(:last-child)::after {
        color: #FFFFFF !important;
    }

    .atf-page-heading.atf-align-left .atf-post-label > span:last-child,
    .atf-page-heading.atf-align-left .atf-post-label > span:last-child a,
    .atf-page-heading.atf-align-left .atf-post-label > span:not(:has(a)) {
        color: rgba(255, 255, 255, 0.6) !important;
    }
}

/* ============================================
   1. 公司简介区域 - Company Profile Section
   ============================================ */

/* 简介区域容器 */
.about-profile-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--thm-f6) 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

/* 装饰性背景元素 */
.about-profile-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(45, 118, 192, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.about-profile-section::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(58, 151, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* 简介内容卡片 */
.about-profile-card {
    background: var(--color-white);
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(20, 41, 108, 0.08);
    position: relative;
    z-index: 1;
}

/* 简介标题容器 */
.about-profile-header {
    margin-bottom: 35px;
    position: relative;
}

/* 小标题 - Welcome 文字 */
.about-profile-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--thm-base);
    text-transform: none;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

/* 小标题前的装饰线 */
.about-profile-subtitle::before {
    content: '';
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--thm-base), var(--thm-color));
    border-radius: 2px;
}

/* 主标题 */
.about-profile-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: var(--thm-black);
    margin: 0;
    line-height: 1.3;
}

/* 标题下装饰线 */
.about-profile-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--thm-line);
    border-radius: 2px;
    margin-top: 20px;
}

/* 简介段落文字 */
.about-profile-text {
    font-size: 16px;
    line-height: 1.9;
    color: var(--thm-p);
    margin-bottom: 20px;
    text-align: justify;
}

.about-profile-text:last-child {
    margin-bottom: 0;
}

/* ============================================
   2. 品牌展示区域 - Brand Showcase Section
   ============================================ */

/* 品牌区域背景 */
.about-brand-section {
    padding: 100px 0;
    background: var(--thm-line);
    position: relative;
    overflow: hidden;
}

/* 动态背景装饰 - 使用纯CSS实现星点效果 */
.about-brand-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* 使用多层径向渐变模拟星点 */
    background-image: radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(2px 2px at 130px 80px, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 160px 120px, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(2px 2px at 200px 50px, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 250px 150px, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(2px 2px at 300px 100px, rgba(255, 255, 255, 0.6), transparent);
    background-size: 350px 200px;
    background-repeat: repeat;
    opacity: 0.15;
    animation: floatStars 60s linear infinite;
}

@keyframes floatStars {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 1000px 1000px;
    }
}

/* 品牌标题 */
.about-brand-title {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 600;
    color: var(--thm-white);
    text-align: center;
    margin: 0;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* 品牌副标题 */
.about-brand-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    margin-top: 15px;
    position: relative;
    z-index: 1;
}

/* 统计数字容器 */
.about-stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
    position: relative;
    z-index: 1;
}

/* 单个统计卡片 */
.about-stat-item {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.about-stat-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

/* 统计数字 */
.about-stat-number {
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 700;
    color: var(--color-white);
    line-height: 1;
    margin-bottom: 10px;
}

/* 统计标签 */
.about-stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   3. 公司环境区域 - Company Environment Section
   ============================================ */

/* 环境区域容器 */
.about-environment-section {
    padding: 80px 0;
    background: var(--thm-f6);
}

/* 环境标题区域 */
.about-env-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 50px;
}

/* 环境标题左侧 */
.about-env-title-wrap {
    flex: 1;
    min-width: 280px;
}

/* 环境小标题 */
.about-env-subtitle {
    font-size: 14px;
    font-weight: 600;
    color: var(--thm-base);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

/* 环境主标题 */
.about-env-title {
    font-size: clamp(28px, 3.5vw, 38px);
    font-weight: 700;
    color: var(--thm-black);
    margin: 0;
}

/* 环境描述右侧 */
.about-env-description {
    flex: 1;
    min-width: 300px;
    padding-left: 30px;
    border-left: 3px solid var(--thm-base);
}

.about-env-description p {
    font-size: 16px;
    color: var(--thm-gray);
    line-height: 1.8;
    margin: 0;
}

/* 地址图标 */
.about-env-description i {
    color: var(--thm-base);
    margin-right: 8px;
}

/* 轮播图容器优化 */
.about-carousel-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(20, 41, 108, 0.12);
}

/* 轮播图片优化 - 兼容 picture 标签和 img 标签 */
.about-carousel-container .atf-post-img {
    border-radius: 0;
    overflow: hidden;
}

.about-carousel-container .atf-post-img img,
.about-carousel-container .atf-post-img picture {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

/* picture 标签内的 img 继承样式 */
.about-carousel-container .atf-post-img picture img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.about-carousel-container .atf-post-slide:hover .atf-post-img img,
.about-carousel-container .atf-post-slide:hover .atf-post-img picture {
    transform: scale(1.05);
}

/* ============================================
   4. 核心价值卡片覆盖样式 - Core Values Override
   ============================================ */

/* 核心价值区域优化 */
.tpa-core-values-section {
    padding: 80px 0 60px;
    background: var(--color-white);
}

/* 核心价值标题 */
.about-values-header {
    text-align: center;
    margin-bottom: 50px;
}

.about-values-subtitle {
    font-size: 14px;
    font-weight: 600;
    color: var(--thm-base);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.about-values-title {
    font-size: clamp(28px, 3.5vw, 38px);
    font-weight: 700;
    color: var(--thm-black);
    margin: 0;
}

/* 使用主题色替换卡片图标渐变 */
.tpa-value-card:nth-child(1) .tpa-value-icon-wrapper i {
    background: linear-gradient(135deg, var(--thm-base) 0%, var(--thm-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tpa-value-card:nth-child(2) .tpa-value-icon-wrapper i {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tpa-value-card:nth-child(3) .tpa-value-icon-wrapper i {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tpa-value-card:nth-child(4) .tpa-value-icon-wrapper i {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 悬停时标题使用主题色 */
.tpa-value-card:hover .tpa-value-title {
    color: var(--thm-base);
}

.about-values-header.wow,
.tpa-value-card.wow,
.tpa-counter-title.wow,
.tpa-counter-subtitle.wow,
.tpa-counter-card.wow,
.about-profile-card.wow,
.about-env-title-wrap.wow,
.about-env-description.wow,
.about-carousel-container.wow {
    visibility: visible !important;
    opacity: 1 !important;
}

/* ============================================
   5. 响应式适配 - Responsive Design
   ============================================ */

/* 平板设备 */
@media (max-width: 991px) {
    /* 简介区域 */
    .about-profile-section {
        padding: 60px 0;
    }

    .about-profile-card {
        padding: 35px 30px;
    }

    /* 品牌统计 */
    .about-stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* 环境区域 */
    .about-environment-section {
        padding: 60px 0;
    }

    .about-env-header {
        flex-direction: column;
        gap: 24px;
        margin-bottom: 36px;
    }

    .about-env-description {
        padding-left: 20px;
        border-left-width: 2px;
    }
}

/* 手机设备 */
@media (max-width: 575px) {
    /* 简介区域 */
    .about-profile-section {
        padding: 40px 0;
    }

    .about-profile-card {
        padding: 25px 20px;
        border-radius: 15px;
    }

    .about-profile-text {
        font-size: 15px;
        line-height: 1.8;
    }

    /* 品牌区域 */
    .about-brand-section {
        padding: 60px 0;
    }

    .about-stats-container {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .about-stat-item {
        padding: 20px 15px;
    }

    .about-stat-number {
        font-size: 32px;
    }

    /* 环境区域 */
    .about-environment-section {
        padding: 32px 0 36px;
    }

    .about-env-header {
        gap: 20px;
        margin-bottom: 28px;
    }

    .about-env-description {
        padding-left: 15px;
    }

    .about-carousel-container .atf-post-img img,
    .about-carousel-container .atf-post-img picture {
        height: 250px;
    }

    /* 核心价值 */
    .tpa-core-values-section {
        padding: 40px 0 30px;
    }

    .about-values-header.wow,
    .tpa-value-card.wow,
    .tpa-counter-title.wow,
    .tpa-counter-subtitle.wow,
    .tpa-counter-card.wow,
    .about-profile-card.wow,
    .about-env-title-wrap.wow,
    .about-env-description.wow,
    .about-carousel-container.wow {
        visibility: visible !important;
        opacity: 1 !important;
        animation-name: none !important;
        transform: none !important;
    }
}

/* 超小屏幕 */
@media (max-width: 375px) {
    .about-stats-container {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   V2 About Page Overrides
   说明：
   - 关于页保留内容结构，但把介绍区、品牌区和统计卡统一到 V2。
   ============================================================ */

.about-profile-section {
    background: linear-gradient(180deg, var(--v2-bg-functional) 0%, var(--v2-bg-primary) 100%);
}

.about-profile-card {
    background: var(--v2-bg-primary);
    border: 1px solid var(--v2-bg-divider);
    border-radius: var(--v2-radius-lg);
    box-shadow: var(--v2-shadow-card);
}

.about-profile-subtitle {
    color: var(--v2-primary-500);
}

.about-profile-title::after {
    background: var(--v2-primary-500);
}

.about-profile-title {
    color: var(--v2-text-heading);
}

.about-profile-text {
    color: var(--v2-text-body);
}

.about-brand-section {
    background: linear-gradient(135deg, var(--v2-primary-600) 0%, var(--v2-primary-500) 100%);
}

/* Phase 8 visual spec alignment */
body.functional-banner-page .about-profile-title,
body.functional-banner-page .about-env-title,
body.functional-banner-page .about-values-title,
body.functional-banner-page .tpa-counter-title {
    font-size: 32px;
    line-height: 40px;
    font-weight: 500;
}

body.functional-banner-page .tpa-value-title {
    font-size: 24px;
    line-height: 32px;
    font-weight: 500;
}

body.functional-banner-page .about-profile-text,
body.functional-banner-page .about-env-description p,
body.functional-banner-page .tpa-value-description {
    font-size: 16px;
    line-height: 24px;
}

body.functional-banner-page .about-profile-card,
body.functional-banner-page .about-carousel-container,
body.functional-banner-page .about-stat-item,
body.functional-banner-page .tpa-value-card,
body.functional-banner-page .tpa-counter-card {
    border-radius: 8px;
}

body.functional-banner-page .about-carousel-container .atf-post-img,
body.functional-banner-page .about-carousel-container .atf-post-img img,
body.functional-banner-page .about-carousel-container .atf-post-img picture,
body.functional-banner-page .about-carousel-container .atf-post-img picture img,
body.functional-banner-page .atf-Subscribe-area .atf-subscribe-input,
body.functional-banner-page .atf-Subscribe-area .atf-subscribe-btn {
    border-radius: var(--v2-radius-sm, 8px) !important;
}

@media (max-width: 767px) {
    body.functional-banner-page .about-profile-title,
    body.functional-banner-page .about-env-title,
    body.functional-banner-page .about-values-title,
    body.functional-banner-page .tpa-counter-title {
        font-size: 24px;
        line-height: 32px;
    }

    body.functional-banner-page .tpa-value-title {
        font-size: 20px;
        line-height: 28px;
    }

    body.functional-banner-page .tpa-counter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    body.functional-banner-page .tpa-counter-card {
        min-width: 0;
        padding: 24px 12px;
    }
}
