/* ====== 九算益智 教培素材H5系统 全局样式 (改版) ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #4A7CFE;
  --primary-dark: #3B6AE0;
  --primary-light: #EEF4FF;
  --bg: #F0F4F8;
  --card: #ffffff;
  --text: #1a1a1a;
  --text-sub: #999999;
  --text-mid: #666666;
  --border: #EAEDF0;
  --success: #52c41a;
  --warning: #faad14;
  --danger: #ff4d4f;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(74,124,254,0.08);
  --shadow-hover: 0 4px 20px rgba(74,124,254,0.15);
}

html, body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  -webkit-tap-highlight-color: transparent;
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; }
img { display: block; max-width: 100%; }

/* ====== 页面容器 ====== */
.page-wrap {
  max-width: 750px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
}

/* ====== 顶部导航栏 + LOGO ====== */
.header {
  background: var(--card);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo img {
  height: 32px;
  width: auto;
  max-width: 160px;
}

.logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
}

.header-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-user .user-name {
  font-size: 13px;
  color: var(--text-sub);
}

.btn-logout {
  font-size: 13px;
  color: var(--danger);
  background: none;
  border: 1px solid var(--danger);
  border-radius: 20px;
  padding: 4px 12px;
  cursor: pointer;
}

/* ====== 分类入口（横向滑动 + 图标） ====== */
.category-bar {
  background: var(--card);
  padding: 16px 0 14px;
  border-bottom: 1px solid var(--border);
}

.category-scroll {
  display: flex;
  flex-wrap: wrap;
  padding: 0 12px;
  gap: 4px 4px;
  justify-content: flex-start;
}
.category-scroll::-webkit-scrollbar { display: none; }

.category-item {
  flex-shrink: 0;
  width: 25%;
  max-width: 80px;
  min-width: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform .2s;
  box-sizing: border-box;
}
.category-item:active { transform: scale(0.92); }

.category-item .cat-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  overflow: hidden;
  margin-bottom: 6px;
  transition: all .2s;
}
.category-item.active .cat-icon-wrap {
  background: var(--primary);
  box-shadow: 0 4px 12px rgba(74,124,254,0.3);
}
.category-item .cat-icon-wrap img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.category-item .cat-emoji {
  font-size: 26px;
  line-height: 1;
}
.category-item .cat-name {
  font-size: 11px;
  color: var(--text-mid);
  text-align: center;
  line-height: 1.3;
  max-width: 68px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.category-item.active .cat-name {
  color: var(--primary);
  font-weight: 600;
}

/* "全部" 分类特殊样式 */
.category-item.cat-all .cat-icon-wrap {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}
.category-item.cat-all .cat-icon-wrap .cat-emoji {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
}
.category-item.cat-all.active .cat-icon-wrap {
  box-shadow: 0 4px 12px rgba(74,124,254,0.4);
}

/* ====== 素材列表 ====== */
.material-list {
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.material-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.material-card:active {
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

/* 卡片上半部分：信息区 */
.material-card .card-info {
  padding: 12px 12px 10px;
}

.material-card .card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.material-card .card-time {
  font-size: 11px;
  color: var(--text-sub);
  margin-top: 4px;
}

.material-card .card-copy {
  font-size: 12px;
  color: var(--text-mid);
  margin-top: 6px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.material-card .card-tag {
  display: inline-block;
  font-size: 10px;
  color: var(--primary);
  background: var(--primary-light);
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 6px;
}

/* 卡片下半部分：海报图片 */
.material-card .card-img-wrap {
  width: 100%;
  aspect-ratio: 3/4;
  background: #f5f5f5;
  overflow: hidden;
  position: relative;
}
.material-card .card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ====== 空状态 ====== */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-sub);
}
.empty-state .icon { font-size: 48px; margin-bottom: 12px; }
.empty-state .text { font-size: 14px; }

/* ====== 表单通用 ====== */
.form-card {
  background: var(--card);
  margin: 12px;
  border-radius: var(--radius);
  padding: 20px 16px;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 6px;
  font-weight: 500;
}
.form-label .required { color: var(--danger); }

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: #FAFBFC;
  outline: none;
  transition: border-color .2s;
  font-family: inherit;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--primary);
  background: #fff;
}
.form-textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

/* ====== 按钮 ====== */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: opacity .2s;
  font-family: inherit;
}
.btn:active { opacity: 0.8; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-block { display: block; width: 100%; }
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 6px; }

/* ====== Toast ====== */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: all .3s;
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ====== 详情页（参考截图改版） ====== */
.detail-page {
  min-height: 100vh;
  background: var(--bg);
  position: relative;
}

/* 左右两侧上下条切换按钮 */
.detail-nav-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 44px;
  height: 64px;
  display: none; /* JS 根据是否有上下条动态显示 */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  color: var(--text-sub);
  padding: 0;
  font-size: 18px;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}
.detail-nav-prev { left: 6px; }
.detail-nav-next { right: 6px; }
.detail-nav-btn .nav-arrow {
  font-size: 22px;
  color: var(--primary);
  font-weight: 600;
  line-height: 1;
}
.detail-nav-btn .nav-label {
  font-size: 10px;
  margin-top: 4px;
  color: var(--text-sub);
}
.detail-nav-btn:active { background: var(--bg); }

.detail-card {
  background: var(--card);
  margin: 12px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.detail-meta-top {
  font-size: 12px;
  color: var(--text-sub);
  padding: 14px 16px 6px;
  line-height: 1.4;
}

.detail-copy {
  padding: 6px 16px 14px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
}
.copy-content {
  white-space: pre-wrap;
  word-break: break-word;
}

.detail-img-wrap {
  width: 100%;
  text-align: center;
  margin: 0 auto 12px;
  padding: 8px 0;
}
.detail-img {
  max-width: 65%;
  width: auto;
  height: auto;
  border-radius: 6px;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.detail-actions {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 16px 12px 8px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.action-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  padding: 4px 0;
}
.action-btn:active { opacity: 0.6; }
.action-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
/* 用 CSS 画三个图标，避免图片资源 */
.action-icon-copy::before {
  content: '';
  width: 12px;
  height: 16px;
  border: 2px solid var(--primary);
  border-radius: 2px;
  position: relative;
}
.action-icon-copy::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 16px;
  border: 2px solid var(--primary);
  border-radius: 2px;
  top: 4px;
  left: 4px;
  background: var(--card);
}
.action-icon-share::before {
  content: '';
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 8px solid var(--primary);
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
}
.action-icon-share::after {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
}
.action-icon-friend::before {
  content: '';
  width: 16px;
  height: 12px;
  border: 2px solid var(--primary);
  border-radius: 8px 8px 2px 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
}
.action-icon-friend::after {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
}
.action-label {
  font-size: 12px;
  color: var(--text);
}

.detail-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 6px 16px 16px;
}
.detail-pagination .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ddd;
  display: inline-block;
}
.detail-pagination .dot-active {
  width: 14px;
  height: 6px;
  border-radius: 3px;
  background: var(--primary);
}
.detail-pagination .dot-more {
  font-size: 12px;
  color: var(--text-sub);
}

.save-hint {
  text-align: center;
  font-size: 12px;
  color: var(--text-sub);
  margin-top: 10px;
  line-height: 1.6;
}

/* ====== 管理员后台 ====== */

/* 筛选标签 — 自动换行，禁止横向滚动 */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  background: var(--card);
  padding: 10px 12px;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}

.filter-tab {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  background: var(--bg);
  color: var(--text-sub);
  cursor: pointer;
  transition: all .2s;
}
.filter-tab.active {
  background: var(--primary);
  color: #fff;
}

/* 用户列表卡片 */
.user-card {
  background: var(--card);
  margin: 8px 12px;
  border-radius: var(--radius);
  padding: 14px 16px;
}
.user-card .user-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}
.user-card .user-name-text {
  font-size: 15px;
  font-weight: 600;
}
.user-card .user-meta {
  font-size: 12px;
  color: var(--text-sub);
  margin-top: 2px;
}
.status-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
}
.status-pending { background: #fff7e6; color: var(--warning); }
.status-approved { background: #f6ffed; color: var(--success); }
.status-rejected { background: #fff1f0; color: var(--danger); }

.user-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

/* ====== 管理后台顶栏（LOGO上传 + 账号 + 退出） ====== */
.admin-header {
  background: var(--card);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-logo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* LOGO 图片：高度 40px，等比例缩放 */
.admin-logo-img {
  height: 40px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
}

/* 无 LOGO 时的占位 */
.admin-logo-placeholder {
  height: 40px;
  width: 120px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-sub);
  background: var(--bg);
}

.admin-logo-upload-btn {
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  flex-shrink: 0;
  border: 1px solid var(--primary);
  transition: opacity .2s;
  font-family: inherit;
  white-space: nowrap;
}
.admin-logo-upload-btn:active { opacity: 0.7; }

.admin-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-user-name {
  font-size: 13px;
  color: var(--text-mid);
  font-weight: 500;
}

/* ====== 管理后台导航 ====== */
.admin-nav {
  display: flex;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.admin-nav-item {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  font-size: 14px;
  color: var(--text-sub);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all .2s;
}
.admin-nav-item.active {
  color: var(--primary);
  font-weight: 600;
  border-bottom-color: var(--primary);
}

/* ====== 管理后台素材卡片（纵向：文案在上，图片在下） ====== */
.admin-mat-card {
  background: var(--card);
  margin: 10px 12px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* 卡片头部：时间 + 删除 */
.amc-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px 6px;
}
.amc-time {
  font-size: 12px;
  color: var(--text-sub);
}
.amc-delete-btn {
  font-size: 12px;
  color: var(--danger);
  background: none;
  border: 1px solid var(--danger);
  border-radius: 14px;
  padding: 2px 10px;
  cursor: pointer;
}

/* 分类标签 */
.amc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0 14px 6px;
}
.amc-tag {
  display: inline-block;
  font-size: 10px;
  color: var(--primary);
  background: var(--primary-light);
  padding: 2px 8px;
  border-radius: 10px;
}

/* 可编辑文案区 */
.amc-textarea {
  width: calc(100% - 28px);
  margin: 0 14px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: #FAFBFC;
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
}
.amc-textarea:focus {
  border-color: var(--primary);
  background: #fff;
}

/* 图片预览区 */
.amc-image-wrap {
  margin: 10px 14px 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #f5f5f5;
  text-align: center;
}
.amc-image {
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
  cursor: pointer;
}

/* 底部按钮 */
.amc-btns {
  display: flex;
  gap: 6px;
  padding: 10px 14px 12px;
  border-top: 1px solid var(--border);
  margin-top: 10px;
}
.amc-btn {
  flex: 1;
  padding: 7px 0;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: opacity .2s;
  font-family: inherit;
}
.amc-btn:active { opacity: 0.7; }
.amc-btn-copy { background: var(--primary-light); color: var(--primary); }
.amc-btn-preview { background: #f0f0f0; color: var(--text-mid); }
.amc-btn-upload { background: #fff7e6; color: var(--warning); }
.amc-btn-save { background: var(--success); color: #fff; }

/* ====== 图片预览弹窗 ====== */
.img-preview-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.img-preview-overlay.show { display: flex; }
.img-preview-overlay img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

/* 模态弹窗 */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.modal-overlay.show { display: flex; }

.modal-content {
  background: var(--card);
  width: 100%;
  max-width: 750px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 20px 20px 0 0;
  padding: 20px 16px 40px;
  animation: slideUp .3s ease;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.modal-title { font-size: 17px; font-weight: 600; }
.modal-close {
  font-size: 24px;
  color: var(--text-sub);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

/* 图片上传 */
.image-upload-area {
  width: 100%;
  aspect-ratio: 3/4;
  max-width: 200px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  background: var(--bg);
}
.image-upload-area img { width: 100%; height: 100%; object-fit: cover; }
.image-upload-area .upload-placeholder { text-align: center; color: var(--text-sub); }
.image-upload-area .upload-placeholder .icon { font-size: 32px; }
.image-upload-area .upload-placeholder .text { font-size: 12px; margin-top: 4px; }

/* 图标上传（方形小） */
.icon-upload-area {
  width: 80px;
  height: 80px;
  border: 2px dashed var(--border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  background: var(--bg);
}
.icon-upload-area img { width: 100%; height: 100%; object-fit: cover; }
.icon-upload-area .upload-placeholder { text-align: center; color: var(--text-sub); }
.icon-upload-area .upload-placeholder .icon { font-size: 24px; }
.icon-upload-area .upload-placeholder .text { font-size: 10px; margin-top: 2px; }

/* LOGO 上传 */
.logo-upload-area {
  width: 160px;
  height: 48px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  background: var(--bg);
}
.logo-upload-area img { max-height: 40px; width: auto; max-width: 100%; object-fit: contain; }
.logo-upload-area .upload-placeholder { text-align: center; color: var(--text-sub); }
.logo-upload-area .upload-placeholder .icon { font-size: 20px; }
.logo-upload-area .upload-placeholder .text { font-size: 11px; margin-top: 2px; }

/* 登录页 */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #EEF4FF 0%, var(--bg) 100%);
  display: flex;
  flex-direction: column;
}

.auth-logo {
  text-align: center;
  padding: 48px 0 24px;
}
.auth-logo img { height: 56px; margin: 0 auto; }
.auth-logo .auth-logo-text {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 2px;
}

.auth-card {
  background: var(--card);
  margin: 0 16px;
  border-radius: 20px;
  padding: 28px 20px;
  box-shadow: 0 4px 20px rgba(74,124,254,0.1);
}

.auth-title {
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 24px;
}

.auth-link {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-sub);
}
.auth-link a { font-weight: 500; }

/* 底部说明 */
.footer-hint {
  text-align: center;
  font-size: 12px;
  color: var(--text-sub);
  padding: 20px;
  line-height: 1.6;
}

/* loading */
.loading {
  text-align: center;
  padding: 40px;
  color: var(--text-sub);
  font-size: 13px;
}

/* 管理后台设置区 */
.admin-section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  padding: 16px 16px 8px;
}

/* LOGO 配置卡片 */
.logo-config-card {
  background: var(--card);
  margin: 8px 12px;
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.logo-config-card .lcc-preview {
  flex-shrink: 0;
}
.logo-config-card .lcc-info {
  flex: 1;
}
.logo-config-card .lcc-label {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}
.logo-config-card .lcc-desc {
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.5;
}

/* ====== 多选分类 checkbox 组 ====== */
.category-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cat-checkbox-item {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  background: #FAFBFC;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
  user-select: none;
}
.cat-checkbox-item:active { transform: scale(0.96); }
.cat-checkbox-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--primary);
  cursor: pointer;
}
.cat-checkbox-item:has(input:checked) {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 500;
}
.cat-checkbox-item span {
  pointer-events: none;
}

/* ====== 卡片多标签 ====== */
.material-card .card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}
.material-card .card-tags .card-tag {
  margin-top: 0;
}
.material-card .card-week {
  font-size: 10px;
  color: var(--text-sub);
  margin-top: 4px;
}

/* ====== 详情页多标签 ====== */
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}
.detail-tag {
  display: inline-block;
  font-size: 11px;
  color: var(--primary);
  background: var(--primary-light);
  padding: 3px 10px;
  border-radius: 12px;
}

/* ====== 分类管理列表卡片 ====== */
.cat-manage-card {
  background: var(--card);
  margin: 8px 12px;
  border-radius: var(--radius);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cat-manage-card .cmc-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--primary-light);
}
.cat-manage-card .cmc-emoji {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.cat-manage-card .cmc-info {
  flex: 1;
  min-width: 0;
}
.cat-manage-card .cmc-name {
  font-size: 14px;
  font-weight: 500;
}
.cat-manage-card .cmc-sort {
  font-size: 12px;
  color: var(--text-sub);
  margin-top: 2px;
}
.cat-manage-card .cmc-actions {
  display: flex;
  gap: 8px;
}

/* ====== 新增素材按钮（浮动顶部） ====== */
.admin-add-bar {
  padding: 10px 12px;
}
.admin-add-bar .btn {
  border-radius: var(--radius-sm);
}
