/*!
 * 搜火GEO · 全站样式 (app.css)
 * -----------------------------------------------------------------------------
 * 纯 CSS，无预处理器、无外部字体、无 CDN 依赖。
 * 主题变量集中在 :root，可通过「界面设置」动态切换 --brand 系列。
 */

/* ============================ 1. 设计令牌 ============================ */
:root {
  --brand: #FF5A1F;
  --brand-2: #FF8A3D;
  --brand-soft: #FFF3ED;
  --brand-dim: #FF5A1F1f;

  --blue: #2E6BE6;
  --blue-soft: #EAF1FE;
  --success: #12B76A;
  --success-soft: #E7F8F0;
  --warn: #F79009;
  --warn-soft: #FEF3E2;
  --danger: #F04438;
  --danger-soft: #FDECEA;
  --purple: #7A5AF8;
  --purple-soft: #EFEBFE;

  --sidebar: #0E1B2E;
  --sidebar-2: #17263F;
  --sidebar-text: #A9B6CC;
  --sidebar-active: #FFFFFF;

  --bg: #F4F6FA;
  --card: #FFFFFF;
  --text: #101828;
  --text-2: #475467;
  --text-3: #98A2B3;
  --border: #EAECF0;
  --border-2: #F2F4F7;
  --head: #F9FAFB;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-md: 0 4px 14px rgba(16, 24, 40, .08);
  --shadow-lg: 0 16px 40px rgba(16, 24, 40, .16);

  --sidebar-w: 236px;
  --sidebar-w-collapsed: 68px;
  --topbar-h: 60px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

/* ============================ 2. 基础重置 ============================ */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; font-size: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
body.no-scroll { overflow: hidden; }

.ico { flex: none; display: inline-block; vertical-align: middle; }
.flip-x { transform: scaleX(-1); }
.muted { color: var(--text-3); font-size: 13px; }
.strong { font-weight: 600; color: var(--text); }
.unit { font-size: 13px; font-weight: 500; color: var(--text-3); margin-left: 4px; }
.ellipsis { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.row-flex { display: inline-flex; align-items: center; gap: 8px; }
.row-between { display: flex; align-items: center; justify-content: space-between; }

/* ============================ 3. 布局骨架 ============================ */
.app {
  display: flex;
  min-height: 100vh;
}

/* --- 侧边栏 --- */
.sidebar {
  width: var(--sidebar-w);
  flex: none;
  background: var(--sidebar);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  transition: width .2s ease, transform .2s ease;
}
.sidebar__brand {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  flex: none;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.sidebar__logo {
  width: 34px; height: 34px; flex: none;
  border-radius: 10px;
  display: grid; place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 4px 12px var(--brand-dim);
}
.sidebar__name {
  font-size: 17px; font-weight: 700; color: #fff; letter-spacing: .3px;
  white-space: nowrap; overflow: hidden;
}
.sidebar__nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 10px;
}
.sidebar__nav::-webkit-scrollbar { width: 6px; }
.sidebar__nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .12); border-radius: 3px; }
.nav-group { margin-bottom: 6px; }
.nav-group__head {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  background: none; border: 0;
  color: #6D7C96;
  font-size: 11px; font-weight: 600; letter-spacing: 1px;
  padding: 8px 10px 6px;
  text-transform: none;
}
.nav-group__caret { transition: transform .18s ease; }
.nav-group.is-collapsed .nav-group__caret { transform: rotate(-90deg); }
.nav-group.is-collapsed .nav-group__items { display: none; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 12px; margin: 2px 0;
  border-radius: 9px;
  color: var(--sidebar-text);
  font-size: 14px;
  position: relative;
  transition: background .15s ease, color .15s ease;
}
.nav-item:hover { background: var(--sidebar-2); color: #fff; }
.nav-item__ico { display: inline-flex; }
.nav-item.is-active { background: var(--sidebar-2); color: var(--sidebar-active); font-weight: 600; }
.nav-item.is-active::before {
  content: '';
  position: absolute; left: 0; top: 8px; bottom: 8px;
  width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
}
.nav-item.is-active .nav-item__ico { color: var(--brand); }
.sidebar__foot { padding: 12px; flex: none; border-top: 1px solid rgba(255, 255, 255, .06); }
.plan-badge {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; border-radius: 9px;
  background: rgba(255, 255, 255, .06);
  color: #fff; font-size: 13px; font-weight: 600;
}
.plan-badge__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand); box-shadow: 0 0 0 3px var(--brand-dim);
}

/* 折叠为图标栏（桌面） */
body.sidebar-collapsed .sidebar { width: var(--sidebar-w-collapsed); }
body.sidebar-collapsed .sidebar__name,
body.sidebar-collapsed .nav-item__label,
body.sidebar-collapsed .nav-group__head span,
body.sidebar-collapsed .nav-group__caret,
body.sidebar-collapsed .plan-badge { display: none; }
body.sidebar-collapsed .nav-item { justify-content: center; padding: 0; }
body.sidebar-collapsed .nav-group__head { justify-content: center; height: 12px; padding: 6px 0; }
body.sidebar-collapsed .main { margin-left: var(--sidebar-w-collapsed); }

/* --- 主区 --- */
.main {
  flex: 1;
  min-width: 0;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  transition: margin-left .2s ease;
}
.topbar {
  height: var(--topbar-h);
  flex: none;
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  position: sticky; top: 0; z-index: 30;
}
.topbar__toggle { display: none; }
.topbar__crumb { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.topbar__root { color: var(--text-3); }
.topbar__sep { color: var(--text-3); display: inline-flex; }
.topbar__current { font-weight: 600; }
.topbar__right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.plan-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 20px;
  background: var(--brand-soft); color: var(--brand);
  font-size: 12.5px; font-weight: 600;
}
.icon-btn {
  position: relative;
  width: 36px; height: 36px; border: 0; border-radius: 9px;
  background: transparent; color: var(--text-2);
  display: grid; place-items: center;
  transition: background .15s ease, color .15s ease;
}
.icon-btn:hover { background: var(--border-2); color: var(--text); }
.icon-btn__dot {
  position: absolute; top: 8px; right: 8px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--danger); border: 1.5px solid #fff;
}
.user-menu { position: relative; }
.user-menu__btn {
  display: flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 8px; border: 0; border-radius: 10px;
  background: transparent; color: var(--text);
}
.user-menu__btn:hover { background: var(--border-2); }
.user-menu__name { font-size: 13.5px; font-weight: 600; }
.user-menu__pop {
  position: absolute; right: 0; top: calc(100% + 8px);
  width: 236px; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 8px; z-index: 50;
}
.user-menu__head { display: flex; align-items: center; gap: 10px; padding: 8px 10px 12px; border-bottom: 1px solid var(--border-2); margin-bottom: 6px; }
.user-menu__head .muted { font-size: 12px; }
.user-menu__item {
  width: 100%; text-align: left; border: 0; background: none;
  padding: 9px 10px; border-radius: 8px; color: var(--text-2); font-size: 13.5px;
}
.user-menu__item:hover { background: var(--bg); color: var(--text); }

/* 视图容器 */
#view { flex: 1; padding: 20px; overflow-x: hidden; }
.view { display: flex; flex-direction: column; gap: 16px; max-width: 1600px; }

/* ============================ 4. 卡片与栅格 ============================ */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 18px;
}
.card__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
.card__head--wrap { flex-wrap: wrap; }
.card__title { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.card__title--sm { font-size: 14px; }
.card__title-wrap { display: flex; align-items: baseline; gap: 10px; }
.divider { height: 1px; background: var(--border-2); margin: 16px 0; }
.stack { display: flex; flex-direction: column; gap: 16px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(12, 1fr); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--2-1 { grid-template-columns: 2fr 1fr; }
.grid--form { grid-template-columns: 1.05fr 1fr; }
.grid > .card, .grid > .stack, .grid > div { min-width: 0; }

/* ============================ 5. 按钮 ============================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 16px;
  border-radius: 9px; border: 1px solid transparent;
  font-size: 14px; font-weight: 600;
  transition: all .15s ease; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn--block { width: 100%; }
.btn--primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; box-shadow: 0 4px 12px var(--brand-dim);
}
.btn--primary:hover { filter: brightness(1.05); box-shadow: 0 6px 16px var(--brand-dim); }
.btn--primary:disabled { opacity: .6; cursor: not-allowed; box-shadow: none; }
.btn--ghost { background: #fff; border-color: var(--border); color: var(--text-2); }
.btn--ghost:hover { border-color: var(--text-3); color: var(--text); background: var(--head); }
.btn--danger { background: var(--danger); color: #fff; }
.btn--danger:hover { filter: brightness(1.05); }
.btn--danger-ghost { color: var(--danger); }
.btn--danger-ghost:hover { background: var(--danger-soft); border-color: var(--danger); }

.link-btn {
  border: 0; background: none; padding: 2px 4px;
  color: var(--blue); font-size: 13px; font-weight: 500;
  border-radius: 5px;
}
.link-btn:hover { text-decoration: underline; }
.link-btn--danger { color: var(--danger); }
.row-ops { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* ============================ 6. 表单控件 ============================ */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field--grow { flex: 1; }
.field__label { font-size: 13px; font-weight: 500; color: var(--text-2); }
.field-row { display: flex; gap: 12px; }
.field-row > .field { flex: 1; }
.input, .textarea, .select {
  width: 100%; border: 1px solid var(--border);
  border-radius: 9px; background: #fff;
  padding: 9px 12px; font-size: 14px; color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-dim);
}
.input--sm { padding: 6px 10px; font-size: 13px; max-width: 200px; }
.textarea { resize: vertical; line-height: 1.6; }
.select { appearance: none; cursor: pointer; padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2398A2B3' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
.cb { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; vertical-align: middle; }

/* 搜索框 */
.search {
  display: flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 12px; min-width: 210px;
  border: 1px solid var(--border); border-radius: 9px; background: #fff;
  color: var(--text-3);
}
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-dim); }
.search__input { border: 0; outline: none; flex: 1; background: none; font-size: 13.5px; color: var(--text); }

/* 分段控件 */
.seg { display: inline-flex; padding: 3px; background: var(--bg); border-radius: 9px; gap: 2px; }
.seg__btn {
  width: 34px; height: 30px; border: 0; background: none; border-radius: 7px;
  display: grid; place-items: center; color: var(--text-3);
}
.seg__btn.is-active { background: #fff; color: var(--brand); box-shadow: var(--shadow); }

/* 筛选芯片 */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: 20px;
  background: #fff; color: var(--text-2); font-size: 13.5px; font-weight: 500;
  transition: all .15s ease;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.is-active {
  background: var(--brand-soft); border-color: var(--brand); color: var(--brand); font-weight: 600;
}
.chip--sm { height: 28px; padding: 0 11px; font-size: 12.5px; }
.chips__count {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px;
  padding: 0 5px; border-radius: 9px; background: var(--border-2);
  font-size: 11px; color: var(--text-2);
}
.chip.is-active .chips__count { background: var(--brand); color: #fff; }
.chip-wrap { display: flex; flex-wrap: wrap; gap: 8px; max-height: 132px; overflow-y: auto; padding: 2px; }

/* 开关 */
.switch {
  width: 44px; height: 24px; border-radius: 12px; border: 0;
  background: #D0D5DD; position: relative; flex: none;
  transition: background .18s ease;
}
.switch__dot {
  position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
  transition: transform .18s ease;
}
.switch.is-on { background: var(--brand); }
.switch.is-on .switch__dot { transform: translateX(20px); }

/* ============================ 7. 标签徽标 ============================ */
.tag {
  display: inline-flex; align-items: center;
  height: 22px; padding: 0 9px; border-radius: 6px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.tag--success { background: var(--success-soft); color: var(--success); }
.tag--info { background: var(--blue-soft); color: var(--blue); }
.tag--warn { background: var(--warn-soft); color: var(--warn); }
.tag--danger { background: var(--danger-soft); color: var(--danger); }
.tag--purple { background: var(--purple-soft); color: var(--purple); }
.tag--brand { background: var(--brand-soft); color: var(--brand); }
.tag--gray { background: var(--border-2); color: var(--text-2); }
.badge-soft {
  display: inline-flex; align-items: center; height: 22px; padding: 0 10px;
  border-radius: 6px; background: var(--brand-soft); color: var(--brand);
  font-size: 12px; font-weight: 600;
}

/* 涨跌 */
.delta { display: inline-flex; align-items: center; gap: 2px; font-size: 12.5px; font-weight: 600; }
.delta.is-up { color: var(--success); }
.delta.is-down { color: var(--danger); }
.num-ok { color: var(--success); font-weight: 600; }
.num-bad { color: var(--danger); font-weight: 600; }
.num-warn { color: var(--warn); font-weight: 600; }

/* 提示图标 */
.hint {
  display: inline-flex; align-items: center; color: var(--text-3);
  border: 0; background: none; padding: 0; cursor: help;
}
.hint:hover { color: var(--brand); }

/* ============================ 8. 欢迎区 & 快捷 ============================ */
.welcome {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  padding: 22px;
  border-radius: var(--radius);
  background: linear-gradient(120deg, #0E1B2E 0%, #1B3355 55%, #2A4A76 100%);
  color: #fff;
  position: relative; overflow: hidden;
}
.welcome::after {
  content: ''; position: absolute; right: -40px; top: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, var(--brand) 0%, transparent 68%);
  opacity: .5;
}
.welcome__title { font-size: 20px; font-weight: 700; }
.welcome__sub { font-size: 13px; color: #B9C6DB; margin-top: 6px; }
.welcome__text { flex: 1; min-width: 240px; position: relative; z-index: 1; }
.avatar-svg { display: block; border-radius: 50%; flex: none; }
.quick-actions { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }
.quick-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .1); color: #fff;
  font-size: 13.5px; font-weight: 600;
  backdrop-filter: blur(4px);
  transition: all .15s ease;
}
.quick-btn:hover { background: var(--brand); border-color: var(--brand); }

/* ============================ 9. 新手引导 ============================ */
.onboard { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.onboard__main { flex: 1; min-width: 260px; }
.onboard__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.onboard__title { font-size: 14.5px; font-weight: 600; }
.onboard__count { font-size: 13px; color: var(--text-3); margin-left: auto; }
.onboard__count b { color: var(--brand); font-size: 15px; }
.onboard__bar { margin-bottom: 8px; }
.onboard__next { font-size: 13px; color: var(--text-2); }
.onboard__next b { color: var(--text); }
.onboard__side { display: flex; gap: 10px; }

/* ============================ 10. 指标卡 ============================ */
.metric-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px; display: flex; flex-direction: column; gap: 6px;
  min-width: 0;
}
.metric-card__head { display: flex; align-items: center; gap: 6px; }
.metric-card__label { font-size: 13px; color: var(--text-2); font-weight: 500; }
.metric-card__value { font-size: 30px; font-weight: 700; line-height: 1.15; letter-spacing: -.5px; }
.metric-card__delta { display: flex; align-items: center; gap: 6px; }
.metric-card__delta-txt { font-size: 12px; color: var(--text-3); }
.metric-card__note {
  font-size: 12px; color: var(--text-3); line-height: 1.5;
  margin-top: 4px; padding-top: 8px; border-top: 1px dashed var(--border-2);
}
.sent-bar { display: flex; height: 10px; border-radius: 6px; overflow: hidden; gap: 2px; margin: 6px 0; }
.sent-seg { display: block; height: 100%; }
.sent-seg--pos { background: var(--success); }
.sent-seg--neu { background: #C7D2E1; }
.sent-seg--neg { background: var(--danger); }
.sent-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); }
.sent-legend .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; }
.dot--pos { background: var(--success); }
.dot--neu { background: #C7D2E1; }
.dot--neg { background: var(--danger); }

/* 统计卡 */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px 18px;
  display: flex; align-items: center; gap: 14px;
}
.stat-card__ico {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
}
.stat-card__ico--brand { background: var(--brand-soft); color: var(--brand); }
.stat-card__ico--ok { background: var(--success-soft); color: var(--success); }
.stat-card__ico--blue { background: var(--blue-soft); color: var(--blue); }
.stat-card__ico--warn { background: var(--warn-soft); color: var(--warn); }
.stat-card__ico--bad { background: var(--danger-soft); color: var(--danger); }
.stat-card__value { font-size: 24px; font-weight: 700; line-height: 1.2; }
.stat-card__label { font-size: 12.5px; color: var(--text-3); }

/* 小统计 */
.mini-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mini-stat { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px; background: var(--head); }
.mini-stat__ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.mini-stat__ico--brand { background: var(--brand-soft); color: var(--brand); }
.mini-stat__ico--blue { background: var(--blue-soft); color: var(--blue); }
.mini-stat__ico--ok { background: var(--success-soft); color: var(--success); }
.mini-stat__ico--purple { background: var(--purple-soft); color: var(--purple); }
.mini-stat__value { font-size: 20px; font-weight: 700; line-height: 1.2; }
.mini-stat__label { font-size: 12.5px; color: var(--text-3); }

/* ============================ 11. 图表 ============================ */
.chart-box { width: 100%; }
.chart-svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart-svg--bars { min-height: 60px; }
.chart-svg--ring { width: auto; }
.chart-svg--spark, .chart-svg--minibars { display: block; }
.chart-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 10px; font-size: 12.5px; color: var(--text-2); }
.chart-legend__item { display: inline-flex; align-items: center; gap: 7px; }
.chart-legend__item i { width: 12px; height: 3px; border-radius: 2px; display: inline-block; }

/* 进度条 */
.progress { width: 100%; height: 8px; border-radius: 6px; background: var(--border-2); overflow: hidden; }
.progress__bar { height: 100%; border-radius: 6px; transition: width .4s ease; }

/* ============================ 12. 平台卡 ============================ */
.platform-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.platform-card {
  border: 1px solid var(--border); border-radius: 10px; padding: 14px;
  display: flex; flex-direction: column; gap: 10px; background: #fff;
}
.platform-card.is-disabled { opacity: .72; background: var(--head); }
.platform-card__head { display: flex; align-items: center; gap: 8px; }
.platform-card__name { font-size: 13.5px; font-weight: 600; flex: 1; }
.platform-card__rate { display: flex; align-items: baseline; gap: 6px; }
.platform-card__rate b { font-size: 20px; font-weight: 700; }
.platform-card__rate span { font-size: 12px; color: var(--text-3); }
.platform-card__meta { font-size: 12px; color: var(--text-3); }
.platform-card__meta b { color: var(--text); }
.plogo { border-radius: 8px; flex: none; }

/* ============================ 13. 待办 & 推荐 ============================ */
.todo-list { display: flex; flex-direction: column; gap: 8px; }
.todo-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; border-radius: 10px; border: 1px solid var(--border);
  background: #fff; text-align: left; width: 100%;
  transition: all .15s ease;
}
.todo-item:hover { border-color: var(--brand); background: var(--brand-soft); }
.todo-item__ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.todo-item__ico--danger { background: var(--danger-soft); color: var(--danger); }
.todo-item__ico--warn { background: var(--warn-soft); color: var(--warn); }
.todo-item__ico--info { background: var(--blue-soft); color: var(--blue); }
.todo-item__ico--success { background: var(--success-soft); color: var(--success); }
.todo-item__body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.todo-item__count { font-size: 18px; font-weight: 700; }
.todo-item__label { font-size: 12.5px; color: var(--text-3); }
.todo-item__go { color: var(--text-3); display: inline-flex; }

.rec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rec-card {
  border: 1px solid var(--border); border-radius: 11px; padding: 14px;
  display: flex; flex-direction: column; gap: 8px; background: #fff;
}
.rec-card__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rec-card__title { font-size: 14px; font-weight: 600; }
.rec-card__desc { font-size: 12.5px; color: var(--text-2); line-height: 1.6; flex: 1; }
.rec-card .btn { align-self: flex-start; }

/* ============================ 14. 表格 ============================ */
.table-wrap { width: 100%; overflow-x: auto; border-radius: 10px; border: 1px solid var(--border); }
.table { width: 100%; border-collapse: collapse; min-width: 640px; }
.table thead th {
  background: var(--head); color: var(--text-2);
  font-size: 12.5px; font-weight: 600; text-align: left;
  padding: 11px 14px; white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
.table tbody td {
  padding: 13px 14px; font-size: 13.5px; color: var(--text);
  border-bottom: 1px solid var(--border-2); vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--head); }
.table .tag { vertical-align: middle; }
.table td .row-ops { justify-content: flex-end; }
.cell-bar { display: flex; align-items: center; gap: 8px; }
.cell-bar .progress { flex: 1; min-width: 60px; }
.cell-bar__val { font-size: 12.5px; color: var(--text-2); min-width: 24px; text-align: right; }

/* 工具条 */
.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar--inline { margin-bottom: 0; }
.toolbar__spacer { flex: 1; }

/* 批量条 */
.batch-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 14px; margin-bottom: 12px;
  background: var(--brand-soft); border: 1px solid var(--brand);
  border-radius: 9px; font-size: 13px; color: var(--brand); font-weight: 600;
}

/* 分页 */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.pager__info { font-size: 13px; color: var(--text-3); }
.pager__btns { display: flex; gap: 6px; }
.pager__btn {
  min-width: 34px; height: 34px; padding: 0 8px;
  border: 1px solid var(--border); border-radius: 8px; background: #fff;
  color: var(--text-2); font-size: 13px; font-weight: 500;
  display: inline-flex; align-items: center; justify-content: center;
}
.pager__btn:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.pager__btn.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager__btn:disabled { opacity: .45; cursor: not-allowed; }

/* ============================ 15. 空状态 ============================ */
.empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 46px 20px; text-align: center;
}
.empty__icon {
  width: 64px; height: 64px; border-radius: 18px;
  display: grid; place-items: center; color: var(--text-3);
  background: var(--head); border: 1px dashed var(--border);
  margin-bottom: 4px;
}
.empty__title { font-size: 15px; font-weight: 600; }
.empty__desc { font-size: 13px; color: var(--text-3); max-width: 360px; }
.empty__action { margin-top: 8px; }

/* ============================ 16. 蒸馒词视图 ============================ */
.distill-top { padding: 16px 18px; }
.distill-top__row { display: flex; align-items: flex-end; gap: 12px; }
.distill-top__row .field { margin-bottom: 0; }
.distill-top__row .btn { height: 40px; }
.distill-top__hint { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-3); margin-top: 12px; }
.sug-list { display: flex; flex-direction: column; gap: 12px; }
.sug-card { border: 1px solid var(--border); border-radius: 11px; padding: 14px; display: flex; flex-direction: column; gap: 7px; background: #fff; }
.sug-card__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sug-card__meta { font-size: 12px; color: var(--text-3); }
.sug-card__reason { font-size: 12.5px; color: var(--text-2); line-height: 1.55; }
.sug-card .btn { align-self: flex-start; }

/* ============================ 17. AI 创作视图 ============================ */
.model-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.model-grid--wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.model-card {
  text-align: left; border: 1px solid var(--border); border-radius: 10px;
  padding: 12px; background: #fff; display: flex; flex-direction: column; gap: 3px;
  transition: all .15s ease;
}
.model-card:hover { border-color: var(--brand); }
.model-card.is-active { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 1px var(--brand); }
.model-card__name { font-size: 13.5px; font-weight: 600; }
.model-card__vendor { font-size: 11.5px; color: var(--text-3); }
.model-card__desc { font-size: 12px; color: var(--text-2); line-height: 1.5; margin-top: 3px; }

.preview { display: flex; flex-direction: column; gap: 14px; }
.preview--modal { gap: 12px; }
.preview__title { font-size: 18px; font-weight: 700; line-height: 1.4; }
.preview__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.preview__info { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; }
.preview__info > div { display: flex; align-items: center; gap: 8px; }
.preview__body {
  font-size: 13.5px; line-height: 1.8; color: var(--text-2);
  background: var(--head); border-radius: 10px; padding: 14px;
}
.preview__stats { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.preview__ring { flex: none; }
.preview__meta { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.preview__meta > div { display: flex; gap: 8px; align-items: baseline; }
.preview__actions { display: flex; gap: 10px; }
.generating {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 60px 20px; color: var(--brand); font-size: 13.5px;
}
.generating .ico { animation: spin 1.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================ 18. 素材库视图 ============================ */
.material-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.material-card {
  border: 1px solid var(--border); border-radius: 11px; overflow: hidden;
  background: #fff; position: relative; transition: all .15s ease;
}
.material-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.material-card.is-selected { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.material-card__check { position: absolute; top: 8px; left: 8px; z-index: 2; }
.material-card__check .cb { width: 17px; height: 17px; }
.thumb { position: relative; height: 96px; background: var(--border-2); }
.thumb svg { display: block; }
.thumb__ico {
  position: absolute; inset: 0; margin: auto; width: 34px; height: 34px;
  display: grid; place-items: center; color: #fff;
  background: rgba(14, 27, 46, .28); border-radius: 10px;
}
.material-card__body { padding: 12px; display: flex; flex-direction: column; gap: 7px; }
.material-card__name { font-size: 13.5px; font-weight: 600; }
.material-card__meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-3); }
.material-card__time { font-size: 12px; }

.upload-box {
  border: 2px dashed var(--border); border-radius: 12px; background: var(--head);
  padding: 30px 20px; display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-3); margin-bottom: 16px; text-align: center;
}
.upload-box__title { font-size: 13.5px; color: var(--text-2); font-weight: 500; }
.upload-box__hint { font-size: 12px; }

/* ============================ 19. 发布 / 账号 / 追踪 ============================ */
.note-card { display: flex; gap: 14px; align-items: flex-start; background: linear-gradient(90deg, var(--warn-soft), #fff); border-color: #FBE3C4; }
.note-card__ico { width: 40px; height: 40px; border-radius: 11px; flex: none; display: grid; place-items: center; background: #fff; color: var(--warn); }
.note-card__title { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.note-card__text { font-size: 13px; color: var(--text-2); line-height: 1.6; }

.steps { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.step { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-2); background: var(--head); border-radius: 20px; padding: 5px 12px 5px 5px; }
.step__no { width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; }

.check-list { display: flex; flex-direction: column; gap: 8px; max-height: 168px; overflow-y: auto; border: 1px solid var(--border); border-radius: 10px; padding: 10px; }
.check-list--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: none; border: 0; padding: 0; }
.check-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.check-item .cb { flex: none; }

.timeline { position: relative; padding-left: 24px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 4px; bottom: 4px; width: 2px; background: var(--border-2); }
.timeline__item { position: relative; padding-bottom: 18px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot {
  position: absolute; left: -24px; top: 0;
  width: 16px; height: 16px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: var(--text-3);
}
.timeline__item--success .timeline__dot { background: var(--success); }
.timeline__item--fail .timeline__dot { background: var(--danger); }
.timeline__item--pending .timeline__dot { background: var(--warn); }
.timeline__body { display: flex; flex-direction: column; gap: 4px; }
.timeline__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; }
.timeline__article { font-size: 13px; color: var(--text-2); }
.timeline__meta { font-size: 12px; }
.timeline__body .btn { align-self: flex-start; margin-top: 4px; }

.account-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.account-card {
  border: 1px solid var(--border); border-radius: 11px; padding: 15px;
  display: flex; flex-direction: column; gap: 12px; background: #fff;
}
.account-card.is-expired { border-color: #FBC7C2; background: linear-gradient(180deg, var(--danger-soft), #fff 42%); }
.account-card__head { display: flex; align-items: center; gap: 10px; }
.account-card__title { flex: 1; min-width: 0; }
.account-card__title .strong { font-size: 14px; }
.account-card__title .muted { font-size: 12px; }
.account-card__stats { display: flex; gap: 26px; }
.account-card__stats > div { display: flex; flex-direction: column; gap: 2px; }
.account-card__stats b { font-size: 17px; font-weight: 700; }
.account-card__stats .muted { font-size: 12px; }
.account-card__health { display: flex; flex-direction: column; gap: 7px; }
.account-card__health .muted { font-size: 12px; }
.account-card__time { font-size: 12px; }
.account-card__ops { display: flex; gap: 8px; }
.account-card__ops .btn { flex: 1; }

.alert-list { display: flex; flex-direction: column; gap: 10px; }
.alert-item { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; }
.alert-item__ico { width: 30px; height: 30px; border-radius: 8px; flex: none; display: grid; place-items: center; background: var(--danger-soft); color: var(--danger); }
.alert-item__body { flex: 1; min-width: 0; }
.alert-item__title { font-size: 13.5px; font-weight: 600; }
.alert-item__desc { font-size: 12.5px; line-height: 1.5; margin-top: 2px; }

/* ============================ 20. 管理视图 ============================ */
.report-head { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.report-head__ring { flex: none; }
.report-head__meta { display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 200px; }
.kv { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.kv > span:first-child { color: var(--text-3); min-width: 76px; }
.kv > b { font-weight: 600; }
.kv-list { display: flex; flex-direction: column; gap: 12px; }
.kv-list .kv { justify-content: space-between; }

.balance-card { display: flex; flex-direction: column; gap: 6px; background: linear-gradient(120deg, #0E1B2E, #1B3355); color: #fff; border: 0; }
.balance-card__label { font-size: 13px; color: #B9C6DB; }
.balance-card__value { font-size: 34px; font-weight: 700; letter-spacing: -.5px; }
.balance-card__ops { display: flex; gap: 10px; margin-top: 10px; }
.balance-card__ops .btn--ghost { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .24); color: #fff; }
.balance-card__ops .btn--ghost:hover { background: rgba(255, 255, 255, .2); }
.usage { margin-bottom: 14px; }
.usage:last-child { margin-bottom: 0; }
.usage__head { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 7px; }
.usage__head span { color: var(--text-2); }
.usage__pct { font-size: 12px; margin-top: 5px; }
.quick-amounts { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 12px; }

.model-item {
  border: 1px solid var(--border); border-radius: 11px; padding: 15px;
  display: flex; flex-direction: column; gap: 11px; background: #fff;
}
.model-item__head { display: flex; flex-direction: column; gap: 4px; }
.model-item__name { display: flex; align-items: center; gap: 8px; }
.model-item__stats { display: flex; gap: 22px; font-size: 12.5px; }
.model-item__stats > div { display: flex; align-items: center; gap: 7px; }
.model-item__key { font-size: 12px; }
.model-item__ops { display: flex; gap: 8px; }
.model-item__ops .btn { flex: 1; }
.note-inline {
  display: flex; align-items: center; gap: 7px;
  font-size: 12.5px; color: var(--warn);
  background: var(--warn-soft); padding: 9px 12px; border-radius: 9px;
}

.setting-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--border-2);
}
.setting-row:last-of-type { border-bottom: 0; }
.setting-row--col { flex-direction: column; align-items: stretch; gap: 10px; }
.setting-row__text { display: flex; flex-direction: column; gap: 2px; }
.setting-row__text .strong { font-size: 13.5px; }
.setting-row__text .muted { font-size: 12.5px; }
.logo-slot {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border: 1px dashed var(--border); border-radius: 10px;
  color: var(--text-3); cursor: pointer; background: var(--head); font-size: 13px;
}
.logo-slot:hover { border-color: var(--brand); color: var(--brand); }
.swatches { display: flex; gap: 12px; flex-wrap: wrap; }
.swatch {
  width: 34px; height: 34px; border-radius: 10px; border: 2px solid transparent;
  box-shadow: var(--shadow); transition: transform .15s ease;
}
.swatch:hover { transform: scale(1.08); }
.swatch.is-active { border-color: var(--text); box-shadow: 0 0 0 3px #fff, 0 0 0 5px currentColor; }

/* ============================ 21. 弹窗 ============================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(16, 24, 40, .48);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; backdrop-filter: blur(2px);
  animation: fade-in .16s ease;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: #fff; border-radius: var(--radius-lg);
  width: 620px; max-width: 100%; max-height: calc(100vh - 48px);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: pop-in .18s ease;
}
@keyframes pop-in { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: none; } }
.modal--sm { width: 440px; }
.modal--lg { width: 820px; }
.modal__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--border-2);
}
.modal__title { font-size: 16px; font-weight: 600; }
.modal__close { flex: none; }
.modal__body { padding: 20px 22px; overflow-y: auto; }
.modal__foot {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 16px 22px; border-top: 1px solid var(--border-2);
}
.modal__text { font-size: 14px; color: var(--text-2); line-height: 1.65; }

/* ============================ 22. Toast & Tooltip ============================ */
.toast-wrap {
  position: fixed; top: 20px; right: 20px; z-index: 200;
  display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  min-width: 200px; max-width: 380px;
  background: #fff; border: 1px solid var(--border);
  border-radius: 11px; padding: 12px 16px;
  box-shadow: var(--shadow-lg);
  font-size: 13.5px; color: var(--text);
  opacity: 0; transform: translateX(16px);
  transition: opacity .2s ease, transform .2s ease;
}
.toast.is-show { opacity: 1; transform: none; }
.toast__msg { flex: 1; line-height: 1.5; word-break: break-word; }
.toast__ico { width: 24px; height: 24px; border-radius: 7px; flex: none; display: grid; place-items: center; }
.toast--success .toast__ico { background: var(--success-soft); color: var(--success); }
.toast--info .toast__ico { background: var(--blue-soft); color: var(--blue); }
.toast--warn .toast__ico { background: var(--warn-soft); color: var(--warn); }
.toast--danger .toast__ico { background: var(--danger-soft); color: var(--danger); }

.tooltip {
  position: fixed; z-index: 300; pointer-events: none;
  background: rgba(16, 24, 40, .94); color: #fff;
  font-size: 12.5px; line-height: 1.55;
  padding: 8px 11px; border-radius: 8px;
  max-width: 280px;
  opacity: 0; transition: opacity .12s ease;
  box-shadow: var(--shadow-lg);
}
.tooltip.is-show { opacity: 1; }
.tooltip__head { font-weight: 600; margin-bottom: 2px; }

/* ============================ 23. 响应式 ============================ */
@media (max-width: 1440px) {
  .platform-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .material-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .account-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1280px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--2-1 { grid-template-columns: 1fr; }
  .grid--form { grid-template-columns: 1fr; }
  .model-grid--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
  body.sidebar-open .sidebar { transform: none; }
  body.sidebar-collapsed .sidebar { width: var(--sidebar-w); }
  body.sidebar-collapsed .sidebar__name,
  body.sidebar-collapsed .nav-item__label,
  body.sidebar-collapsed .nav-group__head span,
  body.sidebar-collapsed .nav-group__caret,
  body.sidebar-collapsed .plan-badge { display: revert; }
  body.sidebar-collapsed .nav-item { justify-content: flex-start; padding: 0 12px; }
  .main, body.sidebar-collapsed .main { margin-left: 0; }
  .topbar__toggle { display: grid; }
  .grid--4, .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .platform-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .model-grid--wide { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  #view { padding: 14px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .stat-grid, .mini-stat-grid, .rec-grid, .platform-grid, .material-grid,
  .account-grid, .model-grid, .model-grid--wide, .field-row { grid-template-columns: 1fr; }
  .field-row { flex-direction: column; }
  .check-list--grid { grid-template-columns: 1fr; }
  .user-menu__name, .plan-chip span { display: none; }
  .onboard { flex-direction: column; align-items: stretch; }
  .onboard__side { flex-direction: column; }
  .preview__stats { gap: 12px; }
  .welcome { padding: 18px; }
  .quick-actions { width: 100%; }
  .quick-btn { flex: 1 1 45%; justify-content: center; }
  .modal { width: 100%; }
}

/* ============================ 应用中心 / 发布文章 / 文章管理（v1.1 增量） ============================ */

/* 顶部公告条 */
.notice-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--brand-soft);
  border: 1px solid var(--brand-dim);
  border-radius: 12px;
  margin-bottom: 16px;
}
.notice-bar__ico { color: var(--brand); display: inline-flex; }
.notice-bar__text { flex: 1; font-size: 13px; color: var(--text-2, #475467); }
.notice-bar__plans { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }

/* 我的菜单宫格 */
.appgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 12px;
}
.app-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 8px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  color: inherit;
  transition: background .15s, border-color .15s, transform .15s;
}
.app-tile:hover { background: #F4F6FA; transform: translateY(-2px); }
.app-tile.is-current { border-color: var(--brand); background: var(--brand-soft); }
.app-tile__ico {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
}
.app-tile:nth-child(3n+1) .app-tile__ico { background: var(--brand-soft); color: var(--brand); }
.app-tile:nth-child(3n+2) .app-tile__ico { background: var(--success-soft); color: var(--success); }
.app-tile.is-current .app-tile__ico { background: #fff; color: var(--brand); }
.app-tile__label { font-size: 13px; font-weight: 500; }

/* 更多应用卡片 */
.more-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.more-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line, #EAECF0);
  border-radius: 12px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.more-card:hover {
  border-color: var(--brand);
  box-shadow: 0 4px 14px rgba(16, 24, 40, .08);
  transform: translateY(-2px);
}
.more-card__ico {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  flex-shrink: 0;
}
.more-card__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.more-card__name { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.more-card__desc { font-size: 12px; color: #98A2B3; line-height: 1.5; }

/* 发布文章：已选文章清单（弹窗） */
.pub-list {
  max-height: 180px;
  overflow-y: auto;
  border: 1px solid #EAECF0;
  border-radius: 10px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pub-list__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 6px 8px;
  border-radius: 8px;
  background: #F9FAFB;
}
.pub-list__item svg { color: var(--brand); flex-shrink: 0; }
.pub-count { font-size: 13px; color: #475467; }
.pub-count b { color: var(--brand); font-size: 16px; }
.pub-tip { font-size: 12px; line-height: 1.6; margin-top: 10px; }

@media (max-width: 1024px) {
  .notice-bar { flex-wrap: wrap; }
  .notice-bar__plans { width: 100%; justify-content: flex-start; }
}

/* ============================ 付费媒体（新闻源发稿，v1.2 增量） ============================ */

/* 顶部条：标题 + 页签 + 余额 */
.pm-head {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 16px;
}
.pm-head__ico {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  flex-shrink: 0;
}
.pm-head__title { font-size: 16px; font-weight: 600; margin-right: 6px; }
.pm-head__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.pm-balance { font-size: 13px; color: var(--text-2); }
.pm-balance b { color: var(--brand); font-size: 16px; margin: 0 2px; }

/* 筛选区 */
.pm-filter {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .06);
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pm-filter__search { display: flex; gap: 8px; justify-content: center; }
.pm-filter__search .input { max-width: 480px; }
.pm-filter__row { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.pm-filter__row--selects .select { width: auto; min-width: 132px; }
.pm-filter__label { font-size: 13px; color: var(--text-2); line-height: 30px; flex-shrink: 0; }
.pm-filter__export { margin-left: auto; }

/* 媒体卡片列表 */
.pm-list { display: flex; flex-direction: column; gap: 12px; }
.pm-card {
  display: flex;
  gap: 16px;
  padding: 16px;
  border: 1px solid #EAECF0;
  border-radius: 12px;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.pm-card:hover { border-color: var(--brand-dim); box-shadow: 0 4px 14px rgba(16, 24, 40, .08); }
.pm-card__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.pm-card__name { display: flex; align-items: center; gap: 8px; }
.pm-card__link { font-size: 15px; font-weight: 600; color: var(--blue); background: none; border: 0; padding: 0; cursor: pointer; }
.pm-card__price { color: var(--brand); font-size: 18px; font-weight: 700; }
.pm-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pm-card__remark { font-size: 12px; color: #98A2B3; line-height: 1.6; }

.pm-card__meta {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-shrink: 0;
  padding-left: 16px;
  border-left: 1px dashed #EAECF0;
}
.pm-meta { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 64px; }
.pm-meta__ico { color: var(--blue); }
.pm-meta__val { font-size: 14px; font-weight: 600; color: var(--text-1, #101828); }
.pm-meta__label { font-size: 12px; color: #98A2B3; }
.pm-fav {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid #EAECF0;
  background: #fff;
  color: #C0C6D0;
  cursor: pointer;
  transition: color .15s, border-color .15s, transform .15s;
}
.pm-fav:hover { transform: scale(1.08); }
.pm-fav.is-on { color: var(--brand); border-color: var(--brand-dim); background: var(--brand-soft); }

/* 详情 / 投稿弹窗 */
.pm-detail { display: flex; flex-direction: column; gap: 8px; }
.pm-detail__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  padding: 7px 10px;
  background: #F9FAFB;
  border-radius: 8px;
}
.pm-detail__row > span:first-child { color: #98A2B3; flex-shrink: 0; }

@media (max-width: 1024px) {
  .pm-card { flex-direction: column; }
  .pm-card__meta { border-left: 0; border-top: 1px dashed #EAECF0; padding: 12px 0 0; justify-content: flex-start; flex-wrap: wrap; }
  .pm-filter__search .input { max-width: none; flex: 1; }
}

/* 更多筛选展开面板（v1.3 增量） */
.pm-filter__more {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px dashed #EAECF0;
  padding-top: 12px;
}
.pm-chip-row { display: flex; align-items: flex-start; gap: 10px; }
.pm-chip-row__label {
  width: 64px;
  flex-shrink: 0;
  font-size: 13px;
  color: var(--text-2);
  line-height: 28px;
}
.pm-chip-row .chip-wrap { flex: 1; max-height: 96px; }

/* ============================ 显隐兜底 + 更多筛选联动（v1.4） ============================ */

/*
 * 显隐兜底 —— 请勿删除：
 * 作者样式里的 display 声明会覆盖 UA 样式表的 [hidden] { display: none }，
 * 使 element.hidden = true 在视觉上失效（「更多筛选」面板、批量操作条曾因此常显）。
 * 在此统一兜底，任何组件只要加了 hidden 属性就真实隐藏。
 */
[hidden] { display: none !important; }

/* chevron 上下翻转（注意 flip-x 是水平镜像，对上下箭头无效） */
.ico { transition: transform .18s ease; }
.flip-ud { transform: rotate(180deg); }

/* 「更多筛选」按钮：文案 / 生效条件数徽标 / 箭头随展开状态联动 */
.pm-more-btn { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.pm-more-btn__dot {
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: var(--brand); color: #fff;
  font-size: 11px; font-weight: 600; line-height: 16px; text-align: center;
}

/* 面板底部：已选条件可单独取消 + 重置全部 */
.pm-more-foot {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  border-top: 1px dashed #EAECF0; padding-top: 10px;
}
.pm-more-foot__label { font-size: 12px; color: #98A2B3; }
.pm-more-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 10px; cursor: pointer;
  background: var(--brand-soft); border: 1px solid var(--brand-dim);
  color: var(--brand); font-size: 12px; line-height: 1.5;
}
.pm-more-chip:hover { filter: brightness(.97); }
.pm-more-chip__x { font-size: 13px; line-height: 1; }
.pm-more-foot .link-btn { margin-left: auto; }

/* ============================ 工作台重构 + 导航精简（v2.0 增量） ============================ */

/* 面包屑：品牌 › 分组 › 页面 */
.topbar__group { font-size: 13px; color: var(--text-2); }

/* 指标卡语义态（失败待重试 / 待发布稿件） */
.metric-card--danger { border-left: 3px solid var(--danger); }
.metric-card--danger .metric-card__value { color: var(--danger); }
.metric-card--warn { border-left: 3px solid var(--warn); }
.metric-card--warn .metric-card__value { color: var(--warn); }

/* 可跳转的指标卡 */
.metric-card[role="button"] { cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.metric-card[role="button"]:hover { border-color: var(--brand-dim); box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* 可跳转的 mini-stat（渠道概览） */
.mini-stat--link {
  border: 1px solid transparent;
  background: var(--head);
  font: inherit;
  color: inherit;
  text-align: left;
  width: 100%;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.mini-stat--link:hover { border-color: var(--brand-dim); background: var(--brand-soft); }
.mini-stat__ico--warn { background: var(--warn-soft); color: var(--warn); }

/* GEO 效果折叠区（增值模块，默认收起） */
.geo-panel__hint { flex: 1; min-width: 220px; }
.geo-panel__toggle { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.geo-panel__body { display: flex; flex-direction: column; gap: 16px; padding-top: 14px; }
.geo-panel__body .metric-card__value { font-size: 24px; }

@media (max-width: 1024px) {
  .geo-panel__hint { min-width: 0; width: 100%; }
}

/* 渠道授权弹窗（v2.0 增量） */
.picker__tip { font-size: 12.5px; line-height: 1.6; margin-bottom: 12px; }
.picker__group { margin-bottom: 14px; }
.picker__title { font-size: 13px; font-weight: 500; margin-bottom: 8px; color: var(--text-2); }
.picker__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; }
.picker__item {
  display: flex; align-items: center; gap: 7px;
  font-size: 12.5px; padding: 6px 9px; border-radius: 8px;
  background: var(--head); cursor: pointer; line-height: 1.4;
}
.picker__item:hover { background: var(--brand-soft); }
.picker__item input { flex: none; margin: 0; accent-color: var(--brand); }
.picker__count { font-size: 13px; color: var(--text-2); border-top: 1px dashed var(--border); padding-top: 10px; }
.picker__count b { color: var(--brand); font-size: 16px; }
