/* === AI家AI户 - 主样式表 === */

:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --primary-light: #e0f2fe;
    --accent-green: #10b981;
    --accent-orange: #f59e0b;
    --accent-red: #ef4444;
    --text: #1e293b;
    /* 提深至 slate-600，在浅背景上达 ≈7.5:1，满足 WCAG AA 4.5:1（原 #64748b 仅 ≈3.9:1 不达标） */
    --text-secondary: #475569;
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --border: #e2e8f0;
    --border-strong: #cbd5e1;
    /* 更现代的低透明度阴影尺度（仍避免与边框同时加重，符合产品克制原则） */
    --shadow: 0 1px 2px rgba(15,23,42,0.04), 0 2px 6px rgba(15,23,42,0.05);
    --shadow-md: 0 4px 12px rgba(15,23,42,0.07), 0 2px 4px rgba(15,23,42,0.04);
    --shadow-lg: 0 12px 28px rgba(14,165,233,0.10);
    --radius: 10px;
    --radius-sm: 6px;
    --max-width: 1100px;
    /* 统一动效语言：指数减速曲线 + 短时长，产品 UI 不该有编排式入场 */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --dur: 0.22s;
}

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

/* === 可访问性：键盘焦点指示 + 减少动效偏好 === */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}
/* 鼠标点击不产生焦点环，仅键盘导航显示，避免视觉噪音 */
:focus:not(:focus-visible) { outline: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    font-size: 16px;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* === 导航栏 === */
/* ════════════════════════════════════════
   左侧边栏（桌面端固定 / 移动端抽屉）
   ════════════════════════════════════════ */

/* -- 桌面端侧边栏 -- */
.sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    width: 200px;
    background: var(--card-bg);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 18px 16px;
    font-size: 17px;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    letter-spacing: -0.3px;
}
.sidebar-logo:hover { color: var(--primary-dark); }
.sidebar-logo .logo-icon {
    width: 26px; height: 26px;
    flex-shrink: 0;
}
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 12px 10px;
}
.sidebar-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    color: var(--text-secondary);
    font-size: 14.5px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
    line-height: 1.3;
}
.sidebar-link .sb-icon {
    width: 20px; height: 20px;
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity var(--dur) var(--ease-out);
}
.sidebar-link:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}
.sidebar-link:hover .sb-icon { opacity: 1; }
.sidebar-link.active {
    background: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 600;
}
.sidebar-link.active .sb-icon { opacity: 1; }

/* 侧边栏底部（语言切换等） */
.sidebar-footer {
    padding: 12px 16px 18px;
    border-top: 1px solid var(--border);
}
.sidebar-lang-btn {
    width: 100%;
    background: var(--bg);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 7px 0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    transition: all var(--dur) var(--ease-out);
}
.sidebar-lang-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* -- 主内容区（偏移避开侧边栏）-- */
.main-content {
    margin-left: 200px;
    min-height: 100vh;
    min-width: 0; /* 防止 flex 子项溢出 */
}

/* -- 移动端汉堡按钮 -- */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 12px; left: 12px;
    z-index: 101;
    width: 40px; height: 40px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text);
    transition: box-shadow var(--dur) var(--ease-out);
}
.sidebar-toggle:hover { box-shadow: var(--shadow); }

/* -- 移动端侧边栏遮罩 -- */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 198;
    opacity: 0;
    transition: opacity 0.25s var(--ease-out);
}
.sidebar-overlay.open {
    display: block;
    opacity: 1;
}

/* -- 移动端抽屉（复用侧边栏样式）-- */
.sidebar-drawer {
    position: fixed;
    top: 0; left: 0;
    width: 260px;
    max-width: 82vw;
    height: 100%;
    background: var(--card-bg);
    z-index: 199;
    transform: translateX(-100%);
    transition: transform 0.28s var(--ease-out);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 24px rgba(0,0,0,0.14);
}
.sidebar-drawer.open { transform: translateX(0); }
.drawer-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 18px 14px;
    border-bottom: 1px solid var(--border);
}
.drawer-head .d-logo {
    font-size: 17px;
    font-weight: 800;
    color: var(--primary);
}
.drawer-close-btn {
    background: none; border: none;
    font-size: 22px; cursor: pointer;
    color: var(--text-secondary);
    padding: 4px 8px;
    line-height: 1;
}

/* === 响应式：≤900px 隐藏侧边栏 → 显示汉堡按钮 === */
@media (max-width: 900px) {
    .sidebar { transform: translateX(-100%); position: fixed; box-shadow: none; }
    .sidebar.open { transform: translateX(0); box-shadow: 4px 0 24px rgba(0,0,0,0.14); }
    .sidebar-toggle { display: flex; }
    .main-content { margin-left: 0; }
}

/* === 面包屑导航 === */
.breadcrumb {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    padding: 0 24px;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}
.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}
.breadcrumb a:hover {
    text-decoration: underline;
}

/* === 底部固定Tab栏（仅移动端） === */
.mobile-tabs {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    z-index: 99;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
    padding: 6px 0;
    padding-bottom: max(6px, env(safe-area-inset-bottom));
}
.mobile-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 4px 0;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s var(--ease-out);
}
.mobile-tab .tab-icon { font-size: 22px; line-height: 1; margin-bottom: 1px; }
.mobile-tab.active { color: var(--primary); }

/* === 页面容器 === */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 32px 24px;
}

/* === Hero区域 === */
.hero {
    position: relative;
    text-align: center;
    padding: 64px 24px 48px;
    background:
        radial-gradient(900px 420px at 50% -12%, rgba(14,165,233,0.16), transparent 72%),
        linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 50%, #ecfdf5 100%);
    overflow: hidden;
}
.hero h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text);
    text-wrap: balance;
    letter-spacing: -0.02em;
}
.hero h1 span { color: var(--primary); }
.hero p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 28px;
}
/* 数据概览条：克制的信息呈现，用竖分隔线区分，避免"大数字炫耀"套路 */
.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 28px;
}
.hero-stat {
    text-align: center;
    padding: 0 30px;
    position: relative;
}
.hero-stat:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 30px;
    background: var(--border-strong);
}
.hero-stat .number {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}
.hero-stat .label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 3px;
}

/* === 搜索框（已移除，保留样式备用）=== */

/* === 场景选择器 === */
.scenario-picker {
    max-width: 640px;
    margin: 0 auto 8px;
    text-align: center;
}
.scenario-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-weight: 500;
}
.scenario-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
.scenario-btn {
    flex: 1;
    min-width: 100px;
    max-width: 130px;
    padding: 12px 8px;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: var(--card-bg);
    cursor: pointer;
    transition: all var(--dur) var(--ease-out);
    font-family: inherit;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}
.scenario-btn:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 12px rgba(14,165,233,0.15);
    transform: translateY(-1px);
}
.scenario-btn.active {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 2px 12px rgba(14,165,233,0.2);
}
.scenario-icon {
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin-bottom: 2px;
}
.scenario-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    display: block;
    line-height: 1.3;
}
.scenario-hint {
    font-size: 11px;
    color: var(--text-secondary);
    display: block;
    line-height: 1.3;
}
.scenario-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--accent-orange);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 50px;
}

/* === 推荐面板 === */
.recommend-panel {
    max-width: 640px;
    margin: 14px auto 0;
    display: none;
    animation: fadeSlideIn 0.25s var(--ease-out);
}
.recommend-panel.show { display: block; }
@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
.rec-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: box-shadow var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
    cursor: pointer;
}
.rec-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
    border-color: var(--primary);
}
.rec-icon { font-size: 28px; flex-shrink: 0; width: 44px; text-align: center; }
.rec-info { flex: 1; min-width: 0; }
.rec-name { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.rec-reason { font-size: 12px; color: var(--text-secondary); line-height: 1.5; }
.rec-price { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 50px; flex-shrink: 0; }
.rec-free { background: #d1fae5; color: #065f46; }
.rec-freemium { background: #fef3c7; color: #92400e; }
.rec-arrow { font-size: 16px; color: var(--text-secondary); flex-shrink: 0; }

/* === 热门模型卡片（首页） === */
.hot-models {
    max-width: var(--max-width);
    margin: 40px auto 0;
    padding: 0 24px;
}
.hot-models h2 {
    font-size: 22px;
    margin-bottom: 6px;
    color: var(--text);
}
.hot-models .subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}
.hot-models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}
.hot-card {
    display: block;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    text-decoration: none;
    color: var(--text);
    transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
    box-shadow: var(--shadow);
}
.hot-card:hover {
    border-color: var(--primary);
    box-shadow: 0 14px 30px -8px rgba(14,165,233,0.22);
    transform: translateY(-4px);
    color: var(--text);
}
.hot-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.hot-card-icon { font-size: 28px; flex-shrink: 0; }
.hot-card-header div {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.hot-card-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
}
.hot-card-company {
    font-size: 12px;
    color: var(--text-secondary);
}
.hot-card-badge {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 600;
    flex-shrink: 0;
}
.hot-card-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 14px;
}
.hot-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.hot-card-tags-label {
    font-size: 12px;
    color: var(--text-secondary);
}
.hot-card-link {
    margin-left: auto;
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
    flex-shrink: 0;
}
.hot-view-all {
    display: inline-block;
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    padding: 8px 24px;
    border: 1px solid var(--primary);
    border-radius: var(--radius-sm);
    transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.hot-view-all:hover {
    background: var(--primary);
    color: #fff;
}

/* === 品类入口卡 === */
.category-section {
    max-width: var(--max-width);
    margin: 48px auto 0;
    padding: 0 24px;
}
.category-section h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}
.category-section .subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}
.category-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 20px;
    text-align: center;
    cursor: pointer;
    transition: all var(--dur) var(--ease-out);
    text-decoration: none;
    color: var(--text);
    display: block;
}
.category-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--primary);
}
.category-card .cat-icon { font-size: 32px; display: block; margin-bottom: 10px; }
.category-card .cat-name { font-size: 16px; font-weight: 700; margin-bottom: 4px; color: var(--text); }
.category-card .cat-count { font-size: 12px; color: var(--text-secondary); }
.category-card .cat-hint {
    font-size: 11px;
    color: var(--primary);
    margin-top: 6px;
    font-weight: 500;
    opacity: 0;
    transition: opacity var(--dur) var(--ease-out);
}
.category-card:hover .cat-hint { opacity: 1; }

/* 推荐/查看全部按钮容器（原内联 style 提取） */
.hot-view-all-wrap {
    text-align: center;
    margin-top: 20px;
}
/* 联盟高亮品类卡（原内联 style 提取，保留渐变识别度） */
.category-card.featured {
    background: linear-gradient(135deg, #f0fdf4, #ecfeff);
}

/* === Hero 微调 === */
.hero { padding-bottom: 40px; }
.hero p { margin-bottom: 20px; }

/* === 搜索栏 === */
.search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.search-bar-inner {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--card-bg);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 0 14px;
    height: 46px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.search-bar-inner:hover {
    border-color: #94a3b8;
}
.search-bar-inner:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12), 0 1px 3px rgba(0,0,0,0.04);
}
.search-bar-icon {
    color: var(--text-secondary);
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.search-bar-inner:focus-within .search-bar-icon {
    opacity: 1;
    color: var(--primary);
}
.search-bar-inner input {
    flex: 1;
    border: none !important;
    outline: none;
    background: transparent;
    font-size: 15px;
    color: var(--text);
    font-family: inherit;
    min-width: 0;
    line-height: 1.4;
    padding: 0;
    margin: 0;
}
.search-bar-inner input::placeholder {
    color: var(--text-muted, #9ca3af);
}
.search-bar-clear {
    display: none;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: none;
    background: #e5e7eb;
    color: #6b7280;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    transition: all 0.15s ease;
}
.search-bar-clear:hover {
    background: #d1d5db;
    color: #374151;
}
.search-bar-hint {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    font-size: 12px;
    color: var(--text-muted, #9ca3af);
    white-space: nowrap;
}
.search-bar-hint kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    background: #f3f4f6;
    font-family: inherit;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    color: #6b7280;
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

/* === 分类筛选 === */
.filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 24px 0;
}
.filter-btn {
    padding: 8px 18px;
    border: 1px solid var(--border);
    border-radius: 50px;
    background: var(--card-bg);
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
    transition: all var(--dur) var(--ease-out);
    font-family: inherit;
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* === 模型卡片 === */
.model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}
.model-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: box-shadow var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
    cursor: pointer;
}
.model-card:hover {
    box-shadow: 0 14px 30px -8px rgba(15, 23, 42, 0.18);
    transform: translateY(-5px);
    border-color: var(--primary-light);
}
.model-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
}
.model-name {
    font-size: 20px;
    font-weight: 700;
}
.model-company {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
}
.model-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}
.badge-free { background: #d1fae5; color: #065f46; }
.badge-freemium { background: #fef3c7; color: #92400e; }
.badge-paid { background: #fee2e2; color: #991b1b; }

.model-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 10px 0;
}
.model-tag {
    padding: 3px 10px;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
}
.model-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.model-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}
.model-price {
    font-size: 14px;
    color: var(--text-secondary);
}
.model-price strong { color: var(--text); font-size: 16px; }
.model-link {
    padding: 7px 16px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    transition: background var(--dur) var(--ease-out);
}
.model-link:hover { background: var(--primary-dark); color: white; }
.model-detail-link {
    font-size: 12px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    padding: 4px 0;
    flex-shrink: 0;
    transition: color var(--dur) var(--ease-out);
}
.model-detail-link:hover { color: var(--primary-dark); text-decoration: underline; }

/* === 对比表 === */
.compare-section { margin-bottom: 40px; }
.compare-section h2 {
    font-size: 24px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}
.compare-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.compare-table th, .compare-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}
.compare-table th {
    background: #f1f5f9;
    font-weight: 700;
    color: var(--text);
    font-size: 13px;
    white-space: nowrap;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table td:first-child { font-weight: 600; color: var(--text); }
.compare-check { color: var(--accent-green); font-weight: 700; }
.compare-cross { color: #cbd5e1; }
.compare-note { font-size: 12px; color: var(--text-secondary); }

/* === 关于页 === */
.about-section {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}
.about-section h2 {
    font-size: 20px;
    margin-bottom: 12px;
}
.about-section p, .about-section ul {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
}
.about-section ul { padding-left: 20px; }
.about-section ul li { margin-bottom: 6px; }

/* === 页脚 === */
.footer {
    text-align: center;
    padding: 32px 24px;
    color: var(--text-secondary);
    font-size: 13px;
    border-top: 1px solid var(--border);
    margin-top: 48px;
}
.footer a { color: var(--text-secondary); }
.footer a:hover { color: var(--primary); }

/* === 自定义对比选择器 === */
.select-cat {
    margin-bottom: 24px;
}
.select-cat-header {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--primary);
}
.select-cat-count {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 400;
}
.select-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 10px;
}
.select-card {
    display: flex;
    flex-direction: column;
    padding: 12px 16px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--card-bg);
    cursor: pointer;
    transition: all 0.15s var(--ease-out);
    user-select: none;
    position: relative;
    min-height: 62px;
    justify-content: center;
}
.select-card:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}
.select-card:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 0 0 2px rgba(14,165,233,0.2);
}
.select-card input[type="checkbox"] {
    position: absolute;
    top: 10px;
    right: 12px;
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
}
.select-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}

.compare-btn {
    padding: 12px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--dur) var(--ease-out);
    border: none;
}
.compare-btn-disabled {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
}
.compare-btn-ready {
    background: var(--primary);
    color: white;
    cursor: pointer;
}
.compare-btn-ready:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(14,165,233,0.3);
}

@media (max-width: 768px) {
    .search-bar { margin-bottom: 16px; }
    .search-bar-inner { height: 42px; padding: 0 12px; }
    .search-bar-hint { display: none; }
    .search-bar-inner input { font-size: 14px; }
    .select-grid { grid-template-columns: 1fr; }
    .select-card { padding: 10px 12px; min-height: 52px; }
}

/* === VS对比页 === */
.vs-hero-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
    margin-bottom: 32px;
}
.vs-hero-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}
.vs-hero-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}
.vs-hero-company {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.vs-hero-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}
.vs-hero-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-top: 10px;
}
.vs-vs-badge {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    background: var(--primary-light);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.vs-conclusion {
    background: var(--primary-light);
    border-radius: var(--radius);
    padding: 24px;
    margin-top: 24px;
}
.vs-conclusion h3 {
    font-size: 18px;
    color: var(--primary-dark);
    margin-bottom: 12px;
}
.vs-conclusion p {
    margin-bottom: 6px;
    line-height: 1.8;
    color: var(--text);
}
@media (max-width: 768px) {
    .vs-hero-grid {
        grid-template-columns: 1fr;
    }
    .vs-vs-badge {
        width: 40px;
        height: 40px;
        font-size: 16px;
        margin: 0 auto;
    }
}

/* === AI选型器 === */
.picker-step { max-width: 680px; margin: 0 auto; }
.picker-step-indicator {
    display: flex; align-items: center; justify-content: center;
    gap: 0; margin-bottom: 32px;
}
.step-dot {
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--border); transition: all 0.3s var(--ease-out);
}
.step-dot.current { background: var(--primary); box-shadow: 0 0 0 4px rgba(14,165,233,0.2); }
.step-dot.done { background: var(--primary); }
.step-line { width: 40px; height: 2px; background: var(--border); transition: all 0.3s var(--ease-out); }
.step-line.done { background: var(--primary); }

.picker-question {
    font-size: 22px; font-weight: 700; text-align: center;
    margin-bottom: 28px; color: var(--text);
}
.picker-options { display: flex; flex-direction: column; gap: 12px; }
.picker-option {
    display: flex; align-items: center; gap: 16px;
    padding: 18px 20px; border: 2px solid var(--border);
    border-radius: var(--radius); background: var(--card-bg);
    cursor: pointer; transition: all var(--dur) var(--ease-out);
    text-align: left; font-family: inherit; width: 100%;
}
.picker-option:hover {
    border-color: var(--primary); background: var(--primary-light);
    transform: translateX(4px);
}
.picker-option.selected {
    border-color: var(--primary); background: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(14,165,233,0.15);
}
.opt-emoji { font-size: 32px; flex-shrink: 0; width: 44px; text-align: center; }
.opt-text { display: flex; flex-direction: column; gap: 3px; }
.opt-label { font-size: 16px; font-weight: 700; color: var(--text); }
.opt-desc { font-size: 13px; color: var(--text-secondary); }

.picker-nav { text-align: center; margin-top: 24px; }
.picker-back {
    display: inline-block; padding: 10px 28px; border: 1px solid var(--border);
    border-radius: 50px; background: var(--card-bg); color: var(--text-secondary);
    cursor: pointer; font-size: 14px; font-family: inherit;
    transition: all var(--dur) var(--ease-out);
}
.picker-back:hover { border-color: var(--primary); color: var(--primary); }

/* 结果卡片 */
.picker-result { max-width: 600px; margin: 0 auto; }
.result-tag {
    text-align: center; font-size: 14px; font-weight: 600;
    color: var(--primary-dark); background: var(--primary-light);
    padding: 8px 20px; border-radius: 50px; display: inline-block;
    margin-bottom: 28px; width: 100%; box-sizing: border-box;
}
.result-main-card {
    background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
    border: 2px solid var(--primary); border-radius: var(--radius);
    padding: 28px 24px; margin-bottom: 20px;
}
.result-crown { font-size: 15px; font-weight: 700; color: var(--primary-dark); margin-bottom: 10px; }
.result-main-name { font-size: 24px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.result-main-price { font-size: 14px; color: var(--primary); font-weight: 600; margin-bottom: 12px; }
.result-main-reason { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; }
.result-main-link {
    display: inline-block; padding: 10px 28px; background: var(--primary);
    color: white; border-radius: 50px; font-weight: 700; font-size: 15px;
    text-decoration: none; transition: all var(--dur) var(--ease-out);
}
.result-main-link:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(14,165,233,0.3); }

.result-alt { margin-bottom: 28px; }
.result-alt-title { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.result-alt-item {
    padding: 14px 16px; background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius-sm); margin-bottom: 8px;
    font-size: 14px; line-height: 1.6;
}
.result-alt-desc { font-size: 13px; color: var(--text-secondary); }

.result-actions {
    display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}
.result-btn {
    padding: 10px 22px; border-radius: 50px; font-size: 14px; font-weight: 600;
    font-family: inherit; cursor: pointer; transition: all var(--dur) var(--ease-out);
    text-decoration: none; display: inline-block;
}
.btn-reset { background: var(--bg); color: var(--text-secondary); border: 1px solid var(--border); }
.btn-reset:hover { border-color: var(--text-secondary); }
.btn-compare { background: var(--card-bg); color: var(--primary); border: 1px solid var(--primary); }
.btn-compare:hover { background: var(--primary-light); }
.btn-share { background: var(--primary); color: white; border: none; }
.btn-share:hover { background: var(--primary-dark); }

.fade-in { animation: fadeIn 0.35s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 768px) {
    .picker-option { padding: 14px 16px; }
    .opt-emoji { font-size: 26px; width: 36px; }
    .opt-label { font-size: 15px; }
    .result-main-card { padding: 20px 16px; }
    .result-actions { flex-direction: column; align-items: center; }
}

/* === 响应式 === */
@media (max-width: 768px) {
    .hero h1 { font-size: 26px; }
    .hero p { font-size: 15px; }
    .hero-stats { gap: 16px 24px; flex-wrap: wrap; }
    .hero-stat { padding: 0 16px; }
    .hero-stat:not(:last-child)::after { display: none; }
    .model-grid { grid-template-columns: 1fr; }
    .compare-table { font-size: 12px; display: block; overflow-x: auto; }
    .container { padding: 20px 16px; }
    .scenario-btn { min-width: 70px; max-width: none; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    /* 移动端导航 */
    .nav-toggle { display: block; }
    .nav-links { display: none !important; }
    .nav-lang { margin-left: 0; }
    .nav-inner { gap: 12px; }
    .nav-logo { font-size: 17px; }
    .mobile-tabs { display: flex; }
    body { padding-bottom: 64px; }
}

/* === 技能详情页 (skills/<slug>.html) === */
.sd-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.sd-tag { font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 50px; line-height: 1.6; }
.sd-tag--source-v { background: #DBEAFE; color: #2563EB; }
.sd-tag--source-a { background: #FEF3C7; color: #D97706; }
.sd-tag--cat { background: #F3F4F6; color: #374151; }
.sd-tag--team { background: #ECFDF5; color: #16A34A; }
.sd-section {
    margin-top: 30px; padding-bottom: 6px;
    border-bottom: 2px solid #2563EB;
    font-size: 20px; font-weight: 700; color: #2563EB;
}
.sd-overview { margin-top: 12px; line-height: 1.8; color: #374151; font-size: 15px; }
.sd-list { margin: 14px 0; padding-left: 22px; }
.sd-list li { margin: 9px 0; line-height: 1.7; color: #374151; font-size: 15px; }
.sd-list.sd-steps { list-style: decimal; }
.sd-list.sd-steps li { padding-left: 4px; }
.sd-meta { width: 100%; border-collapse: collapse; margin-top: 14px; }
.sd-meta td {
    border: 1px solid #E5E7EB; padding: 11px 14px; font-size: 14px; vertical-align: top; color: #374151;
}
.sd-meta td:first-child { background: #F9FAFB; font-weight: 600; color: #374151; width: 110px; white-space: nowrap; }
.sd-source-link { color: #2563EB; text-decoration: underline; word-break: break-all; }
.sd-back { display: inline-block; margin-top: 4px; color: #2563EB; font-weight: 600; text-decoration: none; }
.sd-back:hover { text-decoration: underline; }
