/* BAILU AGENT 下载页 —— 仅作用于内容区，顶部/底部复用全站通用组件样式 */
:root {
    --primary: #0056d2;
    --primary-hover: #0044a8;
    --grad-from: #3b82f6;
    --grad-to: #1e40af;
    --text-main: #0f172a;
    --text-secondary: #52525b;
    --text-muted: #94a3b8;
    --bg-body: #ffffff;
    --bg-soft: #f6f8fc;
    --border: #e7ecf3;
    --card-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    --card-shadow-hover: 0 18px 48px rgba(0, 86, 210, 0.16);
    --radius: 18px;
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ===== 背景装饰 ===== */
.bg-decor {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background:
        radial-gradient(1200px 600px at 50% -200px, rgba(0, 86, 210, 0.08), transparent 70%),
        linear-gradient(180deg, #ffffff 0%, #f6f8fc 100%);
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(900px 500px at 50% 120px, #000 0%, transparent 80%);
    -webkit-mask-image: radial-gradient(900px 500px at 50% 120px, #000 0%, transparent 80%);
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.bg-orb-1 {
    width: 460px;
    height: 460px;
    top: -160px;
    left: -120px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.45), transparent 70%);
}

.bg-orb-2 {
    width: 520px;
    height: 520px;
    top: 120px;
    right: -180px;
    background: radial-gradient(circle, rgba(0, 86, 210, 0.30), transparent 70%);
}

.bg-orb-3 {
    width: 420px;
    height: 420px;
    bottom: -160px;
    left: 40%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.22), transparent 70%);
}

/* ===== Hero（顶部留白避让 fixed 通用 header） ===== */
.ba-hero {
    max-width: 880px;
    margin: 0 auto;
    padding: 104px 24px 40px;
    text-align: center;
    animation: fadeUp 0.7s var(--ease) both;
}

.ba-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    background: rgba(0, 86, 210, 0.08);
    border: 1px solid rgba(0, 86, 210, 0.18);
    padding: 7px 16px;
    border-radius: 999px;
    margin-bottom: 26px;
}

.ba-hero-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 0 rgba(0, 86, 210, 0.5);
    animation: pulse 2s infinite;
}

.ba-hero-title {
    font-size: clamp(2.6rem, 7vw, 4.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.05;
    background: linear-gradient(120deg, #0f172a 0%, var(--primary) 60%, var(--grad-to) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.ba-hero-tagline {
    margin-top: 14px;
    font-size: clamp(1.1rem, 2.4vw, 1.5rem);
    font-weight: 600;
    color: var(--text-main);
}

.ba-hero-desc {
    margin: 18px auto 0;
    max-width: 600px;
    font-size: clamp(1rem, 2vw, 1.12rem);
    color: var(--text-secondary);
}

/* ===== 下载区 ===== */
.download-zone {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 18px 32px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--grad-from) 0%, var(--primary) 55%, var(--grad-to) 100%);
    color: #fff;
    box-shadow: 0 14px 34px rgba(0, 86, 210, 0.32);
    transition: box-shadow 0.3s var(--ease);
    position: relative;
    overflow: hidden;
}

.download-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    transition: left 0.7s var(--ease);
}

.download-btn:hover {
    box-shadow: 0 18px 40px rgba(0, 86, 210, 0.38);
}

.download-btn:hover::after {
    left: 130%;
}

.download-btn-os {
    flex-shrink: 0;
}

.download-btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.25;
}

.download-btn-main {
    font-size: 1.06rem;
    font-weight: 700;
}

.download-btn-sub {
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.85;
}

.download-btn-arrow {
    flex-shrink: 0;
    opacity: 0.9;
}

.download-meta {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* ===== 接入软件生态 ===== */
.integrations {
    max-width: 1120px;
    margin: 64px auto 0;
    padding: 0 24px;
}

.ba-cta {
    max-width: 1120px;
    margin: 72px auto 0;
    padding: 0 24px;
}

.ba-typing-line {
    text-align: center;
    font-size: clamp(1.5rem, 3.6vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text-main);
    margin-bottom: 0;
    min-height: 1.3em;
}

.ba-typing {
    background: linear-gradient(120deg, var(--primary) 0%, var(--grad-to) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
}

.ba-caret {
    display: inline-block;
    width: 3px;
    height: 1.05em;
    margin-left: 4px;
    vertical-align: -0.16em;
    background: var(--primary);
    border-radius: 2px;
    animation: ba-blink 1s steps(1) infinite;
}

@keyframes ba-blink {
    0%, 50% { opacity: 1; }
    50.01%, 100% { opacity: 0; }
}

.ba-section-subtitle {
    text-align: center;
    max-width: 660px;
    margin: -14px auto 30px;
    color: var(--text-secondary);
    font-size: 1rem;
}

.marquee {
    position: relative;
    overflow: hidden;
    padding: 10px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 38s linear infinite;
}

.logo-chip {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-right: 18px;
    padding: 13px 22px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.logo-chip img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    display: block;
    opacity: 1;
}

.logo-chip span {
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    color: var(--text-main);
}

@keyframes marquee-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ===== 特性 ===== */
.features {
    max-width: 1120px;
    margin: 40px auto 0;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 22px;
    box-shadow: var(--card-shadow);
    animation: fadeUp 0.7s var(--ease) both;
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.14), rgba(0, 86, 210, 0.10));
    color: var(--primary);
    margin-bottom: 18px;
}

.feature-icon svg {
    width: 26px;
    height: 26px;
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
}

.feature-card p {
    font-size: 0.94rem;
    color: var(--text-secondary);
}

/* ===== 系统要求 ===== */
.requirements {
    max-width: 1120px;
    margin: 64px auto 0;
    padding: 0 24px;
}

.ba-section-title {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 28px;
    color: var(--text-main);
}

.req-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 26px;
    box-shadow: var(--card-shadow);
}

.req-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: center;
}

.req-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.req-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
}

/* 系统要求与底部通用 footer 之间留出呼吸间距 */
.requirements {
    margin-bottom: 80px;
}

/* ===== Toast ===== */
.toast {
    position: fixed;
    left: 50%;
    bottom: 32px;
    transform: translate(-50%, 24px);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 22px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.92);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.28);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
    z-index: 1200;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.toast-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
    animation: pulse 1.6s infinite;
}

/* ===== 动画 ===== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 86, 210, 0.45);
    }

    70% {
        box-shadow: 0 0 0 9px rgba(0, 86, 210, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 86, 210, 0);
    }
}

.feature-card:nth-child(1) { animation-delay: 0.04s; }
.feature-card:nth-child(2) { animation-delay: 0.10s; }
.feature-card:nth-child(3) { animation-delay: 0.16s; }
.feature-card:nth-child(4) { animation-delay: 0.22s; }

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

    .req-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }

    .integrations,
    .features,
    .requirements,
    .ba-cta {
        margin-top: 52px;
    }
}

@media (max-width: 560px) {
    .ba-hero {
        padding-top: 84px;
    }

    .ba-hero-desc {
        font-size: 1rem;
    }

    .download-zone {
        margin-top: 32px;
    }

    .download-btn {
        width: 100%;
        justify-content: center;
        gap: 12px;
        padding: 15px 16px;
    }

    .download-btn-main {
        font-size: 1rem;
    }

    .download-meta {
        font-size: 0.82rem;
        line-height: 1.5;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .req-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .ba-section-title {
        font-size: 1.35rem;
    }

    .ba-section-subtitle {
        font-size: 0.95rem;
    }

    .ba-typing-line {
        font-size: 1.45rem;
    }

    .ba-typing {
        white-space: nowrap;
    }

    .logo-chip {
        gap: 10px;
        margin-right: 12px;
        padding: 10px 16px;
    }

    .logo-chip img {
        width: 26px;
        height: 26px;
    }

    .logo-chip span {
        font-size: 0.88rem;
    }

    .integrations,
    .features,
    .requirements,
    .ba-cta {
        margin-top: 44px;
    }
}

@media (max-width: 380px) {
    .ba-hero-title {
        font-size: 2.2rem;
    }

    .ba-typing-line {
        font-size: 1.2rem;
    }

    .download-btn {
        gap: 10px;
        padding: 14px 12px;
    }

    .download-btn-sub {
        font-size: 0.74rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
