/* ============================================
   企业官网模板 — Base & Utilities（大气升级版）
   ============================================ */

/* ── 容器 ── */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.container--narrow {
    max-width: 820px;
}

.container--wide {
    max-width: 1400px;
}

/* ── Section 通用（大留白）── */
.section {
    padding: var(--section-pad) 0;
}

.section--alt {
    background: var(--color-bg-alt);
}

.section--dark {
    background: var(--gradient-night);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.section--dark::before {
    content: '';
    position: absolute;
    width: 60vw;
    height: 60vw;
    top: -25vw;
    right: -15vw;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.14), transparent 60%);
    pointer-events: none;
}

.section--dark .section__title,
.section--dark .section__subtitle {
    color: #fff;
}

.section--dark .section__subtitle {
    color: rgba(255, 255, 255, 0.78);
}

.section__header {
    text-align: center;
    margin-bottom: var(--space-3xl);
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.section__title {
    font-size: var(--font-size-display);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    color: var(--color-text-dark);
}

.section__subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ── 标题装饰线 ── */
.heading-underline {
    position: relative;
    padding-bottom: var(--space-md);
}

.heading-underline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 3px;
    border-radius: 3px;
    background: var(--gradient-accent);
}

/* ── 正文层级 ── */
.lead {
    font-size: var(--font-size-lg);
    line-height: 1.8;
    color: var(--color-text-light);
}

p {
    line-height: 1.8;
}

/* ── 响应式文字 ── */
@media (max-width: 768px) {
    h1 { font-size: clamp(1.75rem, 7vw, var(--font-size-3xl)); }
    h2 { font-size: clamp(1.5rem, 6vw, var(--font-size-2xl)); }
    .section { padding: var(--space-3xl) 0; }
    .section__header { margin-bottom: var(--space-2xl); }
}

/* ══════════════════════════════════════════════════════════════
   滚动揭示动效（淡入 + 上移，交错入场）
   ══════════════════════════════════════════════════════════════ */
[data-animate] {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

[data-animate].is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    [data-animate] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    * {
        scroll-behavior: auto !important;
    }
}
