/* 沐礼GEO智能优化 —— 外观对齐 skin-blue 的覆盖样式
   基准：ref_snap/pages_dash.html 中侧边栏/顶部内联样式（实证抓取） */

html, body { height: 100%; overflow: hidden; }
body.skin-blue { background: #f4f6fa; }

/* ---------- 顶部 ---------- */
.main-header { height: 50px; }
.main-header .logo { width: 230px; line-height: 50px; text-align: left; padding-left: 18px; font-size: 16px; font-weight: 600; }
.main-header .logo:hover { background-color: unset !important; }
.main-header .navbar {
  position: absolute; left: 0; right: 0; top: 0; width: auto; margin-left: 0; height: 50px;
  padding-left: 230px; padding-right: 12px; overflow: visible;
  display: flex; align-items: center;
}
body.sidebar-collapse .main-header .navbar { margin-left: 0 !important; left: 0 !important; padding-left: 230px !important; }
body.sidebar-collapse .main-header .logo { width: 230px !important; }
body.sidebar-collapse .main-header .logo > .logo-lg { display: inline !important; }
.main-header .navbar .nav-addtabs { position: absolute; left: 0; right: 0; bottom: 0; height: 0; border: none; padding: 0; margin: 0; overflow: visible; }
#firstnav { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; height: 50px; line-height: 50px; }

.scroll-content {
  flex: 0 1 46%; min-width: 0;
  display: block; vertical-align: top;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  color: #fff; font-size: 13px; line-height: 50px; padding: 0; border: none;
}
.upgrade-membership {
  flex: 0 0 auto; padding: 4px 16px; margin-left: auto; margin-right: 0; margin-top: 0;
  background: linear-gradient(90deg, #fec8a5, #f7b287); border-radius: 6px;
  color: #000; cursor: pointer; display: inline-block; align-items: center; font-size: 13px;
  line-height: 20px; white-space: nowrap;
}
.points {
  flex: 0 0 auto; padding: 4px 12px; margin-left: 12px; margin-right: 0; margin-top: 0;
  color: #fff; border: 1px solid #333; border-radius: 16px; display: inline-block;
  align-items: center; cursor: pointer; font-size: 13px; text-decoration: none;
  line-height: 20px; white-space: nowrap;
}

/* 用户下拉 */
.navbar-custom-menu { flex: 0 0 auto; float: none !important; margin-left: 8px; }
.navbar-custom-menu .user-menu > a { padding: 5px 10px; line-height: 40px; }
.navbar-custom-menu .user-menu > a span { font-size: 13px; }
.navbar-custom-menu .user-menu.open .dropdown-menu,
.navbar-custom-menu .user-menu .dropdown-menu.is-open { display: block; }
.navbar-custom-menu .dropdown-menu { right: 10px; left: auto; width: 260px; padding: 0; border-radius: 6px; }
.navbar-custom-menu .dropdown-menu .user-header { padding: 14px 10px 10px; color: #fff; text-align: center; }
.navbar-custom-menu .dropdown-menu .user-header p { margin: 0; line-height: 22px; }
.navbar-custom-menu .dropdown-menu .user-header small { display: block; font-size: 12px; opacity: .9; }
.navbar-custom-menu .dropdown-menu .user-footer { padding: 6px 10px; }

/* ---------- 侧边栏 ---------- */
.main-sidebar {
  width: 230px; background: #fff; top: 88px;
  height: calc(100vh - 88px) !important;
  min-height: 0 !important;
  max-height: calc(100vh - 88px) !important;
  bottom: 0; overflow: hidden;
}
.sidebar { padding-bottom: 30px; overflow-y: auto; height: 100% !important; min-height: 0 !important; }
.sidebar-menu, .sidebar-menu > li { list-style: none; margin: 0; padding: 0; }
.sidebar-menu > li > a {
  display: block; padding: 10px 12px; color: #000 !important; font-size: 14px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; border-radius: 10px; margin: 2px 10px;
}
.sidebar-menu > li > a i { width: 20px; text-align: center; margin-right: 7px; }
.sidebar-menu > li > a span { font-size: 14px; }
.sidebar-menu > li:hover > a, .sidebar-menu > li.active > a {
  background: #1688f1 !important; color: #aed8ff !important;
}
.sidebar-menu .gekai {
  display: block; font-size: 12px; color: #999; margin: 20px 0 6px 20px; padding: 0;
}
.sidebar-menu .treeview > a { padding-left: 12px; }
.sidebar-menu .treeview > a .pull-right-container { float: right; }
.sidebar-menu .treeview > a .pull-right-container i { font-size: 12px; transition: transform .2s; }
.sidebar-menu .treeview.menu-open > a .pull-right-container i { transform: rotate(-90deg); }
.sidebar-menu .treeview .treeview-menu { display: none; padding-left: 0; background: unset !important; }
.sidebar-menu .treeview.menu-open .treeview-menu { display: block; }
.sidebar-menu .treeview-menu > li > a {
  display: block; padding: 8px 5px 8px 30px; color: #000 !important; font-size: 13px;
  border-radius: 10px; margin: 2px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar-menu .treeview-menu > li > a i { width: 14px; margin-right: 6px; opacity: .55; }
.sidebar-menu .treeview-menu > li.active > a,
.sidebar-menu .treeview-menu > li > a:hover { background: #1688f1; color: #aed8ff !important; }
.sidebar-menu .label { font-size: 11px; padding: 2px 6px; border-radius: 3px; }

/* ══ 导航项说明文字（hint） ══
   客户反馈「相互配合的功能键还要找很久」——
   光给名字看不出这一步干什么，「城市分站」「媒体发稿包」
   这种行业词尤其需要一行解释。

   布局要点（踩过的坑）：
   AdminLTE 的 .sidebar-menu > li > a 是 flex 容器，
   hint 如果只写 display:block 会和标签并排挤，
   把标签压成「AI可…」这种省略号。
   必须给 hint 一个 flex-basis:100% 强制换行。 */
.sidebar-menu > li.has-hint > a {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  padding-top: 8px;
  padding-bottom: 9px;
}
.sidebar-menu > li.has-hint > a > i {
  flex: 0 0 20px;
  margin-top: 3px;
}
.sidebar-menu > li.has-hint > a > span:first-of-type {
  flex: 0 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-menu > li.has-hint > a .nav-hint {
  flex: 1 1 100%;
  display: block;
  font-size: 11px;
  line-height: 1.35;
  color: #9aa7bd;
  margin: 2px 0 0 27px;
  font-style: normal;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-menu > li.has-hint:hover > a .nav-hint { color: #7d8ca6; }
.sidebar-menu > li.has-hint.active > a .nav-hint { color: #dbeafe; opacity: .9; }
/* sidebar-beian-gap：备案块是 position:sticky;bottom:0，
   会浮在菜单内容上面 —— 截图里「写作标题」被它盖住了。
   给菜单底部留出足够空白，让最后一项能滚动出来。 */
.sidebar-menu { padding-bottom: 96px !important; }
.main-sidebar .sidebar { display: flex; flex-direction: column; }
.main-sidebar .sidebar-menu { flex: 1 1 auto; overflow: visible; }

/* 折叠组和子项不显示 hint */
.sidebar-menu .treeview > a .nav-hint,
.sidebar-menu .treeview-menu .nav-hint { display: none; }



/* ---------- 主区域 ---------- */
:root { --shell-sidebar: 230px; --shell-top: 92px; }
#tabs.nav-addtabs {
  position: fixed; top: 50px; left: 0; right: 0; height: 38px; z-index: 900;
  background: #fff; border-bottom: 1px solid #e3e6ee; margin: 0; padding: 0 8px;
  display: flex; align-items: center; overflow-x: auto; overflow-y: hidden; list-style: none;
  box-shadow: 0 2px 6px rgba(24, 44, 80, .06);
}
#tabs.nav-addtabs::-webkit-scrollbar { height: 4px; }
#tabs.nav-addtabs > li { flex: 0 0 auto; margin-right: 8px; list-style: none; }
#tabs.nav-addtabs > li > a {
  display: inline-block; padding: 4px 10px; background: #222; color: #fff; border-radius: 4px;
  font-size: 12px; line-height: 20px; cursor: pointer;
}
#tabs.nav-addtabs > li.active > a { background: #1688f1; }
#tabs.nav-addtabs > li > a .fa-remove { margin-left: 6px; opacity: .8; }

.content-wrapper {
  position: fixed; top: var(--shell-top, 88px); left: var(--shell-sidebar); right: 0; bottom: 0;
  margin: 0 !important; height: auto !important; min-height: 0 !important;
  padding: 0 !important; overflow-y: auto; overflow-x: hidden; background: #f4f6fa;
}

/* 侧栏收起 / 窄屏：内容与标签栏都贴左，且侧栏不再覆盖内容 */
body.sidebar-collapse .main-sidebar { display: none !important; }
body.sidebar-collapse #contentBody { left: 0 !important; margin-left: 0 !important; }
body.sidebar-collapse #tabs.nav-addtabs { left: 0 !important; }
@media (max-width: 1200px) {
  .scroll-content { display: block !important; visibility: hidden; flex: 1 1 auto; }
  .upgrade-membership { display: none !important; }
}
@media (max-width: 991px) {
  .main-sidebar { display: none !important; }
  .main-header .navbar { padding-left: 230px !important; }
  #tabs.nav-addtabs, #contentBody { left: 0 !important; margin-left: 0 !important; }
}
@media (max-width: 767px) {
  .main-header .logo { width: 100% !important; float: none !important; left: 0 !important; margin-left: 0 !important; padding-left: 18px !important; background: #1688f1 !important; color: #fff !important; }
  .main-header .navbar { display: flex !important; left: auto !important; right: 0 !important; width: auto !important; padding-left: 0 !important; padding-right: 6px !important; background: transparent !important; }
  #firstnav { display: none !important; }
  .navbar-custom-menu { margin-left: 0 !important; }
  .navbar-custom-menu .user-menu > a { padding: 5px 6px !important; }
  .navbar-custom-menu .user-menu > a .hidden-xs { display: inline !important; color: #fff !important; }
  #tabs.nav-addtabs { padding: 0 6px; }
  /* 表单/卡片在窄屏改为上下排布，避免 110px 标签列把输入框挤出屏幕 */
  .layui-form-label { float: none !important; display: block; width: auto !important; text-align: left; padding: 0 0 4px; }
  .layui-input-block { margin-left: 0 !important; }
  .layui-input, .layui-select, .layui-textarea { width: 100% !important; min-width: 0 !important; }
  .layui-form-item { clear: both; }
  .right-grid { grid-template-columns: 1fr !important; }
}

.content-wrapper iframe { width: 100%; height: 100%; border: 0; display: block; }
.content-wrapper iframe.is-hidden { display: none; }
.bg-mask { display: none; }
.text-success { color: #16b777 !important; }
.text-gray { color: #a0a6b3 !important; }
.text-danger { color: #e74c3c !important; }

/* 内页（iframe 内）样式：对齐 FastAdmin 列表页 */
body.inside-aside {
  background: #f4f6fa;
  height: 100vh !important; overflow-y: auto !important; overflow-x: hidden !important;
}
body.inner-body { height: 100vh !important; overflow-y: auto !important; overflow-x: hidden !important; }
.content { padding: 15px; }
.panel { background: #fff; border: 1px solid #e6e8ee; border-radius: 4px; box-shadow: none; }
.panel-body { padding: 15px; }
.toolbar { margin-bottom: 12px; }
.toolbar .btn { margin-right: 6px; }
.btn-primary {
  background: linear-gradient(168deg, rgb(135 138 255), rgb(139 95 255), rgb(50 110 255), rgb(156 167 255)) !important;
  border-color: #6e72ff !important; color: #fff !important;
}
.btn-success { background: #18bc9c; border-color: #18bc9c; color: #fff; }

/* 我们的列表（服务端渲染）沿用 bootstrap 表格观感 */
.table { width: 100%; border-collapse: collapse; background: #fff; margin: 0; }
.table thead th {
  background: #f7f8fa; color: #333; font-weight: 600; font-size: 13px; padding: 10px 8px;
  border-bottom: 1px solid #e6e8ee; white-space: nowrap; text-align: left;
}
.table tbody td { padding: 9px 8px; border-bottom: 1px solid #f0f2f5; font-size: 13px; color: #444; vertical-align: middle; }
.table tbody tr:hover { background: #fafbfe; }
.table .op a, .table .op .btn { margin-right: 4px; }
.table .cell-ellipsis { max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table .tag { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; }
.table .tag.ok { background: #e8f8f3; color: #18bc9c; }
.table .tag.off { background: #f4f4f4; color: #999; }
.table .tag.warn { background: #fff4e5; color: #ff8f1f; }

/* 分页 */
.pager { margin-top: 12px; text-align: right; }
.pager a, .pager span { display: inline-block; padding: 4px 10px; border: 1px solid #e2e5eb; border-radius: 4px; margin-left: 4px; color: #555; font-size: 13px; }
.pager .cur { background: #1688f1; border-color: #1688f1; color: #fff; }

/* 首页卡片 */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-card { background: #fff; border: 1px solid #e6e8ee; border-radius: 6px; padding: 16px; display: flex; align-items: center; gap: 12px; }
.stat-icon { width: 42px; height: 42px; border-radius: 10px; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.stat-main span { display: block; color: #888; font-size: 12px; }
.stat-main b { font-size: 22px; color: #222; }
.stat-main b i { font-size: 12px; font-style: normal; color: #999; margin-left: 4px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.quick-grid .quick { display: block; border: 1px solid #eceef4; border-radius: 6px; padding: 14px; color: #333; background: #fff; }
.quick-grid .quick b { display: block; margin: 6px 0 4px; font-size: 14px; }
.quick-grid .quick i { color: #999; font-style: normal; font-size: 12px; }
.quick-grid .quick .q-ico { font-size: 18px; color: #1688f1; }

/* ---------- layui 表格对齐 FastAdmin 观感 ---------- */
body.inside-aside .layui-table { margin: 0; background: #fff; }
body.inside-aside .layui-table th {
  background: #f7f8fa !important; color: #333 !important; font-weight: 600 !important;
  font-size: 13px !important; border-color: #e6e8ee !important;
}
body.inside-aside .layui-table td { font-size: 13px; border-color: #f0f2f5 !important; }
body.inside-aside .layui-table-view { border-color: #e6e8ee; margin: 0; }
body.inside-aside .layui-table-page { border-top: 1px solid #e6e8ee; }
body.inside-aside .layui-btn-xs { height: 22px; line-height: 22px; padding: 0 8px; font-size: 12px; }
body.inside-aside .layui-btn-xs.layui-btn-danger { background: #ff5722; }
body.inside-aside .layui-btn-xs.layui-btn-normal { background: #1688f1; }
body.inside-aside .toolbar .pull-right { float: right; }
body.inside-aside .panel-intro { margin: 0; }
body.inside-aside .form-page { max-width: 760px; background: #fff; padding: 20px; border: 1px solid #e6e8ee; border-radius: 4px; }

/* ===== bootstrap-table 风格表格（与对标站 FastAdmin 列表一致） ===== */
body.inside-aside .bt-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 13px; }
body.inside-aside .bt-table thead th {
  background: #f7f8fa; border: 1px solid #e6e8ee; border-bottom-width: 1px;
  padding: 9px 8px; font-weight: 500; color: #555; font-size: 13px;
  white-space: nowrap; cursor: pointer; position: relative;
}
body.inside-aside .bt-table thead th:first-child { cursor: default; }
body.inside-aside .bt-table tbody td { border: 1px solid #f0f2f5; padding: 8px; color: #444; vertical-align: middle; word-break: break-all; }
body.inside-aside .bt-table tbody tr:hover { background: #f5f8fa; }
body.inside-aside .bt-table .label { display: inline-block; padding: 2px 7px; border-radius: 3px; font-size: 12px; background: #edf0f4; color: #666; }
body.inside-aside .bt-table .label-success { background: #e7f6ee; color: #18a058; }
body.inside-aside .bt-footer { padding: 10px 2px 2px; font-size: 13px; color: #666; }
body.inside-aside .bt-footer .pagination { display: inline-flex; margin: 0 0 0 8px; padding: 0; list-style: none; vertical-align: middle; }
body.inside-aside .bt-footer .pagination li { display: inline-block; }
body.inside-aside .bt-footer .pagination li > a {
  display: block; min-width: 30px; height: 30px; line-height: 20px; padding: 4px 8px;
  border: 1px solid #e2e6ea; margin-left: -1px; background: #fff; color: #555; text-align: center; text-decoration: none; font-size: 13px;
}
body.inside-aside .bt-footer .pagination li.active > a { background: #1688f1; border-color: #1688f1; color: #fff; }
body.inside-aside .bt-footer .pagination li.disabled > a { color: #c3c9d2; pointer-events: none; }
body.inside-aside .bt-footer .pagination li:first-child > a { border-radius: 3px 0 0 3px; }
body.inside-aside .bt-footer .pagination li:last-child > a { border-radius: 0 3px 3px 0; }
body.inside-aside .bt-footer select.bt-limit { border: 1px solid #e2e6ea; border-radius: 3px; color: #555; background: #fff; }
body.inside-aside .toolbar .btn-xs { padding: 2px 9px; font-size: 12px; border-radius: 3px; line-height: 18px; }
body.inside-aside .toolbar .btn-success { background: #18bc9c; border-color: #18bc9c; color: #fff; }
body.inside-aside .toolbar .btn-danger { background: #ff4d4f; border-color: #ff4d4f; color: #fff; }
body.inside-aside .toolbar .btn-primary { background: #1688f1; border-color: #1688f1; color: #fff; }
body.inside-aside .toolbar .btn-default { background: #fff; border: 1px solid #e2e6ea; color: #555; }
body.inside-aside .toolbar .btn i, body.inside-aside .bt-table .btn i { margin-right: 3px; }
body.inside-aside .bt-table .btn-edit { color: #18a058; background: #fff; border: 1px solid #18a058; }
body.inside-aside .bt-table .btn-del-row { color: #ff4d4f; background: #fff; border: 1px solid #ff4d4f; }
body.inside-aside .bt-table .btn-edit:hover { background: #18a058; color: #fff; }
body.inside-aside .bt-table .btn-del-row:hover { background: #ff4d4f; color: #fff; }

/* ===== 首页看板（对齐对标站 dashboard 版式） ===== */
body.inside-aside { background: #f0f8ff; }
.dash-wrap { padding: 18px 18px 26px; }
.dash-wrap .box-shadow { box-shadow: 0 2px 8px 0 #d9e2ff, 0 4px 8px -2px #d4eaff; border-radius: 14px; background: #fff; }
.dash-carousel { margin-bottom: 18px; overflow: hidden; }
.index_daohang_block { display: flex; gap: 1.3%; margin-bottom: 18px; }
.index_daohang_block .promo-card {
  flex: 1; min-height: 96px; border-radius: 12px; color: #fff; text-decoration: none;
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; transition: transform .15s ease;
}
.index_daohang_block .promo-card:hover { transform: translateY(-2px); color: #fff; }
.index_daohang_block .promo-card i { font-size: 26px; opacity: .95; }
.index_daohang_block .promo-card b { display: block; font-size: 16px; margin-bottom: 6px; }
.index_daohang_block .promo-card span { font-size: 12px; opacity: .85; }
.Personal-data .data-ul.model-row { display: flex; flex-wrap: wrap; gap: 12px; padding: 16px 18px; margin-bottom: 18px; }
.Personal-data .data-ul.model-row .data-li {
  width: 150px; display: flex; align-items: center; gap: 10px; padding: 12px 10px;
  border-radius: 10px; background: linear-gradient(225deg, #eff1ff, #f4edff);
}
.Personal-data .data-ul.model-row .data-li img { width: 32px; height: 32px; object-fit: contain; }
.Personal-data .data-ul.model-row .data-li .title { font-size: 13px; color: #333; }
.Personal-data .data-ul.model-row .data-li .num { font-size: 15px; font-weight: 600; color: #23272e; }
.Personal-data .data-ul.model-row .data-li .unit { font-size: 12px; color: #626a75; font-weight: 400; margin-left: 2px; }
.echarts { display: flex; gap: 1.3%; }
.echarts .pie, .echarts .bar { flex: 1; padding: 14px 16px 6px; }
.echart-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.echart-head .echart-title { font-size: 16px; font-weight: 600; color: #23272e; position: relative; padding-bottom: 8px; }
.echart-head .echart-title::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 54px; height: 6px; border-radius: 100px;
  background: linear-gradient(90deg, rgba(64, 67, 255, .4), rgba(64, 67, 255, .1));
}
.echart-head .right { font-size: 12px; color: #98a2b3; }
@media (max-width: 1100px) {
  .echarts { flex-direction: column; }
  .index_daohang_block { flex-wrap: wrap; }
  .index_daohang_block .promo-card { flex: 1 1 46%; }
}

/* ===== 首页（复刻对标站 dashboard 版式） ===== */
.dash-wrap { display: flex; gap: 18px; align-items: flex-start; }
.dash-wrap .main-col { flex: 1; min-width: 0; }
.dash-wrap .right-tool { width: 300px; flex: 0 0 300px; }
.carousel { position: relative; overflow: hidden; border-radius: 16px; margin-bottom: 0; }
.carousel-list { display: flex; transition: transform .4s ease; }
.carousel-item { flex: 0 0 100%; }
.carousel-img { width: 100%; display: block; border-radius: 16px; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 52px; border: 0; border-radius: 8px; background: rgba(0,0,0,.28); color: #fff; font-size: 22px; cursor: pointer; display: none; }
.carousel:hover .carousel-btn { display: block; }
.carousel .prev-btn { left: 12px; }
.carousel .next-btn { right: 12px; }
.index_daohang_block { display: flex; gap: 1.3%; margin-top: 16px; }
.index_daohang_block a { flex: 1; display: block; }
.index_daohang_block img { width: 100%; display: block; border-radius: 10px; }
.Personal-data { width: 100%; }
.Personal-data .left { width: 100%; }
.Personal-data .left .echarts { display: flex; gap: 2%; margin-top: 20px; }
.Personal-data .left .echarts .pie, .Personal-data .left .echarts .bar { width: 49%; background: #fff; border-radius: 18px; padding: 14px 16px 10px; }
.echart-head { display: flex; align-items: center; justify-content: space-between; }
.echart-title { font-size: 16px; font-weight: 600; }
.echart-head .right { font-size: 12px; color: #8a94a6; }
.Echarts-data { width: 100%; height: 280px; margin-top: 8px; }
.right-tool .box-shadow { border-radius: 18px; margin-bottom: 16px; padding: 14px 16px 16px; }
.right-tool .common-tool-title { font-size: 16px; font-weight: 600; text-align: center; margin-bottom: 12px; }
.tool-ul .tool-li { display: flex; align-items: center; gap: 10px; padding: 9px 6px; border-radius: 10px; color: #333; }
.tool-ul .tool-li:hover { background: #f4f6ff; }
.tool-ul .tool-li img { width: 34px; height: 34px; object-fit: contain; }
.tool-ul .tool-li .title { font-size: 14px; font-weight: 600; }
.tool-ul .tool-li .des { font-size: 12px; color: #7d8698; margin-top: 2px; }
.common-tool-ul .common-tool-li { display: flex; align-items: center; justify-content: space-between; padding: 9px 4px; border-bottom: 1px solid #f0f2f7; color: #333; }
.common-tool-ul .common-tool-li:last-child { border-bottom: 0; }
.common-tool-ul .common-tool-li .left { display: flex; align-items: center; gap: 8px; }
.common-tool-ul .common-tool-li .left img { width: 24px; height: 24px; object-fit: contain; }
.common-tool-ul .common-tool-li .left .title { font-size: 13px; }
.common-tool-ul .common-tool-li .right { display: flex; align-items: center; gap: 4px; }
.common-tool-ul .common-tool-li .right .check { font-size: 12px; color: #4d6bfe; }
.common-tool-ul .common-tool-li .right img { width: 14px; opacity: .5; }
@media (max-width: 1200px) { .dash-wrap { flex-direction: column; } .dash-wrap .right-tool { width: 100%; flex: 1 1 auto; } }

/* 通用弹层 / toast（内页脚本共用） */
.mtoast{position:fixed;left:50%;top:12%;transform:translateX(-50%);background:rgba(0,0,0,.78);color:#fff;padding:9px 16px;border-radius:6px;z-index:99999;font-size:13px}
.mmask{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:9999;display:flex;align-items:center;justify-content:center}
.mdialog{background:#fff;border-radius:10px;width:520px;max-width:92vw;max-height:80vh;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 12px 40px rgba(0,0,0,.2)}
.mhd{padding:14px 18px;border-bottom:1px solid #eee;font-weight:600;display:flex;justify-content:space-between;align-items:center}
.mclose{cursor:pointer;font-style:normal;font-size:20px;line-height:1;color:#999}
.mbd{padding:16px 18px;overflow:auto}
.qlist .qitem{padding:8px 10px;border-bottom:1px dashed #eee;font-size:13px;color:#333}
.qlist .empty,.empty{color:#999;padding:20px;text-align:center}

/* ===== 内页视觉增强：模块头图 / 行内封面 / 空态插画 / 完整工具条 ===== */
body.inside-aside .content { padding: 14px 16px 18px; }
body.inside-aside .list-page { min-width: 0; }
body.inside-aside .module-hero {
  position: relative; overflow: hidden; min-height: 108px; margin: 0 0 14px;
  padding: 16px 150px 16px 22px; border: 1px solid #dfe9ff; border-radius: 14px;
  background: linear-gradient(108deg, #f4f8ff 0%, #f8fbff 45%, #eef5ff 100%);
  box-shadow: 0 8px 24px rgba(60, 96, 180, .08);
}
body.inside-aside .module-hero::before {
  content: ""; position: absolute; inset: 0;
  background: url("/static/img/dash/banner.jpg") right center / auto 100% no-repeat;
  opacity: .26; pointer-events: none;
}
body.inside-aside .module-hero .hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(247,251,255,.96) 0%, rgba(247,251,255,.88) 42%, rgba(247,251,255,.36) 72%, rgba(247,251,255,.08) 100%);
}
body.inside-aside .module-hero .hero-copy { position: relative; z-index: 2; max-width: 720px; }
body.inside-aside .hero-kicker { display: inline-flex; align-items: center; gap: 5px; color: #5d76c9; font-size: 12px; letter-spacing: .4px; }
body.inside-aside .hero-kicker i { font-size: 10px; color: #7c9bff; }
body.inside-aside .module-hero h1 { margin: 5px 0 3px; font-size: 23px; line-height: 1.2; font-weight: 700; color: #1d2a4d; letter-spacing: .5px; }
body.inside-aside .module-hero h1 em { margin-left: 9px; padding: 2px 7px; font-size: 11px; font-style: normal; font-weight: 400; color: #7c8bb4; background: rgba(255,255,255,.74); border: 1px solid #e2eaff; border-radius: 20px; vertical-align: 2px; }
body.inside-aside .module-hero p { margin: 0; max-width: 640px; color: #65718f; font-size: 12.5px; line-height: 1.7; }
body.inside-aside .hero-stats { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-top: 8px; color: #7080a5; font-size: 12px; }
body.inside-aside .hero-stats b { color: #2f5bd3; font-size: 16px; font-weight: 700; }
body.inside-aside .hero-live { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; color: #14835b; background: #e5f8ef; border-radius: 20px; font-size: 11px; }
body.inside-aside .hero-art { position: absolute; z-index: 3; right: 22px; top: 50%; transform: translateY(-50%); width: 92px; height: 92px; display: flex; align-items: center; justify-content: center; }
body.inside-aside .hero-art::before { content: ""; position: absolute; width: 96px; height: 96px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.9) 0%, rgba(255,255,255,.55) 48%, rgba(255,255,255,0) 72%); }
body.inside-aside .hero-art img { position: relative; width: 78px; height: 78px; object-fit: contain; filter: drop-shadow(0 8px 12px rgba(56,91,190,.18)); }

body.inside-aside .btn, body.dialog-body .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  height: 32px; padding: 0 12px; border-radius: 5px; border: 1px solid transparent;
  font-size: 13px; line-height: 30px; font-weight: 500; text-decoration: none; cursor: pointer;
  vertical-align: middle; white-space: nowrap;
}
body.inside-aside .btn i { font-size: 13px; }
body.inside-aside .btn:hover { opacity: .92; }
body.inside-aside .btn-default { background: #fff; border-color: #dfe3ea; color: #555; }
body.inside-aside .btn-ai, body.inside-aside .ai-btn {
  background: linear-gradient(135deg, #7d5cff, #4b8dff); border-color: #6a76ff; color: #fff;
  box-shadow: 0 3px 10px rgba(91,101,255,.2);
}
body.inside-aside .btn-disabled, body.inside-aside .btn.disabled { opacity: .48; pointer-events: none; }

body.inside-aside .panel-intro {
  margin: 0; border: 1px solid #e5e9f2; border-radius: 12px; background: #fff;
  box-shadow: 0 3px 14px rgba(30, 55, 110, .05);
}
body.inside-aside .panel-intro .panel-body { padding: 14px 16px 16px; }
body.inside-aside .bt-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
body.inside-aside .bt-search { flex: 1 1 320px; max-width: 460px; }
body.inside-aside .search-group {
  display: flex; align-items: center; height: 34px; border: 1px solid #dfe4ee; border-radius: 6px;
  background: #fff; overflow: hidden;
}
body.inside-aside .search-group:focus-within { border-color: #76a3ff; box-shadow: 0 0 0 3px rgba(94,140,255,.1); }
body.inside-aside .search-group > i { margin-left: 10px; color: #a4adbd; }
body.inside-aside .search-group input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; padding: 0 9px; font-size: 13px; color: #333; background: transparent; }
body.inside-aside .search-group button { height: 100%; padding: 0 16px; border: 0; background: linear-gradient(135deg, #27b6a2, #1aa58f); color: #fff; font-size: 13px; cursor: pointer; }
body.inside-aside .bt-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-left: auto; }
body.inside-aside .bt-actions .btn { margin-right: 0; }
body.inside-aside .bt-table-wrap { width: 100%; overflow-x: auto; border-radius: 8px; }
body.inside-aside .bt-table { min-width: 720px; }

body.inside-aside .row-cover { width: 52px; height: 38px; border-radius: 6px; object-fit: cover; flex: 0 0 52px; background: #eef2fb; box-shadow: 0 2px 5px rgba(35,60,120,.12); }
body.inside-aside .cell-cover { display: flex; align-items: center; gap: 9px; min-width: 160px; }
body.inside-aside .cell-cover-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.inside-aside .preview-image { display: inline-block; line-height: 0; }
body.inside-aside .image-preview-box { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 12px; background: #0d1422; }
body.inside-aside .image-preview-box img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }

body.inside-aside .empty-visual { display: flex; flex-direction: column; align-items: center; padding: 34px 0 38px; }
body.inside-aside .empty-visual img { width: 112px; height: 86px; object-fit: contain; opacity: .9; filter: drop-shadow(0 8px 14px rgba(82,130,210,.14)); }
body.inside-aside .empty-visual b { margin-top: 10px; color: #37425a; font-size: 15px; font-weight: 600; }
body.inside-aside .empty-visual p { margin: 5px 0 13px; color: #8a94a8; font-size: 12.5px; }
body.inside-aside .empty-visual .btn { height: 34px; }

body.inside-aside .img-picker { display: flex; align-items: center; gap: 14px; margin: 4px 0 10px; }
body.inside-aside .img-picker-box {
  width: 128px; height: 96px; border: 1px dashed #d9e1ef; border-radius: 8px; background: #f8faff;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
body.inside-aside .img-picker-box img { width: 100%; height: 100%; object-fit: cover; }
body.inside-aside .img-picker-empty { color: #a4adbd; font-size: 12px; display: inline-flex; flex-direction: column; align-items: center; gap: 6px; }
body.inside-aside .img-picker-empty i { font-size: 24px; color: #c4cee0; }
body.inside-aside .img-picker-side { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
body.inside-aside .img-picker-btn { cursor: pointer; height: 32px; }
body.inside-aside .img-picker-tip { color: #98a2b3; font-size: 12px; line-height: 1.6; }
body.dialog-body { background: #fff; }
body.dialog-body .img-picker { display: flex; align-items: center; gap: 14px; margin: 4px 0 10px; }
body.dialog-body .img-picker-box { width: 128px; height: 96px; border: 1px dashed #d9e1ef; border-radius: 8px; background: #f8faff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
body.dialog-body .img-picker-box img { width: 100%; height: 100%; object-fit: cover; }
body.dialog-body .img-picker-empty { color: #a4adbd; font-size: 12px; }
body.dialog-body .img-picker-side { display: flex; flex-direction: column; gap: 6px; }
body.dialog-body .img-picker-tip { color: #98a2b3; font-size: 12px; }

@media (max-width: 1200px) {
  body.inside-aside .module-hero { padding-right: 130px; }
  body.inside-aside .hero-art { right: 16px; }
  body.inside-aside .hero-art img { width: 68px; height: 68px; }
}
@media (max-width: 767px) {
  body.inside-aside .content { padding: 10px; }
  body.inside-aside .module-hero { padding: 13px 14px; min-height: 0; }
  body.inside-aside .module-hero::before { opacity: .14; }
  body.inside-aside .module-hero .hero-copy { max-width: none; }
  body.inside-aside .module-hero h1 { font-size: 19px; }
  body.inside-aside .module-hero p { font-size: 12px; }
  body.inside-aside .hero-art { display: none; }
  body.inside-aside .bt-search { flex: 1 1 100%; max-width: none; }
  body.inside-aside .bt-actions { width: 100%; margin-left: 0; }
  body.inside-aside .bt-actions .btn { flex: 1 1 auto; }
  body.inside-aside .bt-table { min-width: 680px; }
}

/* ===== 顶栏层叠与高度硬约束：避免 logo / 导航 / 用户菜单 / 标签栏相互遮挡 ===== */
.main-header .logo { position: relative; z-index: 30; }
.main-header .navbar { z-index: 20; background: transparent; }
#firstnav { position: relative; z-index: 1; }
.navbar-custom-menu { height: 50px; display: flex; align-items: center; }
.navbar-custom-menu .user-menu { height: 50px; display: flex; align-items: center; }
.navbar-custom-menu .user-menu > a {
  display: flex !important; align-items: center; height: 50px !important; padding: 0 10px !important;
  line-height: 1 !important; box-sizing: border-box;
}
.navbar-custom-menu .user-menu > a > span { line-height: 1.2 !important; }
#tabs.nav-addtabs { z-index: 15; }
.content-wrapper { z-index: 10; }
.main-sidebar { z-index: 12; }
@media (max-width: 767px) {
  .navbar-custom-menu, .navbar-custom-menu .user-menu, .navbar-custom-menu .user-menu > a { height: 50px !important; }
}

/* 矮窗口（如 3064×390 / 带鱼屏）压缩模块头图，优先保证数据行可见 */
@media (max-height: 560px) and (min-width: 768px) {
  body.inside-aside .content { padding: 10px 14px 12px; }
  body.inside-aside .module-hero { min-height: 76px; padding: 9px 118px 9px 18px; margin-bottom: 10px; }
  body.inside-aside .module-hero h1 { font-size: 18px; margin: 3px 0 1px; }
  body.inside-aside .module-hero p { display: none; }
  body.inside-aside .hero-kicker { font-size: 11px; }
  body.inside-aside .hero-stats { margin-top: 5px; gap: 6px 12px; font-size: 11px; }
  body.inside-aside .hero-stats b { font-size: 14px; }
  body.inside-aside .hero-art { width: 70px; height: 70px; right: 16px; }
  body.inside-aside .hero-art img { width: 58px; height: 58px; }
  body.inside-aside .panel-intro .panel-body { padding: 10px 12px 12px; }
  body.inside-aside .bt-toolbar { margin-bottom: 8px; }
}

/* 窄屏修正：logo 虽然全宽，但层级必须低于右侧用户菜单，否则菜单被 logo 整条盖住 */
@media (max-width: 767px) {
  .main-header .logo { z-index: 1 !important; }
  .main-header .navbar { z-index: 30 !important; }
  .navbar-custom-menu { position: relative; z-index: 31 !important; }
}

body.inside-aside .img-picker-btn, body.dialog-body .img-picker-btn {
  width: auto !important; min-width: 118px; align-self: flex-start; display: inline-flex !important;
}

/* app.css 内页基础 + 自身内边距的收口 */
body.inner-body.inside-aside { padding: 0 !important; }
body.inside-aside .page-head { margin: 0 0 14px; }

/* ===== AI 生图页 ===== */
body.inside-aside .ai-image-page { min-width: 0; }
body.inside-aside .ai-gen-panel { margin-bottom: 0; }
body.inside-aside .ai-gen-panel .panel-body { padding: 16px 18px; }
body.inside-aside .ai-gen-grid { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 18px; align-items: start; }
body.inside-aside .ai-field-label { display: block; margin-bottom: 7px; color: #4a5875; font-size: 13px; font-weight: 600; }
body.inside-aside .ai-gen-main .layui-textarea { width: 100%; min-height: 104px; resize: vertical; border-color: #dfe5f1; border-radius: 8px; padding: 10px 12px; font-size: 13px; }
body.inside-aside .ai-gen-side { display: flex; flex-direction: column; gap: 9px; }
body.inside-aside .ai-gen-side select { height: 34px; border: 1px solid #dfe5f1; border-radius: 6px; padding: 0 9px; font-size: 13px; color: #333; background: #fff; }
body.inside-aside .ai-gen-side .layui-btn {
  height: 36px; line-height: 36px; border-radius: 7px; border: 0; color: #fff; font-size: 13px;
  background: linear-gradient(135deg, #7d5cff, #2f9ee8); box-shadow: 0 5px 14px rgba(88,105,255,.2);
}
body.inside-aside .ai-gen-side .cost-tip { color: #98a2b3; font-size: 12px; }
body.inside-aside .wall-head { display: flex; align-items: baseline; gap: 8px; margin: 18px 2px 10px; color: #26334d; font-size: 15px; font-weight: 600; }
body.inside-aside .wall-head .muted { color: #98a2b3; font-size: 12px; font-weight: 400; }
body.inside-aside .img-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 14px; }
body.inside-aside .img-card { background: #fff; border: 1px solid #e6ebf5; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 14px rgba(28, 57, 120, .06); }
body.inside-aside .img-thumb { aspect-ratio: 1/1; background: #f2f6fd; }
body.inside-aside .img-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.inside-aside .img-meta { padding: 9px 11px 11px; }
body.inside-aside .img-meta b { display: block; color: #2a3550; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.inside-aside .img-meta span { display: block; margin-top: 3px; color: #98a2b3; font-size: 11px; }
body.inside-aside .ai-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; padding: 38px 0 46px; background: #fff; border: 1px dashed #dfe6f2; border-radius: 12px; }
body.inside-aside .ai-empty img { width: 96px; height: 76px; object-fit: contain; }
body.inside-aside .ai-empty b { margin-top: 8px; color: #37425a; font-size: 15px; }
body.inside-aside .ai-empty p { margin: 5px 0 0; color: #8a94a8; font-size: 12.5px; }
@media (max-width: 900px) {
  body.inside-aside .ai-gen-grid { grid-template-columns: 1fr; }
  body.inside-aside .ai-gen-side { flex-direction: row; align-items: center; flex-wrap: wrap; }
  body.inside-aside .img-wall { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

/* 内页外边距统一放在 body 上，内容容器不再重复加 padding（兼容无 .content 的自定义页） */
body.inner-body.inside-aside { padding: 16px !important; }
body.inside-aside .content { padding: 0 !important; }
@media (max-height: 560px) and (min-width: 768px) {
  body.inner-body.inside-aside { padding: 10px 14px 12px !important; }
}
@media (max-width: 767px) {
  body.inner-body.inside-aside { padding: 10px !important; }
}

/* app.css 的 .list-page 白卡与 .panel 白卡重复：只保留 panel 一层 */
body.inside-aside .list-page {
  background: transparent !important; padding: 0 !important; height: auto !important;
  border-radius: 0 !important; box-shadow: none !important;
}
body.inside-aside .panel-intro { padding: 0 !important; }

/* ===== 媒体市场：卡片 + 渠道缩略图 ===== */
body.inside-aside .media-market .filter_search {
  background: #fff; border: 1px solid #e8eef9; border-radius: 12px;
  padding: 12px 16px 6px; margin-bottom: 14px; box-shadow: 0 4px 16px rgba(60,96,180,.05);
}
body.inside-aside .media-market .list_item {
  display: flex; align-items: flex-start; gap: 16px;
  background: #fff; border: 1px solid #e8eef9; border-radius: 12px;
  padding: 16px; margin-bottom: 12px; box-shadow: 0 4px 16px rgba(60,96,180,.05);
  transition: transform .18s ease, box-shadow .18s ease;
}
body.inside-aside .media-market .list_item:hover {
  transform: translateY(-2px); box-shadow: 0 10px 26px rgba(60,96,180,.12);
}
body.inside-aside .media-market .media-thumb {
  width: 116px; height: 82px; flex: 0 0 116px; object-fit: cover;
  border-radius: 10px; background: #f3f6fb; border: 1px solid #edf1f8;
}
body.inside-aside .media-market .list_item_center { flex: 1; min-width: 0; }
body.inside-aside .media-market .media_lists_title { border-bottom: 0; }
@media (max-width: 767px) {
  body.inside-aside .media-market .list_item { gap: 10px; padding: 12px; }
  body.inside-aside .media-market .media-thumb { width: 84px; height: 62px; flex-basis: 84px; }
}

/* 自定义功能页自动头图：避免原有 page-head 与头图标题重复 */
body.has-auto-hero .page-head { display: none !important; }
body.has-auto-hero .auto-module-hero { margin-bottom: 14px; }

/* 自动头图页：只保留后续分节标题，表单收进白卡 */
body.has-auto-hero .page-head { display: block !important; }
body.has-auto-hero > form.layui-form {
  max-width: 980px; background: #fff; border: 1px solid #e8eef9; border-radius: 14px;
  padding: 26px 28px 16px; box-shadow: 0 6px 20px rgba(60,96,180,.06);
}
body.has-auto-hero > form.layui-form .layui-form-label { width: 116px; padding: 9px 12px; }


/* ============================================================
 * AI 可见度诊断页 · 视觉增强（2026-11-22 合并版新增）
 * ============================================================ */

.analyze-page .module-hero { margin-bottom: 18px; }

/* 三步流程 */
.ana-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.ana-step {
  position: relative;
  background: #fff;
  border: 1px solid #e8eef9;
  border-radius: 14px;
  padding: 20px 22px 18px 64px;
  box-shadow: 0 4px 14px rgba(60, 96, 180, .05);
  transition: .2s;
}
.ana-step:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(60, 96, 180, .12);
  border-color: #c9d9f5;
}
.ana-step .sn {
  position: absolute;
  left: 20px;
  top: 20px;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(59, 130, 246, .3);
}
.ana-step b { display: block; font-size: 14.5px; color: #1f2937; margin-bottom: 6px; }
.ana-step p { font-size: 12.5px; color: #8a94a6; line-height: 1.65; margin: 0; }

/* 表单面板 */
.ana-panel {
  background: #fff;
  border: 1px solid #e8eef9;
  border-radius: 16px;
  box-shadow: 0 6px 22px rgba(60, 96, 180, .07);
  padding: 28px 30px 22px;
  margin-bottom: 22px;
}
.ana-panel .panel-body { padding: 0; }
.ana-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.ana-field label {
  display: block;
  font-size: 13px;
  color: #4b5563;
  font-weight: 600;
  margin-bottom: 8px;
}
.ana-field label i { color: #ef4444; font-style: normal; }
.ana-field label .opt { color: #9ca3af; font-weight: 400; font-size: 12px; }
.ana-field .layui-input,
.ana-field select {
  width: 100%;
  height: 44px;
  line-height: 44px;
  border: 1px solid #dfe6f2;
  border-radius: 10px;
  padding: 0 14px;
  font-size: 14px;
  background: #fafcff;
  transition: .2s;
}
.ana-field .layui-input:focus,
.ana-field select:focus {
  border-color: #3b82f6;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .12);
  outline: none;
}
.ana-submit { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.ana-btn {
  height: 46px !important;
  line-height: 46px !important;
  padding: 0 34px !important;
  border-radius: 11px !important;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
  border: none !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(59, 130, 246, .32) !important;
  transition: .2s;
}
.ana-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(59, 130, 246, .42) !important; }
.ana-btn i { margin-right: 6px; }
.ana-cost { font-size: 12.5px; color: #9ca3af; padding-bottom: 14px; }

/* 报告卡片墙 */
.wall-head {
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  margin: 24px 0 14px;
}
.wall-head .muted { font-size: 12.5px; color: #9ca3af; font-weight: 400; }

.rpt-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}
.rpt-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid #e8eef9;
  border-radius: 14px;
  padding: 18px 20px;
  text-decoration: none;
  color: inherit;
  transition: .2s;
  box-shadow: 0 4px 14px rgba(60, 96, 180, .05);
}
.rpt-card:hover {
  transform: translateY(-2px);
  border-color: #c9d9f5;
  box-shadow: 0 12px 28px rgba(60, 96, 180, .13);
  text-decoration: none;
  color: inherit;
}
.rpt-ring {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.rpt-ring::before {
  content: "";
  position: absolute;
  inset: 6px;
  background: #fff;
  border-radius: 50%;
}
.rpt-ring span {
  position: relative;
  font-size: 19px;
  font-weight: 700;
  color: #1f2937;
  letter-spacing: -.5px;
}
.rpt-body { flex: 1; min-width: 0; }
.rpt-title {
  font-size: 14.5px;
  font-weight: 600;
  color: #1f2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}
.rpt-kw {
  font-size: 12.5px;
  color: #8a94a6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 7px;
}
.rpt-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11.5px;
  color: #9ca3af;
  flex-wrap: wrap;
}
.rpt-grade {
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
}
.rpt-arrow { color: #c9d3e2; font-size: 16px; flex-shrink: 0; }
.rpt-card:hover .rpt-arrow { color: #3b82f6; }

/* 空态 */
.analyze-page .ai-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 44px 20px;
  background: #fff;
  border: 1px dashed #dfe6f2;
  border-radius: 14px;
  color: #9ca3af;
}
.analyze-page .ai-empty img { width: 82px; opacity: .5; margin-bottom: 12px; display: block; margin-left: auto; margin-right: auto; }
.analyze-page .ai-empty b { display: block; font-size: 14px; color: #6b7280; margin-bottom: 6px; }
.analyze-page .ai-empty p { font-size: 12.5px; margin: 0; }

/* 响应式 */
@media (max-width: 900px) {
  .ana-steps { grid-template-columns: 1fr; }
  .ana-grid { grid-template-columns: 1fr; }
  .ana-panel { padding: 20px 18px 16px; }
  .rpt-wall { grid-template-columns: 1fr; }
}

/* ============================================================
 * 内容任务（闭环）页面
 * ============================================================ */
.gap-wall { display: flex; flex-direction: column; gap: 14px; }
.gap-card {
  display: flex; gap: 16px; background: #fff; border: 1px solid #e8eef9;
  border-radius: 14px; padding: 20px 22px; box-shadow: 0 4px 14px rgba(60,96,180,.05);
  transition: .2s;
}
.gap-card:hover { border-color: #c9d9f5; box-shadow: 0 10px 26px rgba(60,96,180,.11); }
.gap-badge {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: #fff;
}
.gap-badge.high { background: linear-gradient(135deg,#f97316,#ea580c); }
.gap-badge.mid  { background: linear-gradient(135deg,#3b82f6,#1d4ed8); }
.gap-badge.rank { background: linear-gradient(135deg,#8b5cf6,#6d28d9); }
.gap-main { flex: 1; min-width: 0; }
.gap-title { font-size: 14.5px; font-weight: 600; color: #1f2937; margin-bottom: 6px; }
.gap-desc { font-size: 12.5px; color: #6b7280; line-height: 1.7; margin-bottom: 10px; }
.gap-stats { display: flex; gap: 18px; font-size: 12px; color: #9ca3af; margin-bottom: 12px; flex-wrap: wrap; }
.gap-stats b { color: #1f2937; font-weight: 600; }
.gap-acts { display: flex; gap: 9px; flex-wrap: wrap; }
.gap-btn {
  height: 34px; line-height: 34px; padding: 0 18px; border-radius: 9px; border: none;
  font-size: 13px; font-weight: 600; cursor: pointer; transition: .18s;
}
.gap-btn.primary { background: linear-gradient(135deg,#3b82f6,#1d4ed8); color: #fff; box-shadow: 0 4px 12px rgba(59,130,246,.28); }
.gap-btn.primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(59,130,246,.38); }
.gap-btn.ghost { background: #f3f6fc; color: #4b5563; }
.gap-btn.ghost:hover { background: #e8eef9; }
.gap-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.zhiling-box {
  display: none; margin-top: 12px; background: #1e2430; color: #c9d1e0; border-radius: 10px;
  padding: 14px 16px; font-family: Consolas, Monaco, monospace; font-size: 12px;
  line-height: 1.8; white-space: pre-wrap; max-height: 280px; overflow: auto;
}
.zhiling-box.show { display: block; }

/* 趋势图容器 */
.trend-card {
  background: #fff; border: 1px solid #e8eef9; border-radius: 16px;
  padding: 24px 26px; box-shadow: 0 6px 22px rgba(60,96,180,.07); margin-bottom: 18px;
}
.trend-card h3 { font-size: 15px; font-weight: 600; color: #1f2937; margin: 0 0 4px; }
.trend-card .sub { font-size: 12.5px; color: #9ca3af; margin-bottom: 18px; }
#trendChart { width: 100%; height: 320px; }

/* ============================================================
 * 内容任务 · 提取入口 / 状态标签 / 趋势
 * ============================================================ */
.extract-card {
  background: linear-gradient(135deg, #f8fbff, #eef4ff);
  border: 1px solid #dbe8fb;
  border-radius: 16px;
  padding: 22px 26px;
  margin-bottom: 8px;
  box-shadow: 0 4px 16px rgba(59,130,246,.07);
}
.extract-head {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.extract-title {
  font-size: 15px; font-weight: 600; color: #1f2937; margin-bottom: 5px;
}
.extract-title i { color: #3b82f6; margin-right: 6px; }
.extract-desc { font-size: 12.5px; color: #8a94a6; }
.extract-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.extract-form select { max-width: 300px; height: 40px; border-radius: 10px; border: 1px solid #dfe6f2; background: #fff; }
.extract-form .gap-btn { height: 40px; line-height: 40px; }

.tag-pill {
  display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 9px;
  border-radius: 6px; margin-left: 8px; vertical-align: middle;
}
.tag-pill.wait { background: #fef3c7; color: #b45309; }
.tag-pill.run  { background: #dbeafe; color: #1d4ed8; }
.tag-pill.ok   { background: #d1fae5; color: #047857; }
.tag-pill.fail { background: #fee2e2; color: #b91c1c; }

.gap-delta { font-size: 12px; font-weight: 600; }
.gap-delta.up { color: #059669; }
.gap-delta.down { color: #dc2626; }
.gap-delta.flat { color: #9ca3af; }

.gap-msg {
  font-size: 12px; color: #5f6672; background: #fafbfc; padding: 8px 12px;
  border-radius: 8px; border-left: 3px solid #dfe3ea; margin-bottom: 10px;
}

.trend-empty { text-align: center; padding: 60px 20px; color: #b0b5bd; font-size: 13px; }
/* ============================================================
 * 效果看板
 * ============================================================ */
.eff-page .module-hero { margin-bottom: 18px; }
.eff-panel {
  background: #fff; border: 1px solid #e8eef9; border-radius: 16px;
  padding: 22px 24px; margin-bottom: 16px; box-shadow: 0 4px 16px rgba(60,96,180,.06);
}
.eff-head { margin-bottom: 16px; }
.eff-head h3 { font-size: 15px; font-weight: 600; color: #1f2937; margin: 0 0 4px; }
.eff-head .sub { font-size: 12.5px; color: #9ca3af; }

.eff-list { display: flex; flex-direction: column; gap: 14px; }
.eff-row { display: flex; gap: 16px; align-items: flex-start; }
.eff-name { width: 200px; flex-shrink: 0; }
.eff-name b { display: block; font-size: 14px; color: #1f2937; margin-bottom: 3px; }
.eff-name span { font-size: 12px; color: #9ca3af; }
.eff-bar { flex: 1; }
.eff-track { height: 9px; background: #f0f3f8; border-radius: 5px; overflow: hidden; margin-bottom: 7px; }
.eff-fill { height: 100%; border-radius: 5px; transition: width .5s; }
.eff-meta { display: flex; gap: 16px; font-size: 12px; color: #6b7280; flex-wrap: wrap; }
.eff-meta b { font-weight: 600; }

.eff-grid2 { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; margin-bottom: 16px; }
.eff-grid2 .eff-panel { margin-bottom: 0; }

.gap-eff-list { display: flex; flex-direction: column; gap: 10px; }
.gap-eff-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 11px 13px; background: #fafbfd; border-radius: 10px; border: 1px solid #eef1f7;
}
.ge-left { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; min-width: 0; }
.ge-left b { font-size: 13px; color: #1f2937; font-weight: 500; }
.ge-tag {
  font-size: 11px; background: #e8efff; color: #2563eb; padding: 2px 8px;
  border-radius: 5px; font-weight: 600; flex-shrink: 0;
}
.ge-right { display: flex; align-items: center; gap: 12px; font-size: 12px; flex-shrink: 0; }
.ge-art { color: #9ca3af; }
.ge-rate { color: #4b5563; font-family: Consolas, monospace; }

.dist-list { display: flex; flex-direction: column; gap: 11px; }
.dist-row { display: flex; align-items: center; gap: 11px; }
.dist-name { width: 56px; font-size: 12.5px; color: #4b5563; flex-shrink: 0; }
.dist-track { flex: 1; height: 8px; background: #f0f3f8; border-radius: 4px; overflow: hidden; }
.dist-track i { display: block; height: 100%; background: linear-gradient(90deg, #3b82f6, #6366f1); border-radius: 4px; }
.dist-row b { font-size: 12.5px; color: #1f2937; width: 24px; text-align: right; }

.eff-empty { padding: 26px; text-align: center; color: #b0b5bd; font-size: 13px; }
.eff-empty a { color: #3b82f6; text-decoration: underline; }

.kpi-grid .kpi em { display: block; font-size: 11.5px; color: #9ca3af; font-style: normal; margin-top: 4px; }

@media (max-width: 900px) {
  .eff-row { flex-direction: column; gap: 8px; }
  .eff-name { width: 100%; }
  .eff-grid2 { grid-template-columns: 1fr; }
  .gap-eff-row { flex-direction: column; align-items: flex-start; }
}
/* ============================================================
 * 列表页统一美化（一次改善全部 52 个模块）
 * ============================================================ */

/* 工具栏 */
.list-page .bt-actions {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: #fff; border: 1px solid #e8eef9; border-radius: 14px 14px 0 0;
  padding: 14px 18px; border-bottom: none;
  box-shadow: 0 2px 10px rgba(60,96,180,.04);
}
.list-page .bt-search {
  display: flex; align-items: center; gap: 8px; margin-left: auto;
}
.list-page .bt-search input {
  height: 36px; border: 1px solid #dfe6f2; border-radius: 9px;
  padding: 0 14px; font-size: 13px; background: #fafcff; min-width: 200px;
  transition: .2s;
}
.list-page .bt-search input:focus {
  border-color: #3b82f6; background: #fff; outline: none;
  box-shadow: 0 0 0 3px rgba(59,130,246,.11);
}

/* 按钮 */
.list-page .btn {
  height: 36px; line-height: 34px; padding: 0 16px; border-radius: 9px;
  font-size: 13px; font-weight: 500; border: 1px solid transparent;
  cursor: pointer; transition: .18s; display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none;
}
.list-page .btn i, .list-page .btn .fa { font-size: 13px; }
.list-page .btn-primary {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: #fff;
  box-shadow: 0 3px 10px rgba(59,130,246,.28);
}
.list-page .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(59,130,246,.38); }
.list-page .btn-success {
  background: linear-gradient(135deg, #10b981, #059669); color: #fff;
  box-shadow: 0 3px 10px rgba(16,185,129,.26);
}
.list-page .btn-success:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(16,185,129,.36); }
.list-page .btn-danger {
  background: linear-gradient(135deg, #f87171, #dc2626); color: #fff;
  box-shadow: 0 3px 10px rgba(220,38,38,.24);
}
.list-page .btn-danger:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(220,38,38,.34); }
.list-page .btn-default {
  background: #f3f6fc; color: #4b5563; border-color: #e2e8f3;
}
.list-page .btn-default:hover { background: #e8eef9; color: #1f2937; }
.list-page .btn-ai {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9); color: #fff;
  box-shadow: 0 3px 10px rgba(139,92,246,.26);
}
.list-page .btn-ai:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(139,92,246,.36); }
.list-page .btn.btn-disabled, .list-page .btn.disabled {
  opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none !important;
}

/* 表格容器 */
.list-page .bt-table-wrap {
  background: #fff; border: 1px solid #e8eef9; border-radius: 0 0 14px 14px;
  padding: 0 8px 8px; box-shadow: 0 6px 22px rgba(60,96,180,.06);
  overflow: hidden;
}

/* layui 表格美化 */
.list-page .layui-table-view {
  border: none !important; margin: 0 !important; border-radius: 10px; overflow: hidden;
}
.list-page .layui-table-header {
  background: linear-gradient(180deg, #f8fafd, #f1f5fb) !important;
}
.list-page .layui-table-header th {
  font-weight: 600 !important; color: #4b5563 !important; font-size: 12.5px !important;
  border-bottom: 1px solid #e4ebf5 !important;
}
.list-page .layui-table-body tr:hover,
.list-page .layui-table-body tr.layui-table-hover {
  background: #f5f9ff !important;
}
.list-page .layui-table-cell {
  font-size: 13px !important; color: #374151;
  line-height: 26px !important;
}
.list-page .layui-table td, .list-page .layui-table th {
  border-color: #eef2f8 !important;
}
.list-page .layui-table tbody tr:nth-child(even) {
  background: #fbfcfe;
}

/* 状态标签自动着色（JS 会加 class） */
.st-pill {
  display: inline-block; font-size: 11.5px; font-weight: 600;
  padding: 2px 10px; border-radius: 6px; line-height: 19px;
  white-space: nowrap;
}
.st-ok      { background: #d1fae5; color: #047857; }
.st-wait    { background: #fef3c7; color: #b45309; }
.st-run     { background: #dbeafe; color: #1d4ed8; }
.st-fail    { background: #fee2e2; color: #b91c1c; }
.st-off     { background: #f3f4f6; color: #6b7280; }
.st-info    { background: #ede9fe; color: #6d28d9; }
.st-num     { font-family: Consolas, Monaco, monospace; color: #1f2937; font-weight: 600; }

/* 表格空态 */
.list-page .layui-table-body .layui-none {
  padding: 60px 20px !important; color: #b0b5bd !important; font-size: 13px !important;
}

/* 分页 */
.list-page .layui-laypage {
  margin: 14px 0 4px !important;
}
.list-page .layui-laypage a, .list-page .layui-laypage span {
  border-radius: 7px !important; border-color: #e4ebf5 !important;
  font-size: 12.5px !important;
}
.list-page .layui-laypage .layui-laypage-curr .layui-laypage-em {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
  border-radius: 7px;
}

/* 行内小按钮 */
.list-page .layui-btn-xs {
  height: 26px; line-height: 24px; padding: 0 10px; border-radius: 7px;
  font-size: 12px;
}

@media (max-width: 768px) {
  .list-page .bt-actions { padding: 12px; }
  .list-page .bt-search { margin-left: 0; width: 100%; }
  .list-page .bt-search input { flex: 1; min-width: 0; }
}
/* ============================================================
 * 自媒体发布页
 * ============================================================ */
.pub-warn {
  background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412;
  padding: 13px 18px; border-radius: 12px; font-size: 13px; margin-bottom: 16px;
}
.pub-warn code { background: #fff; padding: 1px 6px; border-radius: 4px; font-size: 12px; }

.pub-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px; margin-bottom: 22px;
}
.pub-card {
  background: #fff; border: 1px solid #e8eef9; border-radius: 13px;
  padding: 15px 16px; transition: .2s; box-shadow: 0 3px 10px rgba(60,96,180,.04);
}
.pub-card:hover { transform: translateY(-2px); box-shadow: 0 9px 22px rgba(60,96,180,.11); border-color: #c9d9f5; }
.pub-card.on { border-color: #a7f3d0; background: linear-gradient(180deg,#f0fdf8,#fff); }
.pub-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; }
.pub-name { font-size: 14px; font-weight: 600; color: #1f2937; }
.pub-lv { font-size: 10.5px; color: #fff; padding: 2px 7px; border-radius: 5px; font-weight: 600; }
.pub-meta { display: flex; justify-content: space-between; font-size: 11.5px; color: #9ca3af; margin-bottom: 12px; }
.pub-state { font-weight: 600; }
.pub-acts { display: flex; gap: 7px; }
.pub-btn {
  flex: 1; height: 30px; line-height: 28px; border: 1px solid #dfe6f2; border-radius: 8px;
  background: #f8fafd; color: #4b5563; font-size: 12.5px; cursor: pointer; transition: .18s;
}
.pub-btn:hover { background: #eef3fb; color: #1d4ed8; border-color: #c9d9f5; }
.pub-btn.ghost { background: #fff; }
.pub-btn.primary {
  background: linear-gradient(135deg,#3b82f6,#1d4ed8); color: #fff; border: none;
  box-shadow: 0 4px 12px rgba(59,130,246,.3); font-weight: 600;
}
.pub-btn.primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(59,130,246,.4); }
.pub-btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }

.pub-panel {
  background: #fff; border: 1px solid #e8eef9; border-radius: 15px;
  padding: 20px 22px; margin-bottom: 18px; box-shadow: 0 4px 16px rgba(60,96,180,.06);
}
.pub-panel-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.pub-panel-head h3 { font-size: 15px; font-weight: 600; color: #1f2937; margin: 0; }
.pub-panel-head h3 i { color: #3b82f6; margin-right: 6px; }
.pub-panel-head .sub { font-size: 12.5px; color: #9ca3af; }

.pub-form { display: flex; flex-direction: column; gap: 13px; }
.pf-row { display: flex; align-items: center; gap: 12px; }
.pf-row label { width: 96px; flex-shrink: 0; font-size: 13px; color: #4b5563; font-weight: 500; }
.pf-row select, .pf-row input {
  flex: 1; height: 38px; border: 1px solid #dfe6f2; border-radius: 9px;
  padding: 0 13px; font-size: 13px; background: #fafcff;
}
.pf-row select:focus, .pf-row input:focus {
  border-color: #3b82f6; background: #fff; outline: none;
  box-shadow: 0 0 0 3px rgba(59,130,246,.11);
}
.pf-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pf-actions .pub-btn { flex: 0 0 auto; padding: 0 22px; height: 38px; line-height: 36px; }
.pf-tip { font-size: 12.5px; color: #6b7280; }
.pf-tip a { color: #3b82f6; text-decoration: underline; }

.pub-table { width: 100%; border-collapse: collapse; }
.pub-table th {
  text-align: left; font-size: 12.5px; color: #6b7280; font-weight: 600;
  padding: 9px 11px; border-bottom: 1px solid #eef2f8; background: #f9fbfe;
}
.pub-table td { padding: 10px 11px; border-bottom: 1px solid #f4f7fb; font-size: 13px; color: #374151; }
.pub-table tr:hover td { background: #f7fafe; }
.pub-table a { color: #3b82f6; }
.pub-tag { display: inline-block; background: #e8efff; color: #2563eb; font-size: 11.5px; padding: 2px 8px; border-radius: 5px; font-weight: 600; }

@media (max-width: 768px) {
  .pf-row { flex-direction: column; align-items: stretch; }
  .pf-row label { width: auto; }
  .pub-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
/* 批量发布 */
.batch-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.batch-item {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 15px; background: #f8fafd; border: 1px solid #e4ebf5;
  border-radius: 9px; font-size: 13px; color: #374151; cursor: pointer;
  transition: .18s; user-select: none;
}
.batch-item:hover { background: #eef3fb; border-color: #c9d9f5; }
.batch-item input { width: 15px; height: 15px; cursor: pointer; accent-color: #3b82f6; }
.batch-item:has(input:checked) { background: #eff6ff; border-color: #93c5fd; color: #1d4ed8; font-weight: 600; }

/* ============================================================
   AI 提及公司榜（收录监测页）
   ============================================================ */
.co-bar {
  font-size: 13px;
  color: #5b6b82;
  margin-bottom: 11px;
  padding: 9px 12px;
  background: #f8fafd;
  border: 1px solid #e8eef8;
  border-radius: 9px;
}
.co-bar b { color: #1d4ed8; }

.co-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.co-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px 6px 8px;
  background: #fff;
  border: 1px solid #e4ebf5;
  border-radius: 9px;
  font-size: 13px;
  color: #374151;
  line-height: 1.3;
  max-width: 100%;
  transition: .16s;
}
.co-chip:hover { border-color: #c9d9f5; background: #f8fafd; }

.co-chip .co-no {
  flex: 0 0 auto;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 5px;
  background: #eef2f8;
  color: #8494ab;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.co-chip .co-hit {
  flex: 0 0 auto;
  font-style: normal;
  font-size: 11.5px;
  color: #94a3b8;
  background: #f4f7fb;
  border-radius: 5px;
  padding: 0 5px;
}

/* 我方：金色高亮 */
.co-chip.self {
  background: linear-gradient(135deg, #fffaef, #fff5e0);
  border-color: #f0d9a8;
  color: #a3620e;
  font-weight: 700;
}
.co-chip.self .co-no { background: #f5c451; color: #7a4a08; }
.co-chip.self .co-hit { background: #fdf0d4; color: #b8801c; }

@media (max-width: 640px) {
  .co-list { gap: 6px; }
  .co-chip { font-size: 12.5px; padding: 5px 9px 5px 6px; gap: 5px; }
  .co-bar { font-size: 12.5px; padding: 8px 10px; }
}

/* ============================================================
   发布页 · 移动端（≤640px）
   表格转卡片，按钮等宽，触控区域加大
   ============================================================ */
@media (max-width: 640px) {
  /* --- 发布记录 表格 → 卡片 --- */
  .pub-table { display: block; width: 100%; }
  .pub-table thead { display: none; }

  .pub-table tbody { display: block; width: 100%; }

  .pub-table tr {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #e8eef8;
    border-radius: 12px;
    padding: 11px 13px 9px;
    margin-bottom: 9px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
  }
  .pub-table tr:last-child { margin-bottom: 0; }
  .pub-table tr:hover td { background: transparent; }

  .pub-table td {
    display: flex;
    align-items: baseline;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    padding: 2px 0;
    border: 0;
    font-size: 13px;
    line-height: 1.55;
    text-align: left;
  }
  .pub-table td::before {
    content: attr(data-label);
    flex: 0 0 40px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 500;
  }

  /* 标题：独占一行，去掉标签 */
  .pub-table td.c-title {
    display: block;
    font-size: 14.5px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.45;
    padding-bottom: 5px;
    word-break: break-word;
  }
  .pub-table td.c-title::before { display: none; }

  /* 平台标签不要竖排 */
  .pub-table td.c-plat .pub-tag {
    white-space: nowrap;
    font-size: 11.5px;
    padding: 1px 7px;
  }

  /* 空状态那行不要卡片样式 */
  .pub-table tr > td[colspan] { display: block; text-align: center !important; }
  .pub-table tr > td[colspan]::before { display: none; }

  /* --- 发布文章 / 批量发布 按钮 --- */
  .pub-panel .pub-actions,
  .pub-panel .pub-btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .pub-panel .pub-actions > .pub-btn,
  .pub-panel .pub-btn-row > .pub-btn {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    justify-content: center;
    min-height: 42px;
  }

  /* 单独一行的主按钮占满 */
  .pub-panel .pub-actions > .pub-btn:only-child,
  .pub-panel .pub-btn-row > .pub-btn:only-child { flex: 1 1 100%; }

  /* --- 表单控件：大触控区 --- */
  .pub-panel select,
  .pub-panel input[type="text"],
  .pub-panel input[type="number"],
  .pub-panel textarea {
    font-size: 16px;   /* 防 iOS 自动放大 */
    min-height: 42px;
  }

  /* --- 平台卡片：两列，紧凑 --- */
  .pub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .pub-grid .pub-card { padding: 11px 12px; border-radius: 12px; }

  /* --- 平台卡片里的按钮：加大触控区，均分一行 --- */
  .pub-card .pub-acts {
    display: flex;
    gap: 6px;
    margin-top: 8px;
  }
  .pub-card .pub-acts > .pub-btn {
    flex: 1 1 0;
    min-width: 0;
    height: 36px !important;          /* 覆盖 .pub-btn 固定 30px */
    line-height: 34px !important;
    padding: 0 4px;
    font-size: 12.5px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
  }
  /* 单个按钮占满整行 */
  .pub-card .pub-acts > .pub-btn:only-child { flex: 1 1 100%; }

  /* 卡片里的等级/步骤小字提高可读性 */
  .pub-card .pub-meta { font-size: 11.5px !important; }

  /* --- 标题行换行不挤 --- */
  .pub-panel-head { flex-wrap: wrap; row-gap: 3px; }
  .pub-panel-head h3 { font-size: 14.5px; }
  .pub-panel-head .sub { font-size: 11.5px; }
  .wall-head { font-size: 13.5px; }

  /* --- 图表在窄屏别撑破 --- */
  .pub-panel svg { max-width: 100%; height: auto; }
}

/* 超窄屏（≤360px）再来一档 */
@media (max-width: 360px) {
  .pub-grid { grid-template-columns: 1fr; }
  .pub-table td::before { flex-basis: 36px; font-size: 11.5px; }
}
/* ============================================================
   蒸馏词
   ============================================================ */
.dw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 11px;
}
.dw-item {
  border: 1px solid #e8eef8;
  border-radius: 11px;
  padding: 11px 13px;
  background: #fff;
  transition: .16s;
}
.dw-item:hover { border-color: #c9d9f5; box-shadow: 0 2px 8px rgba(59,130,246,.07); }
.dw-item.hot { background: linear-gradient(135deg,#fffaef,#fff7e6); border-color: #f0d9a8; }
.dw-top { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; }
.dw-no {
  flex: 0 0 auto; min-width: 19px; height: 19px; padding: 0 4px;
  border-radius: 5px; background: #eef2f8; color: #8494ab;
  font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.dw-item.hot .dw-no { background: #f5c451; color: #7a4a08; }
.dw-word { flex: 1; font-size: 14px; font-weight: 700; color: #0f172a; word-break: break-all; }
.dw-item.hot .dw-word { color: #a3620e; }
.dw-cnt { flex: 0 0 auto; font-size: 11.5px; color: #94a3b8; }
.dw-bar { height: 5px; background: #f1f5f9; border-radius: 3px; overflow: hidden; }
.dw-bar > i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg,#4f46e5,#a78bfa); }
.dw-item.hot .dw-bar > i { background: linear-gradient(90deg,#f59e0b,#fbbf24); }
.dw-sub { font-size: 11px; color: #a3aec0; margin-top: 6px; }

@media (max-width: 640px) {
  .dw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .dw-item { padding: 9px 10px; border-radius: 9px; }
  .dw-word { font-size: 13px; }
  .dw-cnt { font-size: 10.5px; }
}
/* ============================================================
   发布平台 · 网页内嵌扫码登录
   ============================================================ */
.qr-mask {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .55);
  backdrop-filter: blur(3px);
  z-index: 9998;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.qr-mask.on { display: flex; }

.qr-box {
  width: 340px;
  max-width: 100%;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .3);
  overflow: hidden;
  animation: qrIn .2s ease;
}
@keyframes qrIn {
  from { opacity: 0; transform: translateY(10px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

.qr-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid #f1f5f9;
}
.qr-head b { font-size: 15px; color: #0f172a; font-weight: 700; }
.qr-x {
  border: 0; background: transparent; cursor: pointer;
  font-size: 24px; line-height: 1; color: #94a3b8;
  padding: 0 2px; border-radius: 6px;
}
.qr-x:hover { color: #475569; background: #f1f5f9; }

.qr-body { padding: 18px 16px 6px; text-align: center; }
.qr-imgwrap {
  width: 190px; height: 190px;
  margin: 0 auto 14px;
  border: 1px solid #e8eef8;
  border-radius: 12px;
  background: #fbfdff;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.qr-imgwrap img { width: 100%; height: 100%; object-fit: contain; display: block; }

.qr-tip { font-size: 14px; font-weight: 600; color: #334155; margin-bottom: 6px; }
.qr-sub { font-size: 12.5px; color: #94a3b8; line-height: 1.6; min-height: 20px; }

.qr-foot {
  padding: 12px 16px 16px;
  display: flex; justify-content: center;
}

@media (max-width: 640px) {
  .qr-box { width: 300px; border-radius: 14px; }
  .qr-imgwrap { width: 165px; height: 165px; }
  .qr-tip { font-size: 13.5px; }
  .qr-sub { font-size: 12px; }
}
/* ============================================================
   发布页 · 浏览器插件授权
   ============================================================ */
.sync-box {
  background: #fff;
  border: 1px solid #e3ebf7;
  border-radius: 14px;
  margin-bottom: 18px;
  overflow: hidden;
}
.sync-head {
  padding: 14px 18px 12px;
  background: linear-gradient(135deg, #eef4ff, #f4f0ff);
  border-bottom: 1px solid #e8eefb;
}
.sync-head h3 {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 5px;
}
.sync-head h3 i { color: #6366f1; }
.sync-badge {
  font-size: 11px;
  font-weight: 600;
  color: #6d28d9;
  background: #ede9fe;
  border: 1px solid #ddd6fe;
  border-radius: 20px;
  padding: 2px 9px;
}
.sync-head p { font-size: 12.5px; color: #64748b; margin: 0; line-height: 1.6; }

.sync-body { padding: 14px 18px 16px; }

.sync-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.sync-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #475569;
  background: #f8fafd;
  border: 1px solid #eef2f9;
  border-radius: 9px;
  padding: 8px 10px;
}
.sync-step i {
  flex: 0 0 auto;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sync-keyrow {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.sync-keyrow label { font-size: 12.5px; color: #64748b; }
.sync-keyrow code {
  flex: 1;
  min-width: 220px;
  background: #f8fafd;
  border: 1px dashed #cdd9ec;
  border-radius: 8px;
  padding: 7px 11px;
  font-size: 12.5px;
  font-family: Consolas, Monaco, monospace;
  color: #334155;
  word-break: break-all;
}

.sync-acts { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.sync-acts a { text-decoration: none; }
.sync-tip { font-size: 12px; color: #94a3b8; margin-left: auto; }

@media (max-width: 768px) {
  .sync-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .sync-head { padding: 12px 14px 10px; }
  .sync-body { padding: 12px 14px 14px; }
  .sync-steps { grid-template-columns: 1fr; gap: 7px; }
  .sync-keyrow code { min-width: 0; width: 100%; }
  .sync-tip { margin-left: 0; width: 100%; }
}
/* ============================================================
   发布平台 · 系统授权窗口（浏览器风格）
   ============================================================ */
.rb-mask {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 16, 30, .72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9998;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.rb-mask.on { display: flex; }

.rb-box {
  width: min(1080px, 94vw);
  max-height: 90vh;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255,255,255,.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: rbPop .22s cubic-bezier(.22,1,.36,1);
}
@keyframes rbPop {
  from { opacity: 0; transform: translateY(14px) scale(.975); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 头部：浏览器风格 ---------- */
.rb-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: linear-gradient(180deg, #fbfcfe, #f4f7fb);
  border-bottom: 1px solid #e6edf7;
}

.rb-dots { display: flex; gap: 6px; flex: 0 0 auto; }
.rb-dots i {
  width: 11px; height: 11px; border-radius: 50%;
  display: inline-block;
}
.rb-dots i:nth-child(1) { background: #ff5f57; }
.rb-dots i:nth-child(2) { background: #febc2e; }
.rb-dots i:nth-child(3) { background: #28c840; }

/* 地址栏 */
.rb-addr {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid #e2e9f4;
  border-radius: 15px;
  box-shadow: inset 0 1px 2px rgba(15,23,42,.03);
}
.rb-addr i.fa { color: #10b981; font-size: 11px; flex: 0 0 auto; }
.rb-addr span {
  font-size: 12px;
  color: #475569;
  font-family: ui-monospace, Consolas, Monaco, monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 平台名 */
.rb-plat {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 11px;
  background: linear-gradient(135deg, #eef2ff, #f5f0ff);
  border: 1px solid #e0e7ff;
  border-radius: 13px;
  font-size: 12.5px;
  font-weight: 700;
  color: #4f46e5;
}

.rb-x {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  border: 0; background: transparent; cursor: pointer;
  border-radius: 8px;
  color: #94a3b8; font-size: 20px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  transition: .15s;
}
.rb-x:hover { background: #eef2f8; color: #334155; }

/* ---------- 画面 ---------- */
.rb-body {
  flex: 1 1 auto;
  min-height: 260px;
  background:
    radial-gradient(circle at 20% 0%, #eef4ff 0%, transparent 55%),
    #eef2f8;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 14px;
}

/* 关键：宽高都用 auto + max，才能保持原比例不变形 */
.rb-body img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 6px 22px rgba(15, 23, 42, .12);
  cursor: crosshair;
  user-select: none;
  -webkit-user-drag: none;
  transition: box-shadow .15s;
}
.rb-body img:hover { box-shadow: 0 8px 26px rgba(59, 130, 246, .2); }

/* 加载态 */
.rb-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 60px 24px;
  text-align: center;
}
.rb-spin {
  width: 34px; height: 34px;
  border: 3px solid #dbe7f8;
  border-top-color: #4f46e5;
  border-radius: 50%;
  animation: rbSpin .8s linear infinite;
}
@keyframes rbSpin { to { transform: rotate(360deg); } }
.rb-loadtext { font-size: 13px; color: #64748b; line-height: 1.7; max-width: 380px; }
.rb-loadtext b { display: block; font-size: 14.5px; color: #b45309; margin-bottom: 5px; }

/* ---------- 底部 ---------- */
.rb-foot {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  background: #fff;
  border-top: 1px solid #eef2f9;
  flex-wrap: wrap;
}
.rb-tip {
  flex: 1;
  min-width: 180px;
  font-size: 12.5px;
  color: #7c8aa0;
  display: flex;
  align-items: center;
  gap: 7px;
}
.rb-tip i { color: #6366f1; font-size: 13px; }

.rb-btn {
  height: 34px;
  padding: 0 16px;
  border-radius: 9px;
  border: 1px solid #e2e9f4;
  background: #fff;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: .15s;
}
.rb-btn:hover { background: #f6f9fe; border-color: #cfdcf0; color: #334155; }
.rb-btn.primary {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 3px 10px rgba(79, 70, 229, .25);
}
.rb-btn.primary:hover { box-shadow: 0 5px 16px rgba(79, 70, 229, .35); }

/* ---------- 小屏 ---------- */
@media (max-width: 900px) {
  .rb-mask { padding: 12px; }
  .rb-box { width: 100%; max-height: 94vh; }
  .rb-body { padding: 10px; min-height: 200px; }
  .rb-tip { display: none; }
}
@media (max-width: 640px) {
  .rb-mask { padding: 0; }
  .rb-box { width: 100%; height: 100vh; max-height: 100vh; border-radius: 0; }
  .rb-head { padding: 9px 10px; gap: 8px; }
  .rb-dots { display: none; }
  .rb-plat { display: none; }
  .rb-body { padding: 6px; min-height: 0; }
  .rb-foot { padding: 9px 10px; gap: 8px; }
  .rb-btn { flex: 1; justify-content: center; }
}
