/* 全站通用增强：可复用板块 + 交互动效（首页之外的内容页共用）
   用法：在需要的页面 <link rel="stylesheet" href="/css/page-enhance.css">
        并引入 <script src="/js/page-enhance.js"></script>
   设计约束：不改动各页面既有样式，全部使用 .pe- 前缀，配色沿用主色 #1e88e5，
   并使用 html.has-reveal-js 守卫入场动画的隐藏态（JS 失效时内容保持可见）。 */

:root {
    --pe-primary: #1e88e5;
    --pe-primary-dark: #0d47a1;
    --pe-text: #546e7a;
    --pe-border: #eef1f6;
}

/* ================= 滚动入场动画 ================= */
.has-reveal-js .reveal .reveal-item {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: opacity, transform;
}

.has-reveal-js .reveal .reveal-item.is-visible {
    opacity: 1;
    transform: none;
}

.has-reveal-js .reveal .reveal-item:nth-child(1) {
    transition-delay: 0s;
}

.has-reveal-js .reveal .reveal-item:nth-child(2) {
    transition-delay: 0.08s;
}

.has-reveal-js .reveal .reveal-item:nth-child(3) {
    transition-delay: 0.16s;
}

.has-reveal-js .reveal .reveal-item:nth-child(4) {
    transition-delay: 0.24s;
}

.has-reveal-js .reveal .reveal-item:nth-child(5) {
    transition-delay: 0.32s;
}

.has-reveal-js .reveal .reveal-item:nth-child(6) {
    transition-delay: 0.4s;
}

/* ================= 通用板块容器与标题 ================= */
.pe-section {
    padding: 56px 0;
    background: #fff;
}
.pe-section .container{display: block;}
.pe-section .container .pe-head{justify-content: space-between;}
.pe-section-alt {
    background: linear-gradient(180deg, #f5f9ff 0%, #e9f2fb 100%);
}

.pe-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}

.pe-title {
    font-size: 26px;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px;
}

.pe-subtitle {
    font-size: 14px;
    color: var(--pe-text);
    margin: 0;
}

.pe-more {
    color: var(--pe-primary);
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.25s ease;
}

.pe-more:hover {
    gap: 10px;
    text-decoration: none;
}

/* ================= 数据统计条（数字滚动） ================= */
.pe-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.pe-stat {
    background: #fff;
    border: 1px solid var(--pe-border);
    border-radius: 12px;
    padding: 24px 18px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.pe-stat:hover {
    transform: translateY(-6px);
    border-color: #90caf9;
    box-shadow: 0 12px 28px rgba(30, 136, 229, 0.12);
}

.pe-stat-value {
    font-size: 30px;
    font-weight: 700;
    color: var(--pe-primary);
    line-height: 1.2;
}

.pe-stat-suffix {
    font-size: 15px;
    font-weight: 600;
    margin-left: 2px;
}

.pe-stat-label {
    font-size: 13px;
    color: var(--pe-text);
    margin-top: 8px;
}

/* ================= 通用卡片 ================= */
.pe-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pe-card {
    position: relative;
    overflow: hidden;
    height: 100%;
    background: #fff;
    border: 1px solid var(--pe-border);
    border-radius: 14px;
    padding: 26px 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.pe-card::after {
    content: '';
    position: absolute;
    right: -60px;
    bottom: -60px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(30, 136, 229, 0.06);
    transition: transform 0.5s ease;
}

.pe-card:hover {
    transform: translateY(-6px);
    border-color: #90caf9;
    box-shadow: 0 14px 34px rgba(30, 136, 229, 0.12);
}

.pe-card:hover::after {
    transform: scale(1.4);
}

.pe-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--pe-primary-dark), var(--pe-primary));
    color: #fff;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    transition: transform 0.35s ease;
}

.pe-card:hover .pe-card-icon {
    transform: rotate(-8deg) scale(1.08);
}

.pe-card-title {
    font-size: 17px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px;
}

.pe-card-desc {
    font-size: 14px;
    color: var(--pe-text);
    line-height: 1.8;
    margin: 0;
}

.pe-points {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
}

.pe-points li {
    display: flex;
    gap: 6px;
    align-items: flex-start;
    font-size: 13px;
    color: #546e7a;
    line-height: 1.7;
    margin-bottom: 6px;
}

.pe-points i {
    color: var(--pe-primary);
    margin-top: 4px;
    flex-shrink: 0;
}

/* ================= 发展历程时间轴 ================= */
.pe-timeline {
    position: relative;
    padding-left: 30px;
}

.pe-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 14px;
    bottom: 14px;
    width: 2px;
    background: linear-gradient(to bottom, #64b5f6, rgba(100, 181, 246, 0.15));
}

.pe-milestone {
    position: relative;
    background: #fff;
    border: 1px solid var(--pe-border);
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.pe-milestone:last-child {
    margin-bottom: 0;
}

.pe-milestone::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 24px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--pe-primary);
}

.pe-milestone:hover {
    transform: translateX(4px);
    border-color: #90caf9;
    box-shadow: 0 10px 26px rgba(30, 136, 229, 0.12);
}

.pe-milestone-year {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: var(--pe-primary);
    border-radius: 6px;
    padding: 2px 10px;
}

.pe-milestone-title {
    display: inline-block;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 10px 0 8px;
}

.pe-milestone-desc {
    font-size: 14px;
    color: var(--pe-text);
    line-height: 1.9;
    margin: 0;
}

/* ================= 能力对比表 ================= */
.pe-compare-wrap {
    overflow-x: auto;
}

.pe-compare {
    width: 100%;
    min-width: 640px;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border: 1px solid var(--pe-border);
    border-radius: 12px;
    overflow: hidden;
}

.pe-compare th,
.pe-compare td {
    padding: 14px 16px;
    font-size: 14px;
    color: #455a64;
    border-bottom: 1px solid #f1f4f9;
    text-align: center;
    white-space: nowrap;
}

.pe-compare tbody tr:last-child th,
.pe-compare tbody tr:last-child td {
    border-bottom: none;
}

.pe-compare thead th {
    background: #f7fbff;
    color: #333;
    font-weight: 600;
}

.pe-compare tbody tr:hover td,
.pe-compare tbody tr:hover th {
    background: #f9fcff;
}

.pe-compare th:first-child {
    text-align: left;
    font-weight: 500;
    color: #333;
}

.pe-compare .col-highlight {
    background: #eaf3ff;
    color: #1565c0;
    font-weight: 600;
}

.pe-compare tbody tr:hover td.col-highlight {
    background: #ddebff;
}

.pe-compare i.pe-yes {
    color: #2e7d32;
}

.pe-compare i.pe-no {
    color: #c62828;
}

/* ================= 常见问题（手风琴） ================= */
.pe-faq-list {
    max-width: 960px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--pe-border);
    border-radius: 12px;
    overflow: hidden;
}

.pe-faq-item {
    border-bottom: 1px solid #f1f4f9;
}

.pe-faq-item:last-child {
    border-bottom: none;
}

.pe-faq-q {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 18px 22px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.pe-faq-q:hover,
.pe-faq-item.is-open .pe-faq-q {
    color: var(--pe-primary);
    background: #f7fbff;
}

.pe-faq-arrow {
    flex-shrink: 0;
    color: var(--pe-primary);
    transition: transform 0.3s ease;
}

.pe-faq-item.is-open .pe-faq-arrow {
    transform: rotate(180deg);
}

/* 高度由 JS 按内容计算，实现平滑展开 */
.pe-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.pe-faq-a p {
    margin: 0;
    padding: 0 22px 18px;
    font-size: 14px;
    color: var(--pe-text);
    line-height: 1.9;
}

/* ================= 步骤流程 ================= */
.pe-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* 三步场景（原本给活动参与流程用；默认 .pe-steps 已是四列，需要三列时再加这个类） */
.pe-steps-3 {
    grid-template-columns: repeat(3, 1fr);
}

.pe-step {
    height: 100%;
    text-align: center;
    background: #fff;
    border: 1px dashed #dbe7f3;
    border-radius: 12px;
    padding: 22px 16px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.pe-step:hover {
    transform: translateY(-6px);
    border-style: solid;
    border-color: var(--pe-primary);
    box-shadow: 0 12px 28px rgba(30, 136, 229, 0.12);
}

.pe-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--pe-primary);
    color: var(--pe-primary);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
}

.pe-step-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px;
}

.pe-step-desc {
    font-size: 13px;
    color: var(--pe-text);
    line-height: 1.8;
    margin: 0;
}

/* ================= CTA 横幅 ================= */
.pe-cta {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    background: linear-gradient(135deg, #0d47a1, #1e88e5);
    color: #fff;
}

.pe-cta::after {
    content: '';
    position: absolute;
    right: -80px;
    top: -80px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    animation: peCtaFloat 8s ease-in-out infinite;
}

@keyframes peCtaFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-18px);
    }
}

.pe-cta h3 {
    position: relative;
    z-index: 1;
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 10px;
}

.pe-cta p {
    position: relative;
    z-index: 1;
    font-size: 14px;
    opacity: 0.9;
    margin: 0 0 22px;
}

.pe-cta-btn {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 30px;
    border-radius: 50px;
    background: #fff;
    color: var(--pe-primary);
    font-weight: 600;
    text-decoration: none;
    animation: peCtaPulse 2.8s ease-in-out infinite;
}

.pe-cta-btn:hover {
    color: var(--pe-primary-dark);
    text-decoration: none;
}

@keyframes peCtaPulse {

    0%,
    100% {
        box-shadow: 0 6px 18px rgba(255, 255, 255, 0.28);
    }

    50% {
        box-shadow: 0 12px 30px rgba(255, 255, 255, 0.5);
    }
}

/* ================= 锚点平滑滚动（考虑固定头部高度） ================= */
.pe-anchor {
    scroll-margin-top: 90px;
}

/* ================= 响应式 ================= */
@media (max-width: 992px) {
    .pe-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .pe-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .pe-steps,
    .pe-steps-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pe-section {
        padding: 36px 0;
    }

    .pe-title {
        font-size: 22px;
    }

    .pe-cards {
        grid-template-columns: 1fr;
    }

    .pe-steps,
    .pe-steps-3 {
        grid-template-columns: 1fr;
    }

    .pe-timeline {
        padding-left: 20px;
    }

    .pe-timeline::before {
        left: 5px;
    }

    .pe-milestone::before {
        left: -20px;
        width: 10px;
        height: 10px;
        border-width: 2px;
    }

    .has-reveal-js .reveal .reveal-item {
        transform: translateY(18px);
    }

    .pe-faq-q {
        font-size: 15px;
        padding: 15px 16px;
    }

    .pe-faq-a p {
        padding: 0 16px 15px;
        font-size: 13px;
    }

    .pe-cta {
        padding: 30px 20px;
    }

    .pe-cta h3 {
        font-size: 21px;
    }
}

/* ================= 降低动效偏好 ================= */
@media (prefers-reduced-motion: reduce) {
    .has-reveal-js .reveal .reveal-item {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .pe-cta::after,
    .pe-cta-btn {
        animation: none;
    }
}
