/* 星禾 GEO AI Admin — 对标优快抖GEO风格 */
:root {
  --primary: #722ed1;
  --primary-dark: #531dab;
  --primary-light: #f9f0ff;
  --sidebar-bg: #001529;
  --sidebar-hover: #722ed122;
  --sidebar-active: #722ed1;
  --header-bg: #fff;
  --content-bg: #f0f2f5;
  --card-bg: #fff;
  --text: #000000d9;
  --text-secondary: #00000073;
  --border: #f0f0f0;
  --success: #52c41a;
  --warning: #faad14;
  --error: #ff4d4f;
  --shadow: 0 1px 2px 0 rgba(0,0,0,.03), 0 1px 6px -1px rgba(0,0,0,.02), 0 2px 4px 0 rgba(0,0,0,.02);
  --radius: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; color: var(--text); background: var(--content-bg); font-size: 14px; line-height: 1.5715; }

/* ── Login ── */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.login-bg { position: fixed; inset: 0; background: linear-gradient(135deg, #001529 0%, #003a8c 50%, #1677ff 100%); z-index: -1; }
.login-container { display: flex; width: 960px; max-width: 95vw; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.login-left { flex: 1; background: linear-gradient(160deg, #001529, #003a8c); color: #fff; padding: 48px 40px; }
.login-brand .logo-icon { width: 56px; height: 56px; background: var(--primary); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; margin-bottom: 20px; }
.login-brand h1 { font-size: 26px; font-weight: 600; margin-bottom: 8px; }
.tagline { color: #ffffffa6; font-size: 14px; margin-bottom: 32px; }
.feature-list { list-style: none; }
.feature-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; color: #ffffffd9; font-size: 14px; }
.feature-list .dot { width: 6px; height: 6px; background: var(--primary); border-radius: 50%; flex-shrink: 0; }
.login-right { flex: 1; padding: 48px 40px; display: flex; align-items: center; }
.login-card { width: 100%; }
.login-tabs { display: flex; gap: 24px; margin-bottom: 28px; border-bottom: 1px solid var(--border); }
.login-tabs .tab { background: none; border: none; padding: 8px 0; font-size: 16px; color: var(--text-secondary); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.login-tabs .tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 500; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; color: var(--text); font-weight: 500; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #d9d9d9; border-radius: 6px; font-size: 14px; transition: border .2s;
}
.form-group input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-light); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 20px; border: none; border-radius: 6px; font-size: 14px; cursor: pointer; transition: all .2s; font-weight: 500; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-block { width: 100%; padding: 12px; font-size: 15px; }
.btn-outline { background: #fff; border: 1px solid #d9d9d9; color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-success { background: var(--success); color: #fff; }
.btn-warning { background: var(--warning); color: #fff; }
.demo-tip { text-align: center; color: var(--text-secondary); font-size: 13px; margin-top: 16px; }
.error-msg { background: #fff2f0; border: 1px solid #ffccc7; color: var(--error); padding: 10px 14px; border-radius: 6px; margin-top: 16px; font-size: 13px; }
.hidden { display: none !important; }

/* ── Layout ── */
.layout { display: flex; min-height: 100vh; }
.sidebar { width: 220px; background: var(--sidebar-bg); color: var(--sidebar-text, #ffffffa6); flex-shrink: 0; display: flex; flex-direction: column; position: fixed; top: 0; left: 0; bottom: 0; z-index: 100; overflow-y: auto; transition: transform .3s; }
.sidebar-logo { display: flex; align-items: center; gap: 10px; padding: 16px 20px; color: #fff; font-size: 16px; font-weight: 600; border-bottom: 1px solid #ffffff14; }
.logo-icon.sm { width: 32px; height: 32px; background: var(--primary); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; flex-shrink: 0; }
.sidebar-nav { padding: 8px 0; flex: 1; }
.nav-group { margin-top: 4px; }
.nav-group-title { padding: 12px 20px 4px; font-size: 12px; color: #ffffff59; text-transform: uppercase; letter-spacing: .5px; }
.nav-more {
  margin: 2px 12px 8px; border-radius: 8px; background: rgba(255,255,255,.04);
}
.nav-more-check {
  position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none;
}
.nav-more-btn {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  margin: 0; padding: 8px 12px; border: 0; border-radius: 8px;
  background: transparent; cursor: pointer; font-size: 12px;
  color: #ffffff73; user-select: none; text-align: left; font-family: inherit;
}
.nav-more-btn:hover { color: #ffffffa6; background: rgba(255,255,255,.06); }
.nav-more-btn::after { content: "▾"; opacity: .6; font-size: 11px; }
.nav-more-check:checked + .nav-more-btn,
.nav-more.is-open .nav-more-btn { color: #ffffffa6; }
.nav-more-check:checked + .nav-more-btn::after,
.nav-more.is-open .nav-more-btn::after { content: "▴"; }
.nav-more-panel { display: none; padding-bottom: 4px; }
.nav-more-check:checked ~ .nav-more-panel,
.nav-more.is-open .nav-more-panel { display: block !important; }
.nav-more .nav-item.nav-sub {
  display: flex !important; padding: 7px 12px 7px 20px; font-size: 12px; color: #ffffffa6;
}
.nav-more .nav-item.nav-sub.hidden,
.nav-more .nav-item.nav-sub.nav-filter-hidden { display: none !important; }
.nav-more .nav-item.nav-sub:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-hint-tag { margin-left: auto; font-size: 10px; padding: 2px 7px; border-radius: 10px; background: rgba(255,255,255,.12); color: #ffffffa6; white-space: nowrap; flex-shrink: 0; }
.nav-hint-ok { background: rgba(82,196,26,.25); color: #b7eb8f; }
.nav-hint-warn { background: rgba(250,173,20,.25); color: #ffe58f; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 20px; color: #ffffffa6; text-decoration: none; font-size: 14px; transition: all .2s; border-left: 3px solid transparent; }
.nav-item svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; opacity: .75; }
.nav-item:hover { color: #fff; background: var(--sidebar-hover); }
.nav-item.active { color: #fff; background: var(--sidebar-hover); border-left-color: var(--sidebar-active); }
.main { flex: 1; margin-left: 220px; display: flex; flex-direction: column; min-height: 100vh; }
.header { height: 56px; background: var(--header-bg); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 24px; position: sticky; top: 0; z-index: 50; box-shadow: var(--shadow); }
.header-left { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; background: none; border: none; font-size: 20px; cursor: pointer; padding: 4px 8px; }
.breadcrumb { font-size: 16px; font-weight: 500; color: var(--text); }
.header-right { display: flex; align-items: center; gap: 20px; }
.brand-select { display: flex; align-items: center; gap: 8px; }
.brand-select label { color: var(--text-secondary); font-size: 13px; }
.brand-select select { padding: 4px 8px; border: 1px solid #d9d9d9; border-radius: 4px; font-size: 13px; min-width: 120px; }
.points-badge { display: flex; align-items: center; gap: 6px; background: linear-gradient(135deg, #fff7e6, #ffe7ba); border: 1px solid #ffd591; padding: 4px 12px; border-radius: 20px; font-size: 13px; font-weight: 500; color: #d46b08; }
.btn-recharge { background: var(--primary); color: #fff; border: none; padding: 2px 10px; border-radius: 10px; font-size: 12px; cursor: pointer; margin-left: 4px; }
.user-menu { display: flex; align-items: center; gap: 8px; }
.avatar { width: 32px; height: 32px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; }
/* legacy avatar class kept for other pages */
.user-info { display: flex; flex-direction: column; }
.user-info span:first-child { font-size: 13px; font-weight: 500; }
.plan-tag { font-size: 11px; color: var(--primary); background: var(--primary-light); padding: 0 6px; border-radius: 4px; width: fit-content; }
.btn-logout { background: none; border: 1px solid #d9d9d9; padding: 4px 10px; border-radius: 4px; font-size: 12px; cursor: pointer; color: var(--text-secondary); }
.btn-logout:hover { border-color: var(--error); color: var(--error); }
.content { flex: 1; padding: 24px; }

/* ── Cards & Stats ── */
.page-header { margin-bottom: 24px; }
.page-header h2 { font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.page-header p { color: var(--text-secondary); font-size: 14px; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--card-bg); border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.stat-card::after { content: ''; position: absolute; top: 0; right: 0; width: 80px; height: 80px; border-radius: 0 0 0 80px; opacity: .08; }
.stat-card.blue::after { background: var(--primary); }
.stat-card.green::after { background: var(--success); }
.stat-card.orange::after { background: var(--warning); }
.stat-card.purple::after { background: #722ed1; }
.stat-label { color: var(--text-secondary); font-size: 13px; margin-bottom: 8px; }
.stat-value { font-size: 28px; font-weight: 600; line-height: 1; }
.stat-value small { font-size: 14px; font-weight: 400; color: var(--text-secondary); }
.stat-trend { font-size: 12px; margin-top: 8px; }
.stat-trend.up { color: var(--success); }
.stat-trend.down { color: var(--error); }

.card { background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 16px; }
.card-header { padding: 16px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.card-header h3 { font-size: 16px; font-weight: 600; }
.card-body { padding: 24px; }

/* ── Grid ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ── Table ── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
th { background: #fafafa; color: var(--text-secondary); font-weight: 500; font-size: 13px; }
tr:hover td { background: #fafafa; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 500; }
.badge-success { background: #f6ffed; color: var(--success); border: 1px solid #b7eb8f; }
.badge-error { background: #fff2f0; color: var(--error); border: 1px solid #ffccc7; }
.badge-running { background: #e6f4ff; color: var(--primary); border: 1px solid #91caff; }
.badge-warning { background: #fffbe6; color: var(--warning); border: 1px solid #ffe58f; }

/* ── Platform cards ── */
.platform-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.platform-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; text-align: center; cursor: pointer; transition: all .2s; }
.platform-card:hover { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-light); }
.platform-card.selected { border-color: var(--primary); background: var(--primary-light); }
.platform-icon { font-size: 28px; margin-bottom: 8px; }
.platform-name { font-size: 13px; font-weight: 500; }

/* ── Action panel ── */
.action-panel { background: linear-gradient(135deg, #f6f8ff, #eef3ff); border: 1px solid #d6e4ff; border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }
.action-panel h3 { margin-bottom: 12px; }
.action-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cost-tag { background: #fff7e6; color: #d46b08; padding: 4px 12px; border-radius: 4px; font-size: 13px; border: 1px solid #ffd591; }

/* ── Report iframe ── */
.report-frame { width: 100%; height: 600px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }

/* ── Recharge cards ── */
.recharge-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.recharge-card { border: 2px solid var(--border); border-radius: var(--radius); padding: 24px; text-align: center; cursor: pointer; transition: all .2s; }
.recharge-card:hover, .recharge-card.popular { border-color: var(--primary); }
.recharge-card.popular { position: relative; }
.recharge-card.popular::before { content: '推荐'; position: absolute; top: -1px; right: 16px; background: var(--primary); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 0 0 4px 4px; }
.recharge-price { font-size: 24px; font-weight: 700; color: var(--primary); }
.recharge-points { color: var(--text-secondary); margin: 8px 0 16px; }

/* ── API status ── */
.api-list { display: flex; gap: 12px; flex-wrap: wrap; }
.api-chip { display: flex; align-items: center; gap: 6px; padding: 6px 12px; background: #fafafa; border-radius: 20px; font-size: 13px; border: 1px solid var(--border); }
.api-chip.ok { background: #f6ffed; border-color: #b7eb8f; }
.api-dot { width: 8px; height: 8px; border-radius: 50%; background: #d9d9d9; }
.api-chip.ok .api-dot { background: var(--success); }

/* Tabs bar (对标优快抖多选项卡) */
.tab-bar { display: flex; gap: 0; background: #fff; border-bottom: 1px solid var(--border); padding: 0 16px; overflow-x: auto; }
.tab-item { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; font-size: 13px; color: var(--text-secondary); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tab-item.active { color: var(--primary); border-bottom-color: var(--primary); background: var(--primary-light); }
.tab-close { font-size: 14px; opacity: .5; margin-left: 4px; }
.tab-close:hover { opacity: 1; color: var(--error); }

/* Exclusive nav badge */
.nav-exclusive { position: relative; }

/* Progress bars */
.quota-item { margin-bottom: 16px; }
.quota-head { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.progress-bar { height: 8px; background: #f0f0f0; border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary), #69b1ff); border-radius: 4px; transition: width .5s; }
.empty-tip { color: #999; text-align: center; padding: 24px; }

textarea { width: 100%; padding: 10px 12px; border: 1px solid #d9d9d9; border-radius: 6px; font-size: 14px; font-family: inherit; resize: vertical; }
textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-light); }

/* ── Chart placeholder ── */
.chart-area { height: 240px; display: flex; align-items: flex-end; gap: 8px; padding: 16px 0; }
.chart-bar { flex: 1; background: var(--primary-light); border-radius: 4px 4px 0 0; position: relative; min-height: 4px; transition: height .5s; }
.chart-bar .bar-fill { position: absolute; bottom: 0; left: 0; right: 0; background: var(--primary); border-radius: 4px 4px 0 0; }
.chart-bar .bar-label { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--text-secondary); white-space: nowrap; }
.chart-bar .bar-value { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--primary); font-weight: 600; }

/* ── Toast & Loading ── */
.toast { position: fixed; top: 24px; right: 24px; background: #fff; padding: 12px 20px; border-radius: 8px; box-shadow: 0 6px 16px rgba(0,0,0,.12); z-index: 9999; font-size: 14px; border-left: 4px solid var(--success); animation: slideIn .3s; }
.toast.error { border-left-color: var(--error); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.loading-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 9998; color: #fff; }
.spinner { width: 40px; height: 40px; border: 3px solid #ffffff44; border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; margin-bottom: 16px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Keyword tags ── */
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { background: var(--primary-light); color: var(--primary); padding: 4px 12px; border-radius: 4px; font-size: 13px; border: 1px solid #91caff; }

/* ── Responsive ── */
@media (max-width: 1200px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .recharge-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; }
  .menu-toggle { display: block; }
  .stat-row, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .login-container { flex-direction: column; }
  .login-left { padding: 32px 24px; }
}

/* ── 优快排同款 UI 框架 ── */
.ykd-page { background: #fff; border-radius: 8px; padding: 16px 20px; min-height: 400px; }
.ykd-toolbar { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.ykd-batch-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 10px 14px; background: #fafafa; border: 1px solid #f0f0f0; border-radius: 8px; flex-wrap: wrap; }
.ykd-batch-all { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #666; cursor: pointer; user-select: none; }
.ykd-batch-count { font-size: 13px; color: #999; flex: 1; }
.ykd-btn-danger { background: #fff1f0; color: #cf1322; border: 1px solid #ffa39e; }
.ykd-btn-danger:hover:not(:disabled) { background: #ffccc7; }
.ykd-btn-danger:disabled { opacity: 0.45; cursor: not-allowed; }
.ykd-auth-plat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.ykd-auth-plat-card { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid #f0f0f0; border-radius: 10px; background: #fff; transition: border-color .2s; }
.ykd-auth-plat-card.linked { border-color: #b7eb8f; background: #f6ffed; }
.ykd-auth-plat-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; }
.ykd-auth-plat-meta .ykd-hint { font-size: 11px; color: #999; font-style: normal; }
.ykd-auth-plat-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.ykd-auth-panel .card-header { display: flex; justify-content: space-between; align-items: center; }
.ykd-btn { padding: 6px 16px; border-radius: 4px; font-size: 13px; cursor: pointer; border: 1px solid #d9d9d9; background: #fff; }
.ykd-btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.ykd-btn-danger { background: #ff4d4f; color: #fff; border-color: #ff4d4f; }
.ykd-btn-ghost { background: #fff; color: var(--primary); border-color: var(--primary); }
.ykd-table-wrap { overflow-x: auto; border: 1px solid #f0f0f0; border-radius: 4px; }
.ykd-table { width: 100%; border-collapse: collapse; }
.ykd-table th { background: #fafafa; padding: 12px 16px; font-weight: 500; color: #666; font-size: 13px; border-bottom: 1px solid #f0f0f0; }
.ykd-table td { padding: 12px 16px; border-bottom: 1px solid #f0f0f0; font-size: 13px; }
.ykd-table tr:hover td { background: #fafafa; }
.ykd-switch { position: relative; display: inline-block; width: 44px; height: 22px; }
.ykd-switch input { opacity: 0; width: 0; height: 0; }
.ykd-switch-slider { position: absolute; cursor: pointer; inset: 0; background: #ccc; border-radius: 22px; transition: .3s; }
.ykd-switch-slider:before { content: ''; position: absolute; height: 18px; width: 18px; left: 2px; bottom: 2px; background: #fff; border-radius: 50%; transition: .3s; }
.ykd-switch input:checked + .ykd-switch-slider { background: var(--success); }
.ykd-switch input:checked + .ykd-switch-slider:before { transform: translateX(22px); }
.ykd-icon-btn { border: none; background: none; cursor: pointer; font-size: 16px; padding: 4px 8px; }
.ykd-icon-btn.del { color: #ff4d4f; }
.ykd-filter-panel { background: #fff; border: 1px solid #f0f0f0; border-radius: 4px; padding: 12px 16px; margin-bottom: 12px; }
.ykd-filter-row { display: flex; padding: 6px 0; border-bottom: 1px dashed #f5f5f5; align-items: flex-start; }
.ykd-filter-row:last-child { border-bottom: none; }
.ykd-filter-label { width: 88px; flex-shrink: 0; color: #666; font-size: 13px; line-height: 28px; }
.ykd-filter-tags { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.ykd-tag { padding: 2px 10px; border-radius: 2px; font-size: 12px; cursor: pointer; color: #333; border: 1px solid transparent; }
.ykd-tag:hover { color: var(--primary); }
.ykd-tag.active { background: var(--primary-light); color: var(--primary); border-color: #d3adf7; }
.ykd-search-bar { display: flex; gap: 8px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.ykd-search-bar input { flex: 1; min-width: 200px; padding: 8px 12px; border: 1px solid #d9d9d9; border-radius: 4px; }
.ykd-catalog-total { color: #999; font-size: 12px; margin-left: auto; }
.ykd-media-list { display: flex; flex-direction: column; gap: 12px; }
.ykd-media-row { display: flex; justify-content: space-between; align-items: flex-start; padding: 16px 20px; border: 1px solid #f0f0f0; border-radius: 4px; background: #fff; gap: 16px; }
.ykd-media-row:hover { box-shadow: 0 2px 8px rgba(114,46,209,.08); border-color: #d3adf7; }
.ykd-media-left { flex: 1; min-width: 0; }
.ykd-media-badge { display: inline-block; background: #1a1a1a; color: #fff; padding: 4px 12px; border-radius: 2px; font-size: 13px; font-weight: 500; margin-right: 8px; }
.ykd-btn-case { padding: 2px 8px; font-size: 12px; border: 1px solid #d9d9d9; background: #fff; border-radius: 2px; cursor: pointer; }
.ykd-media-cat { color: #666; font-size: 12px; margin: 8px 0 4px; }
.ykd-media-weights { display: flex; gap: 12px; font-size: 12px; color: var(--primary); margin: 4px 0; }
.ykd-media-stats { font-size: 12px; color: #666; }
.ykd-media-note { font-size: 11px; color: #999; margin-top: 4px; }
.ykd-media-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.ykd-media-price { color: #ff4d4f; font-size: 18px; font-weight: 600; }
.ykd-btn-submit { background: linear-gradient(135deg, #722ed1, #531dab); color: #fff; border: none; padding: 8px 24px; border-radius: 4px; cursor: pointer; font-size: 13px; min-width: 80px; }
.ykd-btn-submit:hover { opacity: .9; }
.ykd-btn-fav { background: #fff; color: var(--primary); border: 1px solid var(--primary); padding: 6px 20px; border-radius: 4px; cursor: pointer; font-size: 13px; min-width: 80px; }
.ykd-btn-purple-sm { background: var(--primary); color: #fff; border: none; padding: 6px 16px; border-radius: 4px; cursor: pointer; font-size: 13px; }
.ykd-btn-outline-sm { background: #fff; color: #333; border: 1px solid #d9d9d9; padding: 6px 16px; border-radius: 4px; cursor: pointer; font-size: 13px; text-decoration: none; display: inline-block; }
.ykd-pagination { display: flex; align-items: center; gap: 8px; margin-top: 16px; flex-wrap: wrap; font-size: 13px; color: #666; }
.ykd-page-num { min-width: 32px; height: 32px; border: 1px solid #d9d9d9; background: #fff; border-radius: 4px; cursor: pointer; }
.ykd-page-num.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.ykd-page-btn { padding: 4px 12px; border: 1px solid #d9d9d9; background: #fff; border-radius: 4px; cursor: pointer; }
.ykd-page-btn:disabled { opacity: .5; cursor: not-allowed; }
.ykd-subnav { display: flex; gap: 0; border-bottom: 1px solid #f0f0f0; margin-bottom: 16px; }
.ykd-subnav-item { padding: 10px 20px; font-size: 13px; color: #666; text-decoration: none; border-bottom: 2px solid transparent; }
.ykd-subnav-item.active { color: var(--primary); border-bottom-color: var(--primary); background: var(--primary-light); }
.ykd-diag-form { max-width: 900px; margin: 0 auto; padding: 24px; }
.ykd-diag-title { text-align: center; font-size: 22px; margin-bottom: 32px; color: #333; }
.ykd-form-section { display: flex; gap: 8px; margin-bottom: 24px; }
.ykd-section-num { color: var(--primary); font-weight: 600; font-size: 16px; width: 32px; flex-shrink: 0; }
.ykd-section-body { flex: 1; }
.ykd-section-body label { display: block; font-weight: 500; margin-bottom: 8px; color: #333; }
.ykd-input-lg { width: 100%; padding: 12px 16px; border: 1px solid #d9d9d9; border-radius: 4px; font-size: 14px; }
.ykd-hint { font-size: 12px; color: #999; margin-top: 6px; }
.ykd-plat-row { display: flex; flex-wrap: wrap; gap: 12px; }
.ykd-plat-chip { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 16px; border: 2px solid #d3adf7; border-radius: 8px; cursor: pointer; min-width: 90px; transition: all .2s; }
.ykd-plat-chip.selected { border-color: var(--primary); background: var(--primary-light); }
.ykd-plat-chip span { font-size: 12px; color: #333; }
.ykd-toggle-row { display: flex; gap: 12px; }
.ykd-diag-opt { padding: 10px 24px; border: 2px solid #d9d9d9; background: #fff; border-radius: 4px; cursor: pointer; font-size: 14px; }
.ykd-diag-opt.active { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.ykd-submit-btn { display: block; width: 100%; max-width: 900px; margin: 32px auto 0; padding: 14px; background: linear-gradient(135deg, #722ed1, #9254de); color: #fff; border: none; border-radius: 4px; font-size: 16px; font-weight: 500; cursor: pointer; }
.ykd-submit-btn:hover { opacity: .92; }
.ykd-b2b-hero { text-align: center; padding: 32px 16px; margin-bottom: 24px; }
.ykd-b2b-hero h2 { font-size: 24px; margin-bottom: 8px; }
.ykd-b2b-hero p { color: #666; }
.ykd-b2b-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.ykd-b2b-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; padding: 12px 16px; background: #fafafa; border-radius: 8px; border: 1px solid #f0f0f0; }
.ykd-b2b-card { border: 1px solid #f0f0f0; border-radius: 8px; padding: 20px; background: #fff; position: relative; transition: border-color .2s, box-shadow .2s; }
.ykd-b2b-card.selected { border-color: #b37feb; box-shadow: 0 0 0 1px #d3adf7; }
.ykd-b2b-check { position: absolute; top: 10px; right: 10px; cursor: pointer; }
.ykd-b2b-check input { width: 16px; height: 16px; accent-color: var(--primary); }
.ykd-b2b-meta { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.ykd-b2b-meta strong { font-size: 14px; }
.ykd-b2b-meta em { font-size: 11px; color: #999; font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ykd-b2b-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; padding-right: 24px; }
.ykd-b2b-head span:nth-child(2) { font-weight: 600; flex: 1; }
.ykd-badge-open { background: #fffbe6; color: #d48806; border: 1px solid #ffe58f; padding: 2px 8px; border-radius: 4px; font-size: 11px; }
.ykd-b2b-price { color: #666; font-size: 13px; margin-bottom: 12px; }
.ykd-b2b-actions { display: flex; gap: 8px; }
.ykd-modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.ykd-modal.hidden { display: none !important; }
.ykd-modal > .ykd-modal-backdrop { position: absolute; inset: 0; z-index: 0; background: rgba(0,0,0,.55); }
.ykd-modal > .ykd-modal-card { position: relative; z-index: 1; }
.ykd-modal-box { background: #fff; padding: 24px; border-radius: 8px; width: 90%; max-width: 480px; max-height: 90vh; overflow-y: auto; position: relative; z-index: 1; }
.dist-ai-modal-card { width: min(620px, 96vw); max-height: min(90vh, calc(100% - 32px)); overflow-y: auto; }
.dist-prov-group { margin-bottom: 10px; }
.dist-prov-group-label { font-size: 11px; font-weight: 600; color: #888; margin-bottom: 6px; }
.dist-prov-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dist-prov-chip { border: 1px solid #d9d9d9; background: #fff; border-radius: 6px; padding: 5px 10px; font-size: 12px; cursor: pointer; transition: all .15s; }
.dist-prov-chip:hover:not(.disabled) { border-color: #409EFF; color: #409EFF; }
.dist-prov-chip.active { background: #409EFF; border-color: #409EFF; color: #fff; }
.dist-prov-chip.disabled { opacity: .45; cursor: not-allowed; background: #f5f5f5; }
.dist-prov-panel { padding: 12px 14px; border-radius: 8px; background: #f6f9ff; border: 1px solid #d6e4ff; font-size: 13px; }
.dist-prov-panel-geo { background: #fafafa; border-color: #eee; }
.dist-prov-panel-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.dist-prov-badge { font-size: 11px; padding: 2px 8px; border-radius: 10px; background: #e6f4ff; color: #0958d9; }
.dist-prov-badge.geo { background: #f5f5f5; color: #666; }
.dist-prov-row { display: flex; gap: 8px; align-items: baseline; margin-top: 6px; font-size: 12px; }
.dist-prov-row span { color: #888; min-width: 88px; }
.dist-prov-row code { font-size: 11px; word-break: break-all; }
.dist-prov-matrix { margin: 12px 0 0; font-size: 12px; }
.dist-prov-matrix summary { cursor: pointer; color: #666; user-select: none; }
.dist-matrix-tag { font-size: 11px; padding: 2px 6px; border-radius: 4px; white-space: nowrap; }
.dist-matrix-tag.write { background: #e6f4ff; color: #0958d9; }
.dist-matrix-tag.both { background: #f6ffed; color: #389e0d; }
.dist-matrix-tag.geo { background: #fff7e6; color: #d46b08; }
.dist-key-apply { margin-top: 10px; padding: 10px 12px; background: #fff; border: 1px dashed #d9d9d9; border-radius: 8px; }
.dist-key-apply-title { font-size: 11px; font-weight: 600; color: #888; margin-bottom: 8px; }
.dist-key-row { display: grid; grid-template-columns: minmax(120px, 1fr) 1fr auto auto; gap: 8px; align-items: center; padding: 4px 0; font-size: 12px; border-bottom: 1px solid #f5f5f5; }
.dist-key-row:last-child { border-bottom: none; }
.dist-key-row code { font-size: 11px; color: #c41d7f; }
.dist-key-where { font-size: 11px; color: #999; white-space: nowrap; }
.dist-key-link { font-size: 11px; white-space: nowrap; color: #1677ff; }
.dist-key-registry-table td { vertical-align: top; font-size: 12px; }
.dist-plat-keys { margin-top: 8px; padding-top: 8px; border-top: 1px dashed #eee; }
.dist-plat-key-line { font-size: 11px; margin: 3px 0; }
.dist-plat-key-line code { color: #c41d7f; margin-right: 6px; }
.dist-ark-config-card { margin-bottom: 20px; padding: 16px 18px; border: 1px solid #91caff; border-radius: 10px; background: linear-gradient(180deg, #f6f9ff 0%, #fff 100%); }
.dist-ark-settings-card { margin-bottom: 24px; border-width: 2px; box-shadow: 0 2px 14px rgba(22,119,255,.1); }
.dist-ark-config-stack { grid-template-columns: 1fr !important; max-width: 760px; }
.dist-ark-config-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.dist-ark-config-grid { margin-top: 0; }
.dist-ark-config-foot { margin: 12px 0 0; font-size: 12px; color: #666; line-height: 1.6; }
.dist-ark-config-foot code, .dist-ark-modal-hint code { font-size: 11px; }
.dist-ai-providers-stack { display: flex; flex-direction: column; gap: 14px; margin-bottom: 8px; }
.dist-ai-provider-card { padding: 14px 16px; border: 1px solid #e8e8e8; border-radius: 10px; background: #fafafa; }
.dist-ai-provider-card:hover { border-color: #d9d9d9; background: #fff; }
.dist-ai-provider-grid { margin-top: 10px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.dist-ai-prov-map { margin: 0 0 10px; }
.dist-ai-loose-section { margin-top: 8px; padding-top: 12px; border-top: 1px dashed #e8e8e8; }
.dist-ark-guide-table { width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 8px; }
.dist-ark-guide-table th, .dist-ark-guide-table td { border: 1px solid #e6f4ff; padding: 6px 8px; text-align: left; }
.dist-ark-guide-table th { background: #e6f4ff; font-weight: 600; }
.ykd-switch input:disabled + .ykd-switch-slider { opacity: 0.55; cursor: not-allowed; }
.ykd-modal-box h3 { margin-bottom: 16px; }
.ykd-art-pick { margin-bottom: 12px; display: flex; align-items: center; gap: 8px; font-size: 13px; }
.nav-sub { padding-left: 36px; }
.nav-sub .nav-item { padding: 8px 20px; font-size: 13px; }

/* 钱包 / 充值栏 */
.wallet-bar { display: flex; align-items: center; gap: 0; background: linear-gradient(135deg, #f9f0ff, #fff); border: 1px solid #d3adf7; border-radius: 24px; padding: 4px 6px 4px 16px; }
.wallet-item { display: flex; flex-direction: column; padding: 0 14px; line-height: 1.2; }
.wallet-label { font-size: 11px; color: #999; }
.wallet-item strong { font-size: 15px; color: #531dab; }
.wallet-money { color: #389e0d !important; }
.wallet-divider { width: 1px; height: 28px; background: #e8d5ff; }
.wallet-recharge { background: linear-gradient(135deg, #722ed1, #9254de); color: #fff; border: none; padding: 8px 18px; border-radius: 20px; cursor: pointer; font-size: 13px; margin-left: 8px; }

/* 首页 Pro */
.dash-page { background: transparent; padding: 0; }
.dash-hero { display: flex; justify-content: space-between; gap: 24px; background: linear-gradient(135deg, #1a0533 0%, #531dab 50%, #722ed1 100%); color: #fff; border-radius: 12px; padding: 28px 32px; margin-bottom: 20px; flex-wrap: wrap; }
.dash-hero h2 { font-size: 24px; margin-bottom: 8px; }
.dash-hero p { opacity: .85; font-size: 14px; margin-bottom: 16px; }
.dash-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.dash-hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; min-width: 280px; }
.dash-stat { background: rgba(255,255,255,.12); border-radius: 8px; padding: 12px 16px; }
.dash-stat span { font-size: 12px; opacity: .8; display: block; }
.dash-stat strong { font-size: 22px; }
.dash-stat em.up { color: #95de64; font-style: normal; font-size: 12px; }
.dash-stat em.down { color: #ff7875; font-style: normal; font-size: 12px; }
.dash-alert { background: #fff7e6; border: 1px solid #ffd591; color: #d46b08; padding: 10px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 13px; }
.dash-quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dash-quick-btn { padding: 12px; border: 1px solid #d3adf7; background: #f9f0ff; color: #531dab; border-radius: 8px; cursor: pointer; font-size: 13px; }
.dash-quick-btn:hover { background: #efdbff; }
.dash-model-row { display: flex; flex-wrap: wrap; gap: 10px; }
.dash-model-chip { display: flex; align-items: center; gap: 8px; background: #fafafa; border: 1px solid #f0f0f0; border-radius: 8px; padding: 6px 12px; font-size: 13px; }
.dash-schedule-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: end; }
.dash-schedule-grid label { display: block; font-size: 12px; color: #666; margin-bottom: 6px; }
.dash-schedule-grid select { width: 100%; padding: 8px; border: 1px solid #d9d9d9; border-radius: 6px; }
.ykd-media-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.ykd-btn-detail { padding: 2px 8px; font-size: 11px; border: 1px solid #91caff; background: #e6f4ff; color: #1677ff; border-radius: 2px; cursor: pointer; margin-left: 8px; }
.smart-match-banner { background: linear-gradient(135deg, #f9f0ff, #fff); border: 1px solid #d3adf7; border-radius: 8px; padding: 20px; margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.smart-match-banner h3 { margin-bottom: 6px; }
.report-hero { margin-bottom: 20px; }
.report-hero h2 { font-size: 22px; }
.report-model-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f5f5f5; }
.report-bar-wrap { flex: 1; height: 8px; background: #f0f0f0; border-radius: 4px; overflow: hidden; }
.report-bar { height: 100%; background: linear-gradient(90deg, #722ed1, #9254de); border-radius: 4px; }
.pro-chart .bar-label { display: block; font-size: 11px; color: #999; margin-top: 4px; }
.export-toolbar { display: flex; gap: 10px; margin-bottom: 16px; }
.export-plat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.export-plat-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px; border: 2px solid #f0f0f0; border-radius: 8px; cursor: pointer; text-align: center; position: relative; }
.export-plat-card input[type="checkbox"] { position: absolute; left: 10px; top: 10px; }
.export-plat-card:has(input:checked) { border-color: #722ed1; background: #f9f0ff; }
.export-plat-card em { font-size: 11px; color: #999; font-style: normal; }
.export-plat-logo { display: flex; align-items: center; justify-content: center; min-height: 52px; margin-top: 8px; }
.export-plat-name { font-size: 13px; font-weight: 600; line-height: 1.3; }
.publish-auto-card .ykd-b2b-head { align-items: center; }
.publish-auto-logo { flex-shrink: 0; display: flex; align-items: center; }
.ykd-plan-check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; line-height: 1.4; }
.ykd-media-left { flex: 1; min-width: 0; }
.pro-recharge .recharge-card { border-radius: 12px; }
.publish-auto-card { min-height: 180px; }
.ykd-plat-chip img { border-radius: 10px; object-fit: contain; background: #fff; }
.ykd-plat-chip .ykd-plat-img { box-shadow: 0 1px 4px rgba(0,0,0,.08); }

/* 代发任务大厅 · 管理员批量删除 */
.dispatch-admin-pick { position: absolute; top: 10px; right: 10px; }
.dispatch-card { position: relative; }

/* 写作队列 / 状态流转 / 线索漏斗 */
.flow-step-track { display: flex; gap: 6px; flex-wrap: wrap; }
.flow-step-pill { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 20px; border: 1px solid #e8e8e8; font-size: 12px; color: #999; background: #fafafa; }
.flow-step-pill.active { border-color: #722ed1; color: #722ed1; background: #f9f0ff; font-weight: 600; }
.flow-step-pill.done { border-color: #b7eb8f; color: #389e0d; background: #f6ffed; }
.flow-step-num { width: 18px; height: 18px; border-radius: 50%; background: #f0f0f0; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; }
.flow-step-pill.active .flow-step-num { background: #722ed1; color: #fff; }
.queue-progress-card { padding: 12px; background: #fafafa; border-radius: 8px; margin-bottom: 8px; border: 1px solid #f0f0f0; }
.lead-funnel { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.lead-funnel-step { text-align: center; padding: 12px 20px; background: #f9f0ff; border-radius: 10px; min-width: 90px; }
.lead-funnel-step strong { display: block; font-size: 22px; color: #722ed1; }
.lead-funnel-step span { font-size: 11px; color: #999; }
.lead-funnel-arrow { color: #ccc; font-size: 18px; }
.lead-funnel-compact .lead-funnel-mini { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.lead-funnel-panel { }
.funnel-bars { display: flex; flex-direction: column; gap: 10px; }
.funnel-bar-row { display: grid; grid-template-columns: 120px 1fr 100px; gap: 12px; align-items: center; }
.funnel-bar-label { font-size: 12px; }
.funnel-bar-label strong { display: block; color: #333; }
.funnel-bar-label span { color: #999; font-size: 11px; }
.funnel-bar-track { height: 24px; background: #f5f5f5; border-radius: 6px; overflow: hidden; }
.funnel-bar-fill { height: 100%; background: linear-gradient(90deg, #722ed1, #9254de); border-radius: 6px; min-width: 8px; transition: width .3s; }
.funnel-bar-meta { text-align: right; font-size: 12px; }
.funnel-bar-meta strong { font-size: 18px; color: #722ed1; margin-right: 4px; }
.funnel-rate { color: #52c41a; font-size: 11px; margin-left: 4px; }
.funnel-drop { display: block; color: #ff4d4f; font-size: 10px; font-style: normal; }
.funnel-trend-title { font-size: 12px; color: #666; margin-bottom: 8px; }
.funnel-trend-bars { display: flex; align-items: flex-end; gap: 4px; height: 80px; }
.funnel-trend-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; }
.funnel-trend-fill { width: 100%; background: #b37feb; border-radius: 3px 3px 0 0; min-height: 4px; }
.funnel-trend-col span { font-size: 9px; color: #999; margin-top: 4px; }
.funnel-source-table table { font-size: 13px; }
.funnel-source-table th { white-space: nowrap; }
.lead-webhook-panel { display: flex; flex-direction: column; gap: 14px; }
.lead-webhook-row label { display: block; font-size: 12px; font-weight: 600; color: #333; margin-bottom: 6px; }
.lead-webhook-copy { display: flex; gap: 8px; align-items: center; }
.lead-webhook-copy input { flex: 1; font-size: 12px; }
.lead-webhook-sample { background: #f5f5f5; padding: 12px; border-radius: 8px; font-size: 12px; overflow-x: auto; margin-top: 8px; }
.lead-overdue-banner .badge { background: #fff7e6; color: #d46b08; }
.readiness-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.readiness-item { padding: 8px 12px; border-radius: 6px; font-size: 13px; }
.readiness-item.ok { background: #f6ffed; color: #389e0d; }
.readiness-item.fail { background: #fff2f0; color: #cf1322; }
.live-scene-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.live-scene-card { display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 2px solid #f0f0f0; border-radius: 10px; cursor: pointer; }
.live-scene-card.selected { border-color: #722ed1; background: #f9f0ff; }
.live-scene-card em { font-size: 11px; color: #666; font-style: normal; }
.live-scene-card span { font-size: 10px; color: #999; }
.live-step-track { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.live-step-pill { padding: 8px 14px; border-radius: 20px; border: 1px solid #e8e8e8; background: #fff; font-size: 13px; cursor: pointer; color: #666; }
.live-step-pill.active { background: #722ed1; color: #fff; border-color: #722ed1; }
.live-step-pill.done { background: #f6ffed; color: #389e0d; border-color: #b7eb8f; }
.live-plat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
.live-plat-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px; border: 2px solid #f0f0f0; border-radius: 10px; cursor: pointer; text-align: center; transition: border-color .15s; }
.live-plat-card.selected { border-color: #722ed1; background: #f9f0ff; }
.live-plat-card em { font-size: 10px; color: #999; font-style: normal; line-height: 1.3; }
.live-plat-name { font-size: 13px; font-weight: 600; }
.live-vid-list { display: flex; flex-direction: column; gap: 8px; }
.live-vid-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #f0f0f0; border-radius: 8px; cursor: pointer; }
.live-vid-row.checked { border-color: #722ed1; background: #f9f0ff; }
.live-vid-row.disabled { opacity: .55; cursor: not-allowed; }
.live-vid-title { flex: 1; font-size: 13px; font-weight: 500; }
.live-obs-checklist { display: flex; flex-direction: column; gap: 12px; }
.live-obs-step { display: flex; gap: 12px; align-items: flex-start; padding: 12px; background: #fafafa; border-radius: 8px; }
.live-obs-num { width: 28px; height: 28px; border-radius: 50%; background: #722ed1; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.live-obs-step p { margin: 4px 0 0; font-size: 12px; color: #666; line-height: 1.6; }

/* 集成配置 */
.ykd-settings-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.ykd-settings-tab { padding: 8px 16px; border-radius: 8px; border: 1px solid #e8e8e8; cursor: pointer; background: #fff; font-size: 13px; color: #666; }
.ykd-settings-tab.active { background: #722ed1; color: #fff; border-color: #722ed1; }
.ykd-settings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.ykd-settings-field label { display: block; font-size: 13px; margin-bottom: 6px; color: #333; }
.ykd-settings-field label code { font-size: 11px; color: #999; margin-left: 4px; }
.ykd-settings-field input { width: 100%; }
.ykd-settings-status { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.ykd-settings-status-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; background: #fafafa; border-radius: 8px; font-size: 13px; }
.ykd-settings-cat-intro { margin-bottom: 16px; padding: 12px 14px; background: #f8fafc; border-radius: 8px; border: 1px solid #e8e8e8; }
.ykd-settings-steps { margin: 8px 0 10px; padding-left: 1.4em; font-size: 12px; color: #444; line-height: 1.75; }
.ykd-settings-steps li { margin-bottom: 4px; }
.ykd-settings-minreq { margin: 6px 0 0; font-size: 12px; color: #666; }
.ykd-settings-minreq code { background: #f0f0f0; padding: 1px 5px; border-radius: 4px; font-size: 11px; margin: 0 2px; }
.ykd-settings-altreq { color: #888; }
.ykd-settings-subgroup { margin-bottom: 20px; }
.ykd-settings-subgroup-title { font-size: 14px; font-weight: 600; color: #4338ca; margin: 0 0 10px; padding-bottom: 6px; border-bottom: 1px dashed #e8e8e8; }
.ykd-field-hint { margin: 6px 0 0; font-size: 11px; color: #666; line-height: 1.55; }
.ykd-field-example code, .ykd-field-req code { background: #f5f5f5; padding: 1px 4px; border-radius: 3px; font-size: 10px; }
.ykd-field-req { color: #888; font-size: 10px; }
.ykd-settings-apply-row { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 8px; }
.ykd-apply-link { font-size: 12px; color: #4338ca; text-decoration: none; white-space: nowrap; }
.ykd-apply-link:hover { text-decoration: underline; }

/* 工单弹窗 */
.ykd-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); z-index: 0; }
.ykd-modal-backdrop.hidden { display: none !important; }
.ykd-modal-backdrop.ykd-modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(0,0,0,.55);
}
.ykd-modal-card {
  position: relative; z-index: 1;
  background: #fff; padding: 0; border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,.2);
  width: min(720px, 100%); max-height: min(90vh, calc(100% - 32px)); overflow: auto;
}
.ykd-modal-card .card-header { padding: 16px 20px; border-bottom: 1px solid #f0f0f0; }
.ykd-modal-card .card-body { padding: 20px; overflow-x: auto; word-break: break-word; }
.ykd-plan-check { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid #f0f0f0; border-radius: 8px; margin-bottom: 8px; font-size: 13px; }
.ykd-plan-check input { flex-shrink: 0; }
.ykd-table th { background: #fafafa; font-weight: 500; }

.ykd-alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 13px; line-height: 1.6; }
.ykd-alert-warn { background: #fff7e6; border: 1px solid #ffd591; color: #ad6800; }
.ykd-alert-info { background: #e6f4ff; border: 1px solid #91caff; color: #0958d9; }
.ykd-sla-badge { display: inline-block; background: #f9f0ff; color: #722ed1; padding: 2px 8px; border-radius: 4px; font-size: 11px; margin-right: 6px; }
.ykd-mock-tag { font-style: normal; font-size: 10px; background: #fff1f0; color: #cf1322; padding: 1px 6px; border-radius: 4px; margin-left: 4px; }

/* 移动端 H5 适配 */
@media (max-width: 768px) {
  .sidebar { width: 56px; }
  .sidebar .nav-item span, .sidebar .nav-group-title, .sidebar-brand-text { display: none; }
  .sidebar .nav-item { justify-content: center; padding: 12px; }
  .main-content { margin-left: 56px; padding: 12px; }
  .page-header h2 { font-size: 18px; }
  .stat-row { grid-template-columns: repeat(2, 1fr) !important; gap: 8px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr !important; }
  .ykd-b2b-grid { grid-template-columns: 1fr !important; }
  .table-wrap { overflow-x: auto; }
  .ykd-modal-card { width: 96%; max-height: 90vh; overflow-y: auto; }
  .wallet-bar { flex-wrap: wrap; border-radius: 12px; }
  .dash-hero { padding: 16px; }
  .chart-area { overflow-x: auto; }
}
@media (max-width: 480px) {
  .sidebar { position: fixed; z-index: 200; transform: translateX(-100%); transition: transform .2s; width: 220px; }
  .sidebar.mobile-open { transform: translateX(0); }
  .sidebar.mobile-open .nav-item span, .sidebar.mobile-open .nav-group-title { display: inline; }
  .main-content { margin-left: 0; }
}

/* GEO 闭环增强 */
.geo-steps { display: flex; flex-direction: column; gap: 10px; }
.geo-step { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 12px; background: #fafafa; border: 1px solid #f0f0f0; cursor: pointer; transition: background .15s, box-shadow .15s; }
.geo-step:hover { background: #f0f5ff; box-shadow: 0 2px 8px rgba(67,56,202,.08); }
.geo-step.done { background: #f6ffed; border: 1px solid #b7eb8f; }
.geo-step-num { width: 32px; height: 32px; border-radius: 50%; background: var(--primary, #4338ca); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; flex-shrink: 0; }
.geo-step.done .geo-step-num { background: #52c41a; }
.geo-step-body { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.geo-step-body strong { font-size: 16px; font-weight: 600; color: #1f1f1f; }
.geo-step-body span { font-size: 13px; color: #666; line-height: 1.45; }
.geo-step-check { color: var(--primary, #4338ca); font-weight: 700; font-size: 18px; flex-shrink: 0; }
.geo-step.done .geo-step-check { color: #52c41a; }
.geo-exp-chart { display: flex; align-items: flex-end; gap: 8px; overflow-x: auto; padding: 12px 4px; min-height: 180px; }
.geo-exp-bar { display: flex; flex-direction: column; align-items: center; min-width: 64px; flex-shrink: 0; }
.geo-exp-fill { width: 32px; background: linear-gradient(180deg, #6366f1, #4338ca); border-radius: 6px 6px 0 0; min-height: 6px; transition: height .3s; }
.geo-exp-label { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 8px; font-size: 10px; text-align: center; }
.geo-exp-label .ykd-plat-img { width: 36px !important; height: 36px !important; border-radius: 10px !important; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.geo-exp-label em { font-style: normal; max-width: 56px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #666; }
.geo-exp-label strong { color: var(--primary, #4338ca); font-size: 11px; }
.geo-step-icon { width: 44px; height: 44px; border-radius: 10px; object-fit: contain; background: #fff; padding: 4px; box-shadow: 0 2px 6px rgba(0,0,0,.06); flex-shrink: 0; }
.geo-workflow-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.geo-workflow-head h3 { font-size: 18px; margin: 0; }
.geo-workflow-sub { margin: 4px 0 0; font-size: 13px; color: #888; }
.geo-onboard-card { margin-bottom: 18px; border-left: 4px solid var(--primary, #4338ca); }
.geo-onboard-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 12px; }
.geo-onboard-head h3 { font-size: 18px; font-weight: 600; margin: 0; }
.geo-onboard-sub { margin: 6px 0 0; font-size: 13px; color: #888; }
.geo-onboard-head-right { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.geo-onboard-progress { font-size: 14px; padding: 4px 10px; }
.geo-onboard-bar { height: 6px; background: #f0f0f0; border-radius: 3px; margin-bottom: 14px; overflow: hidden; }
.geo-onboard-bar-fill { height: 100%; background: linear-gradient(90deg, #4338ca, #52c41a); border-radius: 3px; transition: width .3s; }

/* 工单时间线 */
.ex-timeline { position: relative; padding-left: 20px; border-left: 2px solid #e8e8e8; margin: 8px 0; }
.ex-tl-item { position: relative; padding: 0 0 20px 16px; }
.ex-tl-dot { position: absolute; left: -27px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: #1677ff; border: 2px solid #fff; box-shadow: 0 0 0 2px #e6f4ff; }
.ex-tl-sla .ex-tl-dot { background: #fa8c16; }
.ex-tl-body strong { display: block; font-size: 14px; }
.ex-tl-time { font-size: 12px; color: #999; margin-left: 8px; }
.ex-tl-body p { margin: 6px 0 0; font-size: 13px; color: #666; word-break: break-all; }
.geo-onboard-phases { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.geo-onboard-phase { font-size: 13px; padding: 6px 12px; border-radius: 20px; background: #fafafa; border: 1px solid #eee; color: #666; }
.geo-onboard-phase.active { background: #e6f4ff; border-color: #91caff; color: #1677ff; font-weight: 600; }
.geo-onboard-phase.done { background: #f6ffed; border-color: #b7eb8f; color: #389e0d; }
.geo-onboard-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; }
@media (max-width: 1280px) { .geo-onboard-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 768px) { .geo-onboard-grid { grid-template-columns: repeat(2, 1fr); } }
.geo-ob-step { text-align: center; padding: 16px 12px; border-radius: 12px; background: #fafafa; border: 1px solid #eee; display: flex; flex-direction: column; align-items: center; min-height: 168px; }
.geo-ob-step.done { background: #f6ffed; border-color: #b7eb8f; }
.geo-ob-step-num { width: 36px; height: 36px; line-height: 36px; border-radius: 50%; background: #4338ca; color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.geo-ob-step.done .geo-ob-step-num { background: #52c41a; }
.geo-ob-step-title { font-size: 15px; font-weight: 600; display: block; margin-bottom: 6px; color: #1f1f1f; line-height: 1.3; }
.geo-ob-step-desc { font-size: 12px; color: #888; display: block; min-height: 36px; line-height: 1.5; margin-bottom: 10px; flex: 1; }
.geo-ob-badge { font-size: 12px; margin-top: auto; }
.geo-ob-btn { font-size: 13px; padding: 6px 14px; margin-top: auto; }
.geo-kyc-banner { background: #fff7e6; border: 1px solid #ffd591; padding: 10px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 13px; }

/* 代发任务大厅 */
.dispatch-tabs { display: flex; gap: 8px; margin-bottom: 16px; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.dispatch-tab { background: none; border: none; padding: 8px 16px; font-size: 14px; color: var(--text-secondary); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -9px; }
.dispatch-tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.dispatch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.dispatch-card { background: var(--card-bg); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); border: 1px solid var(--border); transition: box-shadow .2s; }
.dispatch-card:hover { box-shadow: 0 4px 16px rgba(114,46,209,.12); }
.dispatch-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.dispatch-card-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--text-secondary); margin: 8px 0; }
.dispatch-reward { color: #52c41a; font-weight: 600; }
.dispatch-card-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.dispatch-publish-target { background: linear-gradient(90deg,#f9f0ff,#fff); border:1px solid #d3adf7; border-radius:8px; padding:10px 12px; font-size:14px; font-weight:600; color:#531dab; margin-top:8px; }
.dispatch-modal-guide { background:#f9f0ff; border:1px solid #d3adf7; border-radius:10px; padding:14px 16px; }
.dispatch-modal-target span { display:block; font-size:12px; color:#722ed1; margin-bottom:4px; }
.dispatch-modal-target strong { font-size:18px; color:#531dab; }
.dispatch-earnings-bar { display:flex; align-items:center; justify-content:space-between; gap:12px; background:linear-gradient(90deg,#f6ffed,#fff); border:1px solid #b7eb8f; border-radius:10px; padding:12px 16px; margin-bottom:16px; flex-wrap:wrap; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal.hidden { display: none !important; }
.modal-content { background: #fff; border-radius: 12px; width: 100%; max-height: 90vh; overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,.2); }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.modal-header h3 { margin: 0; font-size: 16px; }
.modal-close { background: none; border: none; font-size: 24px; cursor: pointer; color: #999; line-height: 1; }
.modal-body { padding: 20px; }
.notif-bell { position: relative; background: none; border: none; cursor: pointer; padding: 6px 8px; margin-right: 4px; display: flex; align-items: center; }
.notif-bell-icon { display: block; }
.avatar-btn { border: none; background: none; padding: 0; cursor: pointer; border-radius: 50%; line-height: 0; }
.avatar-img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.12); transition: box-shadow .2s; }
.avatar-btn:hover .avatar-img { box-shadow: 0 4px 12px rgba(114,46,209,.35); }
.avatar-upload-row { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.avatar-upload-preview { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid #f0f0f0; }
.notif-badge { position: absolute; top: 0; right: 0; background: #ff4d4f; color: #fff; font-size: 10px; min-width: 16px; height: 16px; border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.notif-panel { position: absolute; top: 56px; right: 16px; width: 320px; max-height: 400px; background: #fff; border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,.12); z-index: 500; display: none; overflow: hidden; }
.notif-panel.open { display: block; }
.notif-panel-head { display: flex; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid #f0f0f0; }
.notif-panel-body { max-height: 340px; overflow-y: auto; }
.notif-item { padding: 12px 16px; border-bottom: 1px solid #f5f5f5; font-size: 13px; cursor: pointer; transition: background .15s; }
.notif-item:hover { background: #f0f5ff; }
.notif-item:active { background: #e6f4ff; }
.notif-item.unread { background: #f9f0ff; }
.notif-item.unread:hover { background: #efdbff; }
.notif-item-action { font-size: 11px; color: var(--primary); margin-top: 4px; }
.notif-item em { font-size: 11px; color: #999; font-style: normal; display: block; margin-top: 4px; }
.cal-event-row:hover { background: #f0f5ff; }
.login-remember, .login-agree { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #666; margin: 8px 0 12px; }
.header-right { position: relative; }

/* ── UX enhancements ── */
.sidebar-search-wrap { padding: 8px 12px 4px; position: relative; }
.sidebar-search { width: 100%; padding: 8px 28px 8px 10px; border: 1px solid #ffffff22; border-radius: 6px; background: #ffffff12; color: #fff; font-size: 13px; box-sizing: border-box; }
.sidebar-search-clear { position: absolute; right: 18px; top: 50%; transform: translateY(-58%); border: none; background: #ffffff22; color: #fff; width: 20px; height: 20px; border-radius: 50%; cursor: pointer; font-size: 14px; line-height: 1; padding: 0; }
.sidebar-search-clear:hover { background: #ffffff44; }
.sidebar-search::placeholder { color: #ffffff66; }
.sidebar-search:focus { outline: none; border-color: var(--primary); background: #ffffff18; }
.nav-group-toggle { cursor: pointer; user-select: none; display: flex; align-items: center; justify-content: space-between; }
.nav-group-toggle::after { content: '▾'; font-size: 10px; opacity: .6; }
.nav-group-collapsed .nav-group-toggle::after { content: '▸'; }
.nav-group-collapsed .nav-item { display: none !important; }
.nav-group-collapsed .nav-more { display: none !important; }
.nav-group-collapsed.nav-group-empty { display: none; }
.nav-filter-hidden { display: none !important; }
/* 折叠分组时仍会命中 .nav-item；展开「更多」时必须盖过这条 */
.nav-group:not(.nav-group-collapsed) .nav-more-check:checked ~ .nav-more-panel .nav-item.nav-sub,
.nav-group:not(.nav-group-collapsed) .nav-more.is-open .nav-item.nav-sub {
  display: flex !important;
}
.nav-group:not(.nav-group-collapsed) .nav-more-check:checked ~ .nav-more-panel .nav-item.nav-sub.hidden,
.nav-group:not(.nav-group-collapsed) .nav-more.is-open .nav-item.nav-sub.hidden,
.nav-group:not(.nav-group-collapsed) .nav-more-check:checked ~ .nav-more-panel .nav-item.nav-sub.nav-filter-hidden,
.nav-group:not(.nav-group-collapsed) .nav-more.is-open .nav-item.nav-sub.nav-filter-hidden {
  display: none !important;
}
.nav-item { position: relative; }
.nav-item[title]:hover::after { content: attr(title); display: none; }
.breadcrumb .bc-group { color: var(--text-secondary); font-weight: 400; }
.breadcrumb .bc-sep { margin: 0 6px; color: #ccc; }
.global-article-select { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.global-article-select label { color: var(--text-secondary); white-space: nowrap; }
.global-article-select select { max-width: 160px; padding: 4px 6px; font-size: 12px; border-radius: 4px; border: 1px solid #d9d9d9; }
.global-article-select select.ux-article-empty { border-color: #ffa39e; }
.plan-expired-banner { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 10px 16px; background: #fff2f0; border-bottom: 1px solid #ffccc7; color: #cf1322; font-size: 13px; }
.global-job-bar { background: #e6f4ff; border-bottom: 1px solid #91caff; padding: 8px 16px; }
.global-job-inner { max-width: 960px; margin: 0 auto; }
.global-job-top { display: flex; justify-content: space-between; font-size: 13px; font-weight: 500; }
.global-job-msg { font-size: 12px; color: #666; margin: 4px 0 8px; }
.global-job-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.global-job-bar .progress-bar { height: 6px; background: #d6e4ff; border-radius: 3px; }
.toast-stack { position: fixed; bottom: 24px; right: 24px; z-index: 10000; display: flex; flex-direction: column; gap: 8px; max-width: min(420px, 92vw); }
.toast-item { background: #333; color: #fff; padding: 12px 16px; border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,.2); font-size: 14px; display: flex; align-items: center; gap: 12px; animation: toastIn .2s ease; }
.toast-item.error { background: #ff4d4f; }
.toast-item.toast-out { opacity: 0; transform: translateY(8px); transition: .25s; }
.toast-action { background: rgba(255,255,255,.2); border: none; color: #fff; padding: 4px 10px; border-radius: 4px; cursor: pointer; font-size: 12px; white-space: nowrap; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } }
.ux-empty-state { text-align: center; padding: 32px 16px; color: #999; }
.ux-empty-actions { display: flex; gap: 8px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.ux-modal-card { max-width: 480px; width: 100%; margin: 0; padding: 24px; position: relative; }
.ux-modal-hint { color: #666; font-size: 13px; margin: 8px 0 16px; line-height: 1.6; }
.ux-modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }
.ux-modal-x { position: absolute; top: 12px; right: 12px; border: none; background: none; font-size: 22px; cursor: pointer; color: #999; }
.ux-welcome-steps { margin: 12px 0 20px 20px; color: #444; line-height: 1.8; font-size: 14px; }
.recharge-disabled { opacity: .55; pointer-events: none; position: relative; }
.recharge-min-tag { font-size: 11px; color: #ff4d4f; margin: 4px 0; }
.mobile-bottom-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid #f0f0f0; z-index: 120; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); justify-content: space-around; box-shadow: 0 -2px 12px rgba(0,0,0,.06); }
.mobile-tab { flex: 1; border: none; background: none; font-size: 12px; color: #666; padding: 8px 4px; cursor: pointer; }
.mobile-tab.active { color: var(--primary); font-weight: 600; }
@media (max-width: 768px) {
  .global-article-select { display: none; }
  .mobile-bottom-nav { display: flex; }
  .content { padding-bottom: 72px; }
  .nav-item svg + * { pointer-events: none; }
  .sidebar .nav-item { title: attr(data-nav-label); }
}
@media (max-width: 1100px) {
  .global-article-select select { max-width: 120px; }
}

/* 账号权益：套餐 vs 充值双路径 */
.account-page-sub { font-size: 13px; color: var(--text-secondary); margin: 4px 0 0; }
.account-notice-banner { background: #fff7e6; border: 1px solid #ffd591; border-radius: 8px; padding: 12px 16px; margin-bottom: 16px; color: #ad6800; font-size: 13px; line-height: 1.65; }
.account-plan-active-hint { font-size: 13px; color: #666; margin: 0 0 12px; }
.account-path-strip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; padding: 12px 16px; background: #f8f9fb; border-radius: 8px; border: 1px solid var(--border); }
.account-path-step { font-size: 13px; padding: 6px 12px; border-radius: 20px; background: #fff; border: 1px solid var(--border); color: #666; }
.account-path-step.active { background: var(--primary-light); border-color: var(--primary); color: var(--primary); font-weight: 600; }
.account-path-step.done { background: #f6ffed; border-color: #b7eb8f; color: #389e0d; }
.account-path-step.muted { opacity: .55; }
.account-path-arrow { color: #bbb; font-size: 12px; }
.account-plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.account-plan-card { position: relative; border: 1px solid var(--border); border-radius: 10px; padding: 16px; background: #fff; }
.account-plan-popular { border-color: var(--primary); box-shadow: 0 0 0 1px rgba(22,119,255,.15); }
.account-plan-current { background: #f6ffed; border-color: #b7eb8f; }
.account-plan-badge { position: absolute; top: 10px; right: 10px; font-size: 10px; padding: 2px 8px; border-radius: 10px; background: var(--primary); color: #fff; }
.account-plan-badge.current { background: #52c41a; }
.account-plan-badge.oem { background: #389e0d; }
.account-plan-oem { border-color: #b7eb8f; background: linear-gradient(180deg, #fcfff8 0%, #fff 60%); }
.account-plan-card h4 { margin: 0 0 8px; font-size: 16px; }
.account-plan-price { font-size: 24px; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.account-plan-price small { font-size: 12px; font-weight: normal; color: #999; }
.account-plan-feats { margin: 0 0 14px; padding-left: 18px; font-size: 12px; color: #666; line-height: 1.8; }
.account-recharge-locked { opacity: .72; position: relative; }
.account-recharge-locked .card-body { pointer-events: none; user-select: none; }
.account-recharge-lock-msg { background: #fff1f0; border: 1px solid #ffccc7; color: #cf1322; padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 14px; pointer-events: auto; }

/* 账号权益 · 分区框架 */
.account-shell { max-width: 1200px; }
.account-hero { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; padding: 20px 24px; background: linear-gradient(135deg, #f8f9fb 0%, #fff 100%); border: 1px solid var(--border); border-radius: 12px; }
.account-hero-main { flex: 1; min-width: 260px; }
.account-hero-main h2 { margin: 0 0 6px; font-size: 22px; }
.account-profile-chip { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: #fff; border: 1px solid var(--border); border-radius: 10px; min-width: 240px; }
.account-profile-chip .avatar-upload-preview { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.account-section-label { font-size: 13px; font-weight: 600; color: #888; text-transform: uppercase; letter-spacing: .04em; margin: 24px 0 12px; padding-left: 4px; border-left: 3px solid var(--primary); padding-left: 10px; }
.account-stat-row { grid-template-columns: repeat(5, 1fr); margin-bottom: 16px; }
.account-overview-grid { margin-bottom: 8px; }
.account-commerce-zone { display: grid; grid-template-columns: 1fr; gap: 16px; }
.account-commerce-zone .account-plan-section { margin: 0; }
.account-services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-bottom: 8px; }
.account-delivery-card { margin-bottom: 16px; }
.export-ins-item { padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.export-ins-item:last-child { border-bottom: none; }
@media (max-width: 900px) {
  .account-stat-row { grid-template-columns: repeat(2, 1fr); }
  .account-hero { flex-direction: column; }
}

/* 资金中心 */
.wallet-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.wallet-tab { border: 1px solid var(--border); background: #fff; padding: 8px 16px; border-radius: 8px; cursor: pointer; font-size: 13px; }
.wallet-tab.active { background: var(--primary-light); border-color: var(--primary); color: var(--primary); font-weight: 600; }
.wallet-notes { margin: 0 0 16px 20px; font-size: 12px; color: #888; line-height: 1.8; }

/* 代发大厅 · 双角色 */
.dispatch-role-banner { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.dispatch-role-card { border-radius: 10px; padding: 14px 16px; font-size: 13px; }
.dispatch-role-card.brand { background: #e6f4ff; border: 1px solid #91caff; }
.dispatch-role-card.kol { background: #f9f0ff; border: 1px solid #d3adf7; }
.dispatch-role-card p { margin: 6px 0 0; color: #666; font-size: 12px; }
.publish-auto-card.publish-auto-disabled { opacity: 0.55; }
.publish-auto-card.publish-auto-disabled button { cursor: not-allowed; }
@media (max-width: 768px) {
  .dispatch-role-banner { grid-template-columns: 1fr; }
}

/* 信源知识图谱 */
.source-graph-wrap { width: 100%; min-height: 420px; background: linear-gradient(180deg, #fafafa 0%, #fff 100%); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-top: 12px; }
.source-graph-svg { width: 100%; height: auto; display: block; }
.sg-interactive-wrap { position: relative; padding: 8px 8px 12px; }
.sg-graph-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.sg-graph-tip { font-size: 12px; color: var(--text-secondary); margin-left: auto; }
.sg-graph-stage { border-radius: 8px; overflow: hidden; transition: transform .35s ease; }
.sg-graph-stage canvas { width: 100%; display: block; cursor: grab; }
.sg-graph-stage.sg-3d-mode { transform: perspective(900px) rotateX(12deg); }
.sg-3d-mode canvas { box-shadow: 0 24px 48px rgba(0,0,0,.12); }
.sg-stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 12px; }
.sg-stat { background: var(--primary-light); border-radius: 8px; padding: 12px; text-align: center; }
.sg-stat em { display: block; font-style: normal; font-size: 22px; font-weight: 700; color: var(--primary); }
.sg-stat span { font-size: 12px; color: var(--text-secondary); }
.sg-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: #666; margin-bottom: 4px; }
.sg-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.sg-legend-item i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.sg-hints { margin: 12px 0 0; padding-left: 20px; font-size: 13px; color: #666; line-height: 1.8; }
.sg-node { cursor: default; }
@media (max-width: 768px) {
  .sg-stat-row { grid-template-columns: repeat(2, 1fr); }
}

/* ── 全渠道发布 / 系统设置模块 ── */
.dist-page .dist-hero { margin-bottom: 16px; }
.dist-page .dist-hero h2 { margin: 0 0 6px; font-size: 22px; font-weight: 700; }
.dist-page .dist-hero p { margin: 0; color: var(--text-secondary); font-size: 14px; }
.dist-subnav-btn { margin-right: 8px; margin-bottom: 8px; }
.dist-subnav-btn.active { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }
.dist-alert { margin-bottom: 16px; font-size: 13px; line-height: 1.7; }
.dist-plat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.dist-plat-card-ark { grid-column: 1 / -1; max-width: 100%; }
.dist-plat-key-label { font-size: 11px; color: #666; }
.dist-ark-geo-card { margin: 0; }
.dist-ark-apply-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.dist-ark-apply-chip { font-size: 12px; padding: 4px 10px; border: 1px solid #91caff; border-radius: 6px; background: #f0f7ff; text-decoration: none; }
.dist-ark-apply-chip:hover { background: #e6f4ff; }
.dist-ark-geo-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.dist-plat-card { border: 1px solid #f0f0f0; border-radius: 12px; padding: 16px; background: #fff; transition: box-shadow .2s, border-color .2s; }
.dist-plat-card.is-ready { border-color: #b7eb8f; background: #f6ffed; }
.dist-plat-card.is-mock { border-color: #ffe58f; background: #fffbe6; }
.dist-plat-card-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.dist-plat-card-head strong { display: block; font-size: 15px; }
.dist-plat-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.dist-plat-stats em { display: block; font-style: normal; font-size: 11px; color: #999; }
.dist-plat-stats strong { font-size: 18px; color: var(--primary); }
.dist-plat-hint { margin: 0 0 10px; font-size: 12px; color: #666; line-height: 1.5; min-height: 36px; }
.dist-hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.dist-hub-tile { border: 1px solid #f0f0f0; border-radius: 12px; padding: 18px; cursor: pointer; background: #fff; transition: transform .15s, box-shadow .15s; }
.dist-hub-tile:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.06); border-color: #91caff; }
.dist-hub-icon { display: block; width: 44px; height: 44px; margin-bottom: 10px; border-radius: 12px; object-fit: contain; flex-shrink: 0; }
.dist-hub-tile h3 { margin: 0 0 6px; font-size: 16px; }
.dist-hub-tile p { margin: 0 0 12px; font-size: 13px; color: #666; line-height: 1.5; min-height: 40px; }
.dist-hub-tile footer { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.dist-hub-count { color: #999; }
.dist-hub-go { color: var(--primary); font-weight: 600; }
.dist-ai-readonly-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.dist-ai-readonly-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid #f0f0f0; border-radius: 10px; background: #fafafa; }
.dist-ai-readonly-card.ok { border-color: #b7eb8f; background: #f6ffed; }
.dist-app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.dist-app-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #f5f5f5; cursor: pointer; }
.dist-app-row:last-child { border-bottom: none; }
.dist-app-row em { display: block; font-style: normal; font-size: 11px; color: #999; margin-top: 2px; }
.dist-ai-model-card { overflow: hidden; }
.dist-ai-model-table th { white-space: nowrap; font-size: 13px; }
.dist-ai-model-table td { vertical-align: middle; }
.dist-model-code { font-size: 12px; background: #f5f5f5; padding: 2px 6px; border-radius: 4px; word-break: break-all; }
.dist-default-badge { display: inline-block; padding: 2px 10px; border-radius: 4px; background: #f6ffed; color: #389e0d; border: 1px solid #b7eb8f; font-size: 12px; font-weight: 600; }
.dist-platform-badge { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 4px; background: #e6f4ff; color: #0958d9; border: 1px solid #91caff; font-size: 11px; font-weight: 600; vertical-align: middle; }
.dist-readonly-tag { font-size: 12px; color: #999; }
.dist-ai-section-row td { background: #fafafa; padding: 10px 16px !important; border-top: 1px solid #f0f0f0; }
.dist-ai-section-label { font-size: 12px; font-weight: 600; color: #666; }
.dist-ai-row-platform { background: #fcfcfc; }
.dist-ai-model-foot { margin: 0; padding: 12px 18px 16px; font-size: 12px; border-top: 1px solid #f5f5f5; }
.dist-test-ok { color: #389e0d; font-weight: 600; }
.dist-test-fail { color: #cf1322; font-weight: 600; }
.dist-test-unknown { color: #999; }
.dist-ai-ops { display: flex; flex-wrap: wrap; gap: 6px; }
.dist-ai-model-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid #f0f0f0; background: #fafafa; }
.dist-btn-add { background: var(--primary); color: #fff; border: none; border-radius: 6px; padding: 8px 18px; font-size: 14px; font-weight: 600; cursor: pointer; }
.dist-btn-add:hover { filter: brightness(1.05); }

/* ── 界面设置 ── */
.dist-if-tabs { display: flex; gap: 0; border-bottom: 2px solid #f0f0f0; margin-bottom: 20px; }
.dist-if-tab { background: none; border: none; padding: 12px 20px; font-size: 14px; font-weight: 500; color: var(--text-secondary); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: color .2s, border-color .2s; }
.dist-if-tab:hover { color: var(--primary); }
.dist-if-tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.dist-theme-presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.dist-theme-preset-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 12px; border: 2px solid #f0f0f0; border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.dist-theme-preset-card:hover { border-color: #91caff; box-shadow: 0 4px 12px rgba(0,0,0,.06); }
.dist-theme-preset-card.active { border-color: var(--primary); background: var(--primary-light); }
.dist-theme-swatch { display: block; width: 100%; height: 48px; border-radius: 8px; border: 1px solid rgba(0,0,0,.06); }
.dist-theme-preset-label { font-size: 14px; font-weight: 600; }
.dist-theme-preset-card code { font-size: 11px; color: #999; background: none; }
.dist-theme-custom { display: flex; flex-direction: column; gap: 14px; }
.dist-theme-field { display: grid; grid-template-columns: 100px 48px 1fr; gap: 10px; align-items: center; }
.dist-theme-field label { font-size: 13px; color: #666; }
.dist-theme-field input[type="color"] { width: 48px; height: 36px; padding: 2px; border: 1px solid #d9d9d9; border-radius: 6px; cursor: pointer; }
.dist-color-text { font-family: monospace; font-size: 13px; }
.dist-theme-preview { display: flex; gap: 12px; margin-top: 8px; padding: 16px; background: #fafafa; border-radius: 10px; border: 1px solid #f0f0f0; }
.dist-theme-preview-sidebar { width: 120px; padding: 16px 12px; border-radius: 8px; background: var(--sidebar-bg); color: var(--sidebar-text, #ffffffa6); font-size: 12px; }
.dist-theme-preview-main { flex: 1; display: flex; align-items: center; justify-content: center; }
.dist-perm-list-card { overflow: hidden; }
.dist-perm-list { display: flex; flex-direction: column; }
.dist-perm-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid #f5f5f5; }
.dist-perm-row:last-child { border-bottom: none; }
.dist-perm-info strong { display: block; font-size: 15px; margin-bottom: 4px; }
.dist-perm-info p { margin: 0 0 4px; font-size: 13px; color: #666; line-height: 1.5; }
.dist-perm-meta { font-size: 11px; color: #999; }
.dist-perm-scope { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 4px; background: #fff7e6; color: #d46b08; border: 1px solid #ffd591; font-size: 11px; font-weight: 600; vertical-align: middle; }
.nav-group-all-hidden { display: none; }
.dist-aeo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.dist-aeo-stat { padding: 12px; border: 1px solid #f0f0f0; border-radius: 10px; background: #fafafa; text-align: center; }
.dist-aeo-stat em { display: block; font-style: normal; font-size: 11px; color: #999; margin-bottom: 6px; }
.dist-aeo-stat strong { font-size: 22px; font-weight: 700; }
.dist-aeo-foot { margin: 12px 0 0; font-size: 12px; line-height: 1.6; }
.dist-aeo-card { margin-bottom: 16px; }

.manual-qr-upload-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.manual-qr-preview { width: 88px; height: 88px; object-fit: contain; border: 1px solid #f0f0f0; border-radius: 8px; background: #fafafa; }
.manual-pay-modal code { user-select: all; }

/* ── GEO AI 环形转盘（诊断页：针对性 AI 转圈圈） ── */
.geo-ai-orbit {
  --orbit-size: min(420px, 88vw);
  --orbit-r: calc(var(--orbit-size) * 0.38);
  margin: 0 0 20px;
  padding: 20px 16px 16px;
  border-radius: 16px;
  background: radial-gradient(ellipse at 50% 40%, #3b1d7a 0%, #1a0b3a 55%, #12082c 100%);
  color: #fff;
  overflow: hidden;
  position: relative;
}
.geo-ai-orbit-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap;
  margin-bottom: 4px; position: relative; z-index: 2;
}
.geo-ai-orbit-head strong { font-size: 15px; display: block; }
.geo-ai-orbit-head .ykd-hint { color: rgba(255,255,255,.65) !important; margin: 4px 0 0; font-size: 12px; }
.geo-ai-orbit-stage {
  position: relative;
  width: var(--orbit-size);
  height: var(--orbit-size);
  margin: 0 auto;
}
.geo-ai-orbit-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 0 40px rgba(124,58,237,.25) inset;
}
.geo-ai-orbit.is-spinning .geo-ai-orbit-ring { animation: geoOrbitSpin 16s linear infinite; }
.geo-ai-orbit.is-spinning.fast .geo-ai-orbit-ring { animation-duration: 6s; }
@keyframes geoOrbitSpin { to { transform: rotate(360deg); } }
.geo-ai-orbit-node {
  --n: 12;
  position: absolute; left: 50%; top: 50%;
  width: 52px; height: 52px; margin: -26px;
  transform: rotate(calc(var(--i) * 360deg / var(--n))) translateY(calc(var(--orbit-r) * -1));
  opacity: .5;
}
.geo-ai-orbit-node-inner {
  width: 100%; height: 100%; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(255,255,255,.2), 0 4px 16px rgba(0,0,0,.25);
  display: flex; align-items: center; justify-content: center;
  /* 抵消节点外圈的角度，静态时正向；父 ring 旋转时再反向抵消 */
  transform: rotate(calc(var(--i) * -360deg / var(--n)));
  transition: box-shadow .2s, transform .2s, filter .2s;
}
.geo-ai-orbit.is-spinning .geo-ai-orbit-node-inner { animation: geoOrbitSpin 16s linear infinite reverse; }
.geo-ai-orbit.is-spinning.fast .geo-ai-orbit-node-inner { animation-duration: 6s; }
.geo-ai-orbit-node img { width: 28px; height: 28px; object-fit: contain; border-radius: 6px; }
.geo-ai-orbit-node.is-ready { opacity: 1; }
.geo-ai-orbit-node.is-ready .geo-ai-orbit-node-inner {
  box-shadow: 0 0 0 2px #52c41a, 0 0 18px rgba(82,196,26,.55);
}
.geo-ai-orbit-node.is-target { opacity: 1; }
.geo-ai-orbit-node.is-target .geo-ai-orbit-node-inner {
  box-shadow: 0 0 0 2px #b37feb, 0 0 18px rgba(179,127,235,.5);
}
.geo-ai-orbit-node.is-scanning { opacity: 1; z-index: 3; }
.geo-ai-orbit-node.is-scanning .geo-ai-orbit-node-inner {
  box-shadow: 0 0 0 3px #fff, 0 0 28px rgba(255,255,255,.9), 0 0 44px rgba(124,58,237,.85);
  filter: brightness(1.15);
  transform: rotate(calc(var(--i) * -360deg / var(--n))) scale(1.16);
}
.geo-ai-orbit.is-spinning .geo-ai-orbit-node.is-scanning .geo-ai-orbit-node-inner {
  animation: geoOrbitSpin 16s linear infinite reverse, geoOrbitPulse .85s ease-in-out infinite;
}
.geo-ai-orbit.is-spinning.fast .geo-ai-orbit-node.is-scanning .geo-ai-orbit-node-inner {
  animation-duration: 6s, .7s;
}
@keyframes geoOrbitPulse {
  0%, 100% { filter: brightness(1.05); }
  50% { filter: brightness(1.35); }
}
.geo-ai-orbit-core {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  pointer-events: none; z-index: 1; text-align: center;
}
.geo-ai-orbit-core strong {
  font-size: clamp(28px, 5vw, 42px); font-weight: 800; letter-spacing: .06em;
  text-shadow: 0 0 22px rgba(196,181,253,.85);
}
.geo-ai-orbit-core span {
  margin-top: 8px; font-size: 12px; color: rgba(255,255,255,.72); max-width: 180px; line-height: 1.4;
}
.geo-ai-orbit-legend {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin-top: 10px; position: relative; z-index: 2;
}
.geo-ai-orbit-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,.1); font-size: 11px; color: rgba(255,255,255,.75);
}
.geo-ai-orbit-chip.is-ready { background: rgba(82,196,26,.2); color: #b7eb8f; }
.geo-ai-orbit-chip.is-scanning { background: rgba(255,255,255,.28); color: #fff; }
.geo-ai-orbit-chip img { width: 14px; height: 14px; border-radius: 3px; }
@media (max-width: 520px) {
  .geo-ai-orbit { --orbit-size: min(320px, 92vw); }
  .geo-ai-orbit-node { width: 42px; height: 42px; margin: -21px; }
  .geo-ai-orbit-node img { width: 22px; height: 22px; }
}

/* OEM 贴牌经营台 / 四步验收 */
.oem-pool-banner {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
  margin-bottom: 16px; padding: 14px 16px; border-radius: 10px;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%); color: #fff;
}
.oem-pool-item { text-align: center; }
.oem-pool-item em { display: block; font-style: normal; font-size: 12px; opacity: .7; margin-bottom: 4px; }
.oem-pool-item strong { font-size: 22px; font-weight: 700; }
.oem-menu-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.oem-menu-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 13px; cursor: pointer;
}
.oem-step-tag { font-size: 10px; color: #999; margin-left: 4px; }
.oem-ops { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.oem-more { position: relative; }
.oem-more summary { list-style: none; cursor: pointer; padding: 4px 10px; border: 1px solid #d9d9d9; border-radius: 6px; font-size: 12px; }
.oem-more[open] summary { border-color: #1677ff; color: #1677ff; }
.oem-more > button { display: block; width: 100%; margin-top: 4px; text-align: left; }
.oem-incl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.oem-incl-cell {
  border: 1px solid #f0f0f0; border-radius: 10px; padding: 12px 8px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 4px; background: #fafafa;
}
.oem-incl-cell strong { font-size: 12px; }
.oem-incl-cell em { font-style: normal; font-size: 18px; font-weight: 700; color: #1677ff; }
.oem-incl-cell span { font-size: 11px; color: #999; }
.oem-incl-cell.compact { padding: 8px 4px; }
.oem-cost-hint { margin-left: 10px; font-size: 12px; color: #8c8c8c; }
.oem-vip-badge { margin-left: 6px; }
.oem-vip {
  display: inline-block; font-size: 11px; padding: 1px 8px; border-radius: 999px;
  background: #fff7e6; color: #d48806; border: 1px solid #ffd591; white-space: nowrap;
}
.oem-vip.expired { background: #fff1f0; color: #cf1322; border-color: #ffa39e; }
.oem-wf-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.oem-wf-step {
  border: 1px dashed #d9d9d9; border-radius: 10px; padding: 12px; text-align: center; background: #fafafa;
}
.oem-wf-step.active { border-color: #1677ff; background: #e6f4ff; }
.oem-wf-step span {
  display: inline-flex; width: 24px; height: 24px; border-radius: 50%; align-items: center; justify-content: center;
  background: #1677ff; color: #fff; font-size: 12px; margin-bottom: 6px;
}
.oem-wf-step strong { display: block; font-size: 13px; }
.oem-wf-step em { display: block; font-style: normal; font-size: 11px; color: #999; margin-top: 4px; }
.oem-wm-bar { padding: 8px 12px; background: #f5f5f5; border-left: 3px solid #1677ff; margin-bottom: 12px; font-size: 13px; color: #666; }
.oem-four-steps { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 900px) {
  .oem-pool-banner { grid-template-columns: repeat(2, 1fr); }
  .oem-wf-steps { grid-template-columns: 1fr 1fr; }
}

/* GEO 智能体 · 账灵式对话指挥台 */
.ga-zhangling .ga-zl-head h2 { margin: 0 0 4px; font-size: 22px; }
.ga-zhangling .ga-zl-head p { margin: 0; color: #666; font-size: 13px; }
.ga-zl-status { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0 16px; }
.ga-status-pill {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; border: 1px solid #e8e8e8; background: #fafafa; color: #666;
}
.ga-status-pill.ok { background: #f6ffed; border-color: #b7eb8f; color: #389e0d; }
.ga-status-pill.warn { background: #fff7e6; border-color: #ffd591; color: #d46b08; }
.ga-status-pill.muted { background: #f5f5f5; color: #888; }
.ga-status-pill em { font-style: normal; margin-left: 4px; opacity: .72; font-size: 11px; }
.ga-status-pill-btn { cursor: pointer; font: inherit; }
.ga-status-pill-btn:hover { filter: brightness(0.98); }
.ga-status-link { font-size: 12px; margin-left: 4px; }
.ga-boundary-note {
  margin: 6px 0 0; font-size: 12px; color: #8c8c8c; line-height: 1.5;
}
.ga-points-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  margin: 12px 0 4px; padding: 10px 14px; border-radius: 10px;
  background: #f9f0ff; border: 1px solid #efdbff; font-size: 13px; color: #531dab;
}
.ga-points-bar strong { color: #722ed1; }
.ga-points-sep { opacity: .45; }
.ga-points-recharge {
  margin-left: auto; border: none; background: transparent; color: #722ed1;
  font-size: 12px; font-weight: 600; cursor: pointer; padding: 0;
}
.ga-points-recharge:hover { text-decoration: underline; }
.ga-metrics-hint, .ga-metrics-hint-bar {
  margin: 0 0 10px; font-size: 12px; color: #8c8c8c; line-height: 1.5;
}
.ga-setup-sticky {
  position: sticky; top: 0; z-index: 5; cursor: pointer;
  margin: 0 0 10px; padding: 10px 14px; border-radius: 8px;
  background: #fff7e6; border: 1px solid #ffd591; color: #ad6800;
  font-size: 13px; font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.ga-setup-sticky.hidden { display: none; }
.ga-setup-sticky:hover { background: #fff1d6; }
.ga-plan-primary-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 8px 0 10px;
}
.ga-plan-main-cta { font-weight: 700; min-height: 40px; padding: 0 18px; }
.ga-plan-primary-note { font-size: 12px; color: #8c8c8c; }
.ga-plan-more { margin-top: 4px; }
.ga-plan-more > summary {
  cursor: pointer; font-size: 13px; color: #1677ff; font-weight: 600; list-style: none;
}
.ga-plan-more > summary::-webkit-details-marker { display: none; }
.ga-prompt-primary {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; width: 100%;
}
.ga-prompt-more > summary {
  cursor: pointer; font-size: 13px; color: #1677ff; font-weight: 600;
}
.ga-prompt-more .ga-ask-actions { margin-top: 8px; }
.ga-mission-confirm-tip {
  margin-top: 6px; font-size: 12px; color: #d48806;
}
.ga-est-points { color: #722ed1; font-size: 15px; }
.ga-zl-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: stretch;
  margin-bottom: 16px;
}
@media (max-width: 960px) {
  .ga-zl-workspace { grid-template-columns: 1fr; }
}
/* 会话卡：上滚动区 + 下输入区，用 grid 避免输入区叠在气泡上 */
.ga-zl-chat {
  margin-bottom: 0; overflow: hidden;
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) auto;
  height: calc(100vh - 168px); min-height: 480px; max-height: calc(100vh - 120px);
}
.ga-zl-chat-wide { min-height: 480px; }
.ga-chat-mid {
  grid-row: 1; min-height: 0; max-height: 100%;
  overflow-y: auto !important; overflow-x: hidden;
  display: flex; flex-direction: column; background: #f7f8fa;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 16px;
}
.ga-chat-mid .ga-chat-log > .ga-chat-bubble:last-child {
  margin-bottom: 8px;
}
.ga-kw-preview-box, .ga-kw-preview-list {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px;
  max-height: 220px; overflow-y: auto; padding: 2px 0;
}
.ga-kw-chip {
  display: inline-block; font-size: 12px; line-height: 1.4;
  padding: 4px 8px; border-radius: 6px;
  background: #f0f7ff; border: 1px solid #91caff; color: #0958d9;
}
.ga-kw-more { font-size: 11px; color: #888; align-self: center; }
.ga-blockers {
  margin: 8px 0 10px; padding: 10px; border-radius: 10px;
  background: #fff2f0; border: 1px solid #ffccc7;
}
.ga-blockers-title { font-size: 13px; font-weight: 600; color: #cf1322; margin-bottom: 8px; }
.ga-blocker {
  display: block; width: 100%; text-align: left; margin-bottom: 6px;
  padding: 8px 10px; border-radius: 8px; border: 1px solid #ffccc7;
  background: #fff; cursor: pointer; font: inherit;
}
.ga-blocker:last-child { margin-bottom: 0; }
.ga-blocker strong { display: block; font-size: 13px; color: #a8071a; }
.ga-blocker em { display: block; font-style: normal; font-size: 12px; color: #8c8c8c; margin-top: 2px; }
.ga-blocker-warn { border-color: #ffe58f; background: #fffbe6; }
.ga-blocker-warn strong { color: #d48806; }
.ga-receipt {
  margin-top: 8px; padding: 12px; border-radius: 12px;
  background: linear-gradient(180deg, #f0f7ff 0%, #fff 40%);
  border: 1px solid #91caff;
}
.ga-receipt-head {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline;
  justify-content: space-between; margin-bottom: 10px;
}
.ga-receipt-head strong { font-size: 14px; color: #0958d9; }
.ga-receipt-head span { font-size: 12px; color: #666; }
.ga-eff-delta { font-weight: 700; margin-left: 4px; }
.ga-eff-delta.up { color: #389e0d; }
.ga-eff-delta.down { color: #cf1322; }
.ga-receipt-sec { margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px dashed #e6f4ff; }
.ga-receipt-sec:last-of-type { border-bottom: none; margin-bottom: 0; }
.ga-receipt-sec-title { font-size: 13px; font-weight: 600; color: #1677ff; margin-bottom: 4px; }
.ga-receipt-sec-key { background: #f6ffed; border-radius: 8px; padding: 8px 10px; border: 1px solid #d9f7be; border-bottom: 1px solid #d9f7be; }
.ga-receipt-sec-key .ga-receipt-sec-title { color: #389e0d; }
.ga-receipt-url-strip { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin: 8px 0 12px; font-size: 12px; }
.ga-receipt-url-strip a { word-break: break-all; }
.ga-receipt-urls { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; font-size: 12px; }
.ga-receipt-link a { word-break: break-all; }
.ga-eff-table { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.ga-eff-row { display: grid; grid-template-columns: 72px 1fr 64px 88px minmax(80px, 1.2fr); gap: 6px; align-items: center; font-size: 12px; padding: 4px 0; border-bottom: 1px solid #f0f0f0; }
.ga-eff-row:last-child { border-bottom: none; }
.ga-eff-plat { font-weight: 600; color: #595959; }
.ga-eff-st.up { color: #389e0d; font-weight: 600; }
.ga-eff-rate { color: #8c8c8c; }
@media (max-width: 720px) {
  .ga-eff-row { grid-template-columns: 1fr 1fr; }
}
.ga-receipt-line { font-size: 12px; color: #444; line-height: 1.55; }
.ga-receipt-urls { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.ga-receipt-urls a { font-size: 11px; word-break: break-all; }
.ga-receipt-disc { font-size: 11px; color: #8c8c8c; margin: 0 0 10px; line-height: 1.5; }
.ga-paid-guide {
  margin: 8px 0; padding: 10px 12px; border-radius: 8px;
  background: #fff7e6; border: 1px solid #ffd591; font-size: 12px; line-height: 1.5;
}
.ga-paid-guide strong { display: block; color: #d48806; margin-bottom: 4px; }
.ga-paid-guide em { font-style: normal; color: #595959; }
.ga-host-goals { flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ga-host-goals label { font-size: 12px; color: #666; display: inline-flex; align-items: center; gap: 4px; }
.ga-host-goals input[type=number] { width: 56px; }
.ga-chat-log {
  flex: 0 0 auto; max-height: none; min-height: 80px; overflow: visible;
  padding: 12px 16px 20px; background: transparent;
  display: flex; flex-direction: column; gap: 10px;
}
/* 输入区独占第二行，禁止 sticky/fixed 叠盖会话 */
.ga-chat-compose {
  grid-row: 2;
  position: static !important;
  z-index: auto !important;
  flex: none !important;
  margin: 0 !important;
  padding: 10px 14px 12px;
  border-top: 1px solid #f0f0f0; background: #fff;
  box-shadow: 0 -2px 8px rgba(0,0,0,.04);
}
.ga-chat-compose textarea { min-height: 52px; max-height: 100px; }
.ga-zl-side {
  border: 1px solid #f0f0f0; border-radius: 12px; background: #fff;
  padding: 12px; display: flex; flex-direction: column; gap: 10px;
  max-height: min(860px, calc(100vh - 120px)); overflow-y: auto;
}
.ga-zl-side-title { font-size: 14px; font-weight: 600; color: #222; }
.ga-zl-cards-side {
  display: flex; flex-direction: column; gap: 8px; overflow: visible; flex: 0 0 auto;
  grid-template-columns: none;
}
.ga-zl-cards-side .ga-cap-card { width: 100%; padding: 10px 12px; }
.ga-zl-cards-side .ga-cap-card strong { font-size: 13px; }
.ga-zl-cards-side .ga-cap-card em { font-size: 11px; }
.ga-zl-details-side {
  margin-top: 0; flex: 1; min-height: 0; overflow: auto;
  border-color: #e8e8e8; background: #fafafa;
}
.ga-zl-details-side .ga-zl-details-body { display: flex; flex-direction: column; gap: 8px; }
.ga-zl-details-side .ga-side-mini-card { margin: 0; }
.ga-zl-details-side .ga-side-mini-card .card-header { padding: 8px 10px; }
.ga-zl-details-side .ga-side-mini-card .card-header h3 { font-size: 13px; margin: 0; }
.ga-zl-details-side .ga-side-mini-card .card-body { padding: 8px 10px; }
.ga-zl-details-side .badge { font-size: 10px; white-space: normal; }
.ga-zl-details-side table { font-size: 11px; }
.ga-chat-bubble {
  max-width: 88%; padding: 10px 14px; border-radius: 12px; font-size: 14px; line-height: 1.6;
  white-space: normal; word-break: break-word;
}
.ga-chat-bubble.agent { align-self: flex-start; background: #fff; border: 1px solid #eee; color: #333; }
.ga-chat-bubble.user { align-self: flex-end; background: #1677ff; color: #fff; border: none; }
.ga-ask-meta { margin-top: 10px; padding-top: 8px; border-top: 1px dashed #e8e8e8; }
.ga-ask-metrics { font-size: 12px; color: #666; margin-bottom: 8px; }
.ga-plan-head {
  font-size: 13px; font-weight: 600; color: #1a1a1a; margin: 4px 0 10px;
}
.ga-step-rail { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.ga-step-card {
  border: 1px solid #eef0f3; border-radius: 10px; padding: 10px 12px;
  background: #fafbfc; text-align: left;
}
.ga-step-card.ga-st-priority { border-color: #91caff; background: #f0f7ff; }
.ga-step-card.ga-st-now { border-color: #b7eb8f; background: #f6ffed; }
.ga-step-card.ga-st-quick { border-color: #ffe58f; background: #fffbe6; }
.ga-step-top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.ga-step-no {
  width: 22px; height: 22px; border-radius: 50%; background: #1677ff; color: #fff;
  font-size: 12px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ga-step-phase { font-size: 12px; color: #1677ff; font-weight: 600; }
.ga-step-badge {
  margin-left: auto; font-size: 11px; color: #666; background: #fff;
  border: 1px solid #e8e8e8; border-radius: 999px; padding: 1px 8px;
}
.ga-step-title { font-size: 13px; font-weight: 600; color: #222; margin-bottom: 4px; }
.ga-step-do { font-size: 12px; color: #444; line-height: 1.5; margin-bottom: 6px; }
.ga-step-foot { font-size: 11px; color: #888; display: flex; flex-direction: column; gap: 2px; }
.ga-ask-put { color: #1677ff; }
.ga-where-link {
  display: inline; margin: 0; padding: 0; border: none; background: none;
  color: #1677ff; font: inherit; font-style: inherit; cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px;
}
.ga-where-link:hover { color: #0958d9; }
.ga-peek {
  margin-top: 8px; padding: 12px; border: 1px solid #91caff; border-radius: 10px;
  background: #f7fbff;
}
.ga-peek-head { font-size: 13px; margin-bottom: 6px; color: #0958d9; }
.ga-peek-line { font-size: 12px; color: #333; line-height: 1.55; margin-bottom: 4px; }
.ga-peek-list {
  margin: 6px 0 0; padding-left: 18px; font-size: 12px; color: #444; line-height: 1.55;
}
.ga-peek-links { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; font-size: 11px; }
.ga-receipt-attr {
  margin: 6px 0 8px; font-size: 12px; line-height: 1.5; color: #ad6800;
  background: #fffbe6; border: 1px solid #ffe58f; border-radius: 8px; padding: 8px 10px;
}
.ga-ask-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.ga-ask-actions .ga-suggest-chip { font-size: 12px; }
.ga-ask-prov { font-size: 11px; color: #999; }
.ga-mission-panel { padding: 0 14px 12px; }
.ga-mission-panel.hidden, .ga-skill-board.hidden { display: none; }
.ga-mission-card {
  border: 1px solid #91caff; border-radius: 12px; padding: 14px;
  background: linear-gradient(180deg, #f0f7ff 0%, #fff 48%);
}
.ga-mission-title { font-size: 15px; font-weight: 700; color: #0958d9; margin-bottom: 6px; }
.ga-mission-goal {
  font-size: 13px; font-weight: 600; color: #1f1f1f; margin-bottom: 4px;
  padding: 8px 10px; background: #f0f5ff; border-radius: 8px; border-left: 3px solid #1677ff;
}
.ga-mission-meta { font-size: 13px; color: #333; margin-bottom: 6px; }
.ga-mission-cred { font-size: 12px; color: #595959; line-height: 1.5; margin-bottom: 10px; }
.ga-loop-phases {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 10px;
}
@media (max-width: 900px) {
  .ga-loop-phases { grid-template-columns: 1fr 1fr; }
}
.ga-loop-phase {
  background: #fafafa; border: 1px solid #f0f0f0; border-radius: 8px; padding: 8px 10px;
}
.ga-loop-phase-t { font-size: 12px; font-weight: 600; color: #262626; margin-bottom: 4px; }
.ga-loop-phase-n { font-size: 11px; color: #8c8c8c; line-height: 1.4; }
.ga-loop-ready { border-color: #b7eb8f; background: #f6ffed; }
.ga-loop-warn { border-color: #ffe58f; background: #fffbe6; }
.ga-loop-blocked { border-color: #ffccc7; background: #fff2f0; }
.ga-loop-summary {
  font-size: 12px; color: #595959; line-height: 1.55; margin: 0 0 10px;
  padding: 8px 10px; background: #fafafa; border-radius: 8px;
}
.ga-mission-block {
  font-size: 12px; color: #a8071a; background: #fff1f0; border: 1px solid #ffa39e;
  border-radius: 8px; padding: 8px 10px; margin-bottom: 10px; line-height: 1.5;
}
.ga-need-you { margin: 0 0 10px; }
.ga-need-title { font-size: 12px; font-weight: 600; color: #ad6800; margin-bottom: 6px; }
.ga-need-list { display: flex; flex-direction: column; gap: 6px; }
.ga-need-item {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 8px;
  padding: 8px 10px; background: #fffbe6; border: 1px solid #ffe58f; border-radius: 8px;
  font-size: 12px;
}
.ga-boundary-inline { color: #8c8c8c; }
.ga-mission-policy { font-size: 12px; color: #666; line-height: 1.55; margin: 8px 0; }
.ga-st-blocked { opacity: 0.72; border-color: #ffccc7 !important; }
.ga-mission-est { font-size: 12px; color: #1677ff; margin-bottom: 10px; }
.ga-mission-budget {
  font-size: 12px; line-height: 1.55; color: #333; margin: 8px 0;
  padding: 10px 12px; background: #fff; border: 1px solid #91caff; border-radius: 8px;
}
.ga-mission-budget strong { color: #0958d9; }
.ga-budget-box {
  margin: 8px 0 10px; padding: 10px 12px; border-radius: 8px;
  background: #f0f7ff; border: 1px solid #91caff; font-size: 12px; line-height: 1.55; color: #333;
}
.ga-budget-title { font-weight: 600; color: #0958d9; margin-bottom: 4px; }
.ga-mission-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ga-keys-row { flex-wrap: wrap; }
.ga-keys-row .ykd-input-lg { min-width: 160px; flex: 1; }
.ga-skill-board {
  margin: 0 14px 12px; padding: 12px; border: 1px solid #f0f0f0;
  border-radius: 12px; background: #fafafa;
}
.ga-board-head { font-size: 13px; font-weight: 600; margin-bottom: 10px; color: #222; }
.ga-board-row {
  display: flex; gap: 10px; align-items: flex-start; padding: 8px 0;
  border-bottom: 1px dashed #eee; font-size: 12px;
}
.ga-board-row:last-child { border-bottom: none; }
.ga-board-st {
  flex-shrink: 0; min-width: 52px; text-align: center; font-size: 11px;
  border-radius: 999px; padding: 2px 8px; background: #f5f5f5; color: #666;
}
.ga-board-running .ga-board-st { background: #e6f4ff; color: #1677ff; }
.ga-board-done .ga-board-st { background: #f6ffed; color: #389e0d; }
.ga-board-failed .ga-board-st { background: #fff2f0; color: #cf1322; }
.ga-board-skipped .ga-board-st { background: #fffbe6; color: #d48806; }
.ga-board-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ga-board-main strong { color: #222; font-size: 13px; }
.ga-board-main em { color: #1677ff; font-style: normal; font-size: 11px; }
.ga-board-main span { color: #666; }
.ga-next-panel {
  margin-top: 12px; padding: 12px; border-radius: 10px;
  background: #f0f7ff; border: 1px solid #91caff;
}
.ga-next-title { font-size: 13px; font-weight: 600; color: #0958d9; margin-bottom: 8px; }
.ga-chat-bubble .ga-next-panel { margin-top: 10px; }
.ga-prompt-bar, .ga-prompt-inline {
  margin-top: 8px; padding: 10px 12px; border-radius: 10px;
  background: #f0f7ff; border: 1px solid #91caff;
}
.ga-prompt-sticky {
  position: static !important;
  margin: 0 0 8px; background: #f0f7ff; border: 1px solid #91caff;
  border-radius: 10px; padding: 8px 10px;
}
.ga-prompt-sticky .ga-prompt-inline {
  margin: 0; padding: 0; border: none; background: transparent;
}
.ga-prompt-title { font-size: 12px; font-weight: 600; color: #0958d9; margin-bottom: 6px; }
.ga-prompt-inline .ga-prompt-title { color: #0958d9; }
.ga-chat-compose textarea {
  width: 100%; border: 1px solid #d9d9d9; border-radius: 10px; padding: 10px 12px;
  font-size: 14px; resize: vertical; min-height: 56px; box-sizing: border-box;
}
.ga-chat-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; flex-wrap: wrap; align-items: center; }
.ga-kb-paste { margin-bottom: 8px; padding: 10px; background: #f6ffed; border: 1px solid #d9f7be; border-radius: 8px; }
.ga-kb-paste.hidden { display: none; }
.ga-kb-paste textarea { width: 100%; box-sizing: border-box; }
.ga-zl-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.ga-filter-tab {
  border: 1px solid #d9d9d9; background: #fff; border-radius: 999px; padding: 4px 14px;
  font-size: 13px; cursor: pointer; color: #666;
}
.ga-filter-tab.active { background: #1677ff; border-color: #1677ff; color: #fff; }
.ga-zl-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 16px;
}
.ga-cap-card {
  text-align: left; border: 1px solid #f0f0f0; border-radius: 12px; padding: 14px;
  background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.ga-cap-card:hover { border-color: #91caff; box-shadow: 0 4px 12px rgba(22,119,255,.08); }
.ga-cap-tag {
  display: inline-block; font-size: 11px; padding: 1px 8px; border-radius: 999px;
  background: #e6f4ff; color: #1677ff; margin-bottom: 8px;
}
.ga-cap-card strong { display: block; font-size: 15px; margin-bottom: 4px; color: #1f1f1f; }
.ga-cap-card em { display: block; font-style: normal; font-size: 12px; color: #888; line-height: 1.5; }
.ga-plan-panel {
  margin: 0; padding: 12px 14px; border-bottom: 1px solid #eef0f3;
  background: linear-gradient(180deg, #f7fbff 0%, #fff 100%);
  flex-shrink: 0;
}
.ga-plan-panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  margin-bottom: 4px;
}
.ga-plan-panel-head strong { font-size: 14px; color: #1677ff; }
.ga-plan-panel-hint { margin: 0 0 8px; font-size: 12px; color: #888; }
.ga-plan-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.ga-plan-choice { text-align: left; max-width: 100%; white-space: normal; line-height: 1.4; }
.ga-plan-last { margin: 8px 0 0; font-size: 12px; }
.ga-setup-guide {
  margin: 0; padding: 12px 14px; border-bottom: 1px solid #ffe7ba;
  background: linear-gradient(180deg, #fffbe6 0%, #fff 100%);
  flex-shrink: 0;
}
.ga-setup-guide-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  margin-bottom: 4px;
}
.ga-setup-guide-head strong { font-size: 14px; color: #d48806; }
.ga-setup-guide-hint { margin: 0 0 10px; font-size: 12px; color: #8c8c8c; line-height: 1.5; }
.ga-setup-sec-label { font-size: 12px; font-weight: 600; color: #ad6800; margin: 4px 0 6px; }
.ga-setup-guide-ready .ga-setup-guide-head strong { color: #389e0d; }
.ga-howto {
  margin: 0 0 12px; padding: 10px 12px; border-radius: 10px;
  background: #fff; border: 1px solid #ffe7ba;
}
.ga-howto-title { font-size: 13px; font-weight: 600; color: #ad6800; margin-bottom: 6px; }
.ga-howto-ol { margin: 0; padding-left: 18px; font-size: 12px; color: #595959; line-height: 1.7; }
.ga-howto-ol b { color: #262626; }
.ga-inline-cfg {
  margin: 0 0 12px; padding: 12px; border-radius: 10px;
  background: #fff7e6; border: 1px solid #ffd591;
}
.ga-inline-cfg-title { font-size: 13px; font-weight: 600; color: #ad6800; margin-bottom: 4px; }
.ga-inline-cfg-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.ga-inline-cfg-row input { flex: 1; min-width: 160px; }
.ga-setup-collapsed .ga-howto,
.ga-setup-collapsed .ga-setup-list,
.ga-setup-collapsed .ga-setup-sec-label,
.ga-setup-collapsed .ga-setup-guide-hint,
.ga-setup-collapsed .ga-inline-cfg { display: none; }
.ga-setup-collapsed {
  padding: 8px 14px;
}
.ga-setup-collapsed .ga-setup-guide-head::after {
  content: '（点标题展开）';
  font-weight: 400; font-size: 12px; color: #8c8c8c; margin-left: 6px;
}
.ga-setup-collapsed:hover,
.ga-setup-collapsed.ga-setup-open {
  cursor: pointer;
}
.ga-setup-collapsed.ga-setup-open .ga-howto,
.ga-setup-collapsed.ga-setup-open .ga-setup-list,
.ga-setup-collapsed.ga-setup-open .ga-setup-sec-label,
.ga-setup-collapsed.ga-setup-open .ga-setup-guide-hint,
.ga-setup-collapsed.ga-setup-open .ga-inline-cfg { display: block; }
.ga-plan-collapsed .ga-plan-choices,
.ga-plan-collapsed .ga-plan-panel-hint,
.ga-plan-collapsed .ga-plan-last { display: none; }
.ga-plan-collapsed { padding: 8px 14px; }
.ga-step-skip {
  margin-left: auto; font-size: 11px; color: #ad6800; display: inline-flex; align-items: center; gap: 4px;
  white-space: nowrap; cursor: pointer;
}
.ga-board-in-chat { margin-top: 8px; width: 100%; }
.ga-long-toggle { margin-top: 8px; }
.ga-long-wrap { line-height: 1.65; }
.ga-inline-cfg-brand { background: #f0f7ff; border-color: #91caff; }
.ga-inline-cfg-brand .ga-inline-cfg-title { color: #0958d9; }
.ga-chat-bubble .ga-mission-card { max-width: min(100%, 640px); }
.ga-ask-real {
  font-size: 12px; color: #08979c; background: #e6fffb; border: 1px solid #87e8de;
  border-radius: 6px; padding: 6px 8px; margin-bottom: 8px;
}
.ga-setup-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.ga-setup-item {
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto;
  gap: 2px 12px; align-items: center; text-align: left;
  width: 100%; padding: 10px 12px; border: 1px solid #ffd591; border-radius: 10px;
  background: #fff; cursor: pointer; font: inherit; color: inherit;
}
.ga-setup-item:hover { border-color: #fa8c16; background: #fff7e6; }
.ga-setup-item strong { grid-column: 1; font-size: 13px; color: #ad6800; }
.ga-setup-item em { grid-column: 1; font-style: normal; font-size: 12px; color: #8c8c8c; }
.ga-setup-item span {
  grid-column: 2; grid-row: 1 / span 2; font-size: 12px; color: #fff;
  background: #fa8c16; padding: 4px 10px; border-radius: 6px; white-space: nowrap;
}
.ga-setup-item.ga-setup-agent { border-color: #91caff; }
.ga-setup-item.ga-setup-agent strong { color: #0958d9; }
.ga-setup-item.ga-setup-agent span { background: #1677ff; }
.ga-host-panel {
  margin: 0; padding: 0; border-top: none;
  background: transparent; flex-shrink: 0;
}
.ga-host-panel-side {
  margin-top: 4px; padding-top: 12px; border-top: 1px solid #f0f0f0;
  display: flex; flex-direction: column; gap: 10px;
}
.ga-host-panel-hl { outline: 2px solid #1677ff; outline-offset: 2px; border-radius: 10px; }
.ga-host-panel-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  margin-bottom: 0;
}
.ga-host-panel-head strong { font-size: 14px; color: #262626; }
.ga-host-panel-tip { margin: 0; font-size: 12px; color: #8c8c8c; line-height: 1.4; }
.ga-host-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
@media (max-width: 900px) {
  .ga-host-grid { grid-template-columns: 1fr; }
}
.ga-host-block {
  background: #fafafa; border: 1px solid #f0f0f0; border-radius: 10px; padding: 12px;
}
.ga-host-block h4 { margin: 0 0 10px; font-size: 13px; color: #595959; }
.ga-host-row {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 10px 0;
}
.ga-host-row select { max-width: 100%; flex: 1; min-width: 100px; padding: 6px 8px; font-size: 12px; }
.ga-host-row input[type="number"] { width: 48px; padding: 4px 6px; }
.ga-host-checks {
  display: flex; flex-direction: column; gap: 6px; font-size: 12px; line-height: 1.5; margin-bottom: 10px;
}
.ga-host-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.ga-host-history { max-height: 200px; overflow: auto; }
.ga-host-history table { font-size: 11px; width: 100%; }
.ga-zl-details { margin-top: 8px; border: 1px solid #f0f0f0; border-radius: 10px; padding: 10px 14px; background: #fafafa; }
.ga-zl-details summary { cursor: pointer; font-size: 13px; color: #666; user-select: none; }
.ga-zl-details-body { margin-top: 12px; }
@media (max-width: 640px) {
  .ga-zl-cards { grid-template-columns: 1fr; }
  .ga-zl-chat {
    height: calc(100vh - 120px); min-height: 420px; max-height: none;
  }
  .ga-chat-log { max-height: none !important; flex: 1; }
  .ga-chat-mid { min-height: 240px; }
  .ga-host-panel {
    margin-top: 12px; position: relative; z-index: 1;
  }
  .ga-zl-side { order: 2; }
  .ga-zl-chat { order: 1; }
}

