/* ── BossAgents · 工业智能体科技公司 UI 系统 v3 ── */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-deeper: #3730a3;
    --primary-light: #eef2ff;
    --primary-glow: rgba(99, 102, 241, 0.25);
    --accent-cyan: #06b6d4;
    --accent-emerald: #10b981;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --bg: #0f172a;
    --bg-surface: #1e293b;
    --bg-card: #1e293b;
    --bg-elevated: #334155;
    --text: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: #334155;
    --border-light: #475569;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --shadow: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.4);
    --glow: 0 0 20px rgba(99,102,241,0.15);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; }
::selection { background: var(--primary); color: white; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── Header ── */
.site-header { background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); color: white; padding: 0 28px; display: flex; align-items: center; height: 60px; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; backdrop-filter: blur(12px); }
.site-header::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--primary), transparent); opacity: 0.3; }
.site-header .brand { font-size: 18px; font-weight: 700; margin-right: 36px; letter-spacing: 0.5px; display: flex; align-items: center; gap: 8px; }
.site-header .brand a { color: white; text-decoration: none; }
.site-header .brand .logo-icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; background: linear-gradient(135deg, var(--primary), var(--accent-cyan)); border-radius: 8px; font-size: 16px; }
.site-nav { display: flex; gap: 2px; }
.site-nav a { color: rgba(255,255,255,0.65); text-decoration: none; padding: 8px 16px; border-radius: 8px; font-size: 14px; font-weight: 500; transition: all 0.2s; }
.site-nav a:hover { background: rgba(255,255,255,0.08); color: white; }
.site-nav a.active { background: rgba(99,102,241,0.2); color: var(--primary); font-weight: 600; }

/* ── Main ── */
.site-main { max-width: 1200px; margin: 0 auto; padding: 24px; padding-right: 24px; }
@media (min-width: 1201px) { .site-main { padding-right: 248px; } }
@media (max-width: 1200px) { .site-main { padding-right: 24px; } }
.site-foot { text-align: center; color: var(--text-muted); font-size: 12px; padding: 24px; border-top: 1px solid var(--border); margin-top: 48px; background: var(--bg-surface); }

/* ── Typography ── */
h1 { font-size: 22px; font-weight: 700; margin-bottom: 16px; letter-spacing: -0.3px; }
h2 { font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.error-box { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; padding: 20px; border-radius: var(--radius); margin: 20px 0; }
.empty { color: var(--text-secondary); padding: 20px; text-align: center; }
.hint { color: var(--text-secondary); font-size: 13px; margin-left: 12px; }
.tag-mini { background: var(--bg-elevated); color: var(--text-secondary); font-size: 11px; padding: 2px 8px; border-radius: 4px; }
.tag-ok { background: rgba(16,185,129,0.15); color: var(--accent-emerald); font-size: 11px; padding: 2px 8px; border-radius: 4px; }
.section-icon { font-size: 18px; margin-right: 8px; }

/* ── Breadcrumb ── */
.breadcrumb { font-size: 13px; color: var(--text-secondary); margin-bottom: 16px; padding: 8px 0; }
.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ── Home Layout ── */
.home-layout { display: flex; gap: 24px; align-items: flex-start; }
.home-sidebar { width: 220px; flex-shrink: 0; position: sticky; top: 80px; }
.home-main { flex: 1; min-width: 0; }

/* ── Side Menu ── */
.side-menu { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.side-menu-title { padding: 14px 16px; font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid var(--border); background: var(--bg-surface); }
.side-menu ul { list-style: none; }
.side-menu .menu-item { border-bottom: 1px solid rgba(51,65,85,0.5); }
.side-menu .menu-item:last-child { border-bottom: none; }
.side-menu .menu-item > a { display: block; padding: 10px 16px; color: var(--text); text-decoration: none; font-size: 14px; font-weight: 500; transition: all 0.15s; border-left: 3px solid transparent; }
.side-menu .menu-item > a:hover { background: rgba(99,102,241,0.08); color: var(--primary); border-left-color: var(--primary); }
.side-menu .sub-menu { background: var(--bg); border-top: 1px solid rgba(51,65,85,0.3); }
.side-menu .sub-menu a { display: block; padding: 7px 16px 7px 28px; color: var(--text-secondary); text-decoration: none; font-size: 13px; transition: all 0.15s; }
.side-menu .sub-menu a:hover { color: var(--primary); background: rgba(99,102,241,0.06); }

/* ── Featured Section ── */
.featured-section { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 20px; }
.featured-header { display: flex; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.featured-header .section-icon { color: var(--warning); font-size: 20px; }
.featured-header h2 { margin: 0; font-size: 16px; color: var(--text); }
.featured-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.featured-card { padding: 20px; cursor: pointer; transition: all 0.2s; border-right: 1px solid var(--border); position: relative; overflow: hidden; }
.featured-card:last-child { border-right: none; }
.featured-card:hover { background: rgba(99,102,241,0.05); }
.featured-card h3 { font-size: 15px; font-weight: 600; line-height: 1.4; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--text); }
.featured-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.featured-card .fc-meta { font-size: 12px; color: var(--text-muted); }
.featured-card::after { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 0; background: linear-gradient(180deg, var(--primary), var(--accent-cyan)); transition: height 0.3s; }
.featured-card:hover::after { height: 100%; }
.featured-list { border-top: 1px solid var(--border); padding: 8px 0; }
.featured-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 20px; text-decoration: none; color: var(--text); font-size: 13px; transition: all 0.15s; }
.featured-item:hover { background: rgba(99,102,241,0.05); color: var(--primary); }
.featured-item time { font-size: 12px; color: var(--text-muted); white-space: nowrap; margin-left: 12px; }

/* ── Blocks ── */
.block { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 20px; }
.block-header { display: flex; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.block-header h2 { margin: 0; font-size: 15px; color: var(--text); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

/* ── List Line ── */
.list-line { list-style: none; }
.list-line li { display: flex; justify-content: space-between; align-items: center; padding: 10px 20px; border-bottom: 1px solid rgba(51,65,85,0.5); transition: background 0.15s; }
.list-line li:last-child { border-bottom: none; }
.list-line li:hover { background: rgba(255,255,255,0.02); }
.list-line a { color: var(--text); text-decoration: none; font-size: 14px; flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
.list-line a:hover { color: var(--primary); }
.list-line time { color: var(--text-muted); font-size: 12px; white-space: nowrap; margin-left: 12px; }
.tag-type { display: inline-block; background: rgba(99,102,241,0.12); color: var(--primary); font-size: 11px; padding: 2px 8px; border-radius: 4px; white-space: nowrap; font-weight: 500; }

/* ── Pager ── */
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 20px; padding: 16px 0; }
.pager a { color: var(--primary); text-decoration: none; padding: 6px 16px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; transition: all 0.2s; }
.pager a:hover { background: rgba(99,102,241,0.1); border-color: var(--primary); }
.pager span { color: var(--text-secondary); font-size: 13px; }

/* ── Article Detail ── */
.article { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 36px; margin-bottom: 20px; }
.article h1 { font-size: 26px; font-weight: 700; margin-bottom: 12px; line-height: 1.3; }
.article-meta { display: flex; gap: 20px; color: var(--text-secondary); font-size: 13px; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.article-content { line-height: 1.9; font-size: 15px; color: var(--text); }
/* 公众号富文本内联样式适配暗色主题：
   微信编辑器导出会内联写死白底暗色(color:#1e293b/#111827/#374151 等)+ max-width:680px 窄栏，
   直接盖过主题亮色导致"暗底暗字"。这里用 !important 强制回主题色，宽度撑满。
   深底深字组合(#0f172a 是代码块，本身可读)不受影响。 */
.article-content [style*="color:#1e293b"], .article-content [style*="color:#111827"],
.article-content [style*="color:#374151"], .article-content [style*="color:#4b5563"],
.article-content [style*="color:#6b7280"], .article-content [style*="color:#334155"],
.article-content [style*="color:#1f2937"] { color: var(--text) !important; }
.article-content [style*="color:#64748b"], .article-content [style*="color:#9ca3af"],
.article-content [style*="color:#94a3b8"] { color: var(--text-secondary) !important; }
.article-content [style*="max-width:680px"], .article-content [style*="max-width: 680px"],
.article-content [style*="max-width:677px"], .article-content [style*="max-width:676px"] { max-width: 100% !important; }
.article-content [style*="max-width:680px"] > *, .article-content [style*="max-width: 680px"] > * { max-width: 100% !important; }
.article-content p { margin-bottom: 16px; }
.article-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 16px 0; border: 1px solid var(--border); }
.article-content pre { background: #0f172a; border: 1px solid var(--border); color: #e2e8f0; padding: 20px; border-radius: 8px; overflow-x: auto; font-size: 13px; line-height: 1.6; margin: 16px 0; }
.article-content code { background: rgba(99,102,241,0.1); padding: 2px 6px; border-radius: 4px; font-size: 13px; color: #a5b4fc; }
.article-content pre code { background: transparent; color: inherit; padding: 0; }
.article-content h2 { font-size: 20px; margin: 28px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.article-content h3 { font-size: 17px; margin: 24px 0 10px; }
.article-content blockquote { border-left: 3px solid var(--primary); padding: 12px 20px; margin: 16px 0; background: rgba(99,102,241,0.05); color: var(--text-secondary); border-radius: 0 6px 6px 0; }
.article-content ul, .article-content ol { padding-left: 24px; margin: 12px 0; }
.article-content li { margin: 6px 0; }
.article-content table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.article-content th, .article-content td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; font-size: 14px; }
.article-content th { background: var(--bg-surface); font-weight: 600; }

/* ── Prev/Next ── */
.prev-next { display: flex; justify-content: space-between; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px 20px; }
.prev-next a { color: var(--primary); text-decoration: none; font-size: 14px; max-width: 45%; }
.prev-next a:hover { text-decoration: underline; }
.prev-next .empty { color: var(--text-muted); font-size: 13px; }

/* ── Admin Shell（后台统一外壳 + tab 导航）── */
.admin-shell { display: flex; gap: 24px; align-items: flex-start; }
.admin-tabs { width: 190px; flex-shrink: 0; position: sticky; top: 80px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.admin-tabs a { display: block; padding: 11px 16px; color: var(--text-secondary); text-decoration: none; font-size: 14px; font-weight: 500; border-bottom: 1px solid rgba(51,65,85,0.5); border-left: 3px solid transparent; transition: all 0.15s; }
.admin-tabs a:last-child { border-bottom: none; }
.admin-tabs a:hover { background: rgba(99,102,241,0.08); color: var(--text); }
.admin-tabs a.active { background: rgba(99,102,241,0.12); color: var(--primary); border-left-color: var(--primary); font-weight: 600; }
.admin-body { flex: 1; min-width: 0; }
.admin-body h1 { font-size: 20px; display: flex; align-items: center; gap: 10px; }
@media (max-width: 900px) { .admin-shell { flex-direction: column; } .admin-tabs { width: 100%; position: static; display: flex; overflow-x: auto; } .admin-tabs a { white-space: nowrap; border-bottom: none; border-left: none; border-bottom: 2px solid transparent; } .admin-tabs a.active { border-left: none; border-bottom-color: var(--primary); } }

/* ── Admin 通用组件 ── */
.admin-body h1 { margin-bottom: 16px; }
.stat-grid { display: grid; gap: 12px; margin-bottom: 20px; }
.stat-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.stat-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 900px) { .stat-grid.cols-4, .stat-grid.cols-5 { grid-template-columns: repeat(2, 1fr); } }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; text-align: center; transition: all 0.2s; }
.stat-card:hover { border-color: var(--border-light); }
.stat-value { display: block; font-size: 26px; font-weight: 700; line-height: 1.2; margin-bottom: 4px; }
.stat-label { font-size: 13px; color: var(--text-secondary); }
.stat-card .stat-value.c-success { color: var(--success); }
.stat-card .stat-value.c-primary { color: var(--primary); }
.stat-card .stat-value.c-warning { color: var(--warning); }
.stat-card .stat-value.c-danger { color: var(--danger); }
.panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.panel + .panel { margin-top: 20px; }
.panel-head { padding: 12px 16px; border-bottom: 1px solid var(--border); font-weight: 600; font-size: 14px; background: var(--bg-surface); }
.panel-body { padding: 16px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { text-align: left; padding: 10px 12px; color: var(--text-secondary); font-weight: 600; font-size: 12px; border-bottom: 1px solid var(--border); background: var(--bg-surface); white-space: nowrap; }
.data-table td { padding: 10px 12px; border-bottom: 1px solid rgba(51,65,85,0.5); color: var(--text); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr { transition: background 0.15s; }
.data-table tbody tr:hover { background: rgba(99,102,241,0.05); }
.data-table a { color: var(--primary); text-decoration: none; }
.data-table a:hover { text-decoration: underline; }
.data-table .muted { color: var(--text-muted); }
.data-table .nowrap { white-space: nowrap; }
.data-table .ellipsis { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score { font-weight: 600; }
.score.hi { color: var(--success); }
.score.mid { color: var(--warning); }
.score.lo { color: var(--danger); }
.kv-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-bottom: 1px solid rgba(51,65,85,0.4); font-size: 13px; color: var(--text-secondary); }
.kv-row:last-child { border-bottom: none; }
.kv-row span:last-child { color: var(--text); font-weight: 500; }

/* ── Tree (Admin) ── */
.tree { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 4px 0; }
.tree ul { list-style: none; }
.tree-row { display: flex; align-items: center; gap: 10px; padding: 8px 16px; border-bottom: 1px solid rgba(51,65,85,0.5); transition: background 0.15s; }
.tree-row:hover { background: rgba(255,255,255,0.02); }
.tree-name { font-weight: 500; font-size: 14px; }
.tree-actions { margin-left: auto; display: flex; gap: 6px; }
.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; font-weight: 500; cursor: pointer; background: var(--bg-card); color: var(--text); transition: all 0.2s; }
.btn:hover { background: var(--bg-elevated); transform: translateY(-1px); }
.btn.primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; border-color: transparent; }
.btn.primary:hover { background: linear-gradient(135deg, var(--primary-dark), var(--primary-deeper)); box-shadow: var(--glow); }
.btn.ghost { background: transparent; border: 1px solid var(--border); }
.btn.ghost:hover { background: var(--bg-elevated); }
.btn-mini { display: inline-flex; align-items: center; padding: 3px 10px; border: 1px solid var(--border); border-radius: 4px; font-size: 12px; cursor: pointer; background: var(--bg-card); color: var(--text); transition: all 0.15s; }
.btn-mini:hover { background: var(--bg-elevated); }
.btn-mini.danger { color: var(--danger); border-color: rgba(239,68,68,0.3); }
.btn-mini.danger:hover { background: rgba(239,68,68,0.1); }

/* ── Modal ── */
.modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; z-index: 200; backdrop-filter: blur(4px); }
.modal.hidden { display: none; }
.modal-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 28px; width: 90%; max-width: 520px; max-height: 85vh; overflow-y: auto; box-shadow: var(--shadow-lg); }
.modal-box.modal-lg { max-width: 780px; }
.modal-box h3 { margin-bottom: 16px; color: var(--text); }

/* ── Form ── */
.form label { display: block; margin-bottom: 12px; font-size: 13px; color: var(--text-secondary); font-weight: 500; }
.form label.check { display: flex; align-items: center; gap: 8px; font-weight: 400; color: var(--text); }
.form input[type="text"], .form input[type="number"], .form select, .form textarea { width: 100%; padding: 8px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 14px; margin-top: 4px; outline: none; transition: border-color 0.2s; font-family: inherit; background: rgba(15,23,42,0.5); color: var(--text); }
.form input:focus, .form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,0.15); }
.form textarea { font-family: 'SFMono-Regular', Consolas, monospace; font-size: 13px; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; }

/* ── Tpl List ── */
.tpl-list { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 4px 0; }
.tpl-list ul { list-style: none; }
.tpl-row { display: flex; align-items: center; gap: 10px; padding: 6px 16px; border-bottom: 1px solid rgba(51,65,85,0.5); font-size: 13px; transition: background 0.15s; }
.tpl-row:hover { background: rgba(255,255,255,0.02); }
.tpl-actions { margin-left: auto; display: flex; gap: 6px; }
.code-area { width: 100%; min-height: 300px; font-family: 'SFMono-Regular', Consolas, monospace; font-size: 13px; line-height: 1.5; padding: 12px; border: 1px solid var(--border); border-radius: 6px; background: rgba(15,23,42,0.5); color: var(--text); }
.code-area:focus { border-color: var(--primary); }

/* ── Type Desc ── */
.type-desc { color: var(--text-secondary); font-size: 14px; margin-bottom: 16px; padding: 8px 0; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .home-layout { flex-direction: column; }
    .home-sidebar { width: 100%; position: static; }
    .featured-grid { grid-template-columns: 1fr; }
    .featured-card { border-right: none; border-bottom: 1px solid var(--border); }
    .site-header { padding: 0 12px; }
    .site-nav a { padding: 6px 10px; font-size: 13px; }
    .article { padding: 20px; }
}

/* ═══════════════════════════════════════════════════════
   官网首页 · 左帮右臂 · BossAgents 工业智能体
   ═══════════════════════════════════════════════════════ */

/* Hero — 深色科技感 */
.o-hero { background: radial-gradient(ellipse at 20% 30%, #1e1b4b 0%, #0f172a 50%, #020617 100%); color: white; padding: 80px 24px 64px; position: relative; overflow: hidden; }
.o-hero::before { content:''; position:absolute; inset:0; background-image: linear-gradient(rgba(99,102,241,0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(99,102,241,0.07) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at 50% 0%, rgba(0,0,0,0.9) 0%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 50% 0%, rgba(0,0,0,0.9) 0%, transparent 70%); pointer-events:none; }
.o-hero::after { content:''; position:absolute; top:-220px; left:50%; transform:translateX(-50%); width:720px; height:420px; background:radial-gradient(ellipse, rgba(99,102,241,0.28) 0%, rgba(139,92,246,0.12) 45%, transparent 70%); filter:blur(30px); pointer-events:none; z-index:0; }
.o-hero-inner { position:relative; z-index:1; }
.o-hero::before { content:''; position:absolute; top:-30%; right:-5%; width:40%; height:200%; background:radial-gradient(circle, rgba(99,102,241,0.15) 0%, transparent 60%); pointer-events:none; }
.o-hero::after { content:''; position:absolute; bottom:0; left:0; right:0; height:1px; background:linear-gradient(90deg,transparent,var(--primary),rgba(6,182,212,0.5),transparent); }
.o-hero-inner { max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; }
.o-badge { display:inline-block; font-size:12px; letter-spacing:0.5px; padding:6px 14px; background:rgba(99,102,241,0.15); border:1px solid rgba(99,102,241,0.3); border-radius:20px; margin-bottom:24px; color:rgba(165,180,252,0.9); }
.o-title { font-size:44px; font-weight:800; line-height:1.15; letter-spacing:-1px; margin-bottom:20px; }
.o-title-accent { background:linear-gradient(135deg,#a5b4fc,#818cf8,#06b6d4); -webkit-background-clip:text; background-clip:text; color:transparent; }
.o-sub { font-size:16px; line-height:1.7; color:rgba(255,255,255,0.65); max-width:680px; margin-bottom:32px; }
.o-hero-cta { display:flex; gap:12px; flex-wrap:wrap; margin-bottom:48px; }
.o-cta-primary { display:inline-flex; align-items:center; gap:6px; padding:14px 28px; background:linear-gradient(135deg,var(--primary),var(--primary-dark)); color:white; border-radius:8px; font-size:15px; font-weight:600; text-decoration:none; transition:all .2s; }
.o-cta-primary:hover { transform:translateY(-2px); box-shadow:0 8px 24px rgba(99,102,241,0.25); }
.o-cta-ghost { display:inline-flex; align-items:center; padding:14px 24px; background:rgba(255,255,255,0.05); color:white; border:1px solid rgba(255,255,255,0.15); border-radius:8px; font-size:15px; text-decoration:none; transition:all .2s; }
.o-cta-ghost:hover { background:rgba(255,255,255,0.1); border-color:rgba(255,255,255,0.25); }
.o-hero-stats { display:grid; grid-template-columns:repeat(4,1fr); gap:24px; padding-top:32px; border-top:1px solid rgba(255,255,255,0.06); }
.o-stat strong { display:block; font-size:28px; font-weight:700; color:white; margin-bottom:4px; }
.o-stat span { font-size:13px; color:rgba(255,255,255,0.45); }
@media (max-width:768px) { .o-hero-stats { grid-template-columns:repeat(2,1fr); } .o-title { font-size:32px; } .o-hero { padding:48px 16px 40px; } }

/* Section 通用 */
.o-section { max-width:1100px; margin:0 auto; padding:64px 24px 32px; }
.o-section-head { text-align:center; margin-bottom:36px; }
.o-section-head h2 { font-size:28px; font-weight:700; letter-spacing:-0.5px; margin-bottom:8px; background:linear-gradient(135deg,var(--text),var(--text-secondary)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.o-section-head p { font-size:14px; color:var(--text-muted); }

/* 信任锚 */
.o-proof-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
@media (max-width:900px) { .o-proof-grid { grid-template-columns:repeat(2,1fr); } }
.o-proof { background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius-lg); padding:20px; transition:all .2s; }
.o-proof:hover { border-color:var(--primary); box-shadow:0 4px 16px rgba(99,102,241,0.08); }
.o-proof-ind { font-size:20px; margin-bottom:8px; }
.o-proof h3 { font-size:15px; font-weight:600; margin-bottom:6px; }
.o-proof p { font-size:12.5px; color:var(--text-secondary); line-height:1.5; }

/* 产品主线 */
.o-product-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
@media (max-width:900px) { .o-product-grid { grid-template-columns:1fr; } }
.o-product { position:relative; background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius-xl); padding:28px; transition:all .25s; }
.o-product:hover { transform:translateY(-4px); box-shadow:0 12px 32px rgba(0,0,0,0.3); border-color:var(--primary); }
.o-product-hl { background:linear-gradient(135deg,rgba(99,102,241,0.08),rgba(6,182,212,0.04)); border-color:rgba(99,102,241,0.2); }
.o-product-no { position:absolute; top:20px; right:24px; font-size:42px; font-weight:800; color:var(--primary); opacity:0.12; line-height:1; }
.o-product h3 { font-size:20px; font-weight:700; margin-bottom:8px; }
.o-product-tag { font-size:12px; color:var(--primary); font-weight:600; margin-bottom:14px; display:inline-block; padding:3px 10px; background:rgba(99,102,241,0.12); border-radius:12px; }
.o-product-desc { font-size:13.5px; color:var(--text-secondary); line-height:1.7; margin-bottom:20px; }
.o-product-link { font-size:14px; font-weight:600; color:var(--primary); text-decoration:none; }
.o-product-link:hover { text-decoration:underline; }

/* 七大基础智能体 */
.o-cap-grid { display:grid; grid-template-columns:repeat(6,1fr); gap:12px; }
@media (max-width:900px) { .o-cap-grid { grid-template-columns:repeat(3,1fr); } }
@media (max-width:500px) { .o-cap-grid { grid-template-columns:repeat(2,1fr); } }
.o-cap { background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius-lg); padding:18px 14px; text-align:center; transition:all .2s; }
.o-cap:hover { border-color:var(--primary); transform:translateY(-2px); box-shadow:var(--glow); }
.o-cap-icon { font-size:24px; display:block; margin-bottom:8px; }
.o-cap h4 { font-size:14px; font-weight:600; margin-bottom:6px; }
.o-cap p { font-size:11.5px; color:var(--text-secondary); line-height:1.5; }

/* 四层架构 */
.o-arch { max-width:760px; margin:0 auto; }
.o-arch-layer { display:flex; align-items:center; gap:16px; background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius-lg); padding:18px 20px; margin-bottom:10px; transition:all .2s; }
.o-arch-layer:hover { border-color:var(--primary); transform:translateX(4px); }
.o-arch-no { width:44px; height:44px; flex-shrink:0; background:linear-gradient(135deg,var(--primary),var(--accent-cyan)); color:white; border-radius:10px; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:15px; }
.o-arch-body { font-size:14px; line-height:1.5; color:var(--text-secondary); }
.o-arch-body strong { color:var(--text); font-weight:600; }

/* 最新动态 + 栏目 */
.o-layout { display:grid; grid-template-columns:240px 1fr; gap:24px; }
@media (max-width:768px) { .o-layout { grid-template-columns:1fr; } }
.o-side { background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius-lg); padding:16px; align-self:start; }
.o-side-title { font-size:12px; font-weight:600; color:var(--text-muted); text-transform:uppercase; letter-spacing:0.5px; margin-bottom:12px; padding-bottom:8px; border-bottom:1px solid var(--border); }
.o-menu { list-style:none; }
.o-menu .menu-item a { display:block; padding:9px 12px; font-size:14px; color:var(--text); text-decoration:none; border-radius:6px; transition:all .15s; }
.o-menu .menu-item a:hover { background:rgba(99,102,241,0.08); color:var(--primary); }
.o-menu .sub-menu { list-style:none; padding-left:12px; margin-top:4px; }
.o-menu .sub-menu li a { font-size:13px; padding:6px 10px; color:var(--text-secondary); }
.o-news { list-style:none; }
.o-news li { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:12px 0; border-bottom:1px solid var(--border); }
.o-news li:last-child { border-bottom:none; }
.o-news li a { font-size:14px; color:var(--text); text-decoration:none; flex:1; }
.o-news li a:hover { color:var(--primary); }
.o-news time { font-size:12px; color:var(--text-muted); white-space:nowrap; }
.o-tag { display:inline-block; font-size:11px; padding:2px 8px; background:rgba(99,102,241,0.12); color:var(--primary); border-radius:4px; margin-right:8px; font-weight:500; }
.o-empty { color:var(--text-secondary); font-size:14px; padding:24px 0; text-align:center; }

/* 底部 CTA */
.o-cta-band { max-width:1100px; margin:32px auto 0; padding:56px 24px; background:linear-gradient(135deg, #1e1b4b, #0f172a); border:1px solid rgba(99,102,241,0.15); border-radius:var(--radius-xl); color:white; text-align:center; }
.o-cta-band h2 { font-size:28px; font-weight:700; margin-bottom:8px; }
.o-cta-band p { font-size:14px; color:rgba(255,255,255,0.55); margin-bottom:24px; }
.o-cta-band .o-cta-primary { margin:0 auto; }

/* ── 技术文档模块 ── */
.td-intro { display:flex; align-items:center; justify-content:center; gap:16px; flex-wrap:wrap; padding:20px; background:rgba(99,102,241,0.06); border:1px solid rgba(99,102,241,0.12); border-radius:var(--radius-lg); margin-bottom:32px; }
.td-intro-item { background:var(--bg-card); border:1px solid var(--border); padding:14px 20px; border-radius:10px; font-size:14px; }
.td-intro-item strong { color:var(--primary); display:block; font-size:15px; margin-bottom:4px; }
.td-intro-arrow { font-size:24px; color:var(--primary); }
@media (max-width:600px) { .td-intro-arrow { transform:rotate(90deg); } }
.td-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:20px; }
@media (max-width:768px) { .td-grid { grid-template-columns:1fr; } }
.td-card { background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius-xl); padding:22px; transition:all .25s; }
.td-card:hover { transform:translateY(-3px); box-shadow:var(--shadow-lg); border-color:var(--primary); }
.td-card-head { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; margin-bottom:12px; }
.td-card-head h3 { font-size:17px; font-weight:700; line-height:1.35; flex:1; color:var(--text); }
.td-meta { font-size:11px; color:var(--text-muted); white-space:nowrap; padding-top:3px; }
.td-desc { font-size:13px; color:var(--text-secondary); line-height:1.6; margin-bottom:16px; min-height:40px; }
.td-actions { display:flex; gap:8px; }
.td-btn { padding:9px 16px; font-size:13px; font-weight:600; border:1px solid var(--border); background:var(--bg-card); color:var(--text); border-radius:8px; cursor:pointer; transition:all .15s; }
.td-btn:hover { background:var(--bg-elevated); border-color:var(--primary); }
.td-btn.primary { background:linear-gradient(135deg,var(--primary),var(--primary-dark)); color:white; border-color:transparent; }
.td-btn.primary:hover { background:linear-gradient(135deg,var(--primary-dark),var(--primary-deeper)); }

/* 转化面板 */
.td-panel { position:fixed; inset:0; background:rgba(0,0,0,0.7); z-index:1000; display:flex; align-items:center; justify-content:center; padding:24px; backdrop-filter:blur(4px); }
.td-panel-inner { background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius-xl); max-width:880px; width:100%; max-height:90vh; display:flex; flex-direction:column; box-shadow:var(--shadow-lg); }
.td-panel-head { display:flex; justify-content:space-between; align-items:center; padding:18px 24px; border-bottom:1px solid var(--border); }
.td-panel-head h3 { font-size:17px; font-weight:700; }
.td-panel-close { background:transparent; border:none; font-size:20px; cursor:pointer; color:var(--text-secondary); padding:4px 8px; border-radius:6px; }
.td-panel-close:hover { background:var(--bg-elevated); }
.td-panel-body { padding:24px; overflow-y:auto; flex:1; }
.td-form { display:flex; gap:16px; flex-wrap:wrap; align-items:center; margin-bottom:20px; }
.td-form label { display:flex; flex-direction:column; gap:6px; font-size:13px; font-weight:500; color:var(--text-secondary); }
.td-form .select { padding:8px 12px; border:1px solid var(--border); border-radius:8px; font-size:13px; min-width:140px; background:rgba(15,23,42,0.5); color:var(--text); }
.td-check { flex-direction:row !important; align-items:center; gap:8px !important; }
.td-output { min-height:200px; }
.td-loading { padding:32px; text-align:center; color:var(--text-secondary); font-size:14px; }
.td-ok { padding:10px 14px; background:rgba(16,185,129,0.1); border:1px solid rgba(16,185,129,0.2); color:var(--accent-emerald); border-radius:8px; margin-bottom:12px; font-size:13px; }
.td-ok a { color:var(--primary); font-weight:600; }
.td-err { padding:10px 14px; background:rgba(239,68,68,0.1); border:1px solid rgba(239,68,68,0.2); color:#fca5a5; border-radius:8px; margin-bottom:12px; font-size:13px; }
.td-pre { background:var(--bg); border:1px solid var(--border); border-radius:8px; padding:16px; font-size:13px; line-height:1.7; white-space:pre-wrap; word-break:break-word; max-height:400px; overflow-y:auto; font-family:ui-monospace,'Cascadia Code',Menlo,Consolas,monospace; color:var(--text-secondary); }
.td-panel-actions { display:flex; gap:10px; margin-top:16px; padding-top:16px; border-top:1px solid var(--border); }

/* ── 数字员工闭环三步走 ── */
.wf-step-block { background:rgba(15,23,42,0.5); border:1px solid var(--border); border-radius:var(--radius-lg); padding:16px 20px; margin-top:16px; }
.wf-step-head { display:flex; align-items:center; gap:12px; margin-bottom:12px; }
.wf-step-no { width:28px; height:28px; flex-shrink:0; background:linear-gradient(135deg,var(--primary),var(--accent-cyan)); color:white; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; font-weight:700; font-size:13px; }
.wf-step-head h4 { font-size:15px; font-weight:600; margin:0; flex:1; color:var(--text); }
.wf-step-tip { font-size:12px; color:var(--accent-emerald); font-weight:600; }
.wf-publish-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; margin-bottom:14px; }
@media (max-width:500px) { .wf-publish-grid { grid-template-columns:1fr; } }
.wf-pub-item { display:flex; flex-direction:column; gap:2px; padding:10px 14px; border:1px solid var(--border); border-radius:8px; cursor:pointer; transition:all .15s; background:rgba(15,23,42,0.3); }
.wf-pub-item:hover { border-color:var(--primary); background:rgba(99,102,241,0.06); }
.wf-pub-item input[type="checkbox"] { accent-color:var(--primary); margin-bottom:4px; }
.wf-pub-item span { font-size:14px; font-weight:600; }
.wf-pub-item small { font-size:11px; color:var(--text-muted); }
.wf-pub-result { margin-top:12px; }
.wf-pub-ok { padding:8px 12px; background:rgba(16,185,129,0.1); border:1px solid rgba(16,185,129,0.2); color:var(--accent-emerald); border-radius:6px; font-size:13px; margin-bottom:6px; }
.wf-pub-err { padding:8px 12px; background:rgba(239,68,68,0.1); border:1px solid rgba(239,68,68,0.2); color:#fca5a5; border-radius:6px; font-size:13px; margin-bottom:6px; }
.wf-pub-progress { padding:8px 12px; background:rgba(59,130,246,0.1); border:1px solid rgba(59,130,246,0.2); color:#93c5fd; border-radius:6px; font-size:13px; }
.wf-pub-dispatch { font-size:12px; color:var(--text-secondary); margin-top:6px; }
.wf-pub-tag { display:inline-block; padding:2px 8px; background:rgba(99,102,241,0.12); color:var(--primary); border-radius:4px; margin-right:4px; font-size:11px; font-weight:500; }

/* ── BOSSAGENTS 演示页 ── */
.ba-hero { text-align:center; padding:48px 24px 32px; }
.ba-hero h1 { font-size:32px; font-weight:800; background:linear-gradient(135deg,var(--text),var(--primary)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.ba-sub { font-size:14px; color:var(--text-muted); max-width:700px; margin:12px auto 0; line-height:1.6; }
.ba-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-bottom:32px; }
@media (max-width:900px) { .ba-grid { grid-template-columns:1fr; } }
.ba-card { background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius-lg); padding:20px; transition:all .2s; }
.ba-card:hover { border-color:var(--primary); box-shadow:var(--glow); }
.ba-card h3 { font-size:15px; font-weight:600; margin-bottom:8px; }
.ba-card p { font-size:12.5px; color:var(--text-secondary); line-height:1.6; margin-bottom:12px; }
.ba-flow { display:grid; grid-template-columns:repeat(5,1fr); gap:12px; margin-bottom:32px; }
@media (max-width:900px) { .ba-flow { grid-template-columns:1fr; } }
.ba-step { background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius-lg); padding:16px; text-align:center; }
.ba-step:hover { border-color:var(--primary); }
.ba-num { display:inline-flex; width:32px; height:32px; background:linear-gradient(135deg,var(--primary),var(--accent-cyan)); color:white; border-radius:50%; align-items:center; justify-content:center; font-weight:700; font-size:14px; margin-bottom:8px; }
.ba-step h3 { font-size:14px; font-weight:600; margin-bottom:6px; }
.ba-step p { font-size:11.5px; color:var(--text-secondary); line-height:1.5; }
.ba-step code { display:block; font-size:10px; color:var(--text-muted); margin-top:8px; font-family:monospace; }
.ba-arch { max-width:600px; margin:0 auto 32px; }
.ba-layer { display:flex; align-items:center; gap:12px; background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius-lg); padding:14px 18px; margin-bottom:8px; font-size:13px; color:var(--text-secondary); }
.ba-layer strong { color:var(--primary); }
.ba-staff { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:32px; justify-content:center; }
.ba-staff span { padding:6px 14px; background:rgba(99,102,241,0.08); border:1px solid rgba(99,102,241,0.15); border-radius:20px; font-size:13px; color:var(--text-secondary); transition:all .15s; }
.ba-staff span:hover { background:rgba(99,102,241,0.15); border-color:var(--primary); color:var(--primary); }
.ba-table { width:100%; border-collapse:collapse; margin:12px 0; }
.ba-table th, .ba-table td { border:1px solid var(--border); padding:8px 12px; font-size:13px; text-align:left; }
.ba-table th { background:var(--bg-surface); color:var(--text-secondary); font-weight:600; }
.o-employee-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(99,102,241,0.18); border-color: rgba(99,102,241,0.45) !important; }
.o-capability-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(99,102,241,0.14); border-color: rgba(99,102,241,0.35) !important; }
.o-link-node:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(99,102,241,0.12); border-color: rgba(99,102,241,0.35) !important; }
.o-case-card:hover .o-case-icon { transform: scale(1.1); }
.o-case-card .o-case-icon { transition: transform .25s ease; }

.o-section-head h2 { position: relative; display: inline-block; }
.o-section-head h2::after { content:''; position:absolute; left:50%; transform:translateX(-50%); bottom:-10px; width:56px; height:3px; border-radius:2px; background:linear-gradient(90deg, var(--primary), #8b5cf6); opacity:.85; }
.o-section-head { padding-bottom: 10px; }

.o-marquee:hover .o-marquee-content { animation-play-state: paused; }
