/* ─── Soft SaaS tokens ─────────────────────────────────────────── */
:root {
    --bg: #ffffff;
    --bg-subtle: #f8fafb;
    --bg-muted: #f1f5f9;
    --fg: #0f172a;
    --fg-secondary: #475569;
    --fg-tertiary: #94a3b8;
    --fg-quaternary: #cbd5e1;

    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #dbeafe;
    --primary-fg: #ffffff;

    --accent: #0891b2;
    --accent-light: #cffafe;

    --border: #e2e8f0;
    --border-strong: #cbd5e1;

    --surface: #f8fafb;
    --surface-hover: #f1f5f9;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 8px 24px rgba(15, 23, 42, 0.08);

    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* provider logo colors */
    --logo-tencent-bg: #e3f2fd;
    --logo-tencent-fg: #1565c0;
    --logo-zhipu-bg: #f3e5f5;
    --logo-zhipu-fg: #7b1fa2;
    --logo-qwen-bg: #fff3e0;
    --logo-qwen-fg: #e65100;
    --logo-deepseek-bg: #e8f5e9;
    --logo-deepseek-fg: #2e7d32;
    --logo-doubao-bg: #fce4ec;
    --logo-doubao-fg: #c62828;
    --logo-kling-bg: #fff8e1;
    --logo-kling-fg: #f57f17;
    --logo-jimeng-bg: #e1f5fe;
    --logo-jimeng-fg: #0277bd;
    --logo-minimax-bg: #e0f7fa;
    --logo-minimax-fg: #00838f;
    --logo-vidu-bg: #f1f8e9;
    --logo-vidu-fg: #558b2f;
    --logo-happy-bg: #fce4ec;
    --logo-happy-fg: #ad1457;

    --gap-xs: 4px;
    --gap-sm: 8px;
    --gap-md: 16px;
    --gap-lg: 24px;
    --gap-xl: 48px;
    --gap-2xl: 96px;
    --container: 1140px;
    --gutter: 24px;

    /* code syntax */
    --syn-bg: #f8fafb;
    --syn-fg: #334155;
    --syn-kw: #2563eb;
    --syn-fn: #0f172a;
    --syn-str: #0284c7;
    --syn-cm: #94a3b8;
    --syn-num: #2563eb;
    --syn-op: #64748b;
}

/* ─── Reset & base ────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--fg);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary);
}

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

img,
svg {
    display: block;
    max-width: 100%;
}

/* ─── Layout ──────────────────────────────────────────────────── */
.container {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section {
    padding-block: clamp(56px, 8vw, var(--gap-2xl));
}

/* ─── Typography ──────────────────────────────────────────────── */
h1 {
    font-family: var(--font-body);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--fg);
}

h2 {
    font-family: var(--font-body);
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--fg);
}

h3 {
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.01em;
    color: var(--fg);
}

.lead {
    font-size: 17px;
    color: var(--fg-secondary);
    line-height: 1.65;
    max-width: 52ch;
}

.eyebrow {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--primary);
    margin: 0 0 var(--gap-sm);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.eyebrow-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: breathe 2s ease-in-out infinite;
}

@keyframes breathe {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.85);
    }
}

/* ─── Navigation ─────────────────────────────────────────────── */
.topnav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
    min-height: 62px;
}

.topnav.scrolled {
    position: fixed;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.topnav-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-block: 14px;
    gap: var(--gap-lg);
    min-height: 62px;
}

.logo {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--fg);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo img {
    height: 22px;
}

.topnav-inner nav {
    margin-left: 44%;
}

@media screen and (max-width: 720px) {
    .topnav-inner nav {
        margin-left: auto;
    }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--gap-lg);
    list-style: none;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--fg-secondary);
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--fg);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--gap-sm);
}

.nav-actions .btn {
    background: transparent;
    border: 1px solid transparent;
    box-shadow: none;
    color: var(--fg-secondary);
}

.nav-actions .btn:hover {
    color: var(--fg);
    background: rgba(255, 255, 255, 0.1);
}

.nav-actions .btn-primary {
    background: var(--primary);
    color: #ffffff;
}

.nav-actions .btn-primary:hover {
    background: var(--primary-hover);
    color: #ffffff;
}

.topnav.scrolled .nav-actions .btn {
    background: var(--bg);
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
    color: var(--fg);
}

.topnav.scrolled .nav-actions .btn:hover {
    background: var(--surface);
    border-color: var(--border-strong);
}

.topnav.scrolled .nav-actions .btn-primary {
    background: var(--primary);
    color: #ffffff;
}

.topnav.scrolled .nav-actions .btn-primary:hover {
    background: var(--primary-hover);
}

/* ─── Dropdown ──────────────────────────────────────────────── */
.nav-dropdown {
    position: relative;
}

.nav-dropdown>a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.nav-dropdown>a .dropdown-arrow {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.nav-dropdown:hover>a .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 140px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 6px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 150;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 400;
    color: var(--fg-secondary);
    transition: color 0.15s ease, background 0.15s ease;
}

.dropdown-menu li a:hover {
    color: var(--fg);
    background: var(--surface);
}

/* ─── Buttons ─────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    transition: all 0.2s ease;
    white-space: nowrap;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--primary-fg);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: var(--primary-hover);
    color: var(--primary-fg);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--bg);
    color: var(--fg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--surface);
    border-color: var(--border-strong);
}

.btn-lg {
    padding: 13px 28px;
    font-size: 15px;
    border-radius: var(--radius);
}

.btn-sm {
    padding: 7px 14px;
    font-size: 13px;
}

/* ─── Hero ────────────────────────────────────────────────────── */
.hero {
    position: relative;
    padding-top: clamp(80px, 10vw, 140px);
    padding-bottom: clamp(60px, 8vw, 120px);
    overflow: hidden;
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 20% 10%, rgba(37, 99, 235, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 80% 15%, rgba(8, 145, 178, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse 70% 60% at 50% 0%, rgba(37, 99, 235, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-xl);
    align-items: center;
}

.hero-content {
    position: relative;
    text-align: left;
    max-width: 520px;
}

.hero-content .eyebrow {
    margin-bottom: var(--gap-lg);
    display: inline-flex;
    padding: 6px 16px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
}

.hero-content h1 {
    margin-bottom: var(--gap-lg);
}

.hero-content .lead {
    margin-bottom: var(--gap-xl);
}

.hero-cta {
    display: inline-flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-code {
    position: relative;
    min-width: 0;
}

.hero-code .code-container {
    margin-top: 0;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    height: 610px;
}

@media (max-width: 920px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: var(--gap-xl);
    }

    .hero-content {
        text-align: center;
        max-width: 680px;
        margin-inline: auto;
    }

    .hero-cta {
        justify-content: center;
    }
}

/* ─── Features grid ───────────────────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap-md);
    margin-top: var(--gap-xl);
}

.feature-card {
    background: var(--bg);
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}

.feature-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    color: var(--primary);
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    margin-bottom: var(--gap-lg);
}

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

.feature-card h3 {
    margin-bottom: var(--gap-sm);
}

.feature-card p {
    color: var(--fg-secondary);
    font-size: 14px;
    line-height: 1.65;
}

.feature-highlight {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
    margin-top: var(--gap-sm);
    letter-spacing: 0;
}

@media (max-width: 720px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* ─── Providers ───────────────────────────────────────────────── */
.providers-layout {
    margin-top: var(--gap-xl);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.providers-scroll-wrapper {
    position: relative;
    overflow: hidden;
    padding-block: 3px;
    -webkit-mask-image: linear-gradient(to right, transparent, black 40px, black calc(100% - 40px), transparent);
    mask-image: linear-gradient(to right, transparent, black 40px, black calc(100% - 40px), transparent);
}

.provider-track {
    display: flex;
    gap: 0;
    width: max-content;
    animation-duration: 40s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.provider-set {
    display: flex;
    flex: 0 0 auto;
    gap: 12px;
    padding-right: 12px;
}

.provider-track:hover {
    animation-play-state: paused;
}

.provider-track.scroll-right {
    animation-name: scrollRight;
}

.provider-track.scroll-left {
    animation-name: scrollLeft;
}

@keyframes scrollRight {
    from {
        transform: translateX(-25%);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes scrollLeft {
    from {
        transform: translateX(0);
    }

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

@media (prefers-reduced-motion: reduce) {
    .provider-track {
        animation: none;
        width: 100%;
        justify-content: center;
    }

    .provider-set {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        padding-right: 0;
    }

    .provider-set[aria-hidden="true"] {
        display: none;
    }

}

.provider-item {
    flex: 0 0 auto;
    width: 190px;
    min-height: 72px;
    padding: 12px var(--gap-md);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    background: var(--bg);
}

.provider-item:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--border-strong);
    transform: translateY(-2px);
}

.provider-logo {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin: 0;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    overflow: hidden;
}

.provider-logo img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.provider-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--fg);
    white-space: nowrap;
}

/* ─── Steps ───────────────────────────────────────────────────── */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap-md);
    margin-top: var(--gap-xl);
}

.step-card {
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    position: relative;
    background: var(--bg);
    transition: box-shadow 0.25s ease;
}

.step-card:hover {
    box-shadow: var(--shadow-md);
}

.step-number {
    font-family: var(--font-body);
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-light);
    line-height: 1;
    margin-bottom: var(--gap-lg);
    letter-spacing: -0.04em;
}

.step-card h3 {
    margin-bottom: var(--gap-sm);
}

.step-card p {
    color: var(--fg-secondary);
    font-size: 14px;
    line-height: 1.65;
}

.step-code {
    margin-top: var(--gap-md);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--primary);
    background: var(--primary-light);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    display: inline-block;
    font-weight: 500;
}

@media (max-width: 720px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
}

/* ─── Code Example ────────────────────────────────────────────── */
.code-section {
    background: var(--bg-subtle);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.code-container {
    margin-top: var(--gap-xl);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.code-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    flex-shrink: 0;
}

.code-tab {
    padding: 12px 24px;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--fg-tertiary);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.2s ease, border-color 0.2s ease;
    font-weight: 500;
    background: none;
}

.code-tab:hover {
    color: var(--fg);
}

.code-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

@media (max-width: 720px) {
    .code-tab {
        flex: 1 1 0;
        min-width: 0;
        padding: 12px 6px;
        font-size: 12px;
        text-align: center;
        white-space: nowrap;
    }
}

.code-block {
    position: relative;
    padding: 15px;
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.7;
    overflow-x: hidden;
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--syn-fg);
    background: var(--bg);
}

.code-block .kw {
    color: var(--syn-kw);
    font-weight: 500;
}

.code-block .fn {
    color: var(--syn-fn);
}

.code-block .str {
    color: var(--syn-str);
}

.code-block .cm {
    color: var(--syn-cm);
}

.code-block .num {
    color: var(--syn-num);
}

.code-block .op {
    color: var(--syn-op);
}

.code-block .var {
    color: var(--syn-fg);
}

/* ─── API code pattern ───────────────────────────────────────── */
.code-endpoint {
    padding: 10px 20px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--fg-secondary);
    border-bottom: 1px solid var(--border);
    font-weight: 500;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.method-badge {
    display: inline-block;
    padding: 4px 10px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    color: #16a34a;
    background: #dcfce7;
    border-radius: var(--radius-full);
    letter-spacing: 0.02em;
}

.code-section-label {
    padding: 10px 24px 6px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    color: var(--fg-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--surface);
    flex-shrink: 0;
}

.code-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 24px;
    border-top: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--fg-tertiary);
    background: var(--surface);
    letter-spacing: 0.03em;
    flex-shrink: 0;
}

.code-status .status-right {
    color: var(--primary);
    font-weight: 500;
}

/* ─── Use Cases ───────────────────────────────────────────────── */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap-md);
    margin-top: var(--gap-xl);
}

.case-card {
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
    background: var(--bg);
}

.case-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}

.case-tag {
    display: inline-flex;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-light);
    border-radius: var(--radius-full);
    margin-bottom: var(--gap-md);
    letter-spacing: 0;
    text-transform: none;
    font-family: var(--font-body);
}

.case-card h3 {
    margin-bottom: var(--gap-sm);
}

.case-card p {
    color: var(--fg-secondary);
    font-size: 14px;
    line-height: 1.65;
}

.case-recommend {
    margin-top: var(--gap-md);
    font-size: 13px;
    color: var(--fg-tertiary);
}

.case-recommend span {
    color: var(--fg);
    font-weight: 600;
}

@media (max-width: 720px) {
    .cases-grid {
        grid-template-columns: 1fr;
    }
}

/* ─── CTA Section ─────────────────────────────────────────────── */
.cta-section {
    position: relative;
    padding: clamp(80px, 10vw, 120px) var(--gap-lg);
    text-align: center;
    overflow: hidden;
    background: var(--bg);
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.2;
    background:
        radial-gradient(50% 50% at 30% 50%, rgba(120, 130, 255, 0.7) 0%, transparent 70%),
        radial-gradient(40% 40% at 70% 40%, rgba(100, 180, 220, 0.5) 0%, transparent 70%);
    pointer-events: none;
    animation: ctaGlowBreathe 4s ease-in-out infinite;
}

@keyframes ctaGlowBreathe {

    0%,
    100% {
        opacity: 0.15;
    }

    50% {
        opacity: 0.3;
    }
}

.cta-content {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 48px;
    color: var(--fg);
}

.cta-title .gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-description {
    font-size: 17px;
    color: var(--fg-secondary);
    line-height: 1.6;
    margin-bottom: var(--gap-xl);
}

.cta-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--gap-md);
    flex-wrap: wrap;
}

.cta-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    background: var(--primary);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.cta-btn-primary:hover,
.cta-btn-primary:focus,
.cta-btn-primary:active {
    background: var(--primary-hover);
    color: #ffffff;
    transform: translateY(-1px);
}

.cta-btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    color: var(--fg);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cta-btn-secondary:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-sm);
}

/* ─── Footer ──────────────────────────────────────────────────── */
.pagefoot {
    padding-block: var(--gap-xl);
    border-top: 1px solid var(--border);
    background: var(--bg-subtle);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: var(--gap-xl);
}

.footer-brand p {
    color: var(--fg-tertiary);
    font-size: 14px;
    margin-top: var(--gap-sm);
    max-width: 32ch;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--fg);
    margin-bottom: var(--gap-md);
    letter-spacing: 0;
    text-transform: none;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    padding: 4px 0;
}

.footer-col a {
    font-size: 14px;
    color: var(--fg-secondary);
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    margin-top: var(--gap-xl);
    padding-top: var(--gap-lg);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--gap-md);
}

.footer-bottom span {
    font-size: 13px;
    color: var(--fg-tertiary);
}

@media (max-width: 920px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 520px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ─── Section headers ─────────────────────────────────────────── */
.section-header {
    max-width: 48ch;
    margin-bottom: var(--gap-lg);
}

.section-header.center {
    text-align: center;
    margin-inline: auto;
}

.section-header .eyebrow {
    margin-bottom: var(--gap-sm);
}

.section-header h2 {
    margin-bottom: var(--gap-sm);
}

.section-header p {
    color: var(--fg-secondary);
    font-size: 16px;
}

/* ─── Responsive nav ──────────────────────────────────────────── */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--fg);
}

.menu-toggle svg {
    width: 24px;
    height: 24px;
}

/* Menu open state: nav bar blends with overlay */
.topnav.menu-open {
    position: fixed !important;
    background: var(--bg) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    z-index: 201;
}

.menu-toggle .icon-close {
    display: none;
}

.topnav.menu-open .menu-toggle .icon-hamburger {
    display: none;
}

.topnav.menu-open .menu-toggle .icon-close {
    display: block;
}

.mobile-menu {
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    z-index: 200;
    padding: 24px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-links {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu-links li {
    margin-bottom: 8px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu.open .mobile-menu-links li {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.open .mobile-menu-links li:nth-child(1) {
    transition-delay: 0.05s;
}

.mobile-menu.open .mobile-menu-links li:nth-child(2) {
    transition-delay: 0.1s;
}

.mobile-menu.open .mobile-menu-links li:nth-child(3) {
    transition-delay: 0.15s;
}

.mobile-menu.open .mobile-menu-links li:nth-child(4) {
    transition-delay: 0.2s;
}

.mobile-menu.open .mobile-menu-links li:nth-child(5) {
    transition-delay: 0.25s;
}

.mobile-menu.open .mobile-menu-links li:nth-child(6) {
    transition-delay: 0.3s;
}

.mobile-menu-links a {
    display: block;
    padding: 16px 8px;
    font-size: 16px;
    font-weight: 500;
    color: var(--fg-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.mobile-menu-links a:hover {
    color: var(--fg);
}

.mobile-menu-footer {
    padding-top: 24px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease 0.35s, transform 0.3s ease 0.35s;
    flex-shrink: 0;
}

.mobile-menu.open .mobile-menu-footer {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-footer .btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    border-radius: var(--radius);
}

.mobile-dropdown-menu {
    list-style: none;
    padding: 0 0 4px 20px;
    margin: 0;
}

.mobile-dropdown-menu li a {
    padding: 10px 8px;
    font-size: 14px;
    color: var(--fg-tertiary);
}

.mobile-dropdown-menu li a::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--fg-quaternary);
    margin-right: 10px;
    vertical-align: middle;
}

@media (max-width: 720px) {
    .nav-links {
        display: none;
    }

    .nav-actions {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .topnav-inner {
        gap: var(--gap-sm);
    }
}

.hero-apps {
    margin-top: var(--gap-lg);
}

.hero-apps-label {
    font-size: 12px;
    color: var(--fg-tertiary);
    margin-bottom: 4px;
}

.hero-apps-desc {
    font-size: 13px;
    color: var(--fg-secondary);
    margin-bottom: var(--gap-md);
}

.hero-apps-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-app-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    color: var(--fg);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-app-pill:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-sm);
}

.hero-app-pill svg {
    width: 18px;
    height: 18px;
}

.hero-app-pill.more {
    color: var(--fg-secondary);
}

.hero-app-pill.more svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 720px) {
    .hero-apps-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        max-width: 340px;
        margin-inline: auto;
    }

    .hero-app-pill {
        width: 100%;
        min-width: 0;
        justify-content: center;
        padding-inline: 12px;
        white-space: nowrap;
    }
}

/* ─── Panel visibility ────────────────────────────────────────── */
.code-panel {
    display: none;
}

.code-panel.active {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    animation: codePanelFadeIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes codePanelFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

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

.code-panel-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: none;
}

.code-panel-scroll::-webkit-scrollbar {
    display: none;
}

/* 自定义样式 */
.back-to-top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #165DFF;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.3);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(22, 93, 255, 0.4);
}

.justify-center {
    justify-content: center;
}

.items-center {
    align-items: center;
}

.flex {
    display: flex;
}

.z-50 {
    z-index: 50;
}

.inset-0 {
    inset: 0px;
}

.fixed {
    position: fixed;
}

.bg-opacity-50 {
    --tw-bg-opacity: 0.5;
}

/* .bg-black {
    --tw-bg-opacity: 1;
    background-color: rgb(0 0 0 / var(--tw-bg-opacity, 1));
} */
.absolute {
    position: absolute;
}

.shadow-xl {
    --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.bg-white {
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}

.rounded-lg {
    border-radius: 0.5rem;
}

.overflow-hidden {
    overflow: hidden;
}

.max-w-\[40rem\] {
    max-width: 40rem;
}

.w-full {
    width: 100%;
}

.max-h-\[95vh\] {
    max-height: 95vh;
}

.relative {
    position: relative;
}

.h-\[53vh\] {
    height: 53vh;
}

.font-medium {
    font-weight: 500;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.mt-4 {
    margin-top: 1rem;
}

.ml-4 {
    margin-left: 1rem;
}

.transition-colors {
    transition-property: color, background-color, border-color, fill, stroke, -webkit-text-decoration-color;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, -webkit-text-decoration-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.text-gray-300 {
    --tw-text-opacity: 1;
    color: rgb(209 213 219 / var(--tw-text-opacity, 1));
}

.border {
    border-width: 1px;
}

.rounded-full {
    border-radius: 9999px;
}

.w-9 {
    width: 2.25rem;
}

.h-9 {
    height: 2.25rem;
}

.z-20 {
    z-index: 20;
}

.top-0 {
    top: 0px;
}

.right-3 {
    right: 0.75rem;
}

.hidden {
    display: none;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.p-4 {
    padding: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2.5rem;
}

.z-40 {
    z-index: 40;
}

.top-16 {
    top: 3.5rem;
}

.top-19 {
    top: 3.9rem;
}

.sticky {
    position: sticky;
}

.gap-3 {
    gap: 0.75rem;
}

.flex-row {
    flex-direction: row;
}

.flex {
    display: flex;
}

.text-gray-700 {
    --tw-text-opacity: 1;
    color: rgb(55 65 81 / var(--tw-text-opacity, 1));
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.bg-gray-100 {
    --tw-bg-opacity: 1;
    background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
}

.rounded-md {
    border-radius: 0.375rem;
}

.whitespace-nowrap {
    white-space: nowrap;
}

.mr-2 {
    margin-right: 0.5rem;
}

.flex-grow {
    flex-grow: 1;
}

.pr-4 {
    padding-right: 1rem;
}

.pl-10 {
    padding-left: 2.5rem;
}

.w-full {
    width: 100%;
}

.hidden {
    display: none;
}

.font-medium {
    font-weight: 500;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.gap-2 {
    gap: 0.5rem;
}

.flex-wrap {
    flex-wrap: wrap;
}

.text-gray-600 {
    --tw-text-opacity: 1;
    color: rgb(75 85 99 / var(--tw-text-opacity, 1));
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.grid {
    display: grid;
}

.gap-4 {
    gap: 1rem;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.transition-shadow {
    transition-property: box-shadow;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.border-gray-200 {
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}

a {
    color: inherit;
    text-decoration: inherit;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.w-10 {
    width: 2.5rem;
}

.h-10 {
    height: 2.5rem;
}

img,
video {
    max-width: 100%;
    height: auto;
}

audio,
canvas,
embed,
iframe,
img,
object,
svg,
video {
    display: block;
    vertical-align: middle;
}

.text-gray-500 {
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.text-ellipsis {
    text-overflow: ellipsis;
}

.overflow-hidden {
    overflow: hidden;
}

.text-gray-400 {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}

.-translate-y-1\/2 {
    --tw-translate-y: -50%;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.top-1\/2 {
    top: 50%;
}

.top-1\/4 {
    top: 25%;
}

.left-3 {
    left: 0.75rem;
}

.absolute {
    position: absolute;
}

.mb-4 {
    margin-bottom: 1rem;
}

.border-gray-300 {
    --tw-border-opacity: 1;
    border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));
}

#filter-content button {
    border: 1px solid #e5e5e5;
}

.text-white {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

#filter-content button:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
    color: rgb(75 85 99 / var(--tw-text-opacity, 1));
}

.pt-16 {
    padding-top: 4rem;
}

.pt-32 {
    padding-top: 8rem;
}

.pb-8 {
    padding-bottom: 2rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.bg-gray-50 {
    --tw-bg-opacity: 1;
    background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}

.justify-center {
    justify-content: center;
}

.flex-col {
    flex-direction: column;
}

.min-h-\[30rem\] {
    min-height: 30rem;
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.bg-primary {
    --tw-bg-opacity: 1;
    background-color: rgb(22 93 255 / var(--tw-bg-opacity, 1));
}

.space-y-3> :not([hidden])~ :not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(0.75rem * var(--tw-space-y-reverse));
}

@media (min-width: 768px) {
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.w-8 {
    width: 2rem;
}

.h-8 {
    height: 2rem;
}


#model-container a {
    border: 1px solid rgb(229 231 235) !important;
}

#model-container a:hover {
    --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

/* @media (min-width: 1024px) {
.container {
    max-width: 1024px;
}
}

@media (min-width: 768px) {
.container {
    max-width: 768px;
}
}
@media (min-width: 640px) {
.container {
    max-width: 640px;
}
} */

.inline-flex {
    display: inline-flex;
}

menu,
ol,
ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.shadow-sm {
    --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.p-6 {
    padding: 1.5rem;
}

.justify-between {
    justify-content: space-between;
}

.items-start {
    align-items: flex-start;
}

.font-semibold {
    font-weight: 600;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.bg-blue-100 {
    --tw-bg-opacity: 1;
    background-color: rgb(219 234 254 / var(--tw-bg-opacity, 1));
}

#user-dropdown {
    padding: 1px 14px;
}
