/* ============================================
   刊物收集平台 - 全站样式
   ============================================ */

/* ---------- 基础重置 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: #f5f7fb;
  color: #303133;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: #3b5bdb; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }

/* ---------- 通用 ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 clamp(10px, 2.5vw, 24px); }
.muted { color: #909399; }
.text-center { text-align: center; }
.flex { display: flex; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.hidden { display: none !important; }

/* ---------- 顶部导航 ---------- */
.topbar {
  background: #fff;
  border-bottom: 1px solid #ebeef5;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 32px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.topbar .logo {
  font-size: 18px;
  font-weight: 700;
  color: #303133;
  display: flex;
  align-items: center;
  gap: 8px;
}
.topbar .logo .logo-icon {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, #5b7cff, #3b5bdb);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 14px;
}
/* 右上角「☰ 菜单」按钮 + 下拉菜单 */
.menu-wrap { position: relative; flex: none; }
/* 首页顶栏：菜单按钮旁的「刊物搜索」快捷按钮 */
.top-search-btn {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  background: #fff; color: #3b5bdb; border: 1px solid #c7d2fe;
  padding: 9px 14px; border-radius: 8px;
  font-size: 14px; font-weight: 500; font-family: inherit;
  cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.top-search-btn:hover { background: #eef2ff; border-color: #3b5bdb; }
.top-search-btn.active { background: #eef2ff; border-color: #3b5bdb; box-shadow: inset 0 0 0 1px #3b5bdb; }
.menu-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: linear-gradient(135deg, #5b7cff, #3b5bdb);
  color: #fff; border: none; cursor: pointer;
  padding: 9px 16px; border-radius: 8px;
  font-size: 14px; font-weight: 500; font-family: inherit;
  transition: opacity .2s, transform .2s;
}
.menu-btn:hover { opacity: .92; transform: translateY(-1px); }
.menu-btn .menu-ico { display: block; }
.menu-drop {
  position: absolute; top: calc(100% + 10px); right: 0;
  min-width: 190px; background: #fff;
  border: 1px solid #ebeef5; border-radius: 14px;
  box-shadow: 0 12px 32px rgba(31,45,90,.14);
  padding: 8px; z-index: 1000;
  opacity: 0; visibility: hidden;
  transform: translateY(-6px) scale(.98);
  transform-origin: top right;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.menu-drop.open { opacity: 1; visibility: visible; transform: none; }
.menu-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 11px 14px; border-radius: 10px;
  font-size: 14px; color: #303133; text-align: left;
  border: none; background: none; font-family: inherit; cursor: pointer;
  white-space: nowrap; transition: background .15s, color .15s;
}
.menu-item:hover { background: #f0f2ff; color: #3b5bdb; }
.menu-item.active { background: #eef0ff; color: #3b5bdb; font-weight: 600; }
.menu-item .mi-ico { font-size: 15px; width: 20px; text-align: center; flex: none; }

/* ---------- 首页 Hero ---------- */
.hero {
  background: linear-gradient(135deg, #5b7cff 0%, #3b5bdb 60%, #2845b8 100%);
  color: #fff;
  padding: clamp(26px, 5vw, 60px) 0 clamp(48px, 7vw, 80px);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -50%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero .hero-content { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(19px, 4vw, 36px);
  font-weight: 700;
  margin-bottom: clamp(8px, 1.6vw, 14px);
  letter-spacing: 1px;
}
.hero .hero-subtitle {
  font-size: clamp(13px, 1.8vw, 16px);
  opacity: .92;
  max-width: 700px;
  margin-bottom: clamp(14px, 3vw, 32px);
}
/* ---------- 首页广告位（后台可编辑） ---------- */
.notice-hero { background: none; padding: clamp(12px, 2.5vw, 28px) 0 clamp(10px, 1.5vw, 16px); }
.notice-hero::before { display: none; }
.notice-slot {
  display: block; position: relative; overflow: hidden;
  border-radius: 14px; padding: clamp(18px, 4.5vw, 44px) clamp(14px, 4vw, 40px); min-height: 88px;
  color: #fff; text-decoration: none;
  background: linear-gradient(135deg, #5b7cff 0%, #3b5bdb 60%, #2845b8 100%);
  /* 兜底纯色：背景图加载失败（防盗链 / HTTP 混合内容 / 手机网络被拦截）
     或被内联样式顶掉渐变时，白字不会掉进白底里变成「看不见」 */
  background-color: #3b5bdb;
  box-shadow: 0 8px 24px rgba(40, 69, 184, .22);
}
.notice-slot.has-image { background-size: cover; background-position: center; }
.notice-slot.has-image::before {
  content: ""; position: absolute;
  top: 0; right: 0; bottom: 0; left: 0; inset: 0;
  background: rgba(23, 37, 84, .5);
}
.notice-slot .notice-body { position: relative; z-index: 1; }
.notice-title { font-size: clamp(18px, 3.4vw, 30px); font-weight: 700; letter-spacing: 1px; line-height: 1.4; margin-bottom: clamp(6px, 1.2vw, 12px); }
.notice-text { font-size: clamp(13px, 1.7vw, 15px); opacity: .95; line-height: 1.8; max-width: 760px; white-space: pre-wrap; margin-bottom: clamp(12px, 2vw, 18px); }
/* 深黄字深蓝底：底色比蓝色广告位再深一档，按钮才不会糊在渐变里看不见 */
.notice-btn {
  display: inline-flex; align-items: center;
  background: #1e34a0; color: #e6b800;
  padding: clamp(8px, 1vw, 9px) clamp(16px, 3vw, 24px); border-radius: 8px;
  font-size: clamp(13px, 1.5vw, 14px); font-weight: 600;
}
.notice-btn:hover { background: #2845b8; }
.notice-slot:hover { filter: brightness(1.03); }
/* 广告位整块是一个 <a>，会被最上面的 a:hover{color:#3b5bdb} 顶掉自身的白色 ——
   鼠标一靠近，标题和正文就变成深蓝字，落在蓝底上几乎看不清。
   这里显式指定悬停色为深黄色（选择器权重高于 a:hover，且子元素一并继承）。 */
.notice-slot:hover,
.notice-slot:hover .notice-title,
.notice-slot:hover .notice-text { color: #e6b800; }

/* ---------- 统计条（关于页顶部居中公开显示） ---------- */
.stat-item { font-size: 14px; color: #606266; }
.stat-item b { display: block; font-size: clamp(17px, 3.2vw, 28px); font-weight: 700; color: #303133; margin-bottom: 4px; }
.about-stats {
  display: flex; justify-content: center; gap: 56px; flex-wrap: wrap; text-align: center;
  background: #fff; border: 1px solid #ebeef5; border-radius: 12px;
  padding: 22px 30px; margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

/* 广告位隐藏时，搜索区不再上浮遮挡 */

/* ---------- 搜索区 ---------- */
.search-section {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  margin: 12px 24px 0;
  position: relative;
  z-index: 2;
  box-shadow: 0 6px 24px rgba(60, 80, 180, .10);
  max-width: 1152px;
  margin-left: auto;
  margin-right: auto;
  /* 顶部导航是 sticky（60px），展开时滚动留出空间，避免被导航遮挡 */
  scroll-margin-top: 76px;
}
/* 收起时的「正在筛选」提示 */
/* 「重新搜索刊物」文字链接（紧跟「共 N 本」后面） */
.refilter-link {
  flex: none; cursor: pointer; margin-left: 8px;
  font-size: 13px; color: #3b5bdb; font-weight: 400;
  text-decoration: underline; text-underline-offset: 3px;
  transition: color .15s;
}
.refilter-link:hover { color: #2a48b8; }
/* 筛选条件的文字描述（换行显示，纯文字不可点击） */
.filter-note {
  flex: 1 1 100%; font-size: 13px; color: #909399; font-weight: 400;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* 榜单标题统计数字与操作提示突出显示 */
.section-title .meta b { color: #3b5bdb; font-size: 15px; }
.list-tip { font-size: 13px; color: #909399; margin: -10px 0 14px; }
/* 描述中的强调字眼 */
.filter-note .hl, .list-tip .hl, .muted .hl { color: #3b5bdb; font-weight: 600; }
.refilter-link:hover { color: #2a48b8; }

/* 展开后的搜索面板 */
.search-panel { animation: searchPanelIn .22s ease; }
@keyframes searchPanelIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
.search-panel .summary-bar { margin: 18px 0 0; }
.search-panel .summary-card { background: #f7f9fc; box-shadow: none; }

.search-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.search-input {
  flex: 1; min-width: 220px;
  border: 1px solid #dcdfe6;
  border-radius: 8px;
  padding: 11px 16px;
  font-size: 14px;
  color: #303133;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.search-input:focus { border-color: #3b5bdb; box-shadow: 0 0 0 3px rgba(59,91,219,.12); }
.search-input::placeholder { color: #c0c4cc; }

.select {
  border: 1px solid #dcdfe6;
  border-radius: 8px;
  padding: 11px 16px;
  font-size: 14px;
  background: #fff;
  color: #303133;
  outline: none;
  cursor: pointer;
  min-width: 130px;
  transition: border-color .2s;
}
.select:focus { border-color: #3b5bdb; }

.btn-primary {
  background: linear-gradient(135deg, #5b7cff, #3b5bdb);
  color: #fff;
  border-radius: 8px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 500;
  transition: opacity .2s, transform .2s;
  white-space: nowrap;
}
.btn-primary:hover { opacity: .9; }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }

.btn-secondary {
  background: #fff;
  color: #606266;
  border: 1px solid #dcdfe6;
  border-radius: 8px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 500;
  transition: all .2s;
  white-space: nowrap;
}
.btn-secondary:hover { color: #3b5bdb; border-color: #3b5bdb; }

.btn-ghost {
  background: transparent;
  color: #606266;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  transition: all .2s;
}
.btn-ghost:hover { color: #3b5bdb; background: #f0f2ff; }
.btn-ghost.danger:hover { color: #f56c6c; background: #fef0f0; }
/* 「🌐 实时外网搜索」按钮：黄底高亮，一眼能和普通搜索分开
   （它是实时联网检索，耗时长，值得站长特别留意） */
.btn-live {
  background: #fff3bf;
  color: #8a6100;
  border: 1px solid #f0b400;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.btn-live:hover { background: #ffe066; color: #6e4f00; }
.btn-live:disabled { opacity: .65; cursor: default; }
/* 「全选全部结果」：批量勾选入口，蓝底高亮让人一眼看到 */
.btn-pick {
  background: #e7f0ff;
  color: #2b4acb;
  border: 1px solid #7c9cff;
  border-radius: 8px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.btn-pick:hover { background: #d6e4ff; color: #1d3ab8; }
/* 「🔄 更新索引」：青色高亮 —— 索引是本机搜索的根，值得一眼看到 */
.btn-idx {
  background: #d3f5ef;
  color: #0b7a66;
  border: 1px solid #3ecfb2;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.btn-idx:hover { background: #bfeede; color: #085e4f; }
.btn-idx:disabled { opacity: .65; cursor: default; }
/* 「🗑 删除选中」（备份列表）：红底危险色，提醒这是不可恢复的删除操作 */
.btn-del {
  background: #fdecec;
  color: #d63a3a;
  border: 1px solid #f08a8a;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.btn-del:hover { background: #fbd9d9; color: #b32222; }
.btn-del:disabled { opacity: .55; cursor: default; }

/* ---------- 统计概览 ---------- */
.summary-bar {
  display: flex;
  gap: 12px;
  margin: 24px 0 16px;
  flex-wrap: wrap;
}
.summary-card {
  background: #fff;
  border-radius: 10px;
  padding: 14px 20px;
  flex: 1;
  min-width: 140px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  border-left: 3px solid #3b5bdb;
}
.summary-card .label { font-size: 12px; color: #909399; margin-bottom: 6px; }
.summary-card .value { font-size: clamp(18px, 2.2vw, 22px); font-weight: 700; color: #303133; }
.summary-card.green { border-left-color: #67c23a; }
.summary-card.orange { border-left-color: #e6a23c; }
.summary-card.purple { border-left-color: #9b59ff; }

/* ---------- 主内容区 ---------- */
.main-section {
  padding: 8px clamp(10px, 2.5vw, 24px) clamp(16px, 2.5vw, 28px);
  max-width: 1200px; margin: 0 auto;
}
/* 首页榜单上方的筛选提示条：无可见内容时高度为 0（flex 空容器不占空间），
   广告位隐藏时这里也不会留下空白 */
.filter-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
  margin: 0 0 0;
}
.filter-bar:has(.refilter-link:not(.hidden)),
.filter-bar:has(.filter-note:not(.hidden)) {
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(16px, 2.2vw, 20px);
  font-weight: 700;
  color: #303133;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.section-title .meta { font-size: 13px; color: #909399; font-weight: 400; }

/* ---------- 刊物卡片网格 ---------- */
.pub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 18px;
}

.pub-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  border: 1px solid #ebeef5;
  transition: all .2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.pub-card:hover {
  border-color: #3b5bdb;
  box-shadow: 0 6px 20px rgba(59,91,219,.12);
  transform: translateY(-2px);
}
.pub-card .card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.pub-card .pub-name {
  font-size: 16px;
  font-weight: 600;
  color: #303133;
  flex: 1;
  line-height: 1.4;
}
.pub-card .pub-status {
  flex-shrink: 0;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.pub-card .pub-status.open { background: #f0f9eb; color: #67c23a; }
.pub-card .pub-status.stop { background: #fef0f0; color: #f56c6c; }
.pub-card .pub-status.busy { background: #fdf6ec; color: #e6a23c; }

.pub-card .pub-issn {
  font-size: 12px;
  color: #909399;
  margin-bottom: 12px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}
.pub-card .pub-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.pub-card .pub-meta {
  font-size: 12px;
  color: #606266;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
}
.pub-card .pub-meta .row {
  display: flex;
  gap: 4px;
  align-items: center;
}
.pub-card .pub-meta .label { color: #909399; min-width: 56px; }

/* ---------- 标签 ---------- */
.tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  background: #f0f2ff;
  color: #3b5bdb;
  display: inline-block;
  white-space: nowrap;
}
.tag.green { background: #f0f9eb; color: #67c23a; }
.tag.orange { background: #fdf6ec; color: #e6a23c; }
/* 排名权重：与名次徽章的权重黄保持一致 */
.tag.yellow { background: #fdf6ec; color: #d48806; }
.tag.red { background: #fef0f0; color: #f56c6c; }
.tag.gray { background: #f4f4f5; color: #909399; }
.tag.purple { background: #f5edff; color: #9b59ff; }

/* ---------- 只读模式提示条 ---------- */
.readonly-tip {
  background: #fdf6ec;
  border: 1px solid #f5dab1;
  color: #b8822c;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 16px;
}
.readonly-tip b { color: #e6a23c; }
.readonly-tip a { color: #2a48b8; text-decoration: underline; }

/* ---------- 空状态 ---------- */
.empty {
  background: #fff;
  border-radius: 12px;
  padding: 60px 20px;
  text-align: center;
  color: #909399;
  border: 1px dashed #dcdfe6;
}
.empty .emoji { font-size: 48px; margin-bottom: 12px; opacity: .6; }
.empty .text { font-size: 14px; }
.empty .btn-primary { margin-top: 16px; display: inline-block; }

/* ---------- 表单 ---------- */
.form-card {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.form-row.full { grid-template-columns: 1fr; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #303133;
  margin-bottom: 8px;
}
.form-group label .required { color: #f56c6c; margin-left: 2px; }
.form-group .hint {
  font-size: 12px;
  color: #909399;
  margin-top: 4px;
}
.form-group .input,
.form-group .textarea {
  width: 100%;
  border: 1px solid #dcdfe6;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  color: #303133;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  background: #fff;
}
.form-group .textarea { resize: vertical; min-height: 90px; line-height: 1.6; }
.form-group .input:focus,
.form-group .textarea:focus,
.form-group .select:focus { border-color: #3b5bdb; box-shadow: 0 0 0 3px rgba(59,91,219,.12); }
.form-group .input::placeholder,
.form-group .textarea::placeholder { color: #c0c4cc; }

.form-section-title {
  font-size: 15px;
  font-weight: 600;
  color: #303133;
  margin: 24px 0 16px;
  padding-left: 10px;
  border-left: 3px solid #3b5bdb;
}
.form-section-title:first-child { margin-top: 0; }

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #ebeef5;
}

/* ---------- 详情页 ---------- */
.detail-breadcrumb {
  font-size: 13px;
  color: #909399;
  margin-bottom: 16px;
}
.detail-breadcrumb a:hover { color: #3b5bdb; }
.detail-card {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  margin-bottom: 18px;
}
.detail-card h1 {
  font-size: clamp(19px, 2.6vw, 26px);
  font-weight: 700;
  color: #303133;
  margin-bottom: 12px;
  line-height: 1.3;
}
.detail-card .header-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #ebeef5;
}
.detail-card .issn-line {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
  color: #606266;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px 24px;
  margin-bottom: 24px;
}
.info-item .label {
  font-size: 12px;
  color: #909399;
  margin-bottom: 4px;
}
.info-item .value {
  font-size: 14px;
  color: #303133;
  font-weight: 500;
}

.detail-section { margin-top: 24px; }
.detail-section h3 {
  font-size: 15px;
  font-weight: 600;
  color: #303133;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.detail-section .body {
  background: #f7f8fc;
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 14px;
  color: #303133;
  line-height: 1.8;
  white-space: pre-wrap;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 13px;
  background: #f0f2ff;
  color: #3b5bdb;
  border: 1px solid transparent;
  transition: all .2s;
  font-family: inherit;
}
.contact-btn:hover { border-color: #3b5bdb; background: #e8ecff; }
.contact-btn.green { background: #f0f9eb; color: #67c23a; }
.contact-btn.green:hover { border-color: #67c23a; background: #e8f7e0; }
.contact-btn.orange { background: #fdf6ec; color: #e6a23c; }
.contact-btn.orange:hover { border-color: #e6a23c; background: #fbe9cc; }

/* ---------- Toast 消息 ---------- */
.toast-container {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  pointer-events: none;
}
.toast {
  background: #fff;
  border-radius: 8px;
  padding: 12px 20px;
  margin-bottom: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
  font-size: 14px;
  color: #303133;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 240px;
  pointer-events: auto;
  animation: toast-in .25s ease-out;
}
.toast.success { border-left: 4px solid #67c23a; }
.toast.success::before { content: "✓"; color: #67c23a; font-weight: 700; }
.toast.error { border-left: 4px solid #f56c6c; }
.toast.error::before { content: "✕"; color: #f56c6c; font-weight: 700; }
.toast.warning { border-left: 4px solid #e6a23c; }
.toast.warning::before { content: "!"; color: #e6a23c; font-weight: 700; }
.toast.info { border-left: 4px solid #3b5bdb; }
.toast.info::before { content: "i"; color: #3b5bdb; font-weight: 700; font-style: italic; }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- 底部 ---------- */
.footer {
  background: #3b5bdb;
  border-top: none;
  padding: 28px 24px;
  margin-top: 16px;
  text-align: center;
  color: rgba(255, 255, 255, .92);
  font-size: 13px;
}
.footer .links { display: flex; justify-content: center; gap: 20px; margin-bottom: 10px; }
.footer .links a { color: #fff; }
.footer .links a:hover { color: #c7d4ff; }
.footer .copyright { color: rgba(255, 255, 255, .75); font-size: 12px; }

/* ---------- 关于/联系 ---------- */
.about-card {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  margin-bottom: 18px;
}
.about-card h2 {
  font-size: 20px;
  font-weight: 700;
  color: #303133;
  margin-bottom: 14px;
}
.about-card p {
  color: #606266;
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 10px;
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.contact-item {
  background: #f7f8fc;
  border-radius: 10px;
  padding: 16px;
}
.contact-item .label {
  font-size: 12px;
  color: #909399;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.contact-item .value {
  font-size: 14px;
  color: #303133;
  font-weight: 500;
  word-break: break-all;
}
.contact-item .copy-btn {
  font-size: 11px;
  margin-left: 8px;
  color: #3b5bdb;
  cursor: pointer;
}
.contact-item .copy-btn:hover { text-decoration: underline; }

.admin-panel {
  background: linear-gradient(135deg, #fff8e1, #fff3cd);
  border: 1px dashed #e6a23c;
  border-radius: 12px;
  padding: 24px;
  margin-top: 18px;
}
.admin-panel h3 {
  font-size: 15px;
  font-weight: 600;
  color: #b88230;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.admin-panel p {
  font-size: 13px;
  color: #606266;
  margin-bottom: 14px;
  line-height: 1.7;
}
.admin-panel .admin-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- 关于页卡片标题 ---------- */
.about-card h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---------- 分页 ---------- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 28px;
}
.pagination button {
  min-width: 34px;
  height: 34px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #dcdfe6;
  color: #606266;
  font-size: 13px;
  padding: 0 10px;
  transition: all .2s;
}
.pagination button:hover:not(:disabled) { color: #3b5bdb; border-color: #3b5bdb; }
.pagination button.active {
  background: linear-gradient(135deg, #5b7cff, #3b5bdb);
  color: #fff;
  border-color: transparent;
}
.pagination button:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- 状态标签（通用） ---------- */
.pub-status {
  display: inline-block; white-space: nowrap;
  font-size: 12px; padding: 2px 8px; border-radius: 4px;
  background: #f4f4f5; color: #909399;
}
.pub-status.open { background: #f0f9eb; color: #67c23a; }
.pub-status.stop { background: #fef0f0; color: #f56c6c; }
.pub-status.busy { background: #fdf6ec; color: #e6a23c; }

/* ---------- 排名徽章 / 卡片增强 ---------- */
.rank-wrap { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rank-badge {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 8px;
  font-size: 13px; font-weight: 700; color: #606266; background: #f0f2f7;
}
/* 名次徽章配色：置顶 = 红，有权重 = 黄，其余 = 灰。
   d0 → d3 由深到浅，对应名次 1-3 / 4-6 / 7-9 / 10 名往后，越靠后越淡。
   （背景越深配白字，背景变淡后改配同色系深字，保证始终看得清） */
.rank-badge.other { background: #e8eaef; color: #5a6270; }

.rank-badge.pin.d0 { background: #f56c6c; color: #fff; }
.rank-badge.pin.d1 { background: #f89a9a; color: #7a1f1f; }
.rank-badge.pin.d2 { background: #fbc9c9; color: #a02020; }
.rank-badge.pin.d3 { background: #fde8e8; color: #a02020; }

.rank-badge.wt.d0 { background: #e6a23c; color: #fff; }
.rank-badge.wt.d1 { background: #f0b96b; color: #7a4b00; }
.rank-badge.wt.d2 { background: #f7d9a8; color: #8a5a10; }
.rank-badge.wt.d3 { background: #fdf3e0; color: #8a5a10; }

/* 置顶标签：与名次徽章的置顶红保持一致 */
.pin-tag {
  flex: none; font-size: 11px; color: #c0392b;
  background: #fde8e8; border-radius: 4px; padding: 2px 8px;
}
.pub-intro {
  font-size: 13px; color: #606266; line-height: 1.6; margin: 8px 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.contact-text { word-break: break-all; }
.card-actions {
  display: flex; gap: 8px; justify-content: flex-end;
  margin-top: 12px; padding-top: 10px; border-top: 1px dashed #ebeef5;
}
.notice {
  background: #fdf6ec; border: 1px solid #f3d19e; color: #a26a1b;
  border-radius: 10px; padding: 12px 16px; font-size: 13px; margin-bottom: 16px;
}

/* ---------- 单列榜单（单列向下、可展开详情） ---------- */
.pub-list { display: flex; flex-direction: column; gap: 12px; }
.list-item {
  background: #fff; border: 1px solid #ebeef5; border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  transition: border-color .2s, box-shadow .2s;
}
.list-item:hover { border-color: #c7d2ff; box-shadow: 0 6px 18px rgba(59,91,219,.10); }
.list-item.open { border-color: #3b5bdb; box-shadow: 0 6px 20px rgba(59,91,219,.12); }

.list-head {
  display: grid;
  grid-template-columns: 34px minmax(0, 1.8fr) 110px minmax(0, 1.6fr) auto 24px;
  align-items: center; gap: 14px;
  padding: 14px 18px; cursor: pointer;
}
.list-head:focus { outline: none; }
.list-head:focus-visible { box-shadow: inset 0 0 0 2px rgba(59,91,219,.3); }
.list-head .col-name { min-width: 0; }
.list-head .pub-name {
  font-size: 16px; font-weight: 600; color: #303133; line-height: 1.4; word-break: break-all;
}
.list-head .name-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.list-head .col-level,
.list-head .col-contact { min-width: 0; display: flex; align-items: center; gap: 6px; }
.list-head .cell-tip { display: none; font-size: 12px; color: #909399; flex: none; }
.list-head .contact-text {
  font-size: 13px; color: #606266; line-height: 1.5; word-break: break-all;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.list-head .col-action { display: flex; justify-content: flex-end; }
.list-head .col-toggle { display: flex; justify-content: center; }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 7px; }
.list-toggle { color: #c0c4cc; font-size: 13px; line-height: 1; transition: transform .25s, color .2s; }
.list-item.open .list-toggle { transform: rotate(180deg); color: #3b5bdb; }

/* ---------- 我提交的刊物 / 本站最近新增（.mine-list） ----------
   默认收起，但一行内就把信息显示完（刊名 / 状态 / 级别 / 简介 / 提交时间 / 操作），
   长文本一律截断、绝不溢出整行；点击整行才展开完整信息。
   只作用于本列表，不影响首页榜单（首页榜单仍是 6 列）。 */
.mine-list .list-head {
  grid-template-columns: 34px minmax(0, 1.7fr) 96px minmax(0, 1.4fr) 116px auto 24px;
}
.mine-list .list-head .pub-name,
.mine-list .list-head .brief-text,
.mine-list .list-head .contact-text {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mine-list .list-head .name-tags { flex-wrap: nowrap; overflow: hidden; }
.mine-list .list-head .col-brief {
  min-width: 0; display: flex; align-items: center; gap: 6px; overflow: hidden;
}
.mine-list .list-head .brief-text { font-size: 13px; color: #606266; line-height: 1.5; }
.mine-list .list-head .col-level { overflow: hidden; }
/* 中等宽度：列宽与留白再收一档，保证仍是一行且不溢出 */
@media (min-width: 901px) and (max-width: 1100px) {
  .mine-list .list-head {
    grid-template-columns: 30px minmax(0, 1.6fr) 84px minmax(0, 1.3fr) 104px auto 22px;
    gap: 10px; padding: 12px 14px;
  }
  .mine-list .list-head .col-action .btn-sm { padding: 6px 10px; font-size: 12px; }
}

.list-detail { display: none; border-top: 1px dashed #ebeef5; padding: 16px 18px 18px; }
.list-item.open .list-detail { display: block; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 20px; }
.detail-block + .detail-block { margin-top: 16px; }
.detail-block h4 { font-size: 13px; font-weight: 600; color: #303133; margin-bottom: 8px; }
/* 会员中心「我的刊物」展开后的完整信息区（栅格布局，块间距走 gap） */
.my-detail-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px 20px; align-items: start;
}
.my-detail-grid .detail-block + .detail-block { margin-top: 0; }
/* 首页榜单：刊名下方的置顶 / 权重 / 分类小标签 */
.admin-table.front-table .name-tags {
  display: flex; gap: 6px; margin-top: 4px;
}
.admin-table.front-table .name-tags .tag,
.admin-table.front-table .name-tags .pin-tag { flex: none; }
/* 后台「刊物采集」：联系方式 / 主办单位 / 来源网址一律单行截断，不把行撑溢出 */
.admin-table.hv-table .cell-sub,
.admin-table.hv-table a.hv-src {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.admin-table.hv-table a.hv-src { display: inline-block; max-width: 100%; vertical-align: middle; }
.detail-info { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 18px; }
.detail-info .info-row { display: flex; gap: 8px; font-size: 13px; line-height: 1.6; }
.detail-info .info-row .label { color: #909399; flex: none; min-width: 60px; }
.detail-info .info-row .value { color: #303133; word-break: break-all; }
.detail-intro { font-size: 13px; color: #606266; line-height: 1.7; white-space: pre-wrap; }
.detail-side {
  border-left: 1px dashed #ebeef5; padding-left: 20px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
}
.detail-side .contact-line { font-size: 13px; padding: 6px 10px; }
.detail-side .side-enter { display: block; width: 100%; text-align: center; margin-top: auto; }
.detail-side .side-del {
  display: block; width: 100%; text-align: center;
  padding: 7px 0; border: 1px dashed #f5b5b5; border-radius: 7px;
  background: transparent; color: #f56c6c; font-size: 13px; cursor: pointer;
  transition: background .2s, border-color .2s;
}
.detail-side .side-del:hover { background: #fef0f0; border-color: #f56c6c; }

@media (max-width: 900px) {
  .list-head {
    grid-template-columns: 30px minmax(0, 1fr) auto 22px;
    row-gap: 8px; padding: 14px;
  }
  .list-head .col-rank { grid-column: 1; grid-row: 1; }
  .list-head .col-name { grid-column: 2; grid-row: 1; }
  .list-head .col-action { grid-column: 3; grid-row: 1; }
  .list-head .col-toggle { grid-column: 4; grid-row: 1; }
  .list-head .col-level { grid-column: 2 / 5; grid-row: 2; }
  .list-head .col-contact { grid-column: 2 / 5; grid-row: 3; }
  /* 我提交的刊物：简介单独占一行，提交时间顺延 */
  .mine-list .list-head { grid-template-columns: 30px minmax(0, 1fr) auto 22px; }
  .mine-list .list-head .col-brief { grid-column: 2 / 5; grid-row: 3; }
  .mine-list .list-head .col-contact { grid-column: 2 / 5; grid-row: 4; }
  .list-head .cell-tip { display: inline; }
  .list-head .col-action .btn-sm { padding: 6px 10px; font-size: 12px; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-side {
    border-left: none; border-top: 1px dashed #ebeef5;
    padding-left: 0; padding-top: 14px;
  }
}

/* ---------- 通用输入框 / 行 ---------- */
.input {
  border: 1px solid #dcdfe6; border-radius: 8px; padding: 10px 14px;
  font-size: 14px; outline: none; background: #fff; color: #303133;
  transition: border-color .2s, box-shadow .2s;
}
.input:focus { border-color: #3b5bdb; box-shadow: 0 0 0 3px rgba(59,91,219,.12); }
.gate-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.gate-tip { font-size: 12px; color: #f56c6c; min-height: 16px; }

/* ---------- 后台管理 ---------- */
.admin-card {
  background: #fff; border-radius: 14px; padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06); margin-bottom: 20px;
}
.admin-card h2 { font-size: 17px; color: #303133; }

/* ---------- 后台分区（点击标题展开 / 收起） ---------- */
.panel-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.admin-card.panel { padding: 0; overflow: hidden; }
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; text-align: left; cursor: pointer;
  /* 浅蓝底：十来个分区标题在白卡片上先有色块分层，扫一眼就能定位 */
  background: #d8e4fa; border: none; font-family: inherit;
  padding: 16px 20px;
  font-size: 17px; font-weight: 700; color: #24335e;
  transition: background .15s;
}
.panel-head:hover { background: #c9daf5; }
.panel-head .ph-title { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.panel-head .ph-arrow { flex: none; color: #909399; font-size: 12px; transition: transform .25s; }
/* 「退出登录」跟在「📊 刊物概况」后面：蓝色文字。
   它在折叠按钮内部，点击时必须阻止冒泡，否则会顺带把分区收起 */
.ph-logout {
  flex: none; font-size: 13px; font-weight: 400; color: #3b5bdb;
  cursor: pointer; user-select: none; padding: 2px 5px; border-radius: 4px;
  transition: background .15s;
}
.ph-logout:hover { text-decoration: underline; background: rgba(59,91,219,.08); }
.ph-logout:focus-visible { outline: 2px solid rgba(59,91,219,.5); outline-offset: 1px; }
.admin-card.panel.open .ph-arrow { transform: rotate(180deg); }
.panel-body { display: none; padding: 0 20px 20px; border-top: 1px solid #ebeef5; }
.admin-card.panel.open .panel-body { display: block; }
.panel-body > *:first-child { margin-top: 16px; }

/* ---------- 卡片内迷你折叠条（如「会员概况」统计条） ---------- */
.mini-panel {
  border: 1px solid #ebeef5; border-radius: 10px;
  margin: 14px 0 0; overflow: hidden; background: #fafbfd;
}
.mini-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; text-align: left; cursor: pointer;
  background: none; border: none; font-family: inherit;
  padding: 11px 14px; font-size: 14px; font-weight: 600; color: #303133;
  transition: background .15s;
}
.mini-head:hover { background: #f0f2f7; }
.mini-head .ph-title { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.mini-head .ph-arrow { flex: none; color: #909399; font-size: 12px; transition: transform .25s; }
.mini-panel.open .ph-arrow { transform: rotate(180deg); }
.mini-body { display: none; padding: 12px 14px 14px; border-top: 1px solid #ebeef5; background: #fff; }
.mini-panel.open .mini-body { display: block; }
.mini-body .summary-bar { margin: 0; }

/* ---------- 前台搜索：筛选按钮下拉菜单 ---------- */
.filter-drop { position: relative; flex: none; }
.filter-btn { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.filter-btn .fd-arrow { font-size: 11px; color: #909399; transition: transform .2s; }
.filter-btn[aria-expanded="true"] .fd-arrow { transform: rotate(180deg); }
.filter-count { font-size: 12px; font-weight: 600; color: #3b5bdb; }
.filter-menu {
  position: absolute; top: calc(100% + 8px); left: 0;
  width: 260px; background: #fff;
  border: 1px solid #ebeef5; border-radius: 12px;
  box-shadow: 0 12px 32px rgba(31,45,90,.14);
  padding: 14px; z-index: 60;
}
.fm-group + .fm-group { margin-top: 12px; }
.fm-label { display: block; font-size: 12px; color: #909399; margin-bottom: 6px; }
.fm-group .select { width: 100%; min-width: 0; }

/* 前台统计折叠条（复用 mini-panel，微调与搜索面板的间距） */
.mini-panel.front { margin: 14px 0 0; }

.admin-card code {
  background: #f4f5f7; padding: 1px 6px; border-radius: 4px; font-size: 12px; color: #3b5bdb;
}
.admin-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 16px 0; }
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.table-wrap { overflow-x: auto; border: 1px solid #ebeef5; border-radius: 10px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 900px; }
.admin-table th {
  background: #f7f8fc; color: #606266; font-weight: 600; text-align: left;
  padding: 11px 12px; border-bottom: 1px solid #ebeef5; white-space: nowrap;
}
.admin-table td { padding: 10px 12px; border-bottom: 1px solid #f2f4f8; vertical-align: top; }
.admin-table tr:hover td { background: #fafbff; }
/* 前台首页榜单：表头底色比内容行深一档，一眼就能分清表头与数据行 */
.admin-table.front-table thead th {
  background: #e6edfa; color: #46587a;
  border-bottom: 1px solid #d3dff2;
}
/* 前台首页榜单：鼠标划过整行时底色加深，横向看「刊名 → 级别 → 状态」不容易串行
   （≤900px 表格会降级成卡片，那时整卡已是白底 + 阴影，不套用这条） */
@media (min-width: 901px) {
  .admin-table.front-table tbody tr:hover td { background: #eaf1ff; }
  .admin-table.front-table tbody tr:hover td:first-child { background: #e3ecff; }
}
.cell-name { font-weight: 600; color: #303133; margin-bottom: 2px; }
.cell-sub { font-size: 12px; color: #606266; line-height: 1.5; word-break: break-all; }
.rank-ops { display: flex; gap: 2px; margin-top: 4px; }
.rank-ops .btn-ghost { padding: 1px 6px; font-size: 12px; }
.ops { white-space: nowrap; }
.ops .btn-ghost {
  padding: 3px 8px; font-size: 12px;
  border: 1px solid #e4e7ed; border-radius: 6px;
}

/* ---------- 详情 / 关于页补充 ---------- */
.contact-lines { display: flex; flex-direction: column; gap: 8px; }
.contact-line {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #f7f8fc; border-radius: 8px; padding: 8px 12px; font-size: 14px;
  word-break: break-all;
}
.feature-list { margin: 10px 0 0 20px; font-size: 14px; color: #606266; }
.feature-list li { margin-bottom: 4px; }

/* ---------- 弹窗 ---------- */
.modal-mask {
  /* 四个方向必须写全：老手机浏览器不认得 inset，
     缺了就变成「弹窗跑到页面最底部」，点了编辑看起来毫无反应 */
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center; z-index: 99; padding: 20px;
  -webkit-overflow-scrolling: touch;
}
.modal {
  background: #fff; border-radius: 14px; width: 100%; max-width: 640px;
  max-height: 88vh; overflow: auto; padding: 20px 24px 24px;
}
/* 窄弹窗（如「修改密码」）：窄屏时由后面的响应式规则接管，不会撑出屏幕 */
.modal-narrow { max-width: 420px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 16px; }
/* 结果提示框（搜索 / 采集完成）：必须点「确认」才关闭，不会自动消失 */
.notice-box { max-width: 460px; padding: 18px 22px 20px; }
/* 层级比普通弹窗高一点，免得被别的弹窗盖住 */
.notice-mask { z-index: 200; }
.notice-title { font-size: 16px; color: #303133; }
.notice-x { padding: 4px 9px; font-size: 13px; line-height: 1; }
.notice-lead { font-size: 14px; color: #303133; line-height: 1.7; margin-bottom: 10px; }
.notice-list { margin: 0; padding-left: 18px; font-size: 13px; color: #606266; line-height: 1.9; }
.notice-list li { margin-bottom: 2px; word-break: break-all; }
.notice-foot { margin-top: 16px; text-align: right; }
.notice-ok { min-width: 100px; }

/* ---------- 刊物采集 ---------- */
.hv-log {
  margin-top: 12px; border: 1px solid #ebeef5; border-radius: 10px; background: #fbfcff;
  padding: 10px 14px; font-size: 12.5px; line-height: 1.8; color: #606266;
  max-height: 190px; overflow: auto; white-space: pre-wrap; word-break: break-all;
}
.hv-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 12px;
  font-size: 13px; color: #606266;
}
.hv-bar .grow { flex: 1 1 12px; }
.hv-stat { color: #909399; }
.hv-stat b { color: #3b5bdb; }
.hv-src { font-size: 12px; color: #909399; word-break: break-all; }
/* 采集面板的可折叠说明条：默认收起，点标题展开完整说明 */
.tip-fold {
  border: 1px dashed #dcdfe6; border-radius: 8px;
  background: #fafbfd; margin-top: 10px; overflow: hidden;
}
.tip-fold .tip-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; text-align: left; cursor: pointer; font-family: inherit;
  background: none; border: none; padding: 9px 14px;
  font-size: 13px; color: #606266;
}
.tip-fold .tip-head:hover { color: #3b5bdb; }
.tip-fold .tip-arrow { flex: none; color: #c0c4cc; font-size: 12px; transition: transform .2s, color .2s; }
.tip-fold.open .tip-arrow { transform: rotate(180deg); color: #3b5bdb; }
.tip-fold .tip-body { display: none; padding: 0 14px 10px; }
.tip-fold.open .tip-body { display: block; }
.tip-fold .tip-body p:last-child { margin-bottom: 0; }

/* 采集面板的三种方式切换 */
.hv-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.hv-tab {
  padding: 8px 18px; font-size: 13.5px; font-weight: 600; border: 1.5px solid transparent; border-radius: 999px;
  background: #fff; color: #606266; cursor: pointer;
}
.hv-tab:hover { color: #3b5bdb; }
/* 三个采集通道各配一种醒目颜色：蓝=内外网搜索、绿=指定网址、橙=浏览器辅助，
   激活时变成同色实底白字，当前在哪一步一眼可见 */
.hv-tab.t-seek { background: #e7f0ff; border-color: #7c9cff; color: #2b4acb; }
.hv-tab.t-seek:hover { background: #d6e4ff; }
.hv-tab.t-seek.is-active { background: #3b5bdb; border-color: #3b5bdb; color: #fff; }
.hv-tab.t-url { background: #e6f7ec; border-color: #6fd39a; color: #1f7a46; }
.hv-tab.t-url:hover { background: #d2f0df; }
.hv-tab.t-url.is-active { background: #23945a; border-color: #23945a; color: #fff; }
.hv-tab.t-assist { background: #fff1e0; border-color: #f2b268; color: #b05e08; }
.hv-tab.t-assist:hover { background: #ffe6c7; }
.hv-tab.t-assist.is-active { background: #d97a10; border-color: #d97a10; color: #fff; }
.hv-srcs {
  display: flex; gap: 8px 18px; flex-wrap: wrap; margin-top: 10px; font-size: 12.5px; color: #5c6370;
}
.hv-chk { display: flex; align-items: center; gap: 5px; cursor: pointer; }
@media (max-width: 768px) {
  .hv-tab { padding: 5px 11px; font-size: 12.5px; }
  .hv-srcs { font-size: 12px; gap: 6px 14px; }
}
/* 本机刊物索引：中文刊名整批存本机，搜索时先在本机筛 */
.hv-idx {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px;
  border: 1px solid #e4e7ed; border-radius: 10px; background: #fafafa; padding: 10px 12px;
}
.hv-idx-t { font-size: 13px; font-weight: 700; color: #303133; }
.hv-idx-s { font-size: 12.5px; color: #5c6370; }
.hv-idx .grow { flex: 1 1 12px; }
/* 索引详情：默认收起，点蓝色链接「详细说明」展开（「.hidden」全局已定义）。
   用文字链接而不是按钮，和状态行文字排在一起更轻巧；
   flex:none 别让弹性布局把它压没了 */
.hv-idx-toggle {
  flex: none;
  padding: 0 2px; border: 0; background: none;
  font-size: 12.5px; font-weight: 500;
  color: #3b5bdb; cursor: pointer; white-space: nowrap;
  text-decoration: underline; text-underline-offset: 3px;
}
.hv-idx-toggle:hover { color: #1d3ab8; }
.hv-idx-detail {
  flex-basis: 100%; margin-top: 8px; padding: 10px 12px;
  background: #f7f8fa; border-radius: 8px;
  font-size: 12.5px; color: #606266; line-height: 1.9;
}
.hv-idx-detail ul { margin: 0; padding-left: 18px; }
.hv-idx-detail li { margin-bottom: 2px; word-break: break-all; }
@media (max-width: 768px) {
  .hv-idx { gap: 8px; padding: 9px 10px; }
  .hv-idx-t { font-size: 12.5px; }
  .hv-idx-s { font-size: 12px; }
}
/* 浏览器辅助采集：知网这类拒绝服务器直连的站点走这条路 */
.hv-assist {
  margin-top: 12px; border: 1px dashed #c7d2fe; border-radius: 10px; background: #f6f8ff; padding: 12px 14px;
}
.hv-assist-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: #303133; }
.hv-assist-h .grow { flex: 1 1 12px; }
.hv-steps { margin: 8px 0 10px; padding-left: 20px; font-size: 12.5px; line-height: 1.9; color: #5c6370; }
.hv-assist textarea {
  width: 100%; box-sizing: border-box; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px;
}
@media (max-width: 768px) {
  .hv-assist-h { font-size: 12.5px; }
  .hv-steps { padding-left: 18px; font-size: 12px; }
}

/* ============================================
   响应式：电脑 / 平板 / 手机 自动适应
   ≥1200 桌面 · ≤1200 小桌面 · ≤1024 平板横屏
   ≤900 平板竖屏 · ≤768 手机 · ≤560/≤420 小屏手机
   ============================================ */

/* ---------- 通用：防止横向溢出、触摸友好 ---------- */
html { -webkit-text-size-adjust: 100%; }
/* 长单词 / 长链接自动换行，避免撑破布局（不用 overflow-x:hidden，以免顶部导航 sticky 失效） */
html, body { overflow-wrap: break-word; }
/* 图片 / 视频 / 表格一律不撑破容器 */
img, video, iframe, embed { max-width: 100%; }
table { max-width: 100%; }
/* 工具栏类容器允许换行，窄窗口下按钮自动掉行而不是被挤出屏幕 */
.admin-toolbar, .admin-actions, .panel-tools, .hv-bar, .hv-idx, .hv-assist-h,
.hv-tabs, .hv-srcs, .bk-bar, .rk-filter-tip, .contact-actions, .gate-row { flex-wrap: wrap; }
/* 弹性布局里的文字列必须允许收缩，否则长刊名会把整行顶出屏幕 */
.ph-title, .mini-head .ph-title, .cell-name, .cell-sub, .contact-item .value { min-width: 0; }
/* 栅格列下限随窗口收窄，卡片不会被撑成横向滚动 */
.pub-grid { grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); }
.info-grid, .contact-list { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.pagination { flex-wrap: wrap; }
.footer .links { flex-wrap: wrap; gap: 14px; }
.table-wrap { -webkit-overflow-scrolling: touch; }
.container, .main-section { max-width: 100%; }

/* ---------- 超宽屏电脑：内容适当放宽，不在 2K/4K 显示器上缩成一条 ---------- */
@media (min-width: 1600px) {
  .container, .main-section { max-width: 1320px; }
  .search-section { max-width: 1272px; }
}

/* ---------- 会员中心「我的刊物」/ 首页榜单：电脑 / 平板（≥768）单行表格 ----------
   摘要行默认显示全部列（长文本截断、绝不溢出），点一行在下方展开完整信息；
   手机（≤767）才降级成卡片模式，见下方响应式里的 .row-toggle 规则 */
@media (min-width: 768px) {
  /* 比通用后台表（min-width:900px）窄；fixed 列宽保证内容再长也不会把行撑溢出 */
  .admin-table.row-toggle { min-width: 700px; table-layout: fixed; }
  .admin-table.row-toggle tr[data-id] { cursor: pointer; }
  .admin-table.row-toggle tr.my-main > td,
  .admin-table.row-toggle tr.rk-main > td,
  .admin-table.row-toggle tr.mm-main > td,
  .admin-table.row-toggle tr.hv-main > td { overflow: hidden; vertical-align: middle; }
  .admin-table.row-toggle .cell-name,
  .admin-table.row-toggle .cell-brief .cell-sub {
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  /* 首页榜单：刊名下的小标签排一行，多了直接裁掉，不把行撑高撑破 */
  .admin-table.front-table .name-tags {
    display: flex; gap: 6px; flex-wrap: nowrap; overflow: hidden; margin-top: 4px;
  }
  .admin-table.front-table .name-tags .tag,
  .admin-table.front-table .name-tags .pin-tag { flex: none; }
  /* 展开的完整信息：紧跟在摘要行下方的一整行（默认隐藏） */
  .admin-table.row-toggle tr.my-detail,
  .admin-table.row-toggle tr.rk-detail,
  .admin-table.row-toggle tr.mm-detail,
  .admin-table.row-toggle tr.hv-detail { display: none; }
  .admin-table.row-toggle tr.my-main.open + tr.my-detail,
  .admin-table.row-toggle tr.rk-main.open + tr.rk-detail,
  .admin-table.row-toggle tr.mm-main.open + tr.mm-detail,
  .admin-table.row-toggle tr.hv-main.open + tr.hv-detail { display: table-row; }
  .admin-table.row-toggle tr.my-detail > td,
  .admin-table.row-toggle tr.rk-detail > td,
  .admin-table.row-toggle tr.mm-detail > td,
  .admin-table.row-toggle tr.hv-detail > td {
    background: #fafbff; padding: 12px 10px 14px; text-align: left; overflow: visible;
  }
  .admin-table.row-toggle td.col-toggle { text-align: center; }
  .admin-table.row-toggle td.col-toggle .list-toggle { display: inline-block; }
  .admin-table.row-toggle tr.open td.col-toggle .list-toggle { transform: rotate(180deg); color: #3b5bdb; }
}
/* 平板（768–1024）：固定列宽再收一档，把宽度让给刊名 / 简介 */
@media (min-width: 768px) and (max-width: 1024px) {
  .admin-table.row-toggle th:nth-child(1) { width: 32px !important; }
  .admin-table.row-toggle th:nth-child(3) { width: 84px !important; }
  .admin-table.row-toggle th:nth-child(4) { width: 76px !important; }
  .admin-table.row-toggle th:nth-child(6) { width: 100px !important; }
  .admin-table.row-toggle th:nth-child(7) { width: 196px !important; }
  .admin-table.row-toggle .ops { white-space: normal; }
  .admin-table.row-toggle .ops .btn-ghost { padding: 5px 8px; }
  /* 首页榜单是 8 列，按自己的列序再收一档（放在上面之后才生效） */
  .admin-table.front-table th:nth-child(1) { width: 30px !important; }
  .admin-table.front-table th:nth-child(2) { width: 74px !important; }
  .admin-table.front-table th:nth-child(4) { width: 78px !important; }
  .admin-table.front-table th:nth-child(6) { width: 92px !important; }
  .admin-table.front-table th:nth-child(7) { width: 96px !important; }
  .admin-table.front-table th:nth-child(8) { width: 116px !important; }
  .admin-table.front-table .ops .btn-sm { padding: 6px 10px; font-size: 12px; }
}

/* ---------- ≤1200px：小桌面 / 大平板横屏 ---------- */
@media (max-width: 1200px) {
  .topbar { gap: 20px; }
  /* 首屏 / 广告位 / 主内容的内边距与字号已用 clamp() 随窗口连续变化，这里不再覆盖 */
  .pub-grid { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
  .search-section { max-width: 100%; }
}

/* ---------- ≤1024px：平板 ---------- */
@media (max-width: 1024px) {
  /* 顶部：Logo + 右上角菜单按钮（桌面以下统一） */
  .topbar { gap: 12px; padding: 0 14px; }
  .topbar .logo { font-size: 16px; }
  .search-section { margin: 10px 16px 0; }
  /* 覆盖页面内联的 max-width（如 860 / 960 / 1000px），让平板也能满宽自适应 */
  .main-section { max-width: 100% !important; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-side {
    border-left: none; border-top: 1px dashed #ebeef5;
    padding-left: 0; padding-top: 14px;
  }
  .admin-card { padding: 20px; }
  .form-row { gap: 16px; }
  .admin-table { min-width: 820px; }
}

/* ---------- ≤900px：平板竖屏 / 大手机横屏 ---------- */
@media (max-width: 900px) {
  /* 900 以下（横屏手机 / 平板竖屏）：卡片留白收窄 */
  .about-card { padding: 24px; }
  .about-card h2 { font-size: 18px; }
  .admin-card { padding: 18px; }
  .admin-card.panel { padding: 0; }
  .panel-head { padding: 14px 16px; font-size: 16px; }
  .panel-body { padding: 0 16px 18px; }

  .summary-card { min-width: 130px; padding: 12px 14px; }
  .modal, .modal-narrow { max-width: 92vw; }
}

/* ---------- ≤900px：平板竖屏 / 手机 —— 表格降级成「摘要卡 + 点击展开」 ----------
   会员中心「我的刊物」例外：平板竖屏仍用单行表格，见紧随其后的 768–900 覆盖规则 */
@media (max-width: 900px) {
  /* 后台 / 会员表格：平板竖屏与手机改为「摘要行 + 点击展开」卡片 */
  .table-wrap { border: none; border-radius: 0; overflow: visible; background: none; }
  .table-wrap::after { display: none; }
  .admin-table { display: block; width: 100% !important; min-width: 0 !important; font-size: 13px; }
  .admin-table thead { display: none; }
  .admin-table tbody { display: block; }
  .admin-table tr {
    display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px;
    background: #fff; border: 1px solid #ebeef5; border-radius: 12px;
    padding: 12px 14px; margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
  }
  .admin-table tr:has(td[data-det]) { cursor: pointer; }
  /* 单元格（会员中心表格等未分区的表格按完整卡片展示） */
  .admin-table td {
    display: flex; gap: 10px; align-items: flex-start;
    width: auto !important; border: none; padding: 5px 0;
  }
  .admin-table td::before {
    content: attr(data-label); flex: none; width: 64px;
    color: #909399; font-size: 12px; line-height: 1.7;
  }
  /* 摘要行：刊物＝排名 / 刊名 / 级别，会员＝账号 / 昵称 */
  .admin-table td[data-sum] {
    display: block; flex: 0 0 auto; width: auto !important;
    border: none; padding: 0;
  }
  .admin-table td[data-sum]::before { content: none; }
  .admin-table td[data-main] { flex: 1 1 auto; min-width: 0; }
  .admin-table td[data-main] .cell-name { word-break: break-all; }
  /* 展开箭头，排在摘要行右侧（仅可展开的行显示） */
  .admin-table tr:has(td[data-det])::after {
    content: '▾'; order: 1; margin-left: auto; flex: none;
    color: #909399; font-size: 12px; transition: transform .2s;
  }
  .admin-table tr:has(td[data-det]).open::after { transform: rotate(180deg); }
  /* 详细信息：默认收起，点击卡片后展开 */
  .admin-table td[data-det] {
    display: none; order: 2; flex: 1 1 100%;
    gap: 10px; align-items: flex-start;
    width: auto !important; border: none; padding: 5px 0;
  }
  .admin-table tr.open td[data-det] { display: flex; }
  .admin-table td[data-det]::before {
    content: attr(data-label); flex: none; width: 64px;
    color: #909399; font-size: 12px; line-height: 1.7;
  }
  /* 空数据行 */
  /* 会员中心「我的刊物」：卡片模式的展开箭头由 tr::after 提供，隐藏多出来的那一列 */
  .admin-table.row-toggle td.col-toggle { display: none; }
  /* 展开的完整信息：贴在摘要卡下方的一块面板 */
  .admin-table.row-toggle tr.my-detail,
  .admin-table.row-toggle tr.rk-detail,
  .admin-table.row-toggle tr.mm-detail,
  .admin-table.row-toggle tr.hv-detail { display: none; }
  .admin-table.row-toggle tr.my-main.open,
  .admin-table.row-toggle tr.rk-main.open,
  .admin-table.row-toggle tr.mm-main.open,
  .admin-table.row-toggle tr.hv-main.open { margin-bottom: 0; border-radius: 12px 12px 0 0; }
  .admin-table.row-toggle tr.my-main.open + tr.my-detail,
  .admin-table.row-toggle tr.rk-main.open + tr.rk-detail,
  .admin-table.row-toggle tr.mm-main.open + tr.mm-detail,
  .admin-table.row-toggle tr.hv-main.open + tr.hv-detail {
    display: flex; flex: 1 1 100%;
    margin: 0 0 12px; padding: 0 14px 12px; align-items: flex-start; gap: 4px 10px;
    border: 1px solid #ebeef5; border-top: none; border-radius: 0 0 12px 12px;
    background: #fafbff; box-shadow: none;
  }
  .admin-table.row-toggle tr.my-detail > td,
  .admin-table.row-toggle tr.rk-detail > td,
  .admin-table.row-toggle tr.mm-detail > td,
  .admin-table.row-toggle tr.hv-detail > td {
    display: block !important; flex: 1 1 100%; border: none; padding: 10px 0 0; text-align: left;
  }
  /* 首页榜单卡片：刊名下的小标签不换行，多了直接裁掉 */
  .admin-table.front-table .name-tags { flex-wrap: nowrap; overflow: hidden; }
  .admin-table td[colspan] { display: block !important; flex: 1 1 100%; text-align: center; }
  .admin-table td[colspan]::before { content: none; }
  .admin-table tr.no-data { cursor: default; }
  .admin-table tr.no-data::after { content: none; }
  .admin-table .ops { white-space: normal; flex-wrap: wrap; }
  .rank-ops { flex-wrap: wrap; }
  .admin-table .cell-sub { word-break: break-all; }
}

/* ---------- 768–900px：会员中心「我的刊物」/ 首页榜单不降级成卡片 ----------
   平板竖屏一行放得下，仍按「单行表格 + 默认收起」显示，点一行才展开；
   其它后台表格（列更多）保持上面的卡片模式，不受影响。 */
@media (min-width: 768px) and (max-width: 900px) {
  #myTableWrap, #pubTableWrap, #mTableWrap, #hvTableWrap {
    border: 1px solid #ebeef5; border-radius: 10px;
    overflow-x: auto; background: #fff;
  }
  .admin-table.row-toggle {
    display: table !important; width: 100%; min-width: 700px !important; font-size: 13px;
  }
  .admin-table.row-toggle thead { display: table-header-group; }
  .admin-table.row-toggle tbody { display: table-row-group; }
  .admin-table.row-toggle tr {
    display: table-row !important; background: none; border: none; border-radius: 0;
    padding: 0; margin: 0; box-shadow: none;
  }
  /* 卡片模式的 tr::after 箭头在这里关掉，只用行首那一列箭头（选择器要比 :has() 版本更具体） */
  .admin-table.row-toggle tr[data-id]::after { content: none; }
  .admin-table.row-toggle td,
  .admin-table.row-toggle td[data-sum],
  .admin-table.row-toggle td[data-det] {
    display: table-cell !important; width: auto; vertical-align: middle;
    border-bottom: 1px solid #ebeef5; padding: 10px 8px;
  }
  .admin-table.row-toggle td[data-det]::before { content: none; }
  .admin-table.row-toggle td.col-toggle { text-align: center; }
  .admin-table.row-toggle td.col-toggle .list-toggle { display: inline-block; }
  .admin-table.row-toggle tr.open td.col-toggle .list-toggle { transform: rotate(180deg); color: #3b5bdb; }
  .admin-table.row-toggle tr[data-id] { cursor: pointer; }
  .admin-table.row-toggle tr.my-detail,
  .admin-table.row-toggle tr.rk-detail,
  .admin-table.row-toggle tr.mm-detail,
  .admin-table.row-toggle tr.hv-detail { display: none; }
  .admin-table.row-toggle tr.my-main.open + tr.my-detail,
  .admin-table.row-toggle tr.rk-main.open + tr.rk-detail,
  .admin-table.row-toggle tr.mm-main.open + tr.mm-detail,
  .admin-table.row-toggle tr.hv-main.open + tr.hv-detail { display: table-row; }
  .admin-table.row-toggle tr.my-detail > td,
  .admin-table.row-toggle tr.rk-detail > td,
  .admin-table.row-toggle tr.mm-detail > td,
  .admin-table.row-toggle tr.hv-detail > td {
    display: table-cell !important; background: #fafbff;
    padding: 12px 10px 14px; text-align: left; border-bottom: none;
  }
}

/* ---------- 后台「会员管理」：中窄屏（768–1200）收窄列宽 ----------
   8 列在平板上挤不开：隐藏「刊物」「注册 / 最近登录」两列（展开后仍能看到），
   固定列再收一档，省下的宽度给联系方式，整行照样不溢出 */
@media (min-width: 768px) and (max-width: 1200px) {
  .admin-table.mm-table th:nth-child(1) { width: 30px !important; }
  .admin-table.mm-table th:nth-child(2) { width: 112px !important; }
  .admin-table.mm-table th:nth-child(3) { width: 92px !important; }
  .admin-table.mm-table th:nth-child(5),
  .admin-table.mm-table td:nth-child(5),
  .admin-table.mm-table th:nth-child(6),
  .admin-table.mm-table td:nth-child(6) { display: none !important; }
  .admin-table.mm-table th:nth-child(7) { width: 78px !important; }
  .admin-table.mm-table th:nth-child(8) { width: 220px !important; }
  .admin-table.mm-table .ops { white-space: nowrap; }
  .admin-table.mm-table .ops .btn-ghost { padding: 5px 8px; }
}

/* ---------- 后台「刊物采集」：中窄屏（768–1200）收窄列宽 ----------
   8 列在平板上挤不开：隐藏「来源网址」列（展开后仍能看到），固定列再收一档，
   省下的宽度给「简介 / 联系方式」，整行照样不溢出 */
@media (min-width: 768px) and (max-width: 1200px) {
  .admin-table.hv-table th:nth-child(1) { width: 30px !important; }
  .admin-table.hv-table th:nth-child(2) { width: 40px !important; }
  .admin-table.hv-table th:nth-child(3) { width: 150px !important; }
  .admin-table.hv-table th:nth-child(4) { width: 80px !important; }
  .admin-table.hv-table th:nth-child(6),
  .admin-table.hv-table td:nth-child(6) { display: none !important; }
  .admin-table.hv-table th:nth-child(7) { width: 96px !important; }
  .admin-table.hv-table th:nth-child(8) { width: 176px !important; }
  .admin-table.hv-table .ops .btn-ghost { padding: 5px 8px; }
}

/* ---------- ≤768px：手机 ---------- */
@media (max-width: 768px) {
  /* 顶部：单行，右上角菜单按钮（下拉面板不超出屏幕） */
  .topbar { height: 56px; gap: 10px; padding: 0 14px; }
  .topbar .logo { font-size: 15px; }
  .topbar .logo .logo-icon { width: 26px; height: 26px; font-size: 13px; }
  .menu-btn { padding: 8px 14px; font-size: 13px; }
  .top-search-btn { padding: 8px 12px; font-size: 13px; }
  .menu-drop { min-width: 180px; max-width: calc(100vw - 24px); }

  /* 首屏与广告位（内边距与字号已随窗口连续变化，这里只留联动间距） */

  /* 搜索区 */
  .search-section { margin: 10px 12px 0; padding: 16px; }
  .search-row { flex-direction: column; align-items: stretch; }
  .search-input, .select { width: 100%; min-width: 0; font-size: 16px; }
  .filter-note { white-space: normal; }
  /* 筛选菜单：手机上改为占满整行展开，不悬浮 */
  .filter-drop { width: 100%; }
  .filter-btn { width: 100%; justify-content: center; }
  .filter-menu {
    position: static; width: 100%; box-shadow: none;
    border: 1px dashed #dcdfe6; background: #fafbfd;
  }

  /* 统计条改成两列网格，不再被挤出屏幕 */
  .summary-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .summary-card { min-width: 0; padding: 12px 14px; }
  .about-stats {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 10px; padding: 16px 12px;
  }
  .stat-item { font-size: 12px; }

  /* 主内容区（覆盖页面内联的 max-width） */
  .main-section { max-width: 100% !important; }
  .section-title { margin-bottom: 14px; }

  /* 卡片 / 表单 */
  .form-card { padding: 18px 16px; }
  .admin-card { padding: 16px; border-radius: 12px; }
  .admin-card.panel { padding: 0; }
  .panel-head { padding: 13px 14px; font-size: 15px; }
  .panel-body { padding: 0 14px 16px; }
  .panel-tools { gap: 8px; }
  .panel-tools .btn-secondary { flex: 1 1 auto; justify-content: center; }
  .about-card { padding: 20px 16px; }
  .detail-card { padding: 18px 16px; }
  .form-row { grid-template-columns: 1fr; gap: 14px; }
  .form-section-title { font-size: 14px; margin: 18px 0 12px; }
  .form-actions {
    flex-direction: column-reverse; gap: 10px; margin-top: 20px; padding-top: 18px;
  }
  .form-actions > * { width: 100%; text-align: center; justify-content: center; }
  .admin-panel { padding: 18px 16px; }
  .admin-toolbar { gap: 8px; }
  /* 工具栏里的搜索框带内联 flex/min-width，这里强制整行显示 */
  .admin-toolbar .input, .admin-toolbar .select {
    flex: 1 1 100% !important; width: 100% !important; min-width: 0 !important;
  }
  .admin-actions { gap: 8px; }
  .pub-grid { grid-template-columns: 1fr; gap: 14px; }
  .contact-list { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 14px; }
  .detail-info { grid-template-columns: 1fr; }
  .empty { padding: 40px 16px; }

  /* 输入框字号 ≥16px，避免 iOS 自动放大页面 */
  .input, .textarea, .select { font-size: 16px; }
  /* 按钮触摸区域加大 */
  .btn-primary, .btn-secondary { padding: 12px 18px; min-height: 44px; }
  .btn-sm { padding: 8px 12px; font-size: 12px; min-height: 36px; }
  .btn-ghost { padding: 6px 12px; font-size: 13px; }

  /* 榜单：手机上分行展示 */
  .list-head {
    grid-template-columns: 28px minmax(0, 1fr) 22px;
    row-gap: 6px; padding: 12px 14px; gap: 10px;
  }
  .list-head .col-rank  { grid-column: 1; grid-row: 1; }
  .list-head .col-name  { grid-column: 2; grid-row: 1; }
  .list-head .col-toggle{ grid-column: 3; grid-row: 1; }
  .list-head .col-level { grid-column: 1 / 4; grid-row: 2; }
  .list-head .col-contact { grid-column: 1 / 4; grid-row: 3; }
  .list-head .col-action { grid-column: 1 / 4; grid-row: 4; justify-content: flex-start; }
  /* 我提交的刊物：简介单独占一行，提交时间与按钮顺延 */
  .mine-list .list-head { grid-template-columns: 28px minmax(0, 1fr) 22px; }
  .mine-list .list-head .col-brief { grid-column: 1 / 4; grid-row: 3; }
  .mine-list .list-head .col-contact { grid-column: 1 / 4; grid-row: 4; }
  .mine-list .list-head .col-action { grid-column: 1 / 4; grid-row: 5; justify-content: flex-start; }
  .list-head .pub-name { font-size: 15px; }
  .list-detail { padding: 14px; }
  .detail-side .side-enter, .detail-side .side-del { width: 100%; }

  /* 后台表格：≤900 已整体改为卡片式（无需横向滑动），这里只压紧单元格内边距 */
  .admin-table { font-size: 12px; }
  .admin-table th, .admin-table td { padding: 8px 10px; }

  /* 分页 */
  .pagination { gap: 5px; margin-top: 20px; }
  .pagination button { min-width: 32px; height: 32px; padding: 0 8px; font-size: 12px; }

  /* 弹窗：接近全屏，内容可滚动 */
  .modal-mask { padding: 12px; align-items: flex-end; }
  .modal, .modal-narrow {
    max-width: 100%; max-height: 92vh; padding: 16px 16px 20px;
    border-radius: 14px 14px 0 0;
  }
  .modal-head { font-size: 15px; }

  /* Toast：不超出屏幕 */
  .toast-container { top: 66px; width: calc(100% - 28px); max-width: 420px; }
  .toast { min-width: 0; max-width: 100%; font-size: 13px; padding: 10px 14px; }

  /* 底部 */
  .footer { padding: 18px 14px; margin-top: 12px; }
  .footer .links { gap: 12px; font-size: 12px; }
}

/* ---------- ≤560px：小屏手机 ---------- */
@media (max-width: 560px) {
  /* 小屏手机：统计条改单列，按钮整行显示 */
  .summary-bar { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .admin-actions > * { flex: 1 1 100%; justify-content: center; text-align: center; }
  .admin-actions > select.select { width: 100%; }
  .contact-actions { gap: 8px; }
  .contact-actions .contact-btn { flex: 1 1 calc(50% - 4px); justify-content: center; }
  .detail-card .header-meta { gap: 8px; }
  .rank-ops .btn-ghost { padding: 2px 8px; }
  .toast-container { top: 60px; }
  .modal-mask { padding: 0; }
  .modal { border-radius: 14px; max-height: 96vh; }
  .modal-mask { align-items: center; padding: 10px; }
}

/* ---------- ≤420px：超小屏 ---------- */
@media (max-width: 420px) {
  .topbar { padding: 8px 10px; }
  .topbar .logo { font-size: 14px; }
  .topbar .logo .logo-icon { width: 24px; height: 24px; font-size: 12px; }
  .search-section { margin: 8px 10px 0; padding: 14px; }
  .form-card, .admin-card, .about-card, .detail-card { padding: 14px 12px; }
  .admin-card.panel { padding: 0; }
  .admin-table td::before { width: 56px; }
  .btn-primary, .btn-secondary { padding: 11px 14px; font-size: 13px; }
  .contact-actions .contact-btn { flex: 1 1 100%; }
  .pagination button { min-width: 30px; height: 30px; padding: 0 6px; }
}

/* ---------- 横屏手机（矮屏）：压缩首屏与广告位高度，避免一屏放不下 ---------- */
@media (orientation: landscape) and (max-height: 560px) {
  .topbar { height: 50px; }
  .hero { padding: 18px 0 30px; }
  .hero h1 { font-size: 20px; margin-bottom: 8px; }
  .hero .hero-subtitle { font-size: 13px; margin-bottom: 14px; }
  .notice-hero { padding: 12px 0 14px; }
  .notice-slot { padding: 18px 22px; border-radius: 12px; }
  .notice-title { font-size: 19px; margin-bottom: 6px; }
  .notice-text { font-size: 13px; line-height: 1.6; margin-bottom: 10px; }
  .notice-btn { padding: 7px 18px; font-size: 13px; }
  .search-section { margin-top: -20px; padding: 14px 16px; }
  .main-section { padding-top: 16px; padding-bottom: 24px; }
  .modal { max-height: 86vh; }
  .footer { margin-top: 10px; padding: 14px; }
}

/* ---------- 触摸设备：去掉 hover 位移，避免误触 ---------- */
@media (hover: none) {
  .pub-card:hover { transform: none; }
  .menu-btn:hover { transform: none; }
  .btn-primary:active { transform: none; }
}

/* ---------- ≤360px：超窄屏（小屏手机竖屏） ---------- */
@media (max-width: 360px) {
  .topbar .logo #siteName { display: none; }   /* 只留「刊」字标，给按钮腾地方 */
  .top-search-btn { padding: 8px 9px; }
  .menu-btn { padding: 8px 10px; }
  .about-stats { gap: 6px; padding: 14px 8px; }
  .stat-item { font-size: 11.5px; }
  .pagination button { min-width: 28px; height: 28px; padding: 0 5px; }
}

/* ---------- 刘海屏 / 圆角屏：避开左右与底部安全区 ---------- */
@supports (padding: env(safe-area-inset-bottom)) {
  /* 横屏时左右避开刘海：给整页加内边距，不影响任何已有规则 */
  body {
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
  }
  .footer { padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
  .modal-mask { padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- 后台：排名权重 / 置顶 时效概况 ---------- */
.rank-stats { overflow-x: auto; margin-top: 10px; }

/* 概况表自带的翻页条：比页面主分页紧凑一点，别把面板撑得太高 */
.rk-pagination {
  margin-top: 12px;
  justify-content: flex-start;
  gap: 5px;
}
.rk-pagination .muted { font-size: 12px; margin-right: 4px; }
.rk-pagination button { min-width: 30px; height: 30px; padding: 0 8px; font-size: 12px; }

.rk-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
  background: #fff; border-radius: 8px; overflow: hidden;
}
.rk-table th, .rk-table td {
  padding: 8px 10px; text-align: center; border-bottom: 1px solid #ebeef5;
}
.rk-table thead th {
  background: #f5f7fa; color: #606266; font-weight: 600; white-space: nowrap;
}
.rk-table tbody th {
  text-align: left; color: #303133; font-weight: 600;
  white-space: nowrap; background: #fcfdff;
}
.rk-table tbody tr:last-child th,
.rk-table tbody tr:last-child td { border-bottom: none; }

/* 可点的统计数字：点了会筛选下方刊物列表 */
.rk-num {
  min-width: 38px; padding: 3px 9px; border-radius: 12px; cursor: pointer;
  border: 1px solid #dcdfe6; background: #fff; color: #303133;
  font-size: 13px; font-weight: 600; transition: all .15s;
}
.rk-num:hover:not(:disabled) {
  border-color: #3b5bdb; color: #3b5bdb; background: #f0f4ff;
}
.rk-num.zero { color: #c0c4cc; }
.rk-num.on { background: #3b5bdb; border-color: #3b5bdb; color: #fff; }
.rk-num:disabled { cursor: default; opacity: .5; }

.rk-filter-tip {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 10px 0; padding: 8px 14px; border-radius: 8px;
  background: #f0f4ff; border: 1px solid #c7d2fe;
  color: #303133; font-size: 13px;
}
.rk-filter-tip b { color: #3b5bdb; }

/* ---------- 后台：自动备份列表（勾选 / 全选 / 批量删除） ---------- */
.bk-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 9px 12px; margin-bottom: 8px;
  background: #e9efff; border: 1px solid #c3d0f7; border-radius: 8px;
}
.bk-bar .bk-count { color: #3a4a8c; font-weight: 600; }
.bk-bar .bk-all {
  display: flex; align-items: center; gap: 5px;
  font-size: 13px; cursor: pointer; user-select: none;
}
.bk-bar .bk-count { font-size: 12px; flex: 1; }
/* 备份保留策略编辑行：数字输入框窄一些，label 与输入框同行排布 */
.bk-cfg {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 12px; margin-top: 8px;
  background: #f7f9fc; border: 1px dashed #d5dcee; border-radius: 8px;
  font-size: 13px; color: #606266;
}
.bk-cfg label { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.bk-cfg .input { width: 84px; padding: 5px 8px; font-size: 13px; }

.bk-row {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 2px; border-bottom: 1px dashed #ebeef5;
}
.bk-row.on { background: #f0f4ff; }
.bk-row .bk-name { flex: 1; font-size: 13px; word-break: break-all; }
.bk-row input[type="checkbox"] { width: 15px; height: 15px; cursor: pointer; flex: none; margin: 0; }
.bk-row input[type="checkbox"]:disabled { cursor: not-allowed; opacity: .45; }
.bk-bar input[type="checkbox"] { width: 15px; height: 15px; cursor: pointer; margin: 0; }

/* ---------- 按钮「⏳ 运行中…」状态 ----------
   点击按钮后由 js/api.js（PU_RUNNING）把按钮文字临时换成「⏳ 运行中…」，
   请求结束后自动换回原文字。这里只做一点观感上的微调：
   运行中的按钮不再抢鼠标、文字不换行，避免按钮被撑变形。 */
button[data-pu-running="1"],
input[data-pu-running="1"] {
  cursor: progress;
  white-space: nowrap;
}

/* ============================================================
   首页榜单的「查看详情」：不再做成实心按钮，改成蓝色文字链接
   电脑 / 平板 / 手机一视同仁（不写在任何媒体查询里，全宽度生效）
   ============================================================ */
.admin-table.front-table .ops .btn-primary {
  display: inline; padding: 0; min-height: 0; border-radius: 0;
  background: none; border: none; box-shadow: none;
  color: #3b5bdb; font-weight: 600; font-size: 13px;
  text-decoration: underline; cursor: pointer;
  transition: color .15s;
}
.admin-table.front-table .ops .btn-primary:hover {
  background: none; color: #2f4fc9; text-decoration: underline;
}

/* ============================================================
   首页榜单：鼠标划过不留底色
   摘要行划过时保持原来的白底（不再变成浅蓝）
   展开的「刊物信息」划过时保持它自己的底色
   后台其它表格不参与
   ============================================================ */
.admin-table.front-table tbody tr.rk-main:hover > td,
.admin-table.front-table tbody tr.rk-main:hover > td:first-child {
  background: transparent !important;
}
.admin-table.front-table tbody tr.rk-detail:hover > td {
  background: #fafbff !important;          /* 与不划过时的详情区底色相同 */
}

/* ============================================================
   首页榜单（2026-11-12）：每本刊物一个独立的蓝色圆角卡片
   · 表格行无法加外边距，用 border-spacing: 0 10px 在每行之间
     拉出 10px 间距 —— 每本刊物（含展开后的详情行）都是独立卡片；
   · 摘要行（rk-main，收起/展开都一样）＝ 一个完整的蓝色圆角框；
   · 展开后的详情行（rk-detail，单个 colspan=8 的 td）＝ 紧随其下
     的另一张完整蓝色圆角卡片，与摘要卡之间同样隔开；
   · ≤767px 卡片模式沿用自带的 12px 卡片间距，只把边框改成蓝色；
   · 只作用于首页榜单（.front-table），后台同构表格不受影响。
   ============================================================ */
.admin-table.front-table { border-collapse: separate; border-spacing: 0 10px; }

/* ---------- 表格模式（≥768px） ---------- */
@media (min-width: 768px) {
  /* 收起：摘要行一个完整圆角框 */
  .admin-table.front-table tbody tr.rk-main:not(.open) > td {
    border-top: 1.5px solid #3b5bdb;
    border-bottom: 1.5px solid #3b5bdb;
  }
  .admin-table.front-table tbody tr.rk-main:not(.open) > td:first-child {
    border-left: 1.5px solid #3b5bdb;
    border-radius: 12px 0 0 12px;
  }
  .admin-table.front-table tbody tr.rk-main:not(.open) > td:last-child {
    border-right: 1.5px solid #3b5bdb;
    border-radius: 0 12px 12px 0;
  }
  /* 展开：摘要行（上段，底部开口）+ 详情行（下段，顶部开口）
     拼成同一个圆角框。border-spacing 的 10px 行距会把两段隔开，
     所以详情行整体上移 10px 抵消，让左右蓝线严丝合缝地接起来；
     行高不变，多出的 10px 落在展开卡片下方，与下一本的间距更宽松 */
  .admin-table.front-table tbody tr.rk-main.open > td {
    border-top: 1.5px solid #3b5bdb;
    border-bottom: none;
  }
  .admin-table.front-table tbody tr.rk-main.open > td:first-child {
    border-left: 1.5px solid #3b5bdb;
    border-radius: 12px 0 0 0;
  }
  .admin-table.front-table tbody tr.rk-main.open > td:last-child {
    border-right: 1.5px solid #3b5bdb;
    border-radius: 0 12px 0 0;
  }
  .admin-table.front-table tbody tr.rk-detail > td {
    border-left: 1.5px solid #3b5bdb;
    border-right: 1.5px solid #3b5bdb;
    border-bottom: 1.5px solid #3b5bdb;
    border-top: none;
    position: relative;
    top: -10px;
  }
  /* 详情行实际是单个 colspan="8" 的 td（list.js:356），同时命中
     :first-child / :last-child，这里统一给底部两角圆角 */
  .admin-table.front-table tbody tr.rk-detail > td:first-child:last-child {
    border-radius: 0 0 12px 12px;
  }
}

/* ---------- 表头：统一蓝底白字横条（纯色、无分格、无圆角） ---------- */
.admin-table.front-table thead th {
  background: #3b5bdb;
  color: #fff;
  font-weight: 600;
  letter-spacing: 1px;
  border-top: none;
  border-bottom: none;
  box-shadow: 0 2px 8px rgba(59, 91, 219, .22);
}

/* ---------- 卡片模式（≤767px） ---------- */
@media (max-width: 767px) {
  .admin-table.front-table tbody tr.rk-main,
  .admin-table.front-table tbody tr.rk-detail {
    border-color: #3b5bdb !important;
    border-width: 1.5px !important;
  }
  /* 展开时摘要卡与详情卡拼成同一个圈：上卡去掉下边线和下圆角，
     下卡用负外边距贴上去并去掉上边线和上圆角 */
  .admin-table.front-table tbody tr.rk-main.open {
    border-bottom: none !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }
  .admin-table.front-table tbody tr.rk-main.open + tr.rk-detail {
    margin-top: -12px !important;
    border-top: none !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
  }
}

