/* ==========================================================================
   关于我们 —— 视觉增强样式
   作用域：
     .ab-page  → 关于我们页面 (zh/demo/about.html)
     .ab-block → 首页"关于我们"区块 (zh/demo/components/about.html)
   注意：本文件被两个模板分别引入，其他语言目录不受影响（它们仍用旧的 about.css / homeabout.css）
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 滚动逐个浮现（配合 about_reveal.js）
   隐藏态只在 JS 可用时生效（.ab-js 由模板内联脚本添加到 <html>），
   保证脚本异常时内容依然可见。
   -------------------------------------------------------------------------- */
.ab-js [data-ab-reveal],
.ab-js [data-ab-reveal-children] > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .7s cubic-bezier(.22, 1, .36, 1);
    transition-delay: var(--ab-d, 0ms);
    will-change: opacity, transform;
}

.ab-js [data-ab-reveal].ab-in,
.ab-js [data-ab-reveal-children] > *.ab-in {
    opacity: 1;
    transform: none;
    will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
    .ab-js [data-ab-reveal],
    .ab-js [data-ab-reveal-children] > * {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ==========================================================================
   2. 关于我们页面
   ========================================================================== */
.ab-page {
    --ab-brand: var(--backcolor, #004f91);
    --ab-ink: #0f172a;
    --ab-body: #4b5563;
    --ab-muted: #64748b;
    --ab-line: #e6ecf3;

    background: #fff;
}

.ab-page .ab-wrap {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 40px);
}

/* ---------------------- 顶部形象区 ---------------------- */
.ab-page .ab-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(36px, 5vw, 70px) 0 clamp(72px, 8vw, 112px);
    background:
            radial-gradient(1100px 420px at 88% -12%, rgba(0, 79, 145, .12), transparent 62%),
            linear-gradient(180deg, #f4f8fc 0%, #ffffff 100%);
}

/* 细网格纹理，向下淡出 */
.ab-page .ab-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
            linear-gradient(rgba(15, 23, 42, .045) 1px, transparent 1px),
            linear-gradient(90deg, rgba(15, 23, 42, .045) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .6), transparent 78%);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .6), transparent 78%);
}

.ab-page .ab-hero-inner {
    position: relative;
    z-index: 1;
}

.ab-page .ab-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--ab-brand);
}

.ab-page .ab-eyebrow::before {
    content: "";
    width: 26px;
    height: 2px;
    border-radius: 2px;
    background: var(--ab-brand);
}

.ab-page .ab-title {
    margin: 0;
    font-size: clamp(1.8rem, 3.6vw, 3rem);
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -.02em;
    color: var(--ab-ink);
}

.ab-page .ab-rule {
    display: block;
    width: 64px;
    height: 4px;
    margin: 22px 0;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--ab-brand), rgba(0, 79, 145, .15));
}

.ab-page .ab-lead {
    max-width: 58ch;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.95;
    color: var(--ab-body);
}

.ab-page .ab-lead:empty {
    display: none;
}

/* ---------------------- 数据卡片（上浮压在上区之上） ---------------------- */
.ab-page .ab-stats-wrap {
    position: relative;
    z-index: 2;
    margin-top: clamp(-70px, -5vw, -40px);
}

.ab-page .ab-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 1.4vw, 20px);
}

.ab-page .ab-stat {
    display: flex;
    align-items: center;
    gap: clamp(12px, 1.4vw, 18px);
    padding: clamp(18px, 2vw, 26px);
    border: 1px solid var(--ab-line);
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
    transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease, border-color .35s ease;
}

.ab-page .ab-stat:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 79, 145, .25);
    box-shadow: 0 18px 40px rgba(15, 23, 42, .1);
}

.ab-page .ab-stat-icon {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0, 79, 145, .1), rgba(0, 79, 145, .03));
    transition: transform .35s ease;
}

.ab-page .ab-stat:hover .ab-stat-icon {
    transform: scale(1.06);
}

.ab-page .ab-stat-icon img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.ab-page .ab-stat-body {
    min-width: 0;
}

.ab-page .ab-stat-num {
    display: flex;
    align-items: baseline;
    gap: 2px;
    font-size: clamp(1.5rem, 2.4vw, 2.1rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--ab-brand);
    font-variant-numeric: tabular-nums;
}

/* 覆盖 index.css 里 .is_num 的 2em 强制字号 */
.ab-page .ab-stat-num .is_num,
.ab-block .ab-stat-num .is_num {
    font-size: inherit !important;
    font-weight: inherit !important;
}

.ab-page .ab-stat-num i {
    font-style: normal;
    font-size: .62em;
    font-weight: 700;
}

.ab-page .ab-stat-label {
    margin: 4px 0 0;
    font-size: .9rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--ab-muted);
}

/* ---------------------- 正文排版 ---------------------- */
.ab-page .ab-body {
    padding: clamp(36px, 5vw, 70px) 0 clamp(40px, 6vw, 80px);
}

.ab-page .ab-content {

    font-size: clamp(1rem, 1.1vw, 1.06rem);
    line-height: 1.95;
    color: #374151;
}

.ab-page .ab-content > p:first-child {
    font-size: 1.08em;
    color: #1f2937;
}

.ab-page .ab-content p {
    margin: 0 0 1.2em;
}

.ab-page .ab-content h2,
.ab-page .ab-content h3,
.ab-page .ab-content h4 {
    margin: 1.7em 0 .7em;
    font-weight: 700;
    line-height: 1.4;
    color: var(--ab-ink);
}

.ab-page .ab-content h2 {
    font-size: 1.55em;
}

.ab-page .ab-content h3 {
    font-size: 1.25em;
}

.ab-page .ab-content h4 {
    font-size: 1.08em;
}

.ab-page .ab-content strong {
    color: var(--ab-ink);
    font-weight: 700;
}

.ab-page .ab-content a {
    color: var(--ab-brand);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ab-page .ab-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.6em auto;
    border-radius: 12px;
    box-shadow: 0 8px 26px rgba(15, 23, 42, .1);
}

.ab-page .ab-content ul,
.ab-page .ab-content ol {
    margin: 0 0 1.3em;
    padding-left: 1.2em;
}

.ab-page .ab-content li {
    margin: .4em 0;
}

.ab-page .ab-content ul > li {
    position: relative;
    list-style: none;
    padding-left: 20px;
}

.ab-page .ab-content ul > li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .78em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ab-brand);
}

.ab-page .ab-content blockquote {
    margin: 1.5em 0;
    padding: .4em 0 .4em 1.2em;
    border-left: 3px solid var(--ab-brand);
    color: #4b5563;
    font-style: italic;
}

.ab-page .ab-content table {
    width: 100%;
    margin: 1.6em 0;
    border-collapse: collapse;
    font-size: .95em;
}

.ab-page .ab-content th,
.ab-page .ab-content td {
    padding: 10px 12px;
    border: 1px solid var(--ab-line);
}

.ab-page .ab-content th {
    background: #f7fafc;
    text-align: left;
    color: var(--ab-ink);
}

/* ==========================================================================
   3. 首页"关于我们"区块
   ========================================================================== */
.ab-block {
    --ab-brand: var(--backcolor, #004f91);

    position: relative;
    overflow: hidden;
    color: #fff;
    background-color: var(--ab-brand);
    background-image:
            radial-gradient(900px 380px at 10% 0%, rgba(255, 255, 255, .16), transparent 62%),
            radial-gradient(760px 440px at 94% 118%, rgba(0, 0, 0, .3), transparent 60%),
            linear-gradient(120deg, rgba(255, 255, 255, .06), rgba(0, 0, 0, .16));
    display: flex;
}

.ab-block::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: repeating-linear-gradient(115deg,  rgba(255, 255, 255, .05) 0 1px, transparent 1px 26px);
}

.ab-block .ab-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: clamp(40px, 5vw, 72px) clamp(16px, 3vw, 40px);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: clamp(28px, 4vw, 64px);
    align-items: center;
}

.ab-block .ab-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .72);
}

.ab-block .ab-eyebrow::before {
    content: "";
    width: 26px;
    height: 2px;
    border-radius: 2px;
    background: rgba(255, 255, 255, .6);
}


.ab-block .ab-rule {
    display: block;
    width: 56px;
    height: 3px;
    margin: 18px 0;
    border-radius: 3px;
    background: linear-gradient(90deg, #fff, rgba(255, 255, 255, .18));
}

.ab-block .ab-copy {
    max-width: 58ch;
    margin: 0;
    font-size: clamp(.98rem, 1.1vw, 1.08rem);
    line-height: 1.95;
    color: rgba(255, 255, 255, .84);
}

.ab-block .ab-copy:empty {
    display: none;
}

.ab-block .ab-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: clamp(20px, 2.4vw, 30px);
    padding: 12px 26px;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 5px;
    font-size: .92rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: background-color .28s ease, color .28s ease, border-color .28s ease;
}

.ab-block .ab-more i {
    font-size: .8rem;
    transition: transform .28s ease;
}

.ab-block .ab-more:hover {
    background: #fff;
    border-color: #fff;
    color: var(--ab-brand);
}

.ab-block .ab-more:hover i {
    transform: translateX(4px);
}

.ab-block .ab-stats {
    display: grid;
    gap: 14px;
}

.ab-block .ab-stat {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 14px;
    background: rgba(255, 255, 255, .08);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition: transform .35s cubic-bezier(.22, 1, .36, 1), background-color .3s ease,
    border-color .3s ease, box-shadow .3s ease;
}

.ab-block .ab-stat:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, .15);
    border-color: rgba(255, 255, 255, .34);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .18);
}

.ab-block .ab-stat-icon {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #fff;
}

.ab-block .ab-stat-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.ab-block .ab-stat-num {
    display: flex;
    align-items: baseline;
    gap: 2px;
    font-size: clamp(1.4rem, 2.2vw, 1.9rem);
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.ab-block .ab-stat-num i {
    font-style: normal;
    font-size: .62em;
    font-weight: 700;
}

.ab-block .ab-stat-label {
    margin: 3px 0 0;
    font-size: .86rem;
    font-weight: 500;
    line-height: 1.5;
    color: rgba(255, 255, 255, .76);
}

/* ==========================================================================
   4. 响应式
   ========================================================================== */
@media (max-width: 1024px) {
    .ab-block .ab-wrap {
        grid-template-columns: 1fr;
        gap: clamp(24px, 3vw, 36px);
    }
}

@media (max-width: 900px) {
    .ab-page .ab-stats {
        grid-template-columns: 1fr;
    }

    .ab-page .ab-stats-wrap {
        margin-top: -34px;
    }

    .ab-page .ab-content {
        line-height: 1.85;
    }
}

@media (max-width: 600px) {
    .ab-page .ab-stat {
        padding: 14px 16px;
    }

    .ab-page .ab-stat-icon {
        width: 48px;
        height: 48px;
    }

    .ab-block .ab-stat {
        padding: 14px;
        gap: 12px;
    }

    .ab-block .ab-stat-icon {
        width: 46px;
        height: 46px;
    }


}
