/* TokenColo — Tech minimal */

:root {
    --accent: #0ea5e9;
    --accent-deep: #0284c7;
    --accent-glow: rgba(14, 165, 233, 0.35);
    --accent-soft: rgba(14, 165, 233, 0.08);
    --accent-border: rgba(14, 165, 233, 0.25);
    --primary: #0f172a;
    --primary-hover: #1e293b;
    --primary-light: #eff6ff;
    --primary-100: #dbeafe;
    --text-1: #0f172a;
    --text-2: #475569;
    --text-3: #94a3b8;
    --text-4: #cbd5e1;
    --bg-page: #f8fafc;
    --bg-soft: #f1f5f9;
    --bg-hero: linear-gradient(165deg, #060d18 0%, #0f172a 42%, #111827 100%);
    --bg-hover: #e2e8f0;
    --border: #e2e8f0;
    --border-light: #eef2f6;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --max-width: 1280px;
    --content-x: 48px;
    --nav-height: 72px;
    --banner-height: 0px;
    --cat-height: 52px;
    --header-total: var(--nav-height);
    --cat-top: var(--header-total);
    --section-gap: 80px;
    --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
    --grid-tech: linear-gradient(rgba(14, 165, 233, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.06) 1px, transparent 1px);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-total) + var(--cat-height) + 16px);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    color: var(--text-1);
    background-color: var(--bg-page);
    background-image: var(--grid-tech);
    background-size: 40px 40px;
    line-height: 1.65;
    font-size: 16px;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

::selection { background: var(--accent-deep); color: #fff; }

.hidden { display: none !important; }

/* —— Nav —— */
.layout-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
}

.layout-navbar.scrolled {
    box-shadow: 0 1px 0 var(--border-light), 0 8px 32px rgba(15, 23, 42, 0.06);
    border-bottom-color: var(--accent-border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
    max-width: calc(var(--max-width) + var(--content-x) * 2);
    margin: 0 auto;
    padding: 0 var(--content-x);
}

.nav-left { display: flex; align-items: center; gap: 72px; }
.nav-right { display: flex; align-items: center; gap: 12px; }

.logo-link { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.logo-link img { height: 36px; width: auto; }

.nav-list {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
}

.nav-item a {
    display: block;
    padding: 12px 22px;
    color: var(--text-2);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-decoration: none;
    border-radius: var(--radius-lg);
    transition: color 0.15s, background 0.15s;
}

.nav-item a:hover {
    color: var(--accent-deep);
    background: var(--accent-soft);
}

.nav-item.active a {
    color: var(--accent-deep);
    font-weight: 600;
    background: var(--primary-light);
    box-shadow: inset 0 0 0 1px var(--accent-border);
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, transform 0.15s;
    white-space: nowrap;
}

.nav-btn-primary:hover { transform: translateY(-1px); }

.nav-btn-ghost { color: var(--text-2); }
.nav-btn-ghost:hover { color: var(--text-1); }

.nav-btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
    border: 1px solid rgba(14, 165, 233, 0.5);
    box-shadow: 0 4px 16px var(--accent-glow);
}

.nav-btn-primary:hover {
    background: linear-gradient(135deg, #38bdf8 0%, var(--accent) 100%);
    border-color: rgba(56, 189, 248, 0.6);
    box-shadow: 0 6px 24px var(--accent-glow);
}

.main-wrap {
    padding-top: var(--header-total);
    min-height: 100vh;
}

/* —— Hero (home) —— */
.hero-band {
    position: relative;
    background: var(--bg-hero);
    border-bottom: 1px solid rgba(14, 165, 233, 0.2);
    overflow: hidden;
}

.hero-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--grid-tech);
    background-size: 48px 48px;
    opacity: 0.9;
    mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, black 15%, transparent 75%);
    pointer-events: none;
}

.hero-band::after {
    content: '';
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: min(900px, 90vw);
    height: 70%;
    background: radial-gradient(ellipse, rgba(14, 165, 233, 0.22) 0%, transparent 65%);
    pointer-events: none;
}

.hero-section {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 96px var(--content-x) 72px;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    color: #7dd3fc;
    margin-bottom: 24px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 8px 18px;
    border-radius: 100px;
    border: 1px solid rgba(56, 189, 248, 0.35);
    background: rgba(14, 165, 233, 0.1);
}

.hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 10px #38bdf8;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}

.hero-title {
    font-size: clamp(40px, 5vw, 56px);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.04em;
    color: #f8fafc;
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(226, 232, 240, 0.75);
    margin-bottom: 40px;
    line-height: 1.7;
    font-weight: 400;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.search-box { max-width: 560px; margin: 0 auto; }

.search-input-wrap {
    display: flex;
    align-items: center;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: var(--radius-lg);
    padding: 0 20px;
    height: 52px;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input-wrap:focus-within {
    border-color: rgba(56, 189, 248, 0.6);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15), 0 8px 32px rgba(14, 165, 233, 0.2);
}

.search-input-wrap svg { color: #64748b; flex-shrink: 0; margin-right: 10px; }
.search-input-wrap:focus-within svg { color: #38bdf8; }

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    color: #f1f5f9;
    background: transparent;
    height: 100%;
}

.search-input::placeholder { color: #64748b; }

/* —— Promo row —— */
.promo-section {
    max-width: calc(var(--max-width) + var(--content-x) * 2);
    margin: 0 auto;
    padding: 48px var(--content-x) 56px;
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.promo-item {
    position: relative;
    background: #fff;
    padding: 32px 28px;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    overflow: hidden;
}

.promo-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.2s;
}

.promo-item:hover {
    border-color: var(--accent-border);
    box-shadow: 0 12px 40px rgba(14, 165, 233, 0.12);
    transform: translateY(-2px);
}

.promo-item:hover::before { opacity: 1; }

.promo-label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--accent-deep);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.promo-item h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
    color: var(--text-1);
}

.promo-item p {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.6;
    margin: 0;
}

/* —— Category nav —— */
.category-nav {
    position: sticky;
    top: var(--cat-top);
    z-index: 900;
    background: rgba(248, 250, 252, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
}

.cat-inner {
    max-width: calc(var(--max-width) + var(--content-x) * 2);
    margin: 0 auto;
    padding: 0 var(--content-x);
    display: flex;
    align-items: center;
    height: var(--cat-height);
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.cat-inner::-webkit-scrollbar { display: none; }

.cat-btn {
    padding: 6px 0;
    margin-right: 28px;
    font-size: 15px;
    font-weight: 400;
    color: var(--text-3);
    white-space: nowrap;
    cursor: pointer;
    border: none;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}

.cat-btn:hover { color: var(--text-1); }

.cat-btn.active {
    color: var(--accent-deep);
    font-weight: 600;
    border-bottom-color: var(--accent);
}

#catInner .cat-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cat-btn[data-cat="llm"] svg { color: #38bdf8; }
.cat-btn[data-cat="img-gen"] svg { color: #c084fc; }
.cat-btn[data-cat="video"] svg { color: #fb923c; }

.cat-btn.active[data-cat="llm"] svg { color: var(--accent-deep); }
.cat-btn.active[data-cat="img-gen"] svg { color: #7c3aed; }
.cat-btn.active[data-cat="video"] svg { color: #ea580c; }

/* —— Product grid —— */
.product-area {
    max-width: calc(var(--max-width) + var(--content-x) * 2);
    margin: 0 auto;
    padding: 16px var(--content-x) 96px;
}

.category-section { margin-bottom: 64px; }
.category-section:last-child { margin-bottom: 0; }

.section-header {
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-header::before {
    content: '';
    width: 3px;
    height: 22px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--accent), var(--accent-deep));
    flex-shrink: 0;
}

#llm .section-header::before {
    background: linear-gradient(180deg, #38bdf8, #0284c7);
}

#img-gen .section-header::before {
    background: linear-gradient(180deg, #c084fc, #7c3aed);
}

#video .section-header::before {
    background: linear-gradient(180deg, #fb923c, #ea580c);
}

.section-title {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-1);
}

.section-count {
    font-size: 14px;
    color: var(--text-3);
    font-weight: 400;
    margin-left: 6px;
}

.grid-5 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    overflow: hidden;
}

.product-card:hover {
    border-color: var(--accent-border);
    box-shadow: 0 16px 48px rgba(14, 165, 233, 0.12);
    transform: translateY(-3px);
}

.card-img-area {
    aspect-ratio: 16 / 10;
    background: linear-gradient(145deg, #f8fafc 0%, #eff6ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    border-bottom: 1px solid var(--border-light);
}

.card-icon-wrap img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.card-icon-fallback {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-deep);
}

/* —— 分类卡片：深色科技风图标区（语言 / 图片 / 视频） —— */
#llm {
    --media-bg: linear-gradient(155deg, #0c1222 0%, #152238 45%, #0f1a2e 100%);
    --media-border: rgba(14, 165, 233, 0.15);
    --media-glow: rgba(14, 165, 233, 0.28);
    --media-plate: linear-gradient(145deg, #ffffff 0%, #f0f9ff 100%);
    --media-ring: rgba(14, 165, 233, 0.12);
    --media-shine: rgba(14, 165, 233, 0.2);
    --media-hover-border: rgba(56, 189, 248, 0.4);
    --media-hover-shadow: 0 20px 56px rgba(14, 165, 233, 0.18);
}

#img-gen {
    --media-bg: linear-gradient(155deg, #140f1f 0%, #2a1a3d 48%, #18102a 100%);
    --media-border: rgba(168, 85, 247, 0.2);
    --media-glow: rgba(168, 85, 247, 0.32);
    --media-plate: linear-gradient(145deg, #ffffff 0%, #faf5ff 100%);
    --media-ring: rgba(168, 85, 247, 0.15);
    --media-shine: rgba(168, 85, 247, 0.25);
    --media-hover-border: rgba(192, 132, 252, 0.45);
    --media-hover-shadow: 0 20px 56px rgba(168, 85, 247, 0.2);
}

#video {
    --media-bg: linear-gradient(155deg, #1a1008 0%, #2d1c0e 48%, #1a1208 100%);
    --media-border: rgba(249, 115, 22, 0.2);
    --media-glow: rgba(249, 115, 22, 0.3);
    --media-plate: linear-gradient(145deg, #ffffff 0%, #fff7ed 100%);
    --media-ring: rgba(249, 115, 22, 0.15);
    --media-shine: rgba(249, 115, 22, 0.22);
    --media-hover-border: rgba(251, 146, 60, 0.45);
    --media-hover-shadow: 0 20px 56px rgba(249, 115, 22, 0.2);
}

#llm .card-img-area,
#img-gen .card-img-area,
#video .card-img-area {
    position: relative;
    overflow: hidden;
    background: var(--media-bg);
    border-bottom-color: var(--media-border);
}

#llm .card-img-area::before,
#img-gen .card-img-area::before,
#video .card-img-area::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--grid-tech);
    background-size: 24px 24px;
    opacity: 0.35;
    pointer-events: none;
}

#llm .card-img-area::after,
#img-gen .card-img-area::after,
#video .card-img-area::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 55%;
    background: radial-gradient(ellipse, var(--media-glow) 0%, transparent 70%);
    pointer-events: none;
}

#llm .card-icon-wrap,
#img-gen .card-icon-wrap,
#video .card-icon-wrap {
    position: relative;
    z-index: 1;
    width: 76px;
    height: 76px;
    padding: 16px;
    border-radius: 18px;
    background: var(--media-plate);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 0 0 1px var(--media-ring),
        0 12px 32px rgba(0, 0, 0, 0.35),
        0 0 24px var(--media-shine);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#llm .product-card:hover .card-icon-wrap,
#img-gen .product-card:hover .card-icon-wrap,
#video .product-card:hover .card-icon-wrap {
    transform: translateY(-4px) scale(1.03);
    box-shadow:
        0 0 0 1px var(--media-hover-border),
        0 16px 40px rgba(0, 0, 0, 0.4),
        0 0 32px var(--media-shine);
}

#llm .card-icon-wrap img,
#img-gen .card-icon-wrap img,
#video .card-icon-wrap img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}

#llm .product-card:hover,
#img-gen .product-card:hover,
#video .product-card:hover {
    border-color: var(--media-hover-border);
    box-shadow: var(--media-hover-shadow);
}

/* 语言大模型 · 品牌光晕 */
#llm .product-card[data-icon="zhipu"] .card-img-area::after {
    background: radial-gradient(ellipse, rgba(59, 130, 246, 0.35) 0%, transparent 70%);
}

#llm .product-card[data-icon="moonshot"] .card-img-area::after {
    background: radial-gradient(ellipse, rgba(168, 85, 247, 0.32) 0%, transparent 70%);
}

#llm .product-card[data-icon="deepseek"] .card-img-area::after {
    background: radial-gradient(ellipse, rgba(34, 197, 94, 0.28) 0%, transparent 70%);
}

#llm .product-card[data-icon="minimax"] .card-img-area::after {
    background: radial-gradient(ellipse, rgba(244, 114, 182, 0.28) 0%, transparent 70%);
}

#llm .product-card[data-icon="qwen"] .card-img-area::after {
    background: radial-gradient(ellipse, rgba(249, 115, 22, 0.3) 0%, transparent 70%);
}

/* 图片生成 · 品牌光晕 */
#img-gen .product-card[data-icon="qwen"] .card-img-area::after {
    background: radial-gradient(ellipse, rgba(249, 115, 22, 0.32) 0%, transparent 70%);
}

/* 视频生成 · 品牌光晕 */
#video .product-card[data-icon="jimeng"] .card-img-area::after {
    background: radial-gradient(ellipse, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
}

#video .product-card[data-icon="doubao"] .card-img-area::after {
    background: radial-gradient(ellipse, rgba(34, 197, 94, 0.28) 0%, transparent 70%);
}

#video .product-card[data-icon="kling"] .card-img-area::after {
    background: radial-gradient(ellipse, rgba(236, 72, 153, 0.3) 0%, transparent 70%);
}

.card-body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-1);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-brand {
    font-size: 12px;
    color: var(--text-3);
}

.card-desc {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 4px;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
}

.card-price {
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-mono);
    color: var(--accent-deep);
}

.card-price-unit {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-3);
}

.card-tag {
    font-size: 11px;
    padding: 2px 8px;
    border: 1px solid var(--accent-border);
    color: var(--accent-deep);
    background: var(--accent-soft);
    border-radius: var(--radius);
    font-weight: 500;
    font-family: var(--font-mono);
}

.empty-state {
    text-align: center;
    padding: 64px 20px;
    color: var(--text-3);
}

.empty-state p { font-size: 14px; }

/* —— FAQ —— */
.faq-section {
    border-top: 1px solid var(--border-light);
    padding: 96px var(--content-x) 112px;
    background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
}

.faq-container { max-width: 720px; margin: 0 auto; }

.faq-title {
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--text-1);
    margin-bottom: 40px;
    text-align: center;
}

.faq-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    margin: 16px auto 0;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-deep));
}

.faq-item {
    border-bottom: 1px solid var(--border-light);
}

.faq-q {
    padding: 22px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-1);
    user-select: none;
    gap: 12px;
}

.faq-q-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--text-4);
    transition: transform 0.2s;
}

.faq-item.open .faq-q { color: var(--accent-deep); }
.faq-item.open .faq-q-icon { transform: rotate(180deg); color: var(--accent); }

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}

.faq-item.open .faq-a { max-height: 280px; padding-bottom: 20px; }

.faq-a p {
    font-size: 15px;
    color: var(--text-2);
    line-height: 1.75;
}

/* —— Footer —— */
.site-footer {
    position: relative;
    border-top: 1px solid rgba(14, 165, 233, 0.15);
    padding: 72px var(--content-x) 40px;
    background: linear-gradient(180deg, #0f172a 0%, #060d18 100%);
    color: rgba(226, 232, 240, 0.7);
}

.site-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--grid-tech);
    background-size: 40px 40px;
    opacity: 0.4;
    pointer-events: none;
}

.site-footer .footer-inner { position: relative; z-index: 1; }

.footer-inner {
    max-width: calc(var(--max-width) + var(--content-x) * 2);
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 56px;
    margin-bottom: 48px;
}

.footer-brand img { height: 28px; width: auto; }

.footer-col h4 {
    font-size: 12px;
    font-weight: 500;
    font-family: var(--font-mono);
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }

.footer-col a {
    color: rgba(226, 232, 240, 0.65);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.15s;
}

.footer-col a:hover { color: #7dd3fc; }

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.15);
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #64748b;
}

.footer-brand-desc { color: rgba(226, 232, 240, 0.55) !important; }

/* —— Page header (shared) —— */
.page-hero {
    position: relative;
    padding: 72px var(--content-x) 56px;
    border-bottom: 1px solid rgba(14, 165, 233, 0.2);
    background: var(--bg-hero);
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--grid-tech);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, black 30%, transparent 100%);
    pointer-events: none;
}

.page-hero::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 50%;
    height: 120%;
    background: radial-gradient(ellipse, rgba(14, 165, 233, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.page-hero-inner {
    position: relative;
    z-index: 1;
    max-width: calc(var(--max-width) + var(--content-x) * 2);
    margin: 0 auto;
}

.page-hero-title {
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 600;
    letter-spacing: -0.03em;
    color: #f8fafc;
    margin-bottom: 12px;
}

.page-hero-desc {
    font-size: 17px;
    color: rgba(226, 232, 240, 0.72);
    line-height: 1.7;
    max-width: 640px;
}

.page-hero-desc code {
    font-family: var(--font-mono);
    font-size: 14px;
    color: #7dd3fc;
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.25);
    padding: 3px 8px;
    border-radius: 6px;
}

/* —— Models page —— */
.models-container {
    max-width: calc(var(--max-width) + var(--content-x) * 2);
    margin: 0 auto;
    padding: 48px var(--content-x) 96px;
}

.models-header { margin-bottom: 40px; }

.models-title {
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--text-1);
    margin-bottom: 12px;
}

.models-subtitle { font-size: 17px; color: var(--text-2); line-height: 1.7; max-width: 640px; }

.category-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    overflow-x: auto;
    border-bottom: 1px solid var(--border-light);
    scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar { display: none; }

.cat-tab {
    padding: 10px 0;
    margin-right: 24px;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-3);
    background: transparent;
    border: none;
    border-bottom: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.15s, border-color 0.15s;
}

.cat-tab:hover { color: var(--text-1); }

.cat-tab.active {
    color: var(--accent-deep);
    font-weight: 600;
    border-bottom-color: var(--accent);
}

.cat-count { display: none; }

.models-table-wrap {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.models-table { width: 100%; border-collapse: collapse; }

.models-table thead th {
    background: linear-gradient(180deg, #f1f5f9 0%, #e8f0fe 100%);
    font-weight: 500;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent-deep);
    text-align: left;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-light);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.models-table tbody td {
    padding: 18px 24px;
    font-size: 15px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-1);
}

.models-table tbody tr:last-child td { border-bottom: none; }

.models-table tbody tr:hover { background: var(--bg-soft); }

.model-name { font-weight: 500; }
.model-id { font-size: 12px; color: var(--text-3); font-family: ui-monospace, monospace; margin-top: 2px; }

.price-cell { font-variant-numeric: tabular-nums; color: var(--text-2); }

.models-note {
    margin-top: 24px;
    padding: 16px 20px;
    font-size: 14px;
    color: var(--text-2);
    border: 1px solid var(--accent-border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-lg);
    background: var(--accent-soft);
}

.models-note a { color: var(--text-1); font-weight: 500; }

/* —— Docs page —— */
.docs-container {
    max-width: calc(var(--max-width) + var(--content-x) * 2);
    margin: 0 auto;
    padding: 48px var(--content-x) 96px;
}

.docs-header { margin-bottom: 48px; }

.docs-title {
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--text-1);
    margin: 0 0 12px;
}

.docs-shell { display: grid; grid-template-columns: 220px 1fr; gap: 64px; }

.docs-sidebar {
    position: sticky;
    top: calc(var(--header-total) + 24px);
    align-self: start;
}

.docs-nav { display: flex; flex-direction: column; gap: 0; }

.docs-nav a {
    display: block;
    padding: 8px 0 8px 14px;
    color: var(--text-3);
    text-decoration: none;
    font-size: 14px;
    border-left: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}

.docs-nav a:hover { color: var(--accent-deep); }

.docs-nav a.active {
    color: var(--accent-deep);
    font-weight: 600;
    border-left-color: var(--accent);
    background: linear-gradient(90deg, var(--accent-soft), transparent);
}

.docs-nav-icon { display: none; }

.docs-content section { margin-bottom: 40px; }

.docs-content h2 {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.docs-content h2::before {
    content: '';
    width: 3px;
    height: 22px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--accent), var(--accent-deep));
    flex-shrink: 0;
}

.docs-content h3 { font-size: 17px; font-weight: 600; margin: 28px 0 10px; }

.docs-content p { font-size: 15px; color: var(--text-2); margin-bottom: 14px; line-height: 1.75; }

.docs-content ul { margin: 8px 0 12px 20px; color: var(--text-2); font-size: 14px; }

.docs-content a { color: var(--text-1); }

.docs-content pre {
    background: #0f172a;
    color: #e2e8f0;
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    overflow-x: auto;
    margin: 16px 0 20px;
    font-size: 13px;
    line-height: 1.6;
    font-family: var(--font-mono);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.docs-content pre code { color: inherit; background: transparent; border: none; padding: 0; }

.docs-content code {
    font-family: var(--font-mono);
    font-size: 13px;
}

.docs-content p code,
.docs-content li code {
    background: var(--accent-soft);
    color: var(--accent-deep);
    padding: 2px 8px;
    border-radius: var(--radius);
    border: 1px solid var(--accent-border);
}

.docs-callout,
.docs-warn {
    padding: 14px 16px;
    margin: 16px 0;
    font-size: 13px;
    border: 1px solid var(--accent-border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-lg);
    background: var(--accent-soft);
    color: var(--text-2);
}

.docs-table-wrap {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 12px 0;
}

.docs-table { width: 100%; border-collapse: collapse; font-size: 14px; }

.docs-table th,
.docs-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.docs-table th {
    background: var(--bg-soft);
    font-weight: 500;
    color: var(--text-3);
    font-size: 12px;
}

/* —— Auth page —— */
body.page-auth {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--nav-height) + 64px) var(--content-x) 64px;
    background: linear-gradient(165deg, #0f172a 0%, #1e293b 50%, #f8fafc 100%);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    background: var(--bg-page);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.06);
}

.auth-header { text-align: center; margin-bottom: 28px; }

.auth-title {
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 16px 0 6px;
    color: var(--text-1);
}

.auth-sub { font-size: 14px; color: var(--text-2); margin: 0; }

.submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 14px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
    color: #fff;
    border: 1px solid rgba(14, 165, 233, 0.5);
    box-shadow: 0 4px 16px var(--accent-glow);
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
}

.submit:hover {
    background: linear-gradient(135deg, #38bdf8 0%, var(--accent) 100%);
    box-shadow: 0 6px 24px var(--accent-glow);
    transform: translateY(-1px);
}

.auth-notice {
    text-align: center;
    padding: 8px 0 24px;
}

.auth-notice-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-2);
    margin-bottom: 16px;
}

.eyebrow { display: none; }

.model-name-cell { font-weight: 500; }

.model-provider { font-size: 12px; color: var(--text-3); margin-top: 2px; }

.model-tag {
    display: inline-block;
    font-size: 11px;
    padding: 2px 6px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-2);
    margin-right: 4px;
}

.spec-badge {
    display: inline-block;
    font-size: 11px;
    color: var(--text-3);
    padding: 2px 6px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    margin: 2px 4px 2px 0;
}

.docs-content {
    min-height: 400px;
}

.docs-nav-sep {
    display: none;
}

.api-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    font-size: 14px;
}

.api-table th {
    background: linear-gradient(180deg, #f1f5f9 0%, #e8f0fe 100%);
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 11px;
    color: var(--accent-deep);
    text-align: left;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-light);
}

.api-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-1);
}

.api-table tr:last-child td { border-bottom: none; }

.footer-brand-desc {
    font-size: 15px;
    line-height: 1.7;
    max-width: 320px;
}

/* —— Responsive —— */
@media (max-width: 1100px) {
    .grid-5 { grid-template-columns: repeat(3, 1fr); }
}

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

@media (max-width: 768px) {
    :root {
        --nav-height: 60px;
        --content-x: 20px;
        --cat-height: 48px;
    }

    .hide-mobile { display: none; }
    .logo-link img { height: 32px; }
    .nav-btn { padding: 10px 16px; font-size: 14px; }
    .hero-section { padding: 64px var(--content-x) 48px; }
    .promo-section { padding: 32px var(--content-x) 40px; }
    .promo-grid { grid-template-columns: 1fr; }
    .grid-5 { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .faq-section { padding: 64px var(--content-x) 72px; }
    .faq-title { font-size: 26px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .site-footer { padding: 48px var(--content-x) 32px; }
    .docs-shell { grid-template-columns: 1fr; gap: 32px; }
    .docs-sidebar { position: static; display: flex; flex-wrap: wrap; gap: 12px 20px; margin-bottom: 24px; }
    .docs-nav { flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 480px) {
    .grid-5 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
