/* GEO merchant free-entry homepage overrides. Scoped to avoid touching legacy pages. */
body[data-tc-home="merchant-free"] {
    --free-orange: #ff6600;
    --free-orange-light: #ff8533;
    --free-ink: #0d1117;
    --free-muted: #667085;
    --free-border: #e5e7eb;
    --free-soft: #fff7ed;
    padding-bottom: 0;
}

body[data-tc-home="merchant-free"] section[id],
body[data-tc-home="merchant-free"] aside[id] {
    scroll-margin-top: 90px;
}

body[data-tc-home="merchant-free"] .free-header {
    background: rgba(13, 17, 23, 0.96);
}

body[data-tc-home="merchant-free"] .free-nav {
    gap: 28px;
}

body[data-tc-home="merchant-free"] .free-nav a {
    white-space: nowrap;
}

body[data-tc-home="merchant-free"] .free-hero {
    min-height: auto;
    padding: 128px 0 72px;
    background:
        radial-gradient(circle at 76% 32%, rgba(255, 102, 0, 0.18), transparent 32%),
        linear-gradient(180deg, #0d1117 0%, #1a1f2e 100%);
}

body[data-tc-home="merchant-free"] .free-hero .hero-bg {
    pointer-events: none;
}

body[data-tc-home="merchant-free"] .free-hero .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 72px;
    align-items: center;
    text-align: left;
}

body[data-tc-home="merchant-free"] .free-hero-copy {
    max-width: 680px;
}

body[data-tc-home="merchant-free"] .free-hero .hero-badge {
    margin-bottom: 24px;
}

body[data-tc-home="merchant-free"] .free-hero .hero-title {
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.16;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

body[data-tc-home="merchant-free"] .free-hero .hero-desc {
    max-width: 620px;
    margin-bottom: 28px;
}

body[data-tc-home="merchant-free"] .free-hero-actions {
    justify-content: flex-start !important;
    margin-bottom: 18px !important;
}

body[data-tc-home="merchant-free"] .free-hero-actions .btn-glow {
    flex-direction: row;
    padding: 15px 26px;
}

body[data-tc-home="merchant-free"] .free-hero-note {
    color: rgba(240, 246, 252, 0.66);
    font-size: 13px;
    line-height: 1.7;
}

body[data-tc-home="merchant-free"] .free-hero-stats {
    justify-content: flex-start !important;
    max-width: none !important;
    margin: 36px 0 0 !important;
    padding: 22px 26px !important;
    gap: 30px !important;
}

body[data-tc-home="merchant-free"] .free-hero-stats .stat-num {
    font-size: 25px;
}

body[data-tc-home="merchant-free"] .free-hero-stats .stat-label {
    font-size: 13px;
}

body[data-tc-home="merchant-free"] .free-group-card {
    position: relative;
    z-index: 2;
    padding: 30px 28px 26px;
    border: 1px solid rgba(255, 102, 0, 0.42);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3), 0 0 0 8px rgba(255, 102, 0, 0.06);
    text-align: center;
}

body[data-tc-home="merchant-free"] .free-group-card::before {
    content: "首批商家免费申请";
    display: inline-flex;
    padding: 6px 13px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: var(--free-soft);
    color: var(--free-orange);
    font-size: 12px;
    font-weight: 700;
}

body[data-tc-home="merchant-free"] .free-group-card h2 {
    color: var(--free-ink);
    font-size: 25px;
    line-height: 1.35;
    margin-bottom: 10px;
}

body[data-tc-home="merchant-free"] .free-group-card > p {
    color: var(--free-muted);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

body[data-tc-home="merchant-free"] .free-qr-wrap {
    display: inline-flex;
    padding: 9px;
    border: 1px solid #f0f0f0;
    border-radius: 14px;
    background: #fff;
}

body[data-tc-home="merchant-free"] .free-qr {
    display: block;
    width: 184px;
    height: 184px;
    border-radius: 4px;
    object-fit: contain;
}

body[data-tc-home="merchant-free"] .free-qr-tip {
    display: block;
    margin: 10px 0 20px;
    color: #98a2b3;
    font-size: 12px;
}

body[data-tc-home="merchant-free"] .free-steps {
    display: grid;
    gap: 10px;
    margin: 0;
    text-align: left;
}

body[data-tc-home="merchant-free"] .free-step {
    display: grid;
    grid-template-columns: 25px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    color: #344054;
    font-size: 13px;
    line-height: 1.55;
}

body[data-tc-home="merchant-free"] .free-step-number {
    display: inline-flex;
    width: 25px;
    height: 25px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--free-orange);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

body[data-tc-home="merchant-free"] .free-step strong {
    display: block;
    color: var(--free-ink);
    font-size: 14px;
}

body[data-tc-home="merchant-free"] .free-step span:last-child {
    color: var(--free-muted);
}

body[data-tc-home="merchant-free"] .free-section-dark {
    background: #0d1117 !important;
}

body[data-tc-home="merchant-free"] .free-section-dark .section-title,
body[data-tc-home="merchant-free"] .free-section-dark .section-subtitle {
    color: var(--free-white, #f0f6fc);
}

body[data-tc-home="merchant-free"] .free-question-grid,
body[data-tc-home="merchant-free"] .free-feature-grid,
body[data-tc-home="merchant-free"] .free-flow-grid,
body[data-tc-home="merchant-free"] .free-fit-grid {
    display: grid;
    gap: 22px;
}

body[data-tc-home="merchant-free"] .free-question-grid {
    grid-template-columns: repeat(3, 1fr);
}

body[data-tc-home="merchant-free"] .free-feature-grid {
    grid-template-columns: repeat(3, 1fr);
}

body[data-tc-home="merchant-free"] .free-flow-grid {
    grid-template-columns: repeat(3, 1fr);
}

body[data-tc-home="merchant-free"] .free-fit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-tc-home="merchant-free"] .free-card {
    height: 100%;
    padding: 28px;
    border: 1px solid var(--free-border);
    border-radius: 16px;
    background: #fff;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

body[data-tc-home="merchant-free"] .free-card:hover {
    border-color: rgba(255, 102, 0, 0.45);
    box-shadow: 0 12px 35px rgba(16, 24, 40, 0.08);
    transform: translateY(-3px);
}

body[data-tc-home="merchant-free"] .free-card-mark {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 12px;
    background: var(--free-soft);
    color: var(--free-orange);
    font-size: 14px;
    font-weight: 800;
}

body[data-tc-home="merchant-free"] .free-card h3 {
    color: var(--free-ink);
    font-size: 19px;
    line-height: 1.45;
    margin-bottom: 10px;
}

body[data-tc-home="merchant-free"] .free-card p {
    color: var(--free-muted);
    font-size: 14px;
    line-height: 1.75;
}

body[data-tc-home="merchant-free"] .free-feature-card {
    display: flex;
    gap: 16px;
    padding: 24px;
}

body[data-tc-home="merchant-free"] .free-feature-card .free-card-mark {
    flex: 0 0 42px;
    margin-bottom: 0;
}

body[data-tc-home="merchant-free"] .free-feature-card h3 {
    font-size: 17px;
}

body[data-tc-home="merchant-free"] .free-flow-card {
    position: relative;
    padding-top: 32px;
}

body[data-tc-home="merchant-free"] .free-flow-card .free-card-mark {
    border-radius: 50%;
    background: linear-gradient(135deg, var(--free-orange), var(--free-orange-light));
    color: #fff;
    box-shadow: 0 8px 22px rgba(255, 102, 0, 0.25);
}

body[data-tc-home="merchant-free"] .free-flow-label {
    display: block;
    margin-bottom: 8px;
    color: var(--free-orange);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

body[data-tc-home="merchant-free"] .free-section-action {
    display: flex;
    justify-content: center;
    margin-top: 36px;
}

body[data-tc-home="merchant-free"] .free-fit-card {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border-color: rgba(255, 102, 0, 0.18);
}

body[data-tc-home="merchant-free"] .free-fit-grid ul {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

body[data-tc-home="merchant-free"] .free-fit-grid li {
    position: relative;
    padding-left: 24px;
    color: #475467;
    font-size: 14px;
    line-height: 1.65;
}

body[data-tc-home="merchant-free"] .free-fit-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--free-orange);
    font-weight: 800;
}

body[data-tc-home="merchant-free"] .free-faq-list {
    display: grid;
    max-width: 860px;
    gap: 12px;
    margin: 0 auto;
}

body[data-tc-home="merchant-free"] .free-faq-list details {
    border: 1px solid var(--free-border);
    border-radius: 12px;
    background: #fff;
}

body[data-tc-home="merchant-free"] .free-faq-list summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 24px;
    color: var(--free-ink);
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    list-style: none;
}

body[data-tc-home="merchant-free"] .free-faq-list summary::-webkit-details-marker {
    display: none;
}

body[data-tc-home="merchant-free"] .free-faq-list summary::after {
    content: "+";
    flex: 0 0 auto;
    color: var(--free-orange);
    font-size: 23px;
    font-weight: 400;
}

body[data-tc-home="merchant-free"] .free-faq-list details[open] summary::after {
    content: "−";
}

body[data-tc-home="merchant-free"] .free-faq-list details p {
    padding: 0 24px 21px;
    color: var(--free-muted);
    font-size: 14px;
    line-height: 1.8;
}

body[data-tc-home="merchant-free"] .free-final-cta {
    padding: 86px 0;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 133, 51, 0.35), transparent 45%),
        linear-gradient(135deg, #0d1117, #1a1f2e);
    text-align: center;
}

body[data-tc-home="merchant-free"] .free-final-cta .cta-title,
body[data-tc-home="merchant-free"] .free-final-cta .cta-subtitle {
    color: #fff;
}

body[data-tc-home="merchant-free"] .free-final-cta .cta-subtitle {
    max-width: 650px;
    margin: 0 auto 28px;
}

body[data-tc-home="merchant-free"] .free-final-cta .btn-white {
    color: var(--free-orange);
}

body[data-tc-home="merchant-free"] .free-cta-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 24px;
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

body[data-tc-home="merchant-free"] .free-footer-links {
    gap: 18px;
}

body[data-tc-home="merchant-free"] .free-mobile-bar {
    display: none;
}

@media (max-width: 1080px) {
    body[data-tc-home="merchant-free"] .free-nav {
        gap: 16px;
    }

    body[data-tc-home="merchant-free"] .free-hero .container {
        gap: 42px;
        grid-template-columns: minmax(0, 1fr) 350px;
    }
}

@media (max-width: 900px) {
    body[data-tc-home="merchant-free"] .free-hero .container {
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 28px;
    }

    body[data-tc-home="merchant-free"] .free-hero .hero-title {
        font-size: 48px;
    }

    body[data-tc-home="merchant-free"] .free-group-card {
        padding-left: 22px;
        padding-right: 22px;
    }
}

@media (max-width: 768px) {
    body[data-tc-home="merchant-free"] {
        padding-bottom: 66px;
    }

    body[data-tc-home="merchant-free"] .free-header .header-actions {
        display: none;
    }

    body[data-tc-home="merchant-free"] .free-hero {
        padding: 104px 0 56px;
    }

    body[data-tc-home="merchant-free"] .free-hero .container {
        display: block;
        text-align: center;
    }

    body[data-tc-home="merchant-free"] .free-hero-copy {
        max-width: 650px;
        margin: 0 auto;
    }

    body[data-tc-home="merchant-free"] .free-hero .hero-title {
        font-size: clamp(37px, 10vw, 50px);
        letter-spacing: -1px;
    }

    body[data-tc-home="merchant-free"] .free-hero .hero-desc {
        font-size: 16px;
        margin-left: auto;
        margin-right: auto;
    }

    body[data-tc-home="merchant-free"] .free-hero-actions {
        justify-content: center !important;
    }

    body[data-tc-home="merchant-free"] .free-hero-note {
        max-width: 330px;
        margin: 0 auto;
    }

    body[data-tc-home="merchant-free"] .free-hero-stats {
        max-width: 430px !important;
        margin: 30px auto 0 !important;
        gap: 18px !important;
        padding: 18px 14px !important;
    }

    body[data-tc-home="merchant-free"] .free-hero-stats .stat-num {
        font-size: 22px;
    }

    body[data-tc-home="merchant-free"] .free-group-card {
        max-width: 390px;
        margin: 34px auto 0;
    }

    body[data-tc-home="merchant-free"] .free-question-grid,
    body[data-tc-home="merchant-free"] .free-feature-grid,
    body[data-tc-home="merchant-free"] .free-flow-grid,
    body[data-tc-home="merchant-free"] .free-fit-grid {
        grid-template-columns: 1fr;
    }

    body[data-tc-home="merchant-free"] .free-card {
        padding: 24px;
    }

    body[data-tc-home="merchant-free"] .free-final-cta {
        padding: 68px 0 86px;
    }

    body[data-tc-home="merchant-free"] .free-mobile-bar {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1100;
        display: block;
        padding: 9px 16px calc(9px + env(safe-area-inset-bottom));
        background: rgba(13, 17, 23, 0.96);
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.18);
    }

    body[data-tc-home="merchant-free"] .free-mobile-bar a {
        display: block;
        padding: 12px 16px;
        border-radius: 8px;
        background: linear-gradient(135deg, var(--free-orange), var(--free-orange-light));
        color: #fff;
        font-size: 15px;
        font-weight: 700;
        text-align: center;
    }
}

@media (max-width: 480px) {
    body[data-tc-home="merchant-free"] .free-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    body[data-tc-home="merchant-free"] .free-hero-actions .btn {
        width: 100%;
    }

    body[data-tc-home="merchant-free"] .free-hero-actions .btn-glow {
        padding: 14px 18px;
    }

    body[data-tc-home="merchant-free"] .free-hero-stats {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px 8px !important;
    }

    body[data-tc-home="merchant-free"] .free-hero-stats .stat-divider {
        display: none;
    }

    body[data-tc-home="merchant-free"] .free-group-card {
        padding: 26px 18px 22px;
    }

    body[data-tc-home="merchant-free"] .free-qr {
        width: 170px;
        height: 170px;
    }

    body[data-tc-home="merchant-free"] .free-faq-list summary {
        padding: 18px;
        font-size: 15px;
    }

    body[data-tc-home="merchant-free"] .free-faq-list details p {
        padding: 0 18px 18px;
    }

    body[data-tc-home="merchant-free"] .free-cta-badges {
        align-items: center;
        flex-direction: column;
        gap: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body[data-tc-home="merchant-free"] *,
    body[data-tc-home="merchant-free"] *::before,
    body[data-tc-home="merchant-free"] *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
