@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Noto+Serif+SC:wght@400;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

.ai-v1-site {
    --ai-v1-background: #f2f4f7;
    --ai-v1-foreground: #0d1829;
    --ai-v1-card: #ffffff;
    --ai-v1-primary: #1b3d7a;
    --ai-v1-accent: #1e56a8;
    --ai-v1-secondary: #e8ebf2;
    --ai-v1-muted: #5c6880;
    --ai-v1-border: rgba(13, 24, 41, 0.1);
    margin: 0;
    min-height: 100vh;
    color: var(--ai-v1-foreground);
    background: var(--ai-v1-background);
    font-family: 'Plus Jakarta Sans', 'Microsoft YaHei', sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

.ai-v1-site *,
.ai-v1-site *::before,
.ai-v1-site *::after { box-sizing: border-box; }
.ai-v1-site a { color: inherit; text-decoration: none; }
.ai-v1-site button,
.ai-v1-site input { font: inherit; }
.ai-v1-site a:focus-visible,
.ai-v1-site button:focus-visible,
.ai-v1-site input:focus-visible { outline: 2px solid var(--ai-v1-accent); outline-offset: 2px; }
.ai-v1-site svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ai-v1-icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ai-v1-site .ai-site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.ai-v1-site .ai-layout-container,
.ai-v1-container { width: 100%; max-width: 1280px; margin: 0 auto; padding-inline: 24px; }

/* Header */
.ai-v1-site .ai-navbar {
    position: sticky;
    z-index: 50;
    top: 0;
    width: 100%;
    height: 56px;
    border-bottom: 1px solid var(--ai-v1-border);
    background: #fff;
    box-shadow: 0 1px 2px rgba(13, 24, 41, 0.05);
}
.ai-v1-site .ai-navbar .ai-navbar-inner { height: 56px; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 0; padding-bottom: 0; }
.ai-v1-site .ai-brand { display: flex; align-items: center; flex: 0 0 auto; gap: 10px; min-width: 148px; }
.ai-v1-site .ai-brand-icon,
.ai-v1-site .ai-footer-icon { display: grid; place-items: center; flex: 0 0 auto; color: #fff; background: var(--ai-v1-primary); border-radius: 4px; }
.ai-v1-site .ai-brand-icon { width: 28px; height: 28px; }
.ai-v1-site .ai-brand-icon svg { width: 14px; height: 14px; }
.ai-v1-site .ai-brand-mark { display: flex; flex-direction: column; justify-content: center; line-height: 1; }
.ai-v1-site .ai-brand-title { color: var(--ai-v1-foreground); font-family: 'Noto Serif SC', serif; font-size: 14px; font-weight: 700; letter-spacing: -0.02em; }
.ai-v1-site .ai-brand-subtitle { display: block; margin-top: 5px; color: var(--ai-v1-muted); font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 400; }

.ai-v1-site .ai-navbar-menu { display: flex; flex: 0 1 auto; align-items: center; gap: 2px; margin-left: auto; }
.ai-v1-site .ai-nav-link { display: inline-flex; align-items: center; min-height: 30px; padding: 6px 12px; color: var(--ai-v1-muted); border-radius: 4px; font-size: 12px; font-weight: 500; white-space: nowrap; transition: color .2s ease, background .2s ease; }
.ai-v1-site .ai-nav-link:hover { color: var(--ai-v1-foreground); background: var(--ai-v1-secondary); }
.ai-v1-site .ai-nav-link.is-active { color: var(--ai-v1-primary); background: rgba(27, 61, 122, .08); font-weight: 600; }

.ai-v1-site .ai-search-form-nav { position: relative; display: flex; flex: 0 0 176px; align-items: center; order: 3; width: 176px; min-width: 0; max-width: none; height: 32px; margin: 0; padding: 0 6px 0 30px; border: 1px solid var(--ai-v1-border); border-radius: 4px; background: var(--ai-v1-background); }
.ai-v1-site .ai-search-icon { position: absolute; left: 11px; width: 12px; height: 12px; color: var(--ai-v1-muted); }
.ai-v1-site .ai-search-input { width: 100%; height: 30px; min-width: 0; padding: 0; color: var(--ai-v1-foreground); border: 0; outline: 0; background: transparent; font-size: 12px; }
.ai-v1-site .ai-search-input::placeholder { color: var(--ai-v1-muted); }
.ai-v1-site .ai-search-submit { flex: 0 0 auto; height: 20px; padding: 2px 6px; color: var(--ai-v1-muted); border: 0; border-radius: 3px; background: var(--ai-v1-secondary); font-family: 'JetBrains Mono', monospace; font-size: 10px; line-height: 16px; cursor: pointer; }

.ai-v1-site .ai-navbar-actions { order: 4; flex: 0 0 auto; }
.ai-v1-site .ai-utility-links { display: flex; align-items: center; gap: 8px; }
.ai-v1-site .ai-account-link { display: inline-flex; align-items: center; justify-content: center; height: 32px; padding: 0 16px; border: 1px solid var(--ai-v1-primary); border-radius: 4px; font-size: 12px; font-weight: 600; transition: background .2s ease, color .2s ease; }
.ai-v1-site .ai-account-link.is-primary { color: #fff; background: var(--ai-v1-primary); }
.ai-v1-site .ai-account-link.is-primary:hover { background: #163566; }
.ai-v1-site .ai-account-link.is-secondary { color: var(--ai-v1-primary); background: #fff; }
.ai-v1-site .ai-account-link.is-secondary:hover { background: rgba(27, 61, 122, .05); }
.ai-v1-site .ai-navbar-toggle { display: none; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; color: var(--ai-v1-muted); border: 0; background: transparent; cursor: pointer; }
.ai-v1-site .ai-navbar-toggle svg { width: 18px; height: 18px; }

/* Shared layout */
.ai-v1-site .ai-main { flex: 1; padding: 0; }
.ai-v1-site .ai-main > .ai-main-content { padding-top: 32px; padding-bottom: 48px; }
.ai-v1-site .ai-alert { max-width: 1232px; margin: 16px auto; }
.ai-v1-home { overflow: hidden; }
.ai-v1-section { border-bottom: 1px solid var(--ai-v1-border); }
.ai-v1-section-heading { display: flex; align-items: center; gap: 12px; margin: 0 0 24px; }
.ai-v1-section-heading > span { width: 4px; height: 20px; flex: 0 0 auto; border-radius: 999px; background: var(--ai-v1-primary); }
.ai-v1-section-heading h2 { margin: 0; color: var(--ai-v1-foreground); font-family: 'Noto Serif SC', serif; font-size: 16px; font-weight: 700; line-height: 1.5; }
.ai-v1-section-heading small { color: var(--ai-v1-muted); font-family: 'JetBrains Mono', monospace; font-size: 12px; }

/* Hero */
.ai-v1-hero { color: #fff; border-bottom: 1px solid rgba(27, 61, 122, .8); background: var(--ai-v1-primary); }
.ai-v1-hero-inner { padding-top: 96px; padding-bottom: 96px; }
.ai-v1-hero-copy { max-width: 672px; }
.ai-v1-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 24px; padding: 4px 12px; color: rgba(255, 255, 255, .8); border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 12px; font-weight: 500; }
.ai-v1-eyebrow span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .6); }
.ai-v1-hero h1 { margin: 0 0 20px; color: #fff; font-family: 'Noto Serif SC', serif; font-size: 44px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.ai-v1-hero h1 span { color: rgba(255, 255, 255, .7); }
.ai-v1-hero-copy > p { max-width: 512px; margin: 0 0 40px; color: rgba(255, 255, 255, .6); font-size: 14px; line-height: 1.75; }
.ai-v1-hero-stats { display: flex; flex-wrap: wrap; gap: 32px; margin-bottom: 40px; }
.ai-v1-hero-stat { display: flex; align-items: center; gap: 10px; }
.ai-v1-stat-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 4px; background: rgba(255, 255, 255, .1); }
.ai-v1-stat-icon svg { width: 14px; height: 14px; color: rgba(255, 255, 255, .7); }
.ai-v1-hero-stat div { display: flex; align-items: baseline; gap: 4px; }
.ai-v1-hero-stat strong { color: #fff; font-family: 'JetBrains Mono', monospace; font-size: 14px; font-weight: 700; }
.ai-v1-hero-stat span:last-child { color: rgba(255, 255, 255, .6); font-size: 12px; }
.ai-v1-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ai-v1-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 20px; border-radius: 4px; font-size: 14px; font-weight: 600; transition: background .2s ease, color .2s ease; }
.ai-v1-button svg { width: 16px; height: 16px; }
.ai-v1-button.is-light { color: var(--ai-v1-primary); background: #fff; box-shadow: 0 1px 2px rgba(13, 24, 41, .08); }
.ai-v1-button.is-light:hover { background: rgba(255, 255, 255, .9); }
.ai-v1-button.is-outline-light { color: #fff; border: 1px solid rgba(255, 255, 255, .3); background: transparent; }
.ai-v1-button.is-outline-light:hover { background: rgba(255, 255, 255, .1); }

/* Feature band */
.ai-v1-feature-band { border-bottom: 1px solid var(--ai-v1-border); background: #fff; }
.ai-v1-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ai-v1-feature-grid > div { padding: 20px 24px; text-align: center; }
.ai-v1-feature-grid > div + div { border-left: 1px solid var(--ai-v1-border); }
.ai-v1-feature-grid strong { display: block; color: var(--ai-v1-primary); font-size: 14px; font-weight: 600; }
.ai-v1-feature-grid span { display: block; margin-top: 2px; color: var(--ai-v1-muted); font-size: 12px; }

/* Reading path */
.ai-v1-reading-path { background: var(--ai-v1-background); }
.ai-v1-reading-path .ai-v1-container { padding-top: 48px; padding-bottom: 48px; }
.ai-v1-path-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ai-v1-path-card { display: flex; flex-direction: column; gap: 12px; padding: 24px; border: 1px solid var(--ai-v1-border); border-radius: 4px; background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.ai-v1-path-card:hover { border-color: rgba(27, 61, 122, .3); box-shadow: 0 1px 3px rgba(13, 24, 41, .08); }
.ai-v1-path-card > div { display: flex; align-items: center; gap: 10px; }
.ai-v1-path-card > div > span { display: grid; place-items: center; width: 24px; height: 24px; flex: 0 0 auto; color: #fff; border-radius: 4px; background: var(--ai-v1-primary); font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 700; }
.ai-v1-path-card h3 { margin: 0; color: var(--ai-v1-foreground); font-family: 'Noto Serif SC', serif; font-size: 14px; font-weight: 700; }
.ai-v1-path-card p { margin: 0; padding-left: 34px; color: var(--ai-v1-muted); font-size: 12px; line-height: 1.75; }

/* Categories */
.ai-v1-docs { background: #fff; }
.ai-v1-docs .ai-v1-container,
.ai-v1-articles .ai-v1-container,
.ai-v1-knowledge .ai-v1-container { padding-top: 56px; padding-bottom: 56px; }
.ai-v1-category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ai-v1-category-card { display: flex; align-items: center; gap: 16px; min-width: 0; padding: 16px; border: 1px solid var(--ai-v1-border); border-radius: 4px; background: var(--ai-v1-background); transition: border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.ai-v1-category-card:hover { border-color: rgba(27, 61, 122, .25); background: #fff; box-shadow: 0 1px 3px rgba(13, 24, 41, .08); }
.ai-v1-category-icon { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 auto; border-radius: 4px; color: #1b3d7a; background: rgba(27, 61, 122, .05); }
.ai-v1-category-icon svg { width: 16px; height: 16px; }
.ai-v1-category-card.is-2 .ai-v1-category-icon { color: #1e56a8; background: rgba(30, 86, 168, .05); }
.ai-v1-category-card.is-3 .ai-v1-category-icon { color: #174e7a; background: rgba(23, 78, 122, .05); }
.ai-v1-category-card.is-4 .ai-v1-category-icon { color: #2a6049; background: rgba(42, 96, 73, .05); }
.ai-v1-category-card.is-5 .ai-v1-category-icon { color: #6b4c0e; background: rgba(107, 76, 14, .05); }
.ai-v1-category-card.is-6 .ai-v1-category-icon { color: #7a1f1f; background: rgba(122, 31, 31, .05); }
.ai-v1-category-copy { flex: 1; min-width: 0; }
.ai-v1-category-copy > span { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 2px; }
.ai-v1-category-copy strong { overflow: hidden; color: var(--ai-v1-foreground); font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.ai-v1-category-copy small { flex: 0 0 auto; color: var(--ai-v1-muted); font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.ai-v1-category-copy p { overflow: hidden; margin: 0; color: var(--ai-v1-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.ai-v1-category-arrow { width: 14px; height: 14px; flex: 0 0 auto; color: rgba(92, 104, 128, .4); transition: color .2s ease; }
.ai-v1-category-card:hover .ai-v1-category-arrow { color: var(--ai-v1-primary); }

/* Articles */
.ai-v1-articles { background: var(--ai-v1-background); }
.ai-v1-articles-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.ai-v1-articles-head .ai-v1-section-heading { margin-bottom: 0; }
.ai-v1-tabs { display: flex; align-items: center; gap: 4px; padding: 2px; border: 1px solid var(--ai-v1-border); border-radius: 4px; background: #fff; }
.ai-v1-tabs button { height: 28px; padding: 0 16px; color: var(--ai-v1-muted); border: 0; border-radius: 3px; background: transparent; font-size: 12px; font-weight: 600; cursor: pointer; transition: color .2s ease, background .2s ease; }
.ai-v1-tabs button:hover { color: var(--ai-v1-foreground); }
.ai-v1-tabs button.is-active { color: #fff; background: var(--ai-v1-primary); }
.ai-v1-article-list { overflow: hidden; border: 1px solid var(--ai-v1-border); border-radius: 4px; background: #fff; }
.ai-v1-article-list[hidden] { display: none; }
.ai-v1-article-row { display: flex; align-items: center; gap: 16px; min-height: 49px; padding: 10px 20px; transition: background .2s ease; }
.ai-v1-article-row + .ai-v1-article-row { border-top: 1px solid var(--ai-v1-border); }
.ai-v1-article-row:hover { background: rgba(232, 235, 242, .5); }
.ai-v1-rank { width: 20px; flex: 0 0 auto; color: var(--ai-v1-muted); font-family: 'JetBrains Mono', monospace; font-size: 11px; text-align: right; }
.ai-v1-rank.is-hot { font-size: 14px; font-weight: 700; text-align: center; }
.ai-v1-rank.is-hot.is-1 { color: #b45309; }
.ai-v1-rank.is-hot.is-2 { color: #6b7280; }
.ai-v1-rank.is-hot.is-3 { color: #92400e; }
.ai-v1-article-row > strong { overflow: hidden; flex: 1; min-width: 0; color: var(--ai-v1-foreground); font-size: 14px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; transition: color .2s ease; }
.ai-v1-article-row:hover > strong { color: var(--ai-v1-primary); }
.ai-v1-article-meta { display: flex; align-items: center; gap: 16px; flex: 0 0 auto; }
.ai-v1-article-meta em { padding: 2px 8px; color: #1b3d7a; border: 1px solid rgba(27, 61, 122, .15); border-radius: 4px; background: rgba(27, 61, 122, .05); font-family: 'JetBrains Mono', monospace; font-size: 11px; font-style: normal; font-weight: 500; white-space: nowrap; }
.ai-v1-article-meta > span { display: inline-flex; align-items: center; gap: 4px; color: var(--ai-v1-muted); font-family: 'JetBrains Mono', monospace; font-size: 11px; white-space: nowrap; }
.ai-v1-article-meta svg,
.ai-v1-external { width: 12px; height: 12px; }
.ai-v1-external { flex: 0 0 auto; color: rgba(92, 104, 128, .3); transition: color .2s ease; }
.ai-v1-article-row:hover .ai-v1-external { color: var(--ai-v1-primary); }
.ai-v1-empty { padding: 32px; color: var(--ai-v1-muted); font-size: 13px; text-align: center; }
.ai-v1-list-more { display: flex; justify-content: flex-end; margin-top: 16px; }
.ai-v1-list-more a { display: inline-flex; align-items: center; gap: 4px; color: var(--ai-v1-primary); font-size: 12px; }
.ai-v1-list-more a:hover { text-decoration: underline; }
.ai-v1-list-more svg { width: 12px; height: 12px; }

/* Knowledge navigation and CTA */
.ai-v1-knowledge { background: #fff; }
.ai-v1-knowledge-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ai-v1-knowledge-card { display: flex; flex-direction: column; gap: 16px; padding: 28px; border: 1px solid rgba(27, 61, 122, .2); border-radius: 4px; background: rgba(27, 61, 122, .04); }
.ai-v1-knowledge-card > div { display: flex; align-items: center; gap: 12px; }
.ai-v1-knowledge-card > div > span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 4px; color: var(--ai-v1-primary); background: rgba(27, 61, 122, .1); }
.ai-v1-knowledge-card > div svg { width: 16px; height: 16px; }
.ai-v1-knowledge-card h3 { margin: 0; font-family: 'Noto Serif SC', serif; font-size: 16px; font-weight: 700; }
.ai-v1-knowledge-card p { margin: 0; color: var(--ai-v1-muted); font-size: 14px; line-height: 1.75; }
.ai-v1-knowledge-card > a { display: inline-flex; align-items: center; align-self: flex-start; gap: 8px; color: var(--ai-v1-primary); font-size: 14px; font-weight: 600; }
.ai-v1-knowledge-card > a:hover { text-decoration: underline; }
.ai-v1-knowledge-card > a svg { width: 16px; height: 16px; }
.ai-v1-cta-section { border-bottom: 0; background: var(--ai-v1-background); }
.ai-v1-cta-section .ai-v1-container { padding-top: 56px; padding-bottom: 56px; }
.ai-v1-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 40px 32px; color: #fff; border: 1px solid rgba(27, 61, 122, .3); border-radius: 4px; background: var(--ai-v1-primary); }
.ai-v1-cta h2 { margin: 0 0 6px; color: #fff; font-family: 'Noto Serif SC', serif; font-size: 18px; font-weight: 700; }
.ai-v1-cta p { margin: 0; color: rgba(255, 255, 255, .6); font-size: 14px; }
.ai-v1-cta-actions { display: flex; align-items: center; flex: 0 0 auto; gap: 12px; }
.ai-v1-cta .ai-v1-button { height: 36px; }

/* Footer */
.ai-v1-site .ai-footer { margin: 0; padding: 0; color: var(--ai-v1-foreground); border-top: 1px solid var(--ai-v1-border); background: #fff; }
.ai-v1-site .ai-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 32px; padding-bottom: 32px; }
.ai-v1-site .ai-footer-brand { display: flex; align-items: center; gap: 10px; }
.ai-v1-site .ai-footer-icon { width: 24px; height: 24px; }
.ai-v1-site .ai-footer-icon svg { width: 12px; height: 12px; }
.ai-v1-site .ai-footer-brand strong { display: block; font-family: 'Noto Serif SC', serif; font-size: 14px; font-weight: 700; }
.ai-v1-site .ai-footer-brand p { margin: 2px 0 0; color: var(--ai-v1-muted); font-size: 12px; }
.ai-v1-site .ai-footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.ai-v1-site .ai-footer-links a { color: var(--ai-v1-muted); font-size: 12px; transition: color .2s ease; }
.ai-v1-site .ai-footer-links a:hover { color: var(--ai-v1-primary); }
.ai-v1-site .ai-footer-links .ai-footer-record { color: rgba(92, 104, 128, .5); font-family: 'JetBrains Mono', monospace; }

/* First-level AI pages */
.ai-v1-page { min-height: 70vh; color: var(--ai-v1-foreground); background: var(--ai-v1-background); }
.ai-v1-page-hero { color: #fff; border-bottom: 1px solid rgba(27, 61, 122, .8); background: var(--ai-v1-primary); }
.ai-v1-page-hero .ai-v1-container { padding-top: 48px; padding-bottom: 48px; }
.ai-v1-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 24px; color: rgba(255,255,255,.6) !important; font-size: 12px; transition: color .2s ease; }
.ai-v1-back:hover { color: #fff !important; }
.ai-v1-back svg { width: 12px; height: 12px; }
.ai-v1-page-hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.ai-v1-page-hero h1 { margin: 0; color: #fff; font-family: 'Noto Serif SC', serif; font-size: 30px; font-weight: 700; line-height: 1.35; }
.ai-v1-page-hero p { max-width: 560px; margin: 4px 0 0; color: rgba(255,255,255,.6); font-size: 14px; line-height: 1.7; }
.ai-v1-page-count { display: flex; align-items: baseline; flex: 0 0 auto; gap: 8px; }
.ai-v1-page-count strong { color: rgba(255,255,255,.85); font-family: 'JetBrains Mono', monospace; font-size: 14px; }
.ai-v1-page-count span { color: rgba(255,255,255,.5); font-size: 12px; }
.ai-v1-page-stats { display: flex; align-items: center; flex: 0 0 auto; gap: 24px; }
.ai-v1-page-stats > div { min-width: 54px; text-align: center; }
.ai-v1-page-stats strong { display: block; color: #fff; font-family: 'JetBrains Mono', monospace; font-size: 18px; }
.ai-v1-page-stats span { display: block; color: rgba(255,255,255,.5); font-size: 10px; }

.ai-v1-page-toolbar { position: sticky; z-index: 40; top: 56px; height: 48px; border-bottom: 1px solid var(--ai-v1-border); background: #fff; }
.ai-v1-page-toolbar .ai-v1-container { display: flex; align-items: center; gap: 12px; height: 48px; }
.ai-v1-toolbar-search { position: relative; display: flex; flex: 1 1 320px; align-items: center; width: 100%; min-width: 0; max-width: 320px; }
.ai-v1-toolbar-search svg { position: absolute; left: 10px; width: 12px; height: 12px; color: var(--ai-v1-muted); }
.ai-v1-toolbar-search input { width: 100%; height: 28px; padding: 0 12px 0 32px; color: var(--ai-v1-foreground); border: 1px solid var(--ai-v1-border); border-radius: 4px; outline: 0; background: var(--ai-v1-background); font-size: 12px; }
.ai-v1-toolbar-search input:focus { border-color: rgba(27,61,122,.4); }
.ai-v1-toolbar-count { margin-left: auto; color: var(--ai-v1-muted); font-size: 12px; white-space: nowrap; }
.ai-v1-toolbar-count strong { color: var(--ai-v1-foreground); font-family: 'JetBrains Mono', monospace; font-weight: 500; }
.ai-v1-toolbar-select { height: 28px; padding: 0 28px 0 10px; color: var(--ai-v1-muted); border: 1px solid var(--ai-v1-border); border-radius: 4px; outline: 0; background: var(--ai-v1-background); font-size: 12px; cursor: pointer; }

/* Generic category */
.ai-v1-category-body { min-height: 55vh; background: var(--ai-v1-background); }
.ai-v1-category-body .ai-v1-container { padding-top: 40px; padding-bottom: 48px; }
.ai-v1-category-list { display: flex; flex-direction: column; gap: 12px; }
.ai-v1-category-row { display: flex; align-items: flex-start; gap: 16px; padding: 20px; border: 1px solid var(--ai-v1-border); border-radius: 4px; background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.ai-v1-category-row:hover { border-color: rgba(27,61,122,.25); box-shadow: 0 1px 3px rgba(13,24,41,.08); }
.ai-v1-category-index { width: 20px; flex: 0 0 auto; padding-top: 2px; color: var(--ai-v1-muted); font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.ai-v1-category-row > div:nth-child(2) { flex: 1; min-width: 0; }
.ai-v1-category-row h2 { margin: 0 0 6px; color: var(--ai-v1-foreground); font-size: 14px; font-weight: 600; line-height: 1.45; transition: color .2s ease; }
.ai-v1-category-row:hover h2 { color: var(--ai-v1-primary); }
.ai-v1-category-row p { display: -webkit-box; overflow: hidden; margin: 0; color: var(--ai-v1-muted); font-size: 12px; line-height: 1.7; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ai-v1-category-meta { display: flex; flex-direction: column; align-items: flex-end; flex: 0 0 auto; gap: 8px; }
.ai-v1-category-meta em { padding: 2px 8px; color: var(--ai-v1-primary); border: 1px solid rgba(27,61,122,.15); border-radius: 4px; background: rgba(27,61,122,.05); font-family: 'JetBrains Mono', monospace; font-size: 11px; font-style: normal; }
.ai-v1-category-meta > span { display: inline-flex; align-items: center; gap: 4px; color: var(--ai-v1-muted); font-family: 'JetBrains Mono', monospace; font-size: 11px; }
.ai-v1-category-meta > span svg { width: 12px; height: 12px; }
.ai-v1-category-empty { display: flex; align-items: center; flex-direction: column; gap: 12px; padding: 72px 24px; text-align: center; }
.ai-v1-category-empty > span { display: grid; place-items: center; width: 56px; height: 56px; color: var(--ai-v1-muted); border-radius: 12px; background: var(--ai-v1-secondary); }
.ai-v1-category-empty > span svg { width: 24px; height: 24px; }
.ai-v1-category-empty h2 { margin: 0; font-family: 'Noto Serif SC', serif; font-size: 16px; }
.ai-v1-category-empty p { max-width: 420px; margin: 0; color: var(--ai-v1-muted); font-size: 13px; }
.ai-v1-category-empty a { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 7px 14px; color: var(--ai-v1-primary); border: 1px solid rgba(27,61,122,.3); border-radius: 4px; font-size: 12px; font-weight: 500; }
.ai-v1-category-empty a svg { width: 12px; height: 12px; }
.ai-v1-no-results { padding: 64px 24px; color: var(--ai-v1-muted); font-size: 13px; text-align: center; }

/* Model catalog */
.ai-v1-model-body { min-height: 58vh; background: var(--ai-v1-background); }
.ai-v1-model-body > .ai-v1-container { padding-top: 28px; padding-bottom: 48px; }
.ai-v1-model-schema { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding: 14px 16px; border: 1px solid rgba(27,61,122,.14); border-radius: 4px; background: rgba(27,61,122,.035); }
.ai-v1-model-schema > span { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; color: var(--ai-v1-primary); border-radius: 4px; background: #fff; }
.ai-v1-model-schema > span svg { width: 16px; height: 16px; }
.ai-v1-model-schema > div { flex: 1; min-width: 180px; }
.ai-v1-model-schema strong { display: block; margin-bottom: 2px; color: var(--ai-v1-foreground); font-size: 12px; }
.ai-v1-model-schema p { margin: 0; color: var(--ai-v1-muted); font-size: 11px; }
.ai-v1-model-schema code { flex: 0 0 auto; padding: 4px 7px; color: #35516f; border: 1px solid var(--ai-v1-border); border-radius: 3px; background: #fff; font-family: 'JetBrains Mono', monospace; font-size: 10px; }
.ai-v1-model-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ai-v1-model-card { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0 14px; min-width: 0; padding: 20px; color: inherit; border: 1px solid var(--ai-v1-border); border-radius: 6px; background: #fff; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.ai-v1-model-card:hover { border-color: rgba(27,61,122,.3); box-shadow: 0 8px 24px rgba(13,24,41,.08); transform: translateY(-2px); }
.ai-v1-model-card-icon { display: grid; place-items: center; width: 44px; height: 44px; color: var(--ai-v1-primary); border-radius: 6px; background: rgba(27,61,122,.06); }
.ai-v1-model-card-icon svg { width: 20px; height: 20px; }
.ai-v1-model-card-heading { min-width: 0; }
.ai-v1-model-card-heading > span { display: inline-flex; margin-bottom: 5px; padding: 2px 7px; color: var(--ai-v1-primary); border-radius: 999px; background: rgba(27,61,122,.06); font-size: 10px; font-weight: 600; }
.ai-v1-model-card-heading h2 { overflow: hidden; margin: 0 0 6px; color: var(--ai-v1-foreground); font-size: 16px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.ai-v1-model-card-heading p { display: -webkit-box; overflow: hidden; margin: 0; color: var(--ai-v1-muted); font-size: 12px; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ai-v1-model-facts { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; margin: 18px 0 0; border: 1px solid var(--ai-v1-border); border-radius: 4px; background: var(--ai-v1-border); }
.ai-v1-model-facts > div { min-width: 0; padding: 10px 12px; background: var(--ai-v1-background); }
.ai-v1-model-facts dt { margin-bottom: 3px; color: var(--ai-v1-muted); font-size: 10px; }
.ai-v1-model-facts dd { overflow: hidden; margin: 0; color: var(--ai-v1-foreground); font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.ai-v1-model-card-footer { display: flex; grid-column: 1 / -1; align-items: center; gap: 12px; margin-top: 14px; color: var(--ai-v1-muted); font-size: 10px; }
.ai-v1-model-card-footer span { display: inline-flex; align-items: center; gap: 4px; }
.ai-v1-model-card-footer span svg { width: 11px; height: 11px; }
.ai-v1-model-card-footer strong { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; color: var(--ai-v1-primary); font-size: 11px; }
.ai-v1-model-card-footer strong svg { width: 12px; height: 12px; }
.ai-v1-model-empty { display: flex; align-items: center; flex-direction: column; padding: 60px 24px; text-align: center; border: 1px dashed rgba(27,61,122,.22); border-radius: 6px; background: #fff; }
.ai-v1-model-empty > span { display: grid; place-items: center; width: 52px; height: 52px; color: var(--ai-v1-primary); border-radius: 12px; background: rgba(27,61,122,.06); }
.ai-v1-model-empty > span svg { width: 24px; height: 24px; }
.ai-v1-model-empty h2 { margin: 16px 0 8px; font-family: 'Noto Serif SC', serif; font-size: 18px; }
.ai-v1-model-empty p { max-width: 580px; margin: 0; color: var(--ai-v1-muted); font-size: 12px; line-height: 1.8; }
.ai-v1-model-empty pre { max-width: 100%; margin: 20px 0 0; padding: 14px 18px; overflow-x: auto; color: #d8e2ef; border-radius: 5px; background: #172033; text-align: left; }
.ai-v1-model-empty code { font-family: 'JetBrains Mono', monospace; font-size: 11px; line-height: 1.8; }

/* Skills market */
.ai-v1-filter-toggle { display: none; align-items: center; flex: 0 0 auto; gap: 6px; height: 28px; padding: 0 12px; color: var(--ai-v1-muted); border: 1px solid var(--ai-v1-border); border-radius: 4px; background: #fff; font-size: 12px; white-space: nowrap; }
.ai-v1-filter-toggle svg { width: 12px; height: 12px; }
.ai-v1-skill-body { min-height: 60vh; background: var(--ai-v1-background); }
.ai-v1-skill-layout { position: relative; display: flex; align-items: flex-start; gap: 24px; padding-top: 32px; padding-bottom: 48px; }
.ai-v1-skill-sidebar { position: sticky; top: 120px; display: flex; width: 208px; flex: 0 0 auto; flex-direction: column; gap: 20px; }
.ai-v1-filter-panel { overflow: hidden; border: 1px solid var(--ai-v1-border); border-radius: 4px; background: #fff; }
.ai-v1-filter-title { padding: 12px 16px; border-bottom: 1px solid var(--ai-v1-border); font-size: 12px; font-weight: 600; }
.ai-v1-filter-options { display: flex; flex-direction: column; gap: 7px; padding: 12px 16px; }
.ai-v1-filter-options label { display: flex; align-items: center; gap: 8px; color: var(--ai-v1-muted); font-size: 12px; cursor: pointer; }
.ai-v1-filter-options input { position: absolute; opacity: 0; pointer-events: none; }
.ai-v1-filter-options label > span { display: grid; place-items: center; width: 14px; height: 14px; flex: 0 0 auto; color: transparent; border: 1px solid var(--ai-v1-border); border-radius: 3px; background: #fff; }
.ai-v1-filter-options label > span svg { width: 10px; height: 10px; }
.ai-v1-filter-options input:checked + span { color: #fff; border-color: var(--ai-v1-primary); background: var(--ai-v1-primary); }
.ai-v1-filter-options label:has(input:checked) { color: var(--ai-v1-foreground); font-weight: 500; }
.ai-v1-filter-options p { margin: 0; color: var(--ai-v1-muted); font-size: 11px; }
.ai-v1-market-stats dl { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 12px 16px; }
.ai-v1-market-stats dl div { display: flex; justify-content: space-between; gap: 12px; }
.ai-v1-market-stats dt { color: var(--ai-v1-muted); font-size: 12px; }
.ai-v1-market-stats dd { margin: 0; font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.ai-v1-skill-content { flex: 1; min-width: 0; }
.ai-v1-skill-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.ai-v1-skill-card { display: flex; overflow: hidden; flex-direction: column; border: 1px solid var(--ai-v1-border); border-radius: 4px; background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.ai-v1-skill-card:hover { border-color: rgba(27,61,122,.25); box-shadow: 0 4px 12px rgba(13,24,41,.08); }
.ai-v1-skill-card-body { display: flex; flex: 1; flex-direction: column; gap: 12px; padding: 20px; }
.ai-v1-skill-card-head { display: flex; align-items: flex-start; gap: 12px; }
.ai-v1-skill-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 auto; color: var(--ai-v1-primary); border-radius: 12px; background: rgba(27,61,122,.07); }
.ai-v1-skill-icon svg { width: 20px; height: 20px; }
.ai-v1-skill-card-head > div { flex: 1; min-width: 0; }
.ai-v1-skill-card h2 { overflow: hidden; margin: 0; font-size: 14px; font-weight: 700; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.ai-v1-skill-card h2 a:hover { color: var(--ai-v1-primary); }
.ai-v1-skill-card small { display: block; overflow: hidden; margin-top: 2px; color: var(--ai-v1-muted); font-family: 'JetBrains Mono', monospace; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.ai-v1-skill-type { display: inline-flex; align-items: center; flex: 0 0 auto; gap: 3px; padding: 2px 6px; color: var(--ai-v1-primary); border: 1px solid rgba(27,61,122,.15); border-radius: 4px; background: rgba(27,61,122,.05); font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 600; }
.ai-v1-skill-type svg { width: 10px; height: 10px; }
.ai-v1-skill-card-body > p { display: -webkit-box; overflow: hidden; margin: 0; color: var(--ai-v1-muted); font-size: 12px; line-height: 1.7; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ai-v1-skill-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ai-v1-skill-tags span { padding: 2px 8px; color: var(--ai-v1-muted); border: 1px solid var(--ai-v1-border); border-radius: 999px; background: var(--ai-v1-secondary); font-size: 10px; }
.ai-v1-skill-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--ai-v1-border); }
.ai-v1-skill-card-footer > div { display: flex; align-items: center; gap: 10px; }
.ai-v1-skill-card-footer > div:first-child span { display: inline-flex; align-items: center; gap: 4px; color: var(--ai-v1-muted); font-family: 'JetBrains Mono', monospace; font-size: 11px; }
.ai-v1-skill-card-footer > div:first-child svg { width: 12px; height: 12px; }
.ai-v1-skill-card-footer a { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 12px; color: #fff; border: 1px solid var(--ai-v1-primary); border-radius: 4px; background: var(--ai-v1-primary); font-size: 11px; font-weight: 600; }
.ai-v1-skill-card-footer a.is-secondary { color: var(--ai-v1-muted); border-color: var(--ai-v1-border); background: #fff; }
.ai-v1-skill-card-footer a svg { width: 10px; height: 10px; }
.ai-v1-skill-backdrop { display: none; }

/* Collections */
.ai-v1-collection-filter,
.ai-v1-resource-filter { position: sticky; z-index: 40; top: 56px; min-height: 48px; border-bottom: 1px solid var(--ai-v1-border); background: #fff; }
.ai-v1-collection-filter .ai-v1-container,
.ai-v1-resource-filter .ai-v1-container { display: flex; overflow-x: auto; align-items: center; gap: 6px; min-height: 48px; }
.ai-v1-collection-filter button,
.ai-v1-resource-filter button { height: 28px; flex: 0 0 auto; padding: 0 14px; color: var(--ai-v1-muted); border: 1px solid var(--ai-v1-border); border-radius: 4px; background: #fff; font-size: 12px; cursor: pointer; }
.ai-v1-collection-filter button.is-active,
.ai-v1-resource-filter button.is-active { color: #fff; border-color: var(--ai-v1-primary); background: var(--ai-v1-primary); }
.ai-v1-collection-filter .ai-v1-container > span,
.ai-v1-resource-filter .ai-v1-container > span { margin-left: auto; color: var(--ai-v1-muted); font-family: 'JetBrains Mono', monospace; font-size: 12px; white-space: nowrap; }
.ai-v1-collection-body { min-height: 55vh; background: var(--ai-v1-background); }
.ai-v1-collection-body .ai-v1-container { padding-top: 32px; padding-bottom: 40px; }
.ai-v1-collection-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.ai-v1-collection-card { display: flex; overflow: hidden; flex-direction: column; border: 1px solid var(--ai-v1-border); border-radius: 4px; background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.ai-v1-collection-card:hover { border-color: rgba(27,61,122,.3); box-shadow: 0 4px 12px rgba(13,24,41,.08); }
.ai-v1-collection-accent { height: 3px; flex: 0 0 auto; background: #1b3d7a; }
.ai-v1-collection-card.is-2 .ai-v1-collection-accent { background: #174e7a; }.ai-v1-collection-card.is-3 .ai-v1-collection-accent { background: #2a6049; }.ai-v1-collection-card.is-4 .ai-v1-collection-accent { background: #6b4c0e; }.ai-v1-collection-card.is-5 .ai-v1-collection-accent { background: #7a1f1f; }.ai-v1-collection-card.is-6 .ai-v1-collection-accent { background: #1e56a8; }
.ai-v1-collection-content { display: flex; flex: 1; flex-direction: column; gap: 12px; padding: 20px; }
.ai-v1-collection-title { display: flex; align-items: flex-start; gap: 12px; }
.ai-v1-collection-title > span { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 auto; color: var(--ai-v1-primary); border-radius: 4px; background: rgba(27,61,122,.07); }
.ai-v1-collection-title svg { width: 14px; height: 14px; }
.ai-v1-collection-title h2 { margin: 2px 0 0; font-family: 'Noto Serif SC',serif; font-size: 14px; font-weight: 700; line-height: 1.45; }
.ai-v1-collection-card:hover h2 { color: var(--ai-v1-primary); }
.ai-v1-collection-content > p { display: -webkit-box; overflow: hidden; flex: 1; margin: 0; color: var(--ai-v1-muted); font-size: 12px; line-height: 1.7; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.ai-v1-collection-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ai-v1-collection-tags span { padding: 2px 8px; color: var(--ai-v1-muted); border: 1px solid rgba(92,104,128,.15); border-radius: 4px; background: rgba(92,104,128,.05); font-family: 'JetBrains Mono',monospace; font-size: 11px; }
.ai-v1-collection-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; border-top: 1px solid var(--ai-v1-border); }
.ai-v1-collection-footer > div { display: flex; align-items: center; gap: 12px; }
.ai-v1-collection-footer span { display: inline-flex; align-items: center; gap: 4px; color: var(--ai-v1-muted); font-family: 'JetBrains Mono',monospace; font-size: 11px; }
.ai-v1-collection-footer span svg { width: 12px; height: 12px; }
.ai-v1-collection-footer strong { display: inline-flex; align-items: center; gap: 4px; color: var(--ai-v1-primary); font-size: 12px; opacity: 0; transition: opacity .2s ease; }
.ai-v1-collection-footer strong svg { width: 12px; height: 12px; }.ai-v1-collection-card:hover .ai-v1-collection-footer strong { opacity: 1; }

/* Resources */
.ai-v1-resource-body { min-height: 55vh; background: var(--ai-v1-background); }
.ai-v1-resource-body .ai-v1-container { padding-top: 40px; padding-bottom: 40px; }
.ai-v1-resource-list { display: flex; flex-direction: column; gap: 12px; }
.ai-v1-resource-card { display: flex; align-items: center; gap: 16px; padding: 20px; border: 1px solid var(--ai-v1-border); border-radius: 4px; background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.ai-v1-resource-card:hover { border-color: rgba(27,61,122,.25); box-shadow: 0 1px 3px rgba(13,24,41,.08); }
.ai-v1-resource-main { display: flex; align-items: center; flex: 1; min-width: 0; gap: 16px; }
.ai-v1-resource-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 auto; color: var(--ai-v1-primary); border-radius: 8px; background: rgba(27,61,122,.06); }
.ai-v1-resource-icon svg { width: 20px; height: 20px; }
.ai-v1-resource-main > div { min-width: 0; }
.ai-v1-resource-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.ai-v1-resource-title h2 { margin: 0; font-size: 14px; font-weight: 600; }
.ai-v1-resource-title h2 a:hover { color: var(--ai-v1-primary); }
.ai-v1-resource-title em { padding: 2px 6px; color: var(--ai-v1-primary); border-radius: 3px; background: rgba(27,61,122,.06); font-family: 'JetBrains Mono',monospace; font-size: 10px; font-style: normal; font-weight: 700; }
.ai-v1-resource-main p { display: -webkit-box; overflow: hidden; margin: 0; color: var(--ai-v1-muted); font-size: 12px; line-height: 1.7; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ai-v1-resource-meta { display: flex; align-items: flex-end; flex: 0 0 auto; flex-direction: column; gap: 8px; padding-left: 16px; border-left: 1px solid var(--ai-v1-border); }
.ai-v1-resource-meta > em { padding: 2px 8px; color: var(--ai-v1-primary); border: 1px solid rgba(27,61,122,.15); border-radius: 4px; background: rgba(27,61,122,.05); font-family: 'JetBrains Mono',monospace; font-size: 11px; font-style: normal; }
.ai-v1-resource-meta > div { display: flex; align-items: center; gap: 10px; }
.ai-v1-resource-meta > div span { display: inline-flex; align-items: center; gap: 4px; color: var(--ai-v1-muted); font-family: 'JetBrains Mono',monospace; font-size: 11px; }.ai-v1-resource-meta > div svg { width: 12px; height: 12px; }
.ai-v1-resource-meta > a { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; color: #fff; border-radius: 4px; background: var(--ai-v1-primary); font-size: 12px; font-weight: 600; }.ai-v1-resource-meta > a svg { width: 12px; height: 12px; }
.ai-v1-resource-notice { display: flex; align-items: flex-start; gap: 12px; margin-top: 32px; padding: 20px; border: 1px solid var(--ai-v1-border); border-radius: 4px; background: #fff; }
.ai-v1-resource-notice > span { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 auto; color: var(--ai-v1-primary); border-radius: 4px; background: rgba(27,61,122,.08); }.ai-v1-resource-notice > span svg { width: 16px; height: 16px; }
.ai-v1-resource-notice h3 { margin: 0 0 4px; font-size: 14px; font-weight: 600; }.ai-v1-resource-notice p { margin: 0; color: var(--ai-v1-muted); font-size: 12px; line-height: 1.7; }

.ai-v1-page-cta { border-top: 1px solid var(--ai-v1-border); background: #fff; }
.ai-v1-page-cta > .ai-v1-container { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 48px; padding-bottom: 48px; }
.ai-v1-page-cta h2 { margin: 0 0 4px; font-family: 'Noto Serif SC',serif; font-size: 16px; font-weight: 700; }.ai-v1-page-cta p { margin: 0; color: var(--ai-v1-muted); font-size: 14px; }
.ai-v1-page-cta .ai-v1-container > div:last-child { display: flex; align-items: center; gap: 12px; }.ai-v1-page-cta a { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; color: #fff; border: 1px solid var(--ai-v1-primary); border-radius: 4px; background: var(--ai-v1-primary); font-size: 14px; font-weight: 600; }.ai-v1-page-cta a.is-secondary { color: var(--ai-v1-primary); background: #fff; }.ai-v1-page-cta a svg { width: 16px; height: 16px; }

.ai-v1-pagination { margin-top: 24px; }
.ai-v1-pagination:empty { display: none; }
.ai-v1-pagination .pagination { justify-content: center; }

@media (max-width: 1160px) {
    .ai-v1-site .ai-navbar-inner { gap: 12px; }
    .ai-v1-site .ai-nav-link { padding-inline: 8px; }
    .ai-v1-site .ai-search-form-nav { flex-basis: 150px; width: 150px; }
    .ai-v1-site .ai-account-link { padding-inline: 12px; }
}

@media (max-width: 1023px) {
    .ai-v1-site .ai-navbar-toggle { display: inline-flex; order: 5; }
    .ai-v1-site .ai-navbar-menu { display: none; }
    .ai-v1-site .ai-navbar-menu.is-open { position: absolute; top: 56px; left: 0; right: 0; display: flex; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 68px; border-top: 1px solid var(--ai-v1-border); border-bottom: 1px solid var(--ai-v1-border); background: #fff; box-shadow: 0 8px 20px rgba(13, 24, 41, .08); }
    .ai-v1-site .ai-nav-link { min-height: 38px; padding: 8px 12px; font-size: 14px; }
    .ai-v1-site .ai-navbar-menu { margin-left: 0; }
    .ai-v1-site .ai-search-form-nav { margin-left: auto; }
    .ai-v1-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ai-v1-model-schema { align-items: flex-start; flex-wrap: wrap; }
    .ai-v1-model-schema > div { flex-basis: calc(100% - 50px); }
}

@media (max-width: 767px) {
    .ai-v1-site .ai-layout-container,
    .ai-v1-container { padding-inline: 16px; }
    .ai-v1-hero-inner { padding-top: 64px; padding-bottom: 64px; }
    .ai-v1-hero h1 { font-size: 36px; }
    .ai-v1-path-grid { grid-template-columns: 1fr; }
    .ai-v1-docs .ai-v1-container,
    .ai-v1-articles .ai-v1-container,
    .ai-v1-knowledge .ai-v1-container,
    .ai-v1-cta-section .ai-v1-container { padding-top: 48px; padding-bottom: 48px; }
    .ai-v1-article-meta { gap: 10px; }
    .ai-v1-article-meta > span { display: none; }
    .ai-v1-knowledge-grid { grid-template-columns: 1fr; }
    .ai-v1-model-grid { grid-template-columns: 1fr; }
    .ai-v1-model-schema code { display: none; }
    .ai-v1-cta { align-items: flex-start; flex-direction: column; }
    .ai-v1-site .ai-footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 639px) {
    .ai-v1-site .ai-search-form-nav,
    .ai-v1-site .ai-navbar-actions { display: none !important; }
    .ai-v1-site .ai-brand { min-width: 0; }
    .ai-v1-hero h1 { font-size: 30px; }
    .ai-v1-hero-copy > p { font-size: 13px; }
    .ai-v1-hero-stats { gap: 18px 24px; }
    .ai-v1-feature-grid > div { padding: 16px 8px; }
    .ai-v1-feature-grid span { font-size: 10px; }
    .ai-v1-category-grid { grid-template-columns: 1fr; }
    .ai-v1-model-card { grid-template-columns: 38px minmax(0, 1fr); padding: 16px; }
    .ai-v1-model-card-icon { width: 38px; height: 38px; }
    .ai-v1-model-facts { grid-template-columns: 1fr; }
    .ai-v1-model-card-footer span:nth-child(2) { display: none; }
    .ai-v1-articles-head { align-items: flex-start; flex-direction: column; }
    .ai-v1-tabs { align-self: stretch; }
    .ai-v1-tabs button { flex: 1; }
    .ai-v1-article-row { gap: 10px; padding-inline: 14px; }
    .ai-v1-article-meta em { max-width: 78px; overflow: hidden; text-overflow: ellipsis; }
    .ai-v1-cta { padding: 28px 24px; }
    .ai-v1-cta-actions { align-items: stretch; flex-direction: column; width: 100%; }
    .ai-v1-cta-actions .ai-v1-button { width: 100%; }
    .ai-v1-site .ai-footer-links { gap: 8px 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .ai-v1-site *,
    .ai-v1-site *::before,
    .ai-v1-site *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

@media (max-width: 1279px) {
    .ai-v1-skill-grid,
    .ai-v1-collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1023px) {
    .ai-v1-filter-toggle { display: inline-flex; }
    .ai-v1-skill-sidebar { position: fixed; z-index: 70; top: 0; bottom: 0; left: 0; display: flex; overflow-y: auto; width: 288px; max-width: 85vw; padding: 20px; background: var(--ai-v1-background); box-shadow: 8px 0 24px rgba(13,24,41,.15); transform: translateX(-105%); transition: transform .2s ease; }
    .ai-v1-skill-sidebar.is-open { transform: translateX(0); }
    .ai-v1-skill-backdrop { position: fixed; z-index: 65; inset: 0; display: none; border: 0; background: rgba(13,24,41,.4); }
    .ai-v1-skill-backdrop.is-open { display: block; }
}

@media (max-width: 767px) {
    .ai-v1-page-hero .ai-v1-container { padding-top: 40px; padding-bottom: 40px; }
    .ai-v1-page-hero-row { align-items: flex-start; flex-direction: column; }
    .ai-v1-page-hero h1 { font-size: 26px; }
    .ai-v1-page-stats { gap: 18px; }
    .ai-v1-page-toolbar .ai-v1-container { gap: 8px; }
    .ai-v1-toolbar-search { max-width: none; }
    .ai-v1-toolbar-count { display: none; }
    .ai-v1-category-row { flex-wrap: wrap; }
    .ai-v1-category-meta { align-items: center; width: 100%; flex-direction: row; padding-left: 36px; }
    .ai-v1-category-meta .ai-v1-external { margin-left: auto; }
    .ai-v1-resource-card { align-items: flex-start; flex-direction: column; }
    .ai-v1-resource-meta { align-items: center; width: 100%; flex-direction: row; padding: 12px 0 0; border-top: 1px solid var(--ai-v1-border); border-left: 0; }
    .ai-v1-resource-meta > a { margin-left: auto; }
    .ai-v1-page-cta > .ai-v1-container { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 639px) {
    .ai-v1-page-hero p { font-size: 13px; }
    .ai-v1-page-toolbar { height: auto; min-height: 48px; }
    .ai-v1-page-toolbar .ai-v1-container { min-height: 48px; }
    .ai-v1-toolbar-select { max-width: 106px; padding-right: 20px; }
    .ai-v1-category-body .ai-v1-container,
    .ai-v1-resource-body .ai-v1-container { padding-top: 24px; }
    .ai-v1-category-row { gap: 10px; padding: 16px; }
    .ai-v1-category-meta { padding-left: 30px; }
    .ai-v1-category-meta > span { display: none; }
    .ai-v1-skill-layout { padding-top: 24px; }
    .ai-v1-skill-grid,
    .ai-v1-collection-grid { grid-template-columns: 1fr; }
    .ai-v1-skill-card-head { flex-wrap: wrap; }
    .ai-v1-skill-type { margin-left: 52px; }
    .ai-v1-skill-card-footer { align-items: flex-start; flex-direction: column; }
    .ai-v1-skill-card-footer > div:last-child { align-self: stretch; }
    .ai-v1-skill-card-footer > div:last-child a { flex: 1; justify-content: center; }
    .ai-v1-collection-filter .ai-v1-container > span,
    .ai-v1-resource-filter .ai-v1-container > span { display: none; }
    .ai-v1-collection-body .ai-v1-container { padding-top: 24px; }
    .ai-v1-resource-main { align-items: flex-start; }
    .ai-v1-resource-meta { align-items: flex-start; flex-wrap: wrap; }
    .ai-v1-resource-meta > a { margin-left: 0; }
    .ai-v1-page-cta .ai-v1-container > div:last-child { align-items: stretch; flex-direction: column; width: 100%; }
    .ai-v1-page-cta a { justify-content: center; }
}

/* Article detail */
.ai-v1-article-detail { min-height: 70vh; background: var(--ai-v1-background); }
.ai-v1-article-hero { color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); background: var(--ai-v1-primary); }
.ai-v1-article-hero .ai-v1-container { padding-top: 40px; padding-bottom: 40px; }
.ai-v1-article-breadcrumb { display: flex; overflow: hidden; align-items: center; gap: 6px; margin-bottom: 24px; color: rgba(255,255,255,.5); font-size: 12px; white-space: nowrap; }
.ai-v1-article-breadcrumb a { flex: 0 0 auto; transition: color .2s ease; }
.ai-v1-article-breadcrumb a:hover { color: #fff; }
.ai-v1-article-breadcrumb svg { width: 12px; height: 12px; flex: 0 0 auto; }
.ai-v1-article-breadcrumb span { overflow: hidden; color: rgba(255,255,255,.7); text-overflow: ellipsis; }
.ai-v1-article-hero h1 { max-width: 820px; margin: 0 0 20px; color: #fff; font-family: 'Noto Serif SC', serif; font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; line-height: 1.4; letter-spacing: -.02em; }
.ai-v1-article-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; color: rgba(255,255,255,.5); font-size: 12px; }
.ai-v1-article-meta > span:not(.ai-v1-article-tag) { display: inline-flex; align-items: center; gap: 5px; }
.ai-v1-article-meta > span > svg { width: 12px; height: 12px; }
.ai-v1-article-meta > i { width: 1px; height: 12px; background: rgba(255,255,255,.2); }
.ai-v1-article-meta .ai-v1-article-tag { display: inline-block; padding: 2px 8px; color: rgba(255,255,255,.85); border: 1px solid rgba(255,255,255,.2); border-radius: 4px; background: rgba(255,255,255,.07); font-family: 'JetBrains Mono', monospace; font-size: 11px; font-style: normal; font-weight: 500; }

.ai-v1-article-layout { display: flex; align-items: flex-start; gap: 40px; padding-top: 40px; padding-bottom: 56px; }
.ai-v1-article-main { flex: 1; min-width: 0; }
.ai-v1-article-lead { margin-bottom: 32px; padding: 18px 20px; color: var(--ai-v1-foreground); border-left: 4px solid var(--ai-v1-primary); border-radius: 0 4px 4px 0; background: #fff; font-size: 14px; line-height: 1.8; }
.ai-v1-article-detail .ai-v1-prose { width: 100%; max-width: none; color: rgba(13,24,41,.82); font-size: 14px; line-height: 1.9; }
.ai-v1-article-detail .ai-v1-prose h1,
.ai-v1-article-detail .ai-v1-prose h2,
.ai-v1-article-detail .ai-v1-prose h3,
.ai-v1-article-detail .ai-v1-prose h4 { color: var(--ai-v1-foreground); font-family: 'Noto Serif SC', serif; letter-spacing: 0; scroll-margin-top: 88px; }
.ai-v1-article-detail .ai-v1-prose h1,
.ai-v1-article-detail .ai-v1-prose h2 { position: relative; margin: 40px 0 16px; padding: 0 0 0 30px; border: 0; font-size: 16px; font-weight: 700; line-height: 24px; }
.ai-v1-article-detail .ai-v1-prose h1::before,
.ai-v1-article-detail .ai-v1-prose h2::before { position: absolute; top: 2px; left: 0; display: grid; place-items: center; width: 20px; height: 20px; content: '#'; color: var(--ai-v1-primary); border-radius: 4px; background: rgba(27,61,122,.1); font-family: 'JetBrains Mono', monospace; font-size: 12px; line-height: 1; }
.ai-v1-article-detail .ai-v1-prose h3 { margin: 30px 0 12px; font-size: 15px; line-height: 1.5; }
.ai-v1-article-detail .ai-v1-prose h4 { margin: 24px 0 10px; color: var(--ai-v1-muted); font-size: 14px; line-height: 1.5; }
.ai-v1-article-detail .ai-v1-prose > h1:first-child { display: none; }
.ai-v1-article-detail .ai-v1-prose p,
.ai-v1-article-detail .ai-v1-prose ul,
.ai-v1-article-detail .ai-v1-prose ol,
.ai-v1-article-detail .ai-v1-prose blockquote,
.ai-v1-article-detail .ai-v1-prose table,
.ai-v1-article-detail .ai-v1-prose pre { margin-top: 0; margin-bottom: 14px; }
.ai-v1-article-detail .ai-v1-prose a { color: var(--ai-v1-primary); }
.ai-v1-article-detail .ai-v1-prose ul,
.ai-v1-article-detail .ai-v1-prose ol { padding-left: 22px; }
.ai-v1-article-detail .ai-v1-prose li + li { margin-top: 7px; }
.ai-v1-article-detail .ai-v1-prose blockquote { padding: 13px 16px; color: var(--ai-v1-muted); border: 1px solid rgba(27,61,122,.15); border-left: 3px solid var(--ai-v1-primary); border-radius: 4px; background: rgba(27,61,122,.05); box-shadow: none; font-size: 12px; }
.ai-v1-article-detail .ai-v1-prose table { overflow-x: auto; border-radius: 4px; border-color: var(--ai-v1-border); background: #fff; box-shadow: none; }
.ai-v1-article-detail .ai-v1-prose table thead { background: var(--ai-v1-secondary); }
.ai-v1-article-detail .ai-v1-prose table th,
.ai-v1-article-detail .ai-v1-prose table td { padding: 10px 12px; border-color: var(--ai-v1-border); }
.ai-v1-article-detail .ai-v1-prose img { border-radius: 4px; box-shadow: 0 2px 8px rgba(13,24,41,.08); }
.ai-v1-article-detail .ai-v1-prose :not(pre) > code { padding: 2px 5px; color: var(--ai-v1-primary); border: 1px solid rgba(27,61,122,.12); border-radius: 3px; background: rgba(27,61,122,.06); }
.ai-v1-article-detail .ai-code-block { overflow: hidden; margin: 20px 0; border: 1px solid var(--ai-v1-border); border-radius: 8px; background: #141720; box-shadow: none; }
.ai-v1-article-detail .ai-code-header { padding: 8px 14px; color: rgba(255,255,255,.4); border-bottom: 1px solid rgba(255,255,255,.05); background: #1c2030; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0; text-transform: none; }
.ai-v1-article-detail .ai-code-copy { min-height: 24px; padding: 0 4px; color: rgba(255,255,255,.45); border: 0; border-radius: 3px; background: transparent; font-family: 'JetBrains Mono', monospace; font-size: 11px; }
.ai-v1-article-detail .ai-code-copy:hover { color: rgba(255,255,255,.8); }
.ai-v1-article-detail .ai-code-block pre { margin: 0; padding: 16px; border: 0; border-radius: 0; background: #141720; box-shadow: none; }
.ai-v1-article-detail .ai-code-block pre code { font-size: 12px; line-height: 1.75; }

.ai-v1-article-download { display: flex; align-items: center; gap: 14px; margin-top: 32px; padding: 18px; border: 1px solid var(--ai-v1-border); border-radius: 4px; background: #fff; }
.ai-v1-article-download > span { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 auto; color: var(--ai-v1-primary); border-radius: 4px; background: rgba(27,61,122,.08); }
.ai-v1-article-download > span svg { width: 17px; height: 17px; }
.ai-v1-article-download > div { flex: 1; min-width: 0; }
.ai-v1-article-download h2 { margin: 0 0 3px; font-size: 13px; }
.ai-v1-article-download p { margin: 0; color: var(--ai-v1-muted); font-size: 12px; }
.ai-v1-article-download > a { flex: 0 0 auto; padding: 7px 12px; color: #fff; border-radius: 4px; background: var(--ai-v1-primary); font-size: 12px; font-weight: 600; }

.ai-v1-article-pager { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--ai-v1-border); }
.ai-v1-article-pager > a { display: flex; align-items: flex-start; gap: 12px; min-width: 0; padding: 16px; border: 1px solid var(--ai-v1-border); border-radius: 4px; background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.ai-v1-article-pager > a:hover { border-color: rgba(27,61,122,.3); box-shadow: 0 1px 3px rgba(13,24,41,.06); }
.ai-v1-article-pager > a > svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 2px; color: var(--ai-v1-muted); }
.ai-v1-article-pager > a:hover > svg,
.ai-v1-article-pager > a:hover strong { color: var(--ai-v1-primary); }
.ai-v1-article-pager > a > span { min-width: 0; }
.ai-v1-article-pager small { display: block; margin-bottom: 4px; color: var(--ai-v1-muted); font-family: 'JetBrains Mono', monospace; font-size: 10px; }
.ai-v1-article-pager strong { display: -webkit-box; overflow: hidden; color: var(--ai-v1-foreground); font-size: 12px; font-weight: 600; line-height: 1.55; transition: color .2s ease; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ai-v1-article-pager .is-next { flex-direction: row-reverse; text-align: right; }

.ai-v1-article-sidebar { position: sticky; top: 80px; display: flex; width: 240px; flex: 0 0 auto; flex-direction: column; gap: 20px; }
.ai-v1-article-side-card { overflow: hidden; border: 1px solid var(--ai-v1-border); border-radius: 4px; background: #fff; }
.ai-v1-article-side-card > header { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--ai-v1-border); }
.ai-v1-article-side-card > header svg { width: 14px; height: 14px; color: var(--ai-v1-primary); }
.ai-v1-article-side-card > header h2 { margin: 0; font-size: 12px; font-weight: 600; }
.ai-v1-article-toc { display: flex; flex-direction: column; gap: 2px; padding: 12px; }
.ai-v1-article-toc .ai-toc-link { display: block; padding: 6px 8px; color: var(--ai-v1-muted); border: 0; border-radius: 4px; font-size: 12px; line-height: 1.45; transition: color .2s ease, background .2s ease; }
.ai-v1-article-toc .ai-toc-link[data-level="3"] { padding-left: 18px; }
.ai-v1-article-toc .ai-toc-link:hover { color: var(--ai-v1-foreground); background: var(--ai-v1-secondary); }
.ai-v1-article-toc .ai-toc-link.is-active { color: var(--ai-v1-primary); background: rgba(27,61,122,.08); font-weight: 500; }
.ai-v1-article-related { display: flex; flex-direction: column; gap: 2px; padding: 12px; }
.ai-v1-article-related > a { display: flex; align-items: flex-start; gap: 8px; padding: 8px; color: var(--ai-v1-muted); border-radius: 4px; font-size: 12px; line-height: 1.45; transition: color .2s ease, background .2s ease; }
.ai-v1-article-related > a:hover { color: var(--ai-v1-foreground); background: var(--ai-v1-secondary); }
.ai-v1-article-related > a > svg { width: 12px; height: 12px; flex: 0 0 auto; margin-top: 2px; color: rgba(92,104,128,.45); }
.ai-v1-article-related > a > span { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ai-v1-article-related > p { margin: 4px 8px; color: var(--ai-v1-muted); font-size: 12px; }
.ai-v1-article-related > .is-all { align-items: center; margin-top: 2px; color: var(--ai-v1-primary); }
.ai-v1-article-related > .is-all > svg { margin: 0; color: currentColor; }
.ai-v1-article-back { display: flex; align-items: center; gap: 8px; padding: 10px 16px; color: var(--ai-v1-muted); border: 1px solid var(--ai-v1-border); border-radius: 4px; background: #fff; font-size: 12px; font-weight: 500; transition: color .2s ease, border-color .2s ease; }
.ai-v1-article-back:hover { color: var(--ai-v1-primary); border-color: rgba(27,61,122,.3); }
.ai-v1-article-back svg { width: 14px; height: 14px; }

@media (max-width: 1199px) {
    .ai-v1-article-sidebar { display: none; }
}

@media (max-width: 767px) {
    .ai-v1-article-hero .ai-v1-container { padding-top: 32px; padding-bottom: 32px; }
    .ai-v1-article-breadcrumb { margin-bottom: 18px; }
    .ai-v1-article-hero h1 { font-size: 22px; }
    .ai-v1-article-meta > i { display: none; }
    .ai-v1-article-layout { padding-top: 24px; padding-bottom: 40px; }
    .ai-v1-article-lead { margin-bottom: 24px; padding: 15px 16px; font-size: 13px; }
    .ai-v1-article-detail .ai-v1-prose h1,
    .ai-v1-article-detail .ai-v1-prose h2 { margin-top: 32px; }
}

@media (max-width: 639px) {
    .ai-v1-article-meta { gap: 8px 12px; }
    .ai-v1-article-meta > span:not(.ai-v1-article-tag) { font-size: 11px; }
    .ai-v1-article-download { align-items: flex-start; flex-wrap: wrap; }
    .ai-v1-article-download > a { margin-left: 50px; }
    .ai-v1-article-pager { grid-template-columns: 1fr; }
    .ai-v1-article-pager > span:empty { display: none; }
}

/* Fixed support and community pages */
.ai-v1-support-page { min-height: 70vh; background: var(--ai-v1-background); }
.ai-v1-support-hero { color: #fff; background: var(--ai-v1-primary); }
.ai-v1-support-hero .ai-v1-container { padding-top: 48px; padding-bottom: 52px; }
.ai-v1-support-breadcrumb { display: flex; align-items: center; gap: 6px; margin-bottom: 28px; color: rgba(255,255,255,.58); font-size: 12px; }
.ai-v1-support-breadcrumb a:hover { color: #fff; }
.ai-v1-support-breadcrumb svg { width: 12px; height: 12px; }
.ai-v1-support-breadcrumb span { color: rgba(255,255,255,.82); }
.ai-v1-support-kicker { display: block; margin-bottom: 10px; color: rgba(255,255,255,.58); font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.ai-v1-support-hero h1 { margin: 0 0 12px; font-family: 'Noto Serif SC', serif; font-size: clamp(28px, 3vw, 38px); line-height: 1.3; }
.ai-v1-support-hero p { max-width: 720px; margin: 0; color: rgba(255,255,255,.68); font-size: 14px; line-height: 1.8; }
.ai-v1-support-body .ai-v1-container { padding-top: 40px; padding-bottom: 56px; }
.ai-v1-support-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; align-items: start; gap: 24px; }
.ai-v1-support-main { display: flex; min-width: 0; flex-direction: column; gap: 20px; }
.ai-v1-support-card { display: flex; align-items: flex-start; gap: 16px; padding: 24px; border: 1px solid var(--ai-v1-border); border-radius: 6px; background: #fff; }
.ai-v1-support-card-icon { display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; color: var(--ai-v1-primary); border-radius: 4px; background: rgba(27,61,122,.08); }
.ai-v1-support-card-icon svg { width: 18px; height: 18px; }
.ai-v1-support-card h2,
.ai-v1-support-note h2 { margin: 0 0 8px; color: var(--ai-v1-foreground); font-family: 'Noto Serif SC', serif; font-size: 17px; }
.ai-v1-support-card p { margin: 0; color: var(--ai-v1-muted); font-size: 13px; line-height: 1.8; }
.ai-v1-support-pending a { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--ai-v1-primary); font-size: 12px; font-weight: 600; }
.ai-v1-support-pending a svg { width: 13px; height: 13px; }
.ai-v1-redeem-card { padding: 24px; border: 1px solid rgba(27,61,122,.2); border-radius: 6px; background: #fff; box-shadow: 0 2px 8px rgba(13,24,41,.04); }
.ai-v1-redeem-card > header { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.ai-v1-redeem-card > header > div { flex: 1; min-width: 0; }
.ai-v1-redeem-card h2 { margin: 0 0 5px; font-family: 'Noto Serif SC', serif; font-size: 17px; }
.ai-v1-redeem-card header p { margin: 0; color: var(--ai-v1-muted); font-size: 12px; line-height: 1.7; }
.ai-v1-redeem-card header em { padding: 4px 8px; color: var(--ai-v1-primary); border: 1px solid rgba(27,61,122,.14); border-radius: 4px; background: rgba(27,61,122,.05); font-size: 11px; font-style: normal; white-space: nowrap; }
.ai-v1-redeem-form { display: grid; grid-template-columns: minmax(180px, 1fr) 140px 150px auto; align-items: end; gap: 10px; }
.ai-v1-redeem-form label { display: grid; gap: 6px; }
.ai-v1-redeem-form label > span { color: var(--ai-v1-foreground); font-size: 11px; font-weight: 600; }
.ai-v1-redeem-form input { width: 100%; height: 48px; min-width: 0; padding: 0 13px; color: var(--ai-v1-foreground); border: 1px solid var(--ai-v1-border); border-radius: 4px; outline: 0; background: #f8fafc; font-size: 13px; text-transform: uppercase; }
.ai-v1-redeem-form input:focus { border-color: var(--ai-v1-primary); box-shadow: 0 0 0 3px rgba(27,61,122,.08); }
.ai-v1-captcha-button { overflow: hidden; width: 150px; height: 48px; padding: 0; border: 1px solid var(--ai-v1-border); border-radius: 4px; background: #f7f9fc; cursor: pointer; }
.ai-v1-captcha-button img { display: block; width: 150px; height: 48px; object-fit: cover; }
.ai-v1-redeem-submit { height: 48px; padding: 0 18px; color: #fff; border: 1px solid var(--ai-v1-primary); border-radius: 4px; background: var(--ai-v1-primary); font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.ai-v1-redeem-submit:hover { background: #163566; }
.ai-v1-redeem-submit:disabled { cursor: wait; opacity: .65; }
.ai-v1-redeem-result { margin-top: 12px; padding: 10px 12px; color: var(--ai-v1-muted); border-radius: 4px; background: var(--ai-v1-background); font-size: 12px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.ai-v1-redeem-result.is-success { color: #17603a; background: #edf8f2; }
.ai-v1-redeem-result.is-error { color: #9f2835; background: #fff1f2; }
.ai-v1-redeem-result.is-loading { color: var(--ai-v1-primary); background: rgba(27,61,122,.06); }
.ai-v1-redeem-result a { color: var(--ai-v1-primary); font-weight: 700; }
.ai-v1-redeem-guide { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(23,96,58,.18); white-space: normal; }
.ai-v1-redeem-guide strong { display: block; margin-bottom: 5px; color: var(--ai-v1-foreground); font-size: 13px; }
.ai-v1-redeem-guide p { margin: 0; line-height: 1.7; }
.ai-v1-redeem-guide a { margin: 0 3px; text-decoration: underline; text-underline-offset: 2px; }
.ai-v1-payment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ai-v1-payment-card { margin: 0; padding: 24px; border: 1px solid var(--ai-v1-border); border-radius: 6px; background: #fff; text-align: center; }
.ai-v1-payment-image { display: grid; min-height: 260px; place-items: center; padding: 10px; border: 1px solid var(--ai-v1-border); border-radius: 4px; background: #f8fafc; }
.ai-v1-payment-image img { display: block; width: 100%; max-width: 240px; height: auto; object-fit: contain; }
.ai-v1-payment-card figcaption { display: flex; align-items: center; flex-direction: column; gap: 3px; margin-top: 14px; }
.ai-v1-payment-card figcaption strong { font-size: 14px; }
.ai-v1-payment-card figcaption span { color: var(--ai-v1-muted); font-size: 12px; }
.ai-v1-support-note { padding: 24px; border: 1px solid var(--ai-v1-border); border-radius: 6px; background: rgba(255,255,255,.55); }
.ai-v1-support-note ul { margin: 0; padding-left: 20px; color: var(--ai-v1-muted); font-size: 13px; line-height: 1.9; }
.ai-v1-support-sidebar { display: flex; flex-direction: column; border: 1px solid var(--ai-v1-border); border-radius: 6px; background: #fff; }
.ai-v1-support-sidebar section { display: flex; align-items: flex-start; gap: 12px; padding: 20px; }
.ai-v1-support-sidebar section + section { border-top: 1px solid var(--ai-v1-border); }
.ai-v1-support-sidebar section > span { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; color: var(--ai-v1-primary); border-radius: 4px; background: rgba(27,61,122,.07); }
.ai-v1-support-sidebar svg { width: 15px; height: 15px; }
.ai-v1-support-sidebar strong { display: block; margin-bottom: 4px; font-size: 13px; }
.ai-v1-support-sidebar p { margin: 0; color: var(--ai-v1-muted); font-size: 12px; line-height: 1.65; }

.ai-v1-community-layout { display: flex; flex-direction: column; gap: 24px; }
.ai-v1-community-join { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 500px); align-items: center; gap: 48px; padding: 36px; border: 1px solid var(--ai-v1-border); border-radius: 6px; background: #fff; }
.ai-v1-community-copy > .ai-v1-support-kicker { color: var(--ai-v1-primary); }
.ai-v1-community-copy h2 { margin: 0 0 12px; color: var(--ai-v1-foreground); font-family: 'Noto Serif SC', serif; font-size: 24px; }
.ai-v1-community-copy > p { margin: 0 0 26px; color: var(--ai-v1-muted); font-size: 13px; line-height: 1.85; }
.ai-v1-community-copy > p strong { color: var(--ai-v1-primary); }
.ai-v1-community-steps { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0; list-style: none; }
.ai-v1-community-steps li { display: flex; align-items: flex-start; gap: 12px; }
.ai-v1-community-steps li > span { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; color: #fff; border-radius: 4px; background: var(--ai-v1-primary); font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 700; }
.ai-v1-community-steps strong { display: block; margin-bottom: 3px; font-size: 13px; }
.ai-v1-community-steps p { margin: 0; color: var(--ai-v1-muted); font-size: 12px; line-height: 1.6; }
.ai-v1-community-qr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ai-v1-community-qr { overflow: hidden; margin: 0; border: 1px solid var(--ai-v1-border); border-radius: 6px; background: #f8fafc; }
.ai-v1-community-qr img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.ai-v1-community-qr figcaption { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; color: var(--ai-v1-primary); border-top: 1px solid var(--ai-v1-border); background: #fff; font-size: 12px; font-weight: 600; }
.ai-v1-community-qr figcaption svg { width: 15px; height: 15px; }
.ai-v1-community-qr-empty { display: grid; min-height: 240px; grid-column: 1 / -1; place-items: center; padding: 24px; color: var(--ai-v1-muted); border: 1px dashed var(--ai-v1-border); border-radius: 6px; background: #f8fafc; font-size: 12px; text-align: center; }
.ai-v1-community-rules { padding: 28px; border: 1px solid var(--ai-v1-border); border-radius: 6px; background: #fff; }
.ai-v1-community-rules > header { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.ai-v1-community-rules > header > span { display: grid; width: 36px; height: 36px; place-items: center; color: #fff; border-radius: 4px; background: var(--ai-v1-primary); }
.ai-v1-community-rules > header svg { width: 16px; height: 16px; }
.ai-v1-community-rules h2 { margin: 0 0 2px; font-family: 'Noto Serif SC', serif; font-size: 17px; }
.ai-v1-community-rules header p { margin: 0; color: var(--ai-v1-muted); font-size: 12px; }
.ai-v1-community-rule-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--ai-v1-border); border-radius: 4px; background: var(--ai-v1-border); }
.ai-v1-community-rule-grid article { padding: 18px; background: #fff; }
.ai-v1-community-rule-grid strong { display: block; margin-bottom: 6px; color: var(--ai-v1-primary); font-size: 13px; }
.ai-v1-community-rule-grid p { margin: 0; color: var(--ai-v1-muted); font-size: 12px; line-height: 1.7; }
.ai-v1-community-footer-note { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border: 1px solid rgba(27,61,122,.14); border-radius: 6px; background: rgba(27,61,122,.05); }
.ai-v1-community-footer-note > span { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; color: var(--ai-v1-primary); }
.ai-v1-community-footer-note > span svg { width: 17px; height: 17px; }
.ai-v1-community-footer-note p { flex: 1; margin: 0; color: var(--ai-v1-muted); font-size: 12px; }
.ai-v1-community-footer-note p a { color: var(--ai-v1-primary); font-weight: 600; }
.ai-v1-community-footer-note > a { display: inline-flex; align-items: center; gap: 6px; color: var(--ai-v1-primary); font-size: 12px; font-weight: 600; }
.ai-v1-community-footer-note > a svg { width: 13px; height: 13px; }

@media (max-width: 1023px) {
    .ai-v1-support-layout { grid-template-columns: 1fr; }
    .ai-v1-support-sidebar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ai-v1-support-sidebar section + section { border-top: 0; border-left: 1px solid var(--ai-v1-border); }
    .ai-v1-community-join { grid-template-columns: 1fr; gap: 28px; }
    .ai-v1-community-rule-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ai-v1-redeem-form { grid-template-columns: minmax(180px, 1fr) 140px 150px; }
    .ai-v1-redeem-submit { grid-column: 1 / -1; width: fit-content; }
}

@media (max-width: 639px) {
    .ai-v1-support-hero .ai-v1-container { padding-top: 34px; padding-bottom: 38px; }
    .ai-v1-support-breadcrumb { margin-bottom: 22px; }
    .ai-v1-support-body .ai-v1-container { padding-top: 24px; padding-bottom: 40px; }
    .ai-v1-support-card,
    .ai-v1-support-note,
    .ai-v1-community-rules { padding: 20px; }
    .ai-v1-payment-grid,
    .ai-v1-support-sidebar,
    .ai-v1-community-rule-grid { grid-template-columns: 1fr; }
    .ai-v1-support-sidebar section + section { border-top: 1px solid var(--ai-v1-border); border-left: 0; }
    .ai-v1-community-join { padding: 20px; }
    .ai-v1-community-copy h2 { font-size: 20px; }
    .ai-v1-community-qr-grid { grid-template-columns: 1fr; }
    .ai-v1-community-footer-note { align-items: flex-start; flex-wrap: wrap; }
    .ai-v1-community-footer-note p { min-width: calc(100% - 44px); }
    .ai-v1-community-footer-note > a { margin-left: 44px; }
    .ai-v1-redeem-card { padding: 20px; }
    .ai-v1-redeem-card > header { flex-wrap: wrap; }
    .ai-v1-redeem-card header em { margin-left: 54px; }
    .ai-v1-redeem-form { grid-template-columns: 1fr 150px; }
    .ai-v1-redeem-code-field { grid-column: 1 / -1; }
    .ai-v1-redeem-submit { width: 100%; }
}
