/* ─── 变量 ─────────────────────────────────────────────────── */
:root {
  --primary:      #1677ff;
  --primary-hover:#0958d9;
  --bg:           #f5f7fb;
  --sidebar-w:    220px;
  --header-h:     52px;
  --border:       #e8e8e8;
  --text:         #1f2937;
  --text-muted:   #8c8c8c;
  --card-shadow:  0 2px 8px rgba(0,0,0,.06);
  --card-shadow-hover: 0 4px 16px rgba(0,0,0,.08);
  --radius:       8px;
}

/* ─── 基础 ─────────────────────────────────────────────────── */
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, 'PingFang SC', 'Helvetica Neue', sans-serif;
  font-size: .875rem; color: var(--text); background: var(--bg); overflow: hidden; }
a { color: var(--primary); }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.fs-xs  { font-size: .75rem; }
.fs-sm  { font-size: .8rem; }
.text-muted { color: var(--text-muted) !important; }

/* ─── 布局 ─────────────────────────────────────────────────── */
.app-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* 侧边栏 */
.app-sidebar {
  width: var(--sidebar-w);
  height: 100vh;
  background: #fff;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: width .22s ease;
  overflow: hidden;
  z-index: 100;
}

/* 折叠状态 */
.sidebar-collapsed .app-sidebar {
  width: 56px;
}
.sidebar-collapsed .sidebar-brand-text,
.sidebar-collapsed .sidebar-nav span,
.sidebar-collapsed .sidebar-group-label,
.sidebar-collapsed .sidebar-user-info,
.sidebar-collapsed .sidebar-footer .btn span {
  display: none;
}
.sidebar-collapsed .sidebar-footer .btn {
  width: 36px;
  padding: 0;
  justify-content: center;
  overflow: hidden;
}

/* 主体区域 */
.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

/* 顶部 header */
.app-header {
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 1.25rem;
  flex-shrink: 0;
  gap: .5rem;
}
.header-title {
  font-size: .875rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.header-avatar {
  width: 28px; height: 28px; border-radius: 50%; object-fit: cover;
}

.notif-badge {
  position: absolute; top: -4px; right: -6px;
  min-width: 16px; height: 16px; padding: 0 3px;
  border-radius: 8px; background: #f5222d; color: #fff;
  font-size: .62rem; line-height: 16px; text-align: center;
}

.notif-item {
  padding: .6rem .9rem; border-bottom: 1px solid var(--border, #f0f0f0);
  display: block; color: inherit; text-decoration: none;
}
.notif-item:last-child { border-bottom: 0; }
.notif-item:hover { background: var(--bg, #f7f8fa); }
.notif-item .notif-title { font-size: .8rem; font-weight: 500; }
.notif-item .notif-content { font-size: .74rem; color: #8c8c8c; margin-top: 2px; }
.notif-item .notif-time { font-size: .68rem; color: #bfbfbf; margin-top: 2px; }

/* 内容区 */
.app-content {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  background: var(--bg);
}

/* ─── 侧边栏组件 ─────────────────────────────────────────── */
.sidebar-brand {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: 0 1rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
}
.sidebar-brand-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}
.sidebar-brand-text { min-width: 0; }
.sidebar-brand-name {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
}
.sidebar-brand-sub {
  font-size: .68rem;
  color: #aaa;
  white-space: nowrap;
  font-weight: 400;
}

.sidebar-nav {
  flex: 1;
  padding: .5rem .5rem;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-group-label {
  font-size: .72rem;
  color: #bbb;
  font-weight: 400;
  padding: .85rem .75rem .2rem;
  white-space: nowrap;
  overflow: hidden;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .5rem .75rem;
  border-radius: 6px;
  color: #595959;
  text-decoration: none;
  font-size: .845rem;
  white-space: nowrap;
  transition: background .15s, color .15s;
  margin-bottom: 2px;
  overflow: hidden;
}
.sidebar-link i {
  font-size: 1rem;
  flex-shrink: 0;
  width: 18px;
  text-align: center;
}
.sidebar-link:hover {
  background: #f0f5ff;
  color: var(--primary);
}
.sidebar-link.active {
  background: #eff4ff;
  color: var(--primary);
  font-weight: 600;
}

/* 折叠后图标居中 */
.sidebar-collapsed .sidebar-link {
  justify-content: center;
  padding: .5rem 0;
}
.sidebar-collapsed .sidebar-nav {
  padding: .5rem 0;
}

.sidebar-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
  color: #595959;
  padding: 0;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.sidebar-toggle:hover { color: var(--primary); }

.sidebar-footer {
  padding: .75rem;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: .5rem;
  overflow: hidden;
}
.sidebar-avatar {
  width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.sidebar-user-info { min-width: 0; }
.sidebar-username {
  font-size: .8rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-meta {
  margin-top: .5rem;
  font-size: .70rem;
  color: var(--text-muted);
}
.sidebar-meta-link {
  color: inherit;
  text-decoration: none;
  line-height: 1.6;
}
.sidebar-meta-link:hover { color: var(--primary); }
.sidebar-collapsed .sidebar-meta { display: none; }

/* ─── 关于我们 ─────────────────────────────────────────────── */
.about-feature {
  background: #f8fafc;
  border: 1px solid var(--border);
}

/* ─── VIP 标签 ─────────────────────────────────────────────── */
.vip-tag {
  font-size: .55rem;
  padding: 0 5px;
  border-radius: 3px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  border: none;
  font-weight: 600;
  vertical-align: middle;
  letter-spacing: .3px;
  display: inline-flex;
  align-items: center;
}

/* ─── 卡片 ─────────────────────────────────────────────────── */
.card {
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--card-shadow) !important;
  background: #fff;
  transition: box-shadow .2s, transform .2s;
}
.card:hover {
  box-shadow: var(--card-shadow-hover) !important;
  transform: translateY(-1px);
}
.card-header {
  background: transparent !important;
  border-bottom: 1px solid var(--border) !important;
  padding: .875rem 1rem;
  font-weight: 600;
  font-size: .875rem;
}
.card-body { padding: 1rem; }

/* ─── 指标卡 ─────────────────────────────────────────────────── */
.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--card-shadow);
  transition: box-shadow .2s, transform .2s;
}
.stat-card:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-2px); }
.stat-card.accent-green  { border-top-color: #00b96b; }
.stat-card.accent-orange { border-top-color: #fa8c16; }
.stat-card.accent-purple { border-top-color: #722ed1; }
.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: .2rem;
  letter-spacing: -.5px;
}
.stat-unit  { font-size: .85rem; font-weight: 500; color: var(--text-muted); margin-left: 2px; letter-spacing: 0; }
.stat-label { font-size: .78rem; color: var(--text-muted); margin-bottom: .5rem; }
.stat-sub   { font-size: .72rem; color: var(--text-muted); padding-top: .5rem; border-top: 1px solid #f5f5f5; }

/* ─── 首页大盘 ─────────────────────────────────────────────── */
.overview-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--border);
  box-shadow: var(--card-shadow);
}
.overview-item {
  min-width: 0;
  background: #fff;
  padding: .8rem 1rem;
}
.overview-label {
  display: block;
  color: var(--text-muted);
  font-size: .72rem;
  margin-bottom: .25rem;
  white-space: nowrap;
}
.overview-item strong {
  display: block;
  font-size: .98rem;
  line-height: 1.2;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mini-chart-title {
  font-size: .75rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: .35rem;
}

/* ─── 榜单表格 ─────────────────────────────────────────────── */
.rank-table { margin: 0; table-layout: fixed; width: 100%; }
.rank-table th {
  font-size: .77rem; color: var(--text-muted); font-weight: 500;
  background: #fafafa; border-bottom: 1px solid var(--border) !important;
  white-space: nowrap; padding: .6rem .875rem;
}
.rank-table td {
  vertical-align: middle; border-color: #f0f0f0 !important;
  padding: .625rem .875rem; font-size: .845rem; overflow: hidden;
}
.rank-table tbody tr:hover { background: #f9fbff; }
.rank-table tbody tr:last-child td { border-bottom: 0 !important; }
#hotArticleBody tr, #hotAccountBody tr { height: 64px; }

.rank-acc-desc {
  font-size: .72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
  margin-top: 1px;
}

.rank-no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 6px;
  font-weight: 700; font-size: .8rem;
  background: #f5f5f5; color: #8c8c8c;
}
.rank-no.gold   { background: #fff3d6; color: #b07d00; }
.rank-no.silver { background: #f0f2f5; color: #4a4a4a; }
.rank-no.bronze { background: #ffe9de; color: #b24c1e; }

.rank-title a { color: var(--text); text-decoration: none; font-weight: 500; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-title a:hover { color: var(--primary); }
.rank-title-sub { white-space: nowrap; overflow: hidden; }
.rank-account-name { font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }

.metric-val { font-weight: 600; }
.metric-big { color: #f5222d; font-weight: 700; }
.metric-sub { font-size: .72rem; color: var(--text-muted); }

/* ─── 付费锁定 ─────────────────────────────────────────────── */
.locked-row td {
  color: transparent !important;
  text-shadow: 0 0 7px rgba(0,0,0,.18);
  pointer-events: none; user-select: none;
}
.paywall-banner {
  margin: 1rem;
  border-radius: var(--radius);
  padding: 1.5rem;
  background: linear-gradient(135deg, #f0f5ff, #e6eeff);
  border: 1px solid #b3caff;
  text-align: center;
}
.paywall-banner .paywall-title { font-weight: 700; font-size: .95rem; color: #0050b3; }
.paywall-banner .paywall-sub { font-size: .8rem; color: #4096ff; margin: .25rem 0 1rem; }

/* ─── 毛玻璃锁定（占位数据 + 模糊 + 引导弹层）───────────────── */
.blur-lock-content { filter: blur(5px); user-select: none; pointer-events: none; }
.blur-lock-cta {
  position: absolute; inset: 0; z-index: 5;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
  background: rgba(255,255,255,.55);
  border-radius: var(--radius);
}
.blur-lock-cta i { font-size: 1.5rem; color: #94a3b8; }
.blur-lock-cta .btn { pointer-events: auto; }

/* ─── 会员权益列表 ───────────────────────────────────────────── */
.benefit-group-title {
  font-size: .78rem; font-weight: 700; color: var(--text-muted);
  margin: .9rem 0 .35rem; text-transform: uppercase; letter-spacing: .02em;
}
.benefit-group-title:first-of-type { margin-top: .25rem; }
.benefit-item { display: flex; align-items: flex-start; gap: .65rem; padding: .4rem 0; }
.benefit-item i { font-size: 1rem; color: #52c41a; flex-shrink: 0; margin-top: .15rem; }
.benefit-item .t { font-weight: 600; font-size: .845rem; }
.benefit-item .d { font-size: .78rem; color: var(--text-muted); margin-top: .1rem; }
[data-bs-toggle="collapse"] .bi-chevron-down { transition: transform .2s; }
[data-bs-toggle="collapse"][aria-expanded="true"] .bi-chevron-down { transform: rotate(180deg); }

/* ─── 过滤栏 ─────────────────────────────────────────────────── */
.frow { display:flex; align-items:flex-start; padding:.4rem 0; border-bottom:1px solid #f2f2f2; }
.frow:last-child { border-bottom:0; }
.frow-label { width:4.5rem; flex-shrink:0; font-size:.78rem; color:var(--text-muted); font-weight:500; padding-top:.2rem; }
.frow-div { width:1px; background:#e0e0e0; align-self:stretch; min-height:1.5rem; margin:0 .75rem; flex-shrink:0; }
.frow-body { flex:1; min-width:0; }
.filter-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--card-shadow);
  margin-bottom: 1rem;
}
.filter-label { font-size: .75rem; color: var(--text-muted); margin-bottom: .25rem; font-weight: 500; }
.form-select-sm, .form-control-sm { font-size: .8rem !important; }
.form-select { font-size: .845rem; border-radius: 6px; }
.form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(22,119,255,.1); }
.range-pills .btn { border-radius: 20px; font-size: .78rem; padding: .2rem .75rem; }
.range-pills .btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.type-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.type-tag {
  font-size: .78rem; padding: .2rem .7rem; border-radius: 20px;
  border: 1px solid var(--border); background: #fff; color: #595959;
  cursor: pointer; transition: .12s; white-space: nowrap;
}
.type-tag.active, .type-tag:hover { border-color: var(--primary); color: var(--primary); background: #e6f0ff; }
.type-tag-select {
  font-size: .78rem; padding: .2rem 1.6rem .2rem .7rem; border-radius: 20px;
  text-align: center; text-align-last: center;
  border: 1px solid var(--primary); color: var(--primary); background: #e6f0ff;
  cursor: pointer; max-width: 140px;
}
.num-drop-btn {
  font-size: .78rem; padding: .2rem 1rem .2rem 1rem; border-radius: 20px;
  border: 1px solid var(--border); background: #fff; color: #595959;
  cursor: pointer; transition: .12s; white-space: nowrap; line-height: 1.5;
  display: inline-flex; align-items: center; min-width: 5rem; justify-content: center;
}
.num-drop-btn::after { margin-left: .4em; }
.num-drop-btn:hover,
.num-drop-btn.active-filter { border-color: var(--primary); color: var(--primary); background: #e6f0ff; }
#numericFilters, #avgFilters, #medianFilters, #maxFilters { gap: 2rem; }
.type-tags { gap: .6rem; }
.cat-wrap { position: relative; }
.cat-collapsed { max-height: 2rem; overflow: hidden; }
.cat-wrap .type-tags { padding-right: 3.5rem; }
.cat-toggle-btn {
  position: absolute; right: 0; top: 0;
  line-height: 2rem; padding-left: .5rem; background: #fff;
  font-size: .75rem; color: var(--text-muted); text-decoration: none; white-space: nowrap;
}
.cat-toggle-btn:hover { color: var(--primary); }

/* ─── 公众号广场搜索框 ───────────────────────────────────────── */
.search-scope-group .search-scope-btn {
  background: #f5f7fb; border: 1px solid var(--border); border-right: none;
  color: var(--text); font-size: .78rem; padding: .25rem .65rem;
  border-radius: 6px 0 0 6px; white-space: nowrap; line-height: 1.5;
}
.search-scope-btn::after { margin-left: .3em; }
.search-scope-group .form-control {
  border-radius: 0 6px 6px 0; font-size: .83rem;
}
.search-scope-group .dropdown-menu { font-size: .82rem; min-width: 7rem; }
.header-user-menu { font-size: .8rem; }

/* ─── 搜索页 ─────────────────────────────────────────────────── */
.search-hero {
  background: linear-gradient(135deg, #001d6c, #0050b3);
  padding: 2rem 1.25rem 1.5rem;
  margin: -1.25rem -1.25rem 1rem;
}
.search-input-wrap { max-width: 600px; margin: .75rem auto 0; }
.search-input-wrap input {
  border-radius: 6px 0 0 6px; border: none; font-size: .9rem; padding: .55rem 1rem;
}
.search-input-wrap .btn { border-radius: 0 6px 6px 0; padding: .55rem 1.25rem; }
.search-hero h5 { color: #fff; }
.search-hero p  { color: rgba(255,255,255,.7); font-size: .83rem; }

/* ─── 账号详情 ─────────────────────────────────────────────── */
.account-header-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--card-shadow);
  margin-bottom: 1rem;
}
.account-avatar-lg { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid #e8e8e8; }
.btn-fav:hover { border-color: #ffd591; color: #faad14; }
.btn-fav.active { background: #fff7e6; border-color: #ffd591; color: #faad14; }
.btn-fav.active:hover { background: #fff1f0; border-color: #ffa39e; color: #f5222d; }
.account-name { font-size: 1.1rem; font-weight: 700; }
.verify-badge { font-size: .7rem; background: #e6f4ff; color: #0958d9; border-radius: 4px; padding: 1px 6px; border: 1px solid #91caff; }
.acc-tag { display: inline-block; font-size: .61rem; padding: 1px 6px; border-radius: 10px; background: #f0f5ff; color: #1677ff; border: 1px solid #d6e4ff; white-space: nowrap; }

/* 数据统计网格 */
.detail-range-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.detail-range-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .45rem .875rem;
  border-bottom: 1px solid #f5f5f5;
  gap: .5rem;
}
.detail-range-item:nth-child(odd)  { border-right: 1px solid #f5f5f5; }
.detail-range-item:last-child,
.detail-range-item:nth-last-child(2):nth-child(odd) { border-bottom: none; }
.detail-range-label {
  color: var(--text-muted);
  font-size: .75rem;
}
.detail-range-item strong {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
}

/* 改名历史 */
.detail-name-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .4rem .875rem;
  border-bottom: 1px solid #f5f5f5;
  font-size: .8rem;
}
.detail-name-history-item:last-child { border-bottom: none; }

/* 名称记录触发按钮 */
.nh-trigger { opacity: .65; transition: opacity .15s; }
.nh-trigger:hover { opacity: 1; }

/* 名称记录 popover */
.name-history-pop { max-width: 400px !important; box-shadow: 0 4px 16px rgba(0,0,0,.12) !important; border-color: #e5e7eb !important; }
.name-history-pop .popover-header { font-size: .8rem; font-weight: 600; padding: .45rem .85rem; background: #f8f9fa; border-bottom-color: #eee; }
.name-history-pop .popover-body { padding: 0; }
.name-history-pop .nh-list { max-height: 280px; overflow-y: auto; }
.name-history-pop .nh-item { display: flex; flex-direction: column; gap: 2px; padding: .45rem .85rem; border-bottom: 1px solid #f3f3f3; }
.name-history-pop .nh-item:last-child { border-bottom: none; }
.name-history-pop .nh-date { font-size: .7rem; color: #aaa; letter-spacing: .01em; }
.name-history-pop .nh-text { font-size: .82rem; color: #333; line-height: 1.45; }

/* 原创标签 */
.badge-ori {
  font-size: .62rem;
  padding: 1px 5px;
  border-radius: 3px;
  background: #e6f4ff;
  color: #0958d9;
  border: 1px solid #91caff;
  font-weight: 500;
  vertical-align: middle;
}

/* 超小按钮 */
.btn-xs {
  padding: .18rem .55rem;
  font-size: .75rem;
  border-radius: 4px;
}
.btn-group-xs > .btn {
  padding: .18rem .55rem;
  font-size: .75rem;
}

/* 账号 banner */
.acc-banner {
  height: 6px;
  background: linear-gradient(90deg, var(--primary), #36cfc9);
  border-radius: var(--radius) var(--radius) 0 0;
}

/* 统计标签图标 */
.detail-range-icon {
  font-size: .72rem;
  opacity: .6;
  flex-shrink: 0;
}

/* 文章表格 */
.art-table { margin: 0; }
.art-table th {
  font-size: .77rem; color: var(--text-muted); font-weight: 500;
  background: #fafafa; border-bottom: 1px solid var(--border) !important;
  white-space: nowrap; padding: .55rem .875rem;
}
.art-table td {
  vertical-align: top; border-color: #f0f0f0 !important;
  padding: .625rem .875rem; font-size: .845rem; white-space: nowrap;
}
.art-table td:first-child { white-space: normal; }
.art-table tbody tr:hover { background: #f9fbff; }

/* 文章缩略图 */
.art-thumb {
  width: 52px; height: 52px; object-fit: cover;
  border-radius: 4px; border: 1px solid #f0f0f0;
  flex-shrink: 0;
}

/* 文章标题 */
.art-title-wrap { line-height: 1.4; margin-bottom: 2px; }
.art-title-link { color: var(--text); text-decoration: none; font-weight: 500; }
.art-title-link:hover { color: var(--primary); }

/* 文章摘要 */
.art-digest {
  font-size: .72rem;
  color: var(--text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 2px;
}

/* 第N条 badge */
.art-idx-badge {
  font-size: .62rem;
  padding: 1px 5px;
  border-radius: 3px;
  background: #f5f5f5;
  color: #8c8c8c;
  border: 1px solid #d9d9d9;
  font-weight: 500;
  vertical-align: middle;
  margin-left: 4px;
}
.art-idx-badge.idx-1 { background:#fff1f0; color:#cf1322; border-color:#ffa39e; }
.art-idx-badge.idx-2 { background:#fff7e6; color:#d46b08; border-color:#ffd591; }

/* ─── 登录页 ─────────────────────────────────────────────────── */
.login-wrap { max-width: 380px; margin: 3rem auto; }

/* ─── 会员页 ─────────────────────────────────────────────────── */
.plan-card {
  border: 2px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; cursor: pointer; transition: .15s; background: #fff;
}
.plan-card:hover   { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(22,119,255,.12); }
.plan-card.selected { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(22,119,255,.15); background: #f0f5ff; }
.plan-price { font-size: 2rem; font-weight: 800; color: var(--primary); }
.plan-unit  { font-size: .83rem; color: var(--text-muted); }
.member-status-card {
  background: #0d2b52;
  color: #fff; border-radius: var(--radius); padding: 1.5rem 2rem;
}

/* ─── 对比页 ─────────────────────────────────────────────────── */
.compare-metric-label { font-size: .82rem; color: var(--text-muted); }

/* ─── 后台布局 ─────────────────────────────────────────────── */
.admin-layout   { display: flex; height: 100vh; overflow: hidden; }
.admin-sidebar  { width: 200px; height: 100vh; background: #001529; display: flex; flex-direction: column; flex-shrink: 0; }
.admin-sidebar .brand { color: #fff; font-weight: 800; padding: 1rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,.08); font-size: .95rem; }
.admin-sidebar .nav-link { color: rgba(255,255,255,.65); padding: .55rem 1.25rem; font-size: .845rem; border-radius: 0; }
.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active { color: #fff; background: rgba(255,255,255,.08); }
.admin-sidebar .nav-link i { width: 18px; margin-right: .4rem; }
.admin-main   { flex: 1; overflow: hidden; display: flex; flex-direction: column; }
.admin-header { height: var(--header-h); background: #fff; border-bottom: 1px solid var(--border); display: flex; align-items: center; padding: 0 1.25rem; font-size: .875rem; flex-shrink: 0; }
.admin-content { flex: 1; overflow-y: auto; padding: 1.25rem; background: var(--bg); }

/* ─── 图表容器 ─────────────────────────────────────────────── */
.chart-wrap { position: relative; }

/* ─── Toast ─────────────────────────────────────────────────── */
.toast-container { z-index: 9999; }

/* ─── 微信互动图标（SVG inline）──────────────────────────── */
.wx-icon { display:inline-block; width:14px; height:14px; background-size:contain; background-repeat:no-repeat; background-position:center; vertical-align:middle; margin-right:2px; opacity:.75; }
.wx-icon-read     { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%231677ff' fill-rule='nonzero' d='M10 3.333c4.032 0 6.88 2.863 8.333 6.667-1.415 3.89-4.302 6.667-8.333 6.667-4.031 0-7.066-2.777-8.333-6.667C3.044 6.196 5.968 3.333 10 3.333zm0 1.25c-3.075 0-5.6 2.017-6.966 5.346l-.037.09.03.084c1.214 3.21 3.701 5.214 6.744 5.31l.229.004c3.016 0 5.445-1.862 6.85-5.073l.14-.335-.033-.079c-1.407-3.284-3.787-5.247-6.73-5.343L10 4.583zm0 2.084a3.333 3.333 0 1 1 0 6.666 3.333 3.333 0 0 1 0-6.666zm0 1.25a2.083 2.083 0 1 0 0 4.166 2.083 2.083 0 0 0 0-4.166z'/%3E%3C/svg%3E"); }
.wx-icon-like     { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2300b96b' fill-rule='nonzero' d='M12.276 3.034c1.077.157 2.282 1.18 2.282 3.077 0 1.39-.23 2.218-.291 2.868l-.012.159h4.699c.746 0 2.28.92 2.016 2.602-.472 3.011-2.096 6.172-2.33 6.658-.735 1.52-1.86 2.49-2.8 2.593l-.163.009H4.36c-.703 0-1.287-1.049-1.353-1.761L3 19.109v-7.768c0-.867.687-1.534 1.388-1.614l.14-.008h.862s2.393.369 3.438-1.328c.986-1.602 1.01-2.831 1.01-3.995 0-1.164 1.384-1.516 2.438-1.362z'/%3E%3C/svg%3E"); }
.wx-icon-recommend{ background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23ffc107' fill-rule='evenodd' d='M7.527 4.176l.257.252.214.203.308-.294.163-.16c1.302-1.302 3.412-1.302 4.714 0 1.29 1.29 1.302 3.373.036 4.678L8.47 13.604a.583.583 0 0 1-.943-.001L2.777 8.854C1.511 7.549 1.523 5.466 2.813 4.176c1.302-1.302 3.412-1.302 4.714 0z'/%3E%3C/svg%3E"); }
.wx-icon-share    { background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%2313c2c2' fill-rule='evenodd' d='M10.836 2.498c.22 0 .43.087.587.242l5.976 5.919a.834.834 0 0 1 .075 1.1l-.075.084-5.976 5.92a.833.833 0 0 1-1.42-.593v-2.735c-1.949.156-4.793 1.308-6.273 4.917-.246.599-.85.594-.98-.183-1.04-6.15 2.46-10.323 7.253-11.079V3.332c0-.46.373-.834.833-.834z'/%3E%3C/svg%3E"); }

/* ─── WCI 渐变数字 ──────────────────────────────────────────── */
.wci-val {
  font-weight: 700;
  background: linear-gradient(135deg, #1677ff, #722ed1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── 公众号广场 ──────────────────────────────────────────── */
.plaza-avatar {
  width:46px; height:46px; border-radius:50%; object-fit:cover;
  border:2px solid #f0f0f0; flex-shrink:0;
}
.plaza-avatar-ph {
  width:46px; height:46px; border-radius:50%; background:#f5f5f5;
  display:flex; align-items:center; justify-content:center; color:#bbb; flex-shrink:0;
}
.plaza-row { cursor:default; }
.plaza-acc-name {
  font-size:.95rem; font-weight:700; color:var(--text); text-decoration:none;
  display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%;
}
.plaza-acc-name:hover { color:var(--primary); }
.plaza-type-badge {
  display:inline-block; font-size:.68rem; font-weight:500; line-height:1;
  padding:.2rem .45rem; border-radius:3px; background:#f0f0f0; color:#595959; border:1px solid #e4e4e4;
}

/* 导出任务状态徽标 */
.export-status {
  display:inline-flex; align-items:center; gap:.3rem; font-size:.72rem; font-weight:500;
  padding:.25rem .6rem; border-radius:10px; white-space:nowrap;
}
.export-status.pending { background:#f0f0f0; color:#595959; border:1px solid #e4e4e4; }
.export-status.processing { background:#e6f4ff; color:#0958d9; border:1px solid #91caff; }
.export-status.done { background:#f6ffed; color:#389e0d; border:1px solid #b7eb8f; }
.export-status.failed { background:#fff1f0; color:#f5222d; border:1px solid #ffa39e; }
.export-status i.spin { animation: export-spin 1.2s linear infinite; }
@keyframes export-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.export-params-trigger {
  display:inline-flex; align-items:center; justify-content:center;
  width:28px; height:28px; border-radius:50%; cursor:pointer;
  background:#f5f5f5; color:var(--text-muted); border:1px solid #e8e8e8;
  transition: all .15s;
}
.export-params-trigger:hover { background:#e6f4ff; color:#0958d9; border-color:#91caff; }
.plaza-verify {
  font-size:.67rem; color:#888; white-space:nowrap;
  overflow:hidden; text-overflow:ellipsis; max-width:100%;
  margin-top:.2rem; display:block;
}
.plaza-desc {
  display:block; font-size:.7rem; color:var(--text-muted); white-space:nowrap;
  overflow:hidden; text-overflow:ellipsis; max-width:100%;
  margin-top:.15rem;
}
.plaza-sub { font-size:.73rem; color:var(--text-muted); margin-top:.25rem; white-space:nowrap; }
.date-range-input { width:200px; flex-shrink:0; cursor:pointer; }
.plaza-int-row { font-size:.8rem; font-weight:600; color:var(--text); white-space:nowrap; line-height:1.65; }
.plaza-int-row em { font-style:normal; font-weight:400; font-size:.64rem; color:var(--text-muted); margin-right:.25rem; }
.plaza-wci-num {
  font-size:1.2rem; font-weight:800; display:inline-block; line-height:1;
  background:linear-gradient(135deg,#1677ff,#722ed1);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;
}
.plaza-avatar-wrap {
  display:flex; flex-direction:column; align-items:center; flex-shrink:0; gap:3px;
}
.plaza-qr-btn {
  display:inline-flex; align-items:center; font-size:.72rem;
  color:#ccc; cursor:default; padding:0;
  opacity:0; transition:opacity .12s;
}
.plaza-row:hover .plaza-qr-btn { opacity:1; color:#1677ff; }

/* ─── 互动指标卡片（详情页区间统计卡） ─────────────────── */
.int-cards { display:grid; grid-template-columns:repeat(5,1fr); gap:8px; }
.int-card { background:#f9f9fb; border:1px solid #f0f0f0; border-radius:6px; padding:.55rem .75rem; }
.int-card-label { font-size:.72rem; font-weight:600; color:var(--text-muted); margin-bottom:.3rem; }
.int-card-metric { display:flex; justify-content:space-between; align-items:baseline; line-height:1.7; }
.int-card-metric em { font-style:normal; font-size:.67rem; color:var(--text-muted); }
.int-card-metric span { font-size:.82rem; font-weight:600; color:var(--text); }

/* ─── 通用工具 ─────────────────────────────────────────────── */
.badge-type { font-size: .7rem; padding: 1px 6px; border-radius: 3px; background: #f0f0f0; color: #595959; font-weight: 400; }
.btn-primary { background: var(--primary) !important; border-color: var(--primary) !important; }
.btn-primary:hover { background: var(--primary-hover) !important; border-color: var(--primary-hover) !important; }
.btn-outline-primary { color: var(--primary) !important; border-color: var(--primary) !important; }
.btn-outline-primary:hover { background: var(--primary) !important; color: #fff !important; }

@media (max-width: 991.98px) {
  .overview-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 575.98px) {
  .app-content { padding: 1rem; }
  .stat-card { padding: 1rem; }
  .stat-value { font-size: 1.55rem; }
  .overview-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-item { padding: .7rem .85rem; }
}

.tooltip-sm .tooltip-inner { font-size: .72rem; max-width: none; white-space: nowrap; text-align: left; background: #f8f9fa; color: #333; border: 1px solid #e0e0e0; box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.tooltip-sm.bs-tooltip-top .tooltip-arrow::before,
.tooltip-sm.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow::before { border-top-color: #e0e0e0; }
.tooltip-sm.bs-tooltip-bottom .tooltip-arrow::before,
.tooltip-sm.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow::before { border-bottom-color: #e0e0e0; }
