/* TestHub 官网落地页 */
.landing-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #0f172a;
    background: #f8fafc;
    --landing-nav-h: 3.75rem;
    --landing-cap-sticky-h: 4.75rem;
    scroll-padding-top: calc(var(--landing-nav-h) + var(--landing-cap-sticky-h));
}

.landing-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    background: rgba(15, 23, 42, 0.82);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-hero {
    position: relative;
    overflow: hidden;
    background-color: #0f172a;
    color: #fff;
    /* 与 landing-bg-hero.png 一致：1920×1000 ≈ 1.92:1，cover 裁切时各端比例稳定 */
    min-height: clamp(520px, 52vw, 1000px);
}

.landing-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.landing-hero__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
    display: block;
}

.landing-hero__bg-scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(100deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.72) 32%, rgba(49, 46, 129, 0.45) 58%, rgba(14, 116, 144, 0.35) 100%),
        radial-gradient(ellipse 55% 45% at 18% 35%, rgba(99, 102, 241, 0.35), transparent 60%),
        radial-gradient(ellipse 50% 40% at 82% 15%, rgba(6, 182, 212, 0.28), transparent 55%);
}

.landing-hero__content {
    position: relative;
    z-index: 2;
}

.landing-hero__grid {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.1;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.35) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.35) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
}

.landing-float {
    animation: landing-float 6s ease-in-out infinite;
}

.landing-float--delay {
    animation-delay: -3s;
}

@keyframes landing-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.landing-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.1);
}

.landing-stat {
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    padding: 0.85rem 1rem;
    backdrop-filter: blur(8px);
}

.landing-feature {
    scroll-margin-top: calc(var(--landing-nav-h) + var(--landing-cap-sticky-h) + 0.5rem);
    position: relative;
    overflow: hidden;
}

.landing-feature__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.landing-feature__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
    display: block;
}

.landing-feature--ai .landing-feature__bg-img {
    object-position: center right;
}

.landing-feature__bg-scrim {
    position: absolute;
    inset: 0;
}

.landing-feature__bg-scrim--light {
    background:
        linear-gradient(105deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.78) 38%, rgba(255, 255, 255, 0.45) 62%, rgba(255, 255, 255, 0.2) 100%),
        linear-gradient(180deg, rgba(248, 250, 252, 0.5) 0%, transparent 35%, transparent 70%, rgba(248, 250, 252, 0.35) 100%);
}

.landing-feature--ai .landing-feature__bg-scrim--light {
    background:
        linear-gradient(255deg, rgba(255, 255, 255, 0.93) 0%, rgba(255, 255, 255, 0.8) 40%, rgba(255, 255, 255, 0.5) 65%, rgba(255, 255, 255, 0.25) 100%),
        linear-gradient(180deg, rgba(245, 243, 255, 0.55) 0%, transparent 40%, transparent 75%, rgba(255, 255, 255, 0.4) 100%);
}

.landing-feature__inner {
    position: relative;
    z-index: 1;
}

.landing-feature--jmeter {
    background-color: #f0fdfa;
    /* 背景图 1920×880（≈2.18:1），与截图 1024×478 同量级宽屏比例 */
    min-height: clamp(420px, 46vw, 880px);
}

.landing-feature--jmeter .landing-feature__bg-img {
    object-position: center left;
}

.landing-feature--jmeter .landing-feature__bg-scrim--light {
    background:
        linear-gradient(255deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.5) 42%, rgba(255, 255, 255, 0.82) 68%, rgba(255, 255, 255, 0.93) 100%),
        linear-gradient(180deg, rgba(240, 253, 250, 0.6) 0%, transparent 40%, transparent 72%, rgba(248, 250, 252, 0.4) 100%);
}

.landing-feature--ai {
    background-color: #f5f3ff;
    /* 背景 1920×1000；右侧双截图叠放，区块偏高 */
    min-height: clamp(480px, 52vw, 1000px);
}

.landing-feature--prompts {
    background-color: #1e1b4b;
    /* 背景 1920×880（≈2.18:1），与 01 单截图区块同比例；深色区 */
    min-height: clamp(420px, 46vw, 880px);
}

.landing-feature--prompts .landing-feature__bg-img {
    object-position: center left;
}

.landing-feature__bg-scrim--dark {
    background:
        linear-gradient(255deg, rgba(30, 27, 75, 0.15) 0%, rgba(30, 27, 75, 0.45) 38%, rgba(15, 23, 42, 0.72) 62%, rgba(15, 23, 42, 0.88) 100%),
        linear-gradient(180deg, rgba(49, 46, 129, 0.5) 0%, transparent 38%, transparent 68%, rgba(15, 23, 42, 0.55) 100%);
}

.landing-feature--toolkit {
    background-color: #ecfeff;
    /* 背景 1920×1150（≈1.67:1）；双截图 + 底部四宫格，高于 02 */
    min-height: clamp(520px, 58vw, 1150px);
}

.landing-feature--toolkit .landing-feature__bg-img {
    object-position: center right;
}

.landing-feature--toolkit .landing-feature__bg-scrim--light {
    background:
        linear-gradient(255deg, rgba(255, 255, 255, 0.93) 0%, rgba(255, 255, 255, 0.82) 35%, rgba(255, 255, 255, 0.55) 58%, rgba(255, 255, 255, 0.28) 100%),
        linear-gradient(180deg, rgba(236, 254, 255, 0.65) 0%, transparent 32%, transparent 62%, rgba(248, 250, 252, 0.5) 100%);
}

.landing-shot {
    border-radius: 1.25rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.6) inset,
        0 25px 60px -28px rgba(15, 23, 42, 0.35);
    overflow: hidden;
    background: #fff;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.landing-shot:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.7) inset,
        0 32px 70px -24px rgba(79, 70, 229, 0.28);
}

.landing-shot img {
    display: block;
    width: 100%;
    height: auto;
}

.landing-shot-frame {
    padding: 0.45rem;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border-color: rgba(15, 23, 42, 0.5);
}

.landing-shot-frame img {
    border-radius: 0.55rem;
    background: #f8fafc;
}

.landing-shots-duo {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.landing-shot--labeled {
    margin: 0;
}

.landing-shot__cap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.9rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
}

.landing-shot__cap--violet {
    background: linear-gradient(90deg, #5b21b6, #7c3aed);
}

.landing-shot__cap--indigo {
    background: linear-gradient(90deg, #3730a3, #4f46e5);
}

.landing-shot__cap--teal {
    background: linear-gradient(90deg, #0f766e, #14b8a6);
}

.landing-shot__cap--cyan {
    background: linear-gradient(90deg, #0e7490, #06b6d4);
}

.landing-shot__dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: #4ade80;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.35);
    flex-shrink: 0;
}

.landing-card-accent {
    width: 3px;
    border-radius: 999px;
    flex-shrink: 0;
    align-self: stretch;
}

.landing-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
}

.landing-index-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    padding: 0.3rem 0.7rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    font-variant-numeric: tabular-nums;
    background: #0f172a;
    color: #fff;
}

.landing-index-pill--teal { background: linear-gradient(135deg, #0d9488, #14b8a6); }
.landing-index-pill--violet { background: linear-gradient(135deg, #7c3aed, #8b5cf6); }
.landing-index-pill--cyan { background: linear-gradient(135deg, #0891b2, #06b6d4); }
.landing-index-pill--light {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #a5f3fc;
}

.landing-hero-visual {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.landing-hero-visual__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.landing-hero-card {
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.35), rgba(6, 182, 212, 0.25));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* 包裹 01–04：吸顶条在滚过原位后贴顶栏下方，滚出本区后随内容离开 */
.landing-cap-sticky-region {
    position: relative;
}

.landing-cap-strip {
    position: sticky;
    top: var(--landing-nav-h);
    z-index: 40;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.85) inset,
        0 4px 20px -6px rgba(15, 23, 42, 0.1);
    transition: box-shadow 0.2s ease, background 0.2s ease;
}

.landing-cap-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 0.85rem;
    border-radius: 0.85rem;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    text-decoration: none;
    color: #0f172a;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.landing-cap-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -18px rgba(15, 23, 42, 0.35);
}

.landing-cap-item--teal:hover { border-color: #5eead4; background: #f0fdfa; }
.landing-cap-item--violet:hover { border-color: #c4b5fd; background: #f5f3ff; }
.landing-cap-item--indigo:hover { border-color: #a5b4fc; background: #eef2ff; }
.landing-cap-item--cyan:hover { border-color: #67e8f9; background: #ecfeff; }
.landing-cap-item--fuchsia:hover { border-color: #f0abfc; background: #fdf4ff; }

.landing-feature--uia {
    background-color: #faf5ff;
}

.landing-feature--uia .landing-feature__bg-img {
    object-position: center 40%;
}

.landing-feature--uia .landing-feature__bg-scrim--light {
    background:
        linear-gradient(105deg, rgba(250, 245, 255, 0.94) 0%, rgba(248, 250, 252, 0.88) 45%, rgba(237, 233, 254, 0.75) 100%),
        radial-gradient(ellipse 50% 40% at 85% 20%, rgba(139, 92, 246, 0.12), transparent 55%);
}

/* UI 自动化区块：平台能力简要说明（与 Web UI 页「说明」弹窗同源，独立样式不影响其他区块） */
.landing-feature--uia .landing-uia-insight {
    margin-top: 1.25rem;
    padding: 0.7rem 0.85rem 0.75rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(139, 92, 246, 0.16);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.78) 0%, rgba(237, 233, 254, 0.42) 100%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset;
}

.landing-feature--uia .landing-uia-insight__badge {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #7c3aed;
    margin-bottom: 0.3rem;
}

.landing-feature--uia .landing-uia-insight__text {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.55;
    color: #64748b;
}

.landing-feature--uia .landing-uia-insight__text strong {
    font-weight: 600;
    color: #5b21b6;
}

.landing-cap-item__label {
    font-size: 0.82rem;
    font-weight: 700;
}

.landing-cap-item .landing-index-pill {
    min-width: 1.85rem;
    padding: 0.2rem 0.45rem;
    font-size: 0.72rem;
}

.landing-cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.35rem;
    border-radius: 0.85rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: #312e81;
    background: linear-gradient(180deg, #fff 0%, #e0e7ff 100%);
    box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.landing-cta-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 36px -10px rgba(99, 102, 241, 0.55);
}

.landing-cta-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 0.85rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.2s ease;
}

.landing-cta-ghost:hover {
    background: rgba(255, 255, 255, 0.16);
}

.landing-section-title {
    font-size: clamp(1.65rem, 3vw, 2.15rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.landing-gradient-text {
    background: linear-gradient(90deg, #4f46e5, #0d9488, #db2777);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* 底部：文案（装饰背景）/ 按钮（纯色条）/ 页脚 三块分离 */
.landing-bottom {
    background-color: #0f172a;
}

/* 文案区：标题 + 说明 + 底部按钮（同一块背景） */
.landing-cta-copy {
    position: relative;
    overflow: hidden;
    background-color: #1e1b4b;
    min-height: clamp(120px, 16vw, 200px);
}

.landing-cta-copy__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.landing-cta-copy__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    display: block;
}

.landing-cta-copy__scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(30, 27, 75, 0.35) 0%, rgba(49, 46, 129, 0.62) 42%, rgba(14, 116, 144, 0.55) 100%),
        linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.25) 88%, rgba(15, 23, 42, 0.55) 100%);
}

.landing-cta-copy__inner {
    position: relative;
    z-index: 1;
}

/* CTA 文案区底部按钮 */
.landing-cta-copy__actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.landing-cta-copy__actions .landing-cta-ghost {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.06);
}

.landing-footer {
    color: rgba(248, 250, 252, 0.85);
    background: #020617;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.25rem 0;
}

.landing-footer__brand {
    min-width: 0;
}

.landing-footer__title {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.92);
}

.landing-footer__tagline {
    margin: 0.2rem 0 0;
    font-size: 0.75rem;
    line-height: 1.4;
    color: rgba(148, 163, 184, 0.95);
}

.landing-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

/* 回到顶部：滚动超过阈值后显示，近顶部隐藏 */
.landing-back-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.5rem;
    z-index: 45;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 9999px;
    background: linear-gradient(145deg, #4f46e5 0%, #0891b2 100%);
    color: #fff;
    box-shadow:
        0 4px 14px -4px rgba(49, 46, 129, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.12) inset;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(0.75rem) scale(0.92);
    transition:
        opacity 0.28s ease,
        visibility 0.28s ease,
        transform 0.28s ease,
        box-shadow 0.2s ease;
    pointer-events: none;
}

.landing-back-top--visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.landing-back-top:hover {
    box-shadow:
        0 8px 22px -6px rgba(49, 46, 129, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.landing-back-top:focus-visible {
    outline: 2px solid #67e8f9;
    outline-offset: 3px;
}

.landing-back-top__icon {
    width: 1.35rem;
    height: 1.35rem;
}

@media (min-width: 640px) {
    .landing-back-top {
        right: 1.75rem;
        bottom: 2rem;
        width: 3rem;
        height: 3rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .landing-float,
    .landing-float--delay {
        animation: none;
    }
    .landing-shot:hover {
        transform: none;
    }
    .landing-back-top {
        transition: opacity 0.15s ease, visibility 0.15s ease;
    }
    .landing-back-top--visible {
        transform: none;
    }
}
