/* ============ 后台管理样式 ============ */
.admin-body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: #f5f6f8;
  color: #2f2f2f;
  min-height: 100vh;
}

/* ---- 登录页 ---- */
.admin-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3d3d3d 0%, #222 100%);
  padding: 24px;
}
.admin-login-card {
  background: #fff;
  border-radius: 12px;
  padding: 40px 36px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.admin-login-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-bottom: 28px;
}
.admin-login-logo .logo-mark {
  background: #c39962;
  color: #fff;
  font-size: 22px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.admin-login-title {
  font-size: 20px;
  font-weight: 700;
  color: #2f2f2f;
}
.admin-tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
}
.admin-tab {
  flex: 1;
  padding: 10px 0;
  border: none;
  background: transparent;
  font-size: 15px;
  color: #888;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color .25s, border-color .25s;
}
.admin-tab.active {
  color: #c39962;
  border-bottom-color: #c39962;
  font-weight: 600;
}
.admin-auth-msg {
  min-height: 20px;
  margin-top: 14px;
  font-size: 13px;
  color: #e53935;
  text-align: center;
}
.admin-home-link {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: 13px;
  color: #999;
  text-decoration: none;
}
.admin-home-link:hover { color: #c39962; }

/* ---- 面板布局 ---- */
.admin-panel { min-height: 100vh; display: flex; flex-direction: column; }
.admin-header {
  background: #2a2a2a;
  color: #fff;
  padding: 0 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.admin-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
}
.admin-header-title .logo-mark {
  background: #c39962;
  width: 32px; height: 32px;
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; color: #fff;
}
.admin-header-user {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: #ccc;
}
.admin-ghost-link {
  color: #c39962;
  text-decoration: none;
  font-size: 13px;
}
.btn { cursor: pointer; border: none; border-radius: 6px; font-weight: 600; transition: all .2s; }
.btn-gold { background: #c39962; color: #fff; padding: 8px 18px; }
.btn-gold:hover { background: #a8844f; }
.btn-ghost { background: transparent; color: #888; }
.btn-ghost:hover { color: #2f2f2f; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-full { width: 100%; padding: 11px 18px; font-size: 15px; }

.admin-layout {
  flex: 1;
  display: flex;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 24px;
  gap: 24px;
}
.admin-sidebar {
  width: 200px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.admin-nav {
  text-align: left;
  padding: 13px 16px;
  border: none;
  background: transparent;
  font-size: 14px;
  color: #555;
  border-radius: 8px;
  cursor: pointer;
  transition: all .2s;
}
.admin-nav:hover { background: #fff; color: #2f2f2f; }
.admin-nav.active {
  background: #fff;
  color: #c39962;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.admin-main {
  flex: 1;
  background: #fff;
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
  min-width: 0;
}
.admin-section { display: none; }
.admin-section.active { display: block; }
.admin-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.admin-section-head h2 { font-size: 18px; margin: 0; color: #2f2f2f; }
.admin-filter { display: flex; gap: 10px; align-items: center; }
.admin-filter select {
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  background: #fff;
}

/* ---- 表格 ---- */
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th, .admin-table td {
  padding: 11px 12px;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: top;
}
.admin-table th { background: #fafafa; color: #888; font-weight: 600; white-space: nowrap; }
.admin-table td { color: #333; }
/* 咨询管理：需求描述 / 备注 自适应多行文本 */
.lead-msg, .lead-remark {
  width: 100%; min-width: 140px; box-sizing: border-box;
  border: 1px solid transparent; border-radius: 6px;
  padding: 6px 8px; font-size: 13px; line-height: 1.5; font-family: inherit;
  resize: none; overflow: hidden; background: transparent; color: #333;
  white-space: pre-wrap; word-break: break-word; display: block;
}
.lead-msg { background: #fafafa; cursor: default; }
.lead-remark { background: #fffdf7; border-color: #e8e2d5; cursor: text; transition: border-color .2s, box-shadow .2s; }
.lead-remark:hover { border-color: #d8cfbc; }
.lead-remark:focus { outline: none; border-color: #C39962; box-shadow: 0 0 0 3px rgba(195,153,98,.15); }
.lead-remark::placeholder { color: #bbb; }
.admin-table tr:hover td { background: #fafbfc; }
.admin-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 12px;
}
.admin-tag.new { background: #fff3e0; color: #e65100; }
.admin-tag.contacted { background: #e8f5e9; color: #2e7d32; }
.admin-tag.closed { background: #eceff1; color: #607d8b; }
.admin-status-select {
  padding: 4px 6px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 12px;
  background: #fff;
}
.admin-op { display: flex; gap: 6px; }
.admin-link-btn {
  border: none; background: transparent; cursor: pointer;
  font-size: 12px; color: #c39962; padding: 2px 4px;
}
.admin-link-btn.danger { color: #e53935; }

/* ---- 新闻表单 / 设置 ---- */
.admin-news-form {
  background: #fafbfc;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}
.admin-news-form h3 { margin: 0 0 16px; font-size: 16px; }
.admin-news-form-actions { display: flex; gap: 10px; margin-top: 6px; }
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.form-group label { font-size: 13px; color: #555; }
.form-group input, .form-group select, .form-group textarea {
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: #c39962;
  box-shadow: 0 0 0 3px rgba(195,153,98,.15);
}
.required { color: #e53935; }
.admin-settings-tip { color: #999; font-size: 13px; margin: 0 0 20px; }
.admin-setting-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}
.admin-setting-row .setting-key { width: 160px; flex-shrink: 0; font-size: 13px; color: #555; font-weight: 600; }
.admin-setting-row input, .admin-setting-row textarea { flex: 1; }
.admin-setting-row .btn { flex-shrink: 0; }

/* ---- 提示条 ---- */
.admin-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: #2f2f2f;
  color: #fff;
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 14px;
  opacity: 0;
  transition: all .3s;
  z-index: 999;
  pointer-events: none;
}
.admin-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.admin-toast.success { background: #2e7d32; }
.admin-toast.error { background: #c62828; }

/* ---- 空状态 ---- */
.admin-empty { text-align: center; color: #aaa; padding: 40px 0; font-size: 14px; }

/* ---- 响应式 ---- */
@media (max-width: 768px) {
  .admin-layout { flex-direction: column; padding: 16px; }
  .admin-sidebar { width: 100%; flex-direction: row; overflow-x: auto; }
  .admin-nav { white-space: nowrap; flex-shrink: 0; }
  .admin-header-user .admin-ghost-link { display: none; }
  .admin-setting-row { flex-direction: column; align-items: stretch; gap: 8px; }
  .admin-setting-row .setting-key, .admin-setting-row .btn { width: 100%; }
  .admin-section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
}
/* 轮播图配置工具区 */
.slides-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

/* 已上传轮播图预览列表 */
.slides-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.slide-thumb {
  position: relative;
  width: 130px;
  height: 74px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #eee;
  background: #f6f6f6;
}
.slide-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 图片类型设置项（如微信二维码） */
.image-setting { display: flex; flex-direction: column; gap: 8px; }
.image-setting-main { display: flex; gap: 8px; align-items: center; }
.image-setting-main .image-url { flex: 1; }
.image-preview {
  width: 120px;
  height: 120px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #e5e5e5;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 12px;
}
.image-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 新闻封面 / 正文插图预览与删除 */
.cover-preview { margin-top: 10px; display: inline-block; position: relative; }
.cover-preview img { max-width: 220px; max-height: 130px; display: block; border-radius: 4px; border: 1px solid #eee; object-fit: cover; }
.img-del-btn {
  position: absolute; top: -8px; right: -8px; width: 22px; height: 22px;
  border-radius: 50%; border: none; background: #e74c3c; color: #fff;
  font-size: 15px; line-height: 1; cursor: pointer; display: flex;
  align-items: center; justify-content: center; padding: 0; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.img-del-btn:hover { background: #c0392b; }
.content-imgs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.content-imgs:empty { margin-top: 0; }
.content-img-item { position: relative; width: 92px; height: 92px; }
.content-img-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; border: 1px solid #eee; display: block; }
.slide-del {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slide-del:hover { background: #c0392b; }

/* 客户需求及痛点 卡片编辑器 */
.cards-editor {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pain-card {
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 12px;
  background: #fafafa;
}
.pain-card-head {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.pain-card-head .pain-title {
  flex: 2;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
}
.pain-card-head .pain-eng {
  flex: 1.5;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
}
.pain-card textarea.pain-points {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
  box-sizing: border-box;
}
.pain-del {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: #eee;
  color: #999;
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1;
}
.pain-del:hover { background: #c0392b; color: #fff; }

/* 我们的优势 编辑器（复用卡片编辑器结构） */
.adv-card textarea.adv-desc {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
  box-sizing: border-box;
}
.adv-card-head .adv-title {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
}
.adv-del {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: #eee;
  color: #999;
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1;
}
.adv-del:hover { background: #c0392b; color: #fff; }

/* 关于·实力数据 编辑器 */
.stat-card .stat-num-input, .stat-card .stat-suffix {
  padding: 8px 8px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
}
.stat-card .stat-label {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
}

/* 新闻封面 上传行内布局 */
.upload-inline {
  display: flex;
  gap: 8px;
  align-items: center;
}
.upload-inline input[type="text"] { flex: 1; }

/* ======= 新闻类型管理 ======= */
.cat-manage {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 16px 18px;
  margin-bottom: 20px;
}
.cat-manage-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.cat-manage-label { font-size: 14px; font-weight: 600; color: #2f2f2f; }
.cat-manage-tip { font-size: 12px; color: #aaa; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; min-height: 28px; }
.cat-empty { color: #bbb; font-size: 13px; align-self: center; }
.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px 5px 12px;
  background: rgba(195, 153, 98, 0.1);
  color: #a8844f;
  border-radius: 999px;
  font-size: 13px;
}
.cat-chip-del {
  border: none;
  background: rgba(195, 153, 98, 0.2);
  color: #a8844f;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
}
.cat-chip-del:hover { background: #c0392b; color: #fff; }
.cat-add { display: flex; gap: 10px; flex-wrap: wrap; }
.cat-add input {
  flex: 0 1 240px;
  padding: 8px 12px;
  border: 1px solid #e2e2e2;
  border-radius: 4px;
  font-size: 13px;
  outline: none;
}
.cat-add input:focus { border-color: #c39962; }

/* ======= 新闻工具栏（搜索 + 类型筛选） ======= */
.news-toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.news-toolbar input[type="text"],
.news-toolbar select {
  padding: 8px 12px;
  border: 1px solid #e2e2e2;
  border-radius: 4px;
  font-size: 13px;
  outline: none;
  background: #fff;
}
.news-toolbar input[type="text"] { flex: 1; min-width: 200px; }
.news-toolbar input[type="text"]:focus,
.news-toolbar select:focus { border-color: #c39962; }

/* 后台新闻表单类型下拉 */
.admin-news-form select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e2e2e2;
  border-radius: 4px;
  font-size: 14px;
  background: #fff;
  outline: none;
  color: #333;
}
.admin-news-form select:focus { border-color: #c39962; }

/* 后台新闻列表类型标签 */
.cat-tag {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(195, 153, 98, 0.12);
  color: #a8844f;
  font-size: 12px;
  border-radius: 3px;
  white-space: nowrap;
}

/* ======= 修改密码弹窗 ======= */
.admin-modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.admin-modal {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}
.admin-modal-title { margin: 0 0 18px; font-size: 17px; color: #2f2f2f; }
.admin-modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }

/* 文件类设置项（在线财税体检 · 报告样例） */
.file-setting { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.file-current { font-size: 13px; color: #555; }
.file-current a { color: #c39962; text-decoration: none; word-break: break-all; }
.file-current a:hover { text-decoration: underline; }
.file-current.file-empty { color: #999; }
.file-setting-main { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.file-tip { font-size: 12px; color: #999; }

/* 存储管理 */
.storage-filter { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #555; cursor: pointer; user-select: none; }
.storage-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 4px; display: block; border: 1px solid #eee; }
.storage-file-icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; background: #f5f2ec; color: #c39962; font-size: 12px; font-weight: 700; border-radius: 4px; text-decoration: none; border: 1px solid #e8e2d5; }
.storage-file-icon:hover { background: #efe9dc; }
.storage-name { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.storage-used { color: #2e7d32; font-size: 12px; background: #e8f5e9; padding: 3px 10px; border-radius: 11px; white-space: nowrap; }
.storage-unused { color: #c62828; font-size: 12px; background: #ffebee; padding: 3px 10px; border-radius: 11px; white-space: nowrap; }
.storage-del { color: #c62828; }
/* 批量删除：勾选列与按钮 */
.storage-check-col { width: 36px; text-align: center; }
.storage-check { width: 15px; height: 15px; accent-color: #c39962; cursor: pointer; vertical-align: middle; }
.storage-check:disabled { cursor: not-allowed; opacity: 0.35; }
.storage-batch-del { color: #c62828; border-color: #e5b3b3; }
.storage-batch-del:hover:not(:disabled) { background: #c62828; border-color: #c62828; color: #fff; }
.storage-batch-del:disabled { opacity: 0.45; cursor: not-allowed; }

/* 轮播预览：图片加载失败标记（如外链失效/路径错误） */
.slide-thumb.slide-broken { outline: 2px solid #c0392b; }
.slide-thumb.slide-broken img { opacity: 0.25; }

/* 团队核心成员编辑 */
.team-edit-row { display: flex; gap: 14px; align-items: flex-start; }
.team-photo-edit { flex: none; width: 92px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.team-photo-preview { width: 92px; height: 120px; border: 1px dashed #ddd; border-radius: 4px; overflow: hidden; display: flex; align-items: center; justify-content: center; color: #bbb; font-size: 12px; background: #fafafa; }
.team-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.team-edit-main { flex: 1; display: flex; flex-direction: column; gap: 8px; }
/* 成员介绍：默认 6 行，支持纵向拉高、横向拉宽 */
.team-edit-main textarea.team-desc { resize: both; min-height: 130px; }
