/* ===== 全局变量 ===== */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #eff6ff;
  --success: #16a34a;
  --danger: #dc2626;
  --warning: #d97706;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --bg: #f1f5f9;
  --white: #ffffff;
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --radius: 8px;
  --radius-lg: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }

/* ===== 登录页 ===== */
.login-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #0ea5e9 100%);
}
.login-logo { text-align: center; margin-bottom: 32px; color: white; }
.logo-icon { font-size: 48px; margin-bottom: 8px; }
.login-logo h1 { font-size: 28px; font-weight: 700; letter-spacing: 2px; }
.login-logo p { opacity: 0.85; font-size: 14px; margin-top: 4px; }
.login-box {
  background: white;
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  width: 380px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.login-box h2 { font-size: 20px; margin-bottom: 24px; color: var(--text); }
.login-hint { text-align: center; margin-top: 16px; color: var(--text-muted); }
.error-msg { color: var(--danger); font-size: 13px; margin-bottom: 12px; padding: 8px 12px; background: #fef2f2; border-radius: 6px; }

/* ===== 主布局 ===== */
.header {
  height: 56px;
  background: white;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.header-logo { font-size: 16px; font-weight: 600; color: var(--primary); }
.header-right { display: flex; align-items: center; gap: 12px; }
.user-info { display: flex; align-items: center; gap: 8px; }
.user-avatar {
  width: 32px; height: 32px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600;
}
.role-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--primary-light);
  color: var(--primary);
}
.role-badge.clerk { background: #f0fdf4; color: var(--success); }
.role-badge.admin { background: #fef9c3; color: var(--warning); }

.layout { display: flex; height: calc(100vh - 56px); overflow: hidden; }

/* ===== 侧边栏 ===== */
.sidebar {
  width: 200px;
  background: white;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 16px 0;
  flex-shrink: 0;
}
.nav { flex: 1; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 14px;
  transition: all 0.15s;
  text-decoration: none;
  border-left: 3px solid transparent;
}
.nav-item:hover { background: var(--primary-light); color: var(--primary); }
.nav-item.active { color: var(--primary); background: var(--primary-light); border-left-color: var(--primary); font-weight: 500; }
.nav-icon { font-size: 16px; }
.sidebar-stats {
  padding: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
}
.stat-item { flex: 1; text-align: center; background: var(--bg); border-radius: 8px; padding: 10px 4px; }
.stat-num { display: block; font-size: 22px; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 11px; color: var(--text-muted); }

/* ===== 内容区 ===== */
.content { flex: 1; overflow-y: auto; padding: 24px; }
.page-header { margin-bottom: 24px; }
.page-header h2 { font-size: 20px; font-weight: 600; }
.page-header p { color: var(--text-muted); font-size: 14px; margin-top: 4px; }

/* ===== 搜索区 ===== */
.search-bar-box { background: white; border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow); margin-bottom: 20px; }
.search-main { display: flex; gap: 12px; margin-bottom: 12px; }
.search-input-large {
  flex: 1;
  height: 46px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 0 16px;
  font-size: 15px;
  transition: border-color 0.2s;
  color: var(--text);
}
.search-input-large:focus { outline: none; border-color: var(--primary); }
.btn-search { height: 46px; padding: 0 28px; font-size: 15px; }
.search-filters { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-input {
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0 12px;
  font-size: 13px;
  color: var(--text);
  flex: 1;
  min-width: 120px;
}
.filter-input:focus { outline: none; border-color: var(--primary); }

/* ===== 结果区 ===== */
.result-area { }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state p { font-size: 15px; }
.empty-state small { font-size: 13px; }

.result-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; color: var(--text-muted); font-size: 13px; }
.result-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }

.drawing-card {
  background: white;
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.drawing-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.drawing-card-head { display: flex; align-items: flex-start; gap: 12px; }
.drawing-file-icon {
  width: 44px; height: 44px;
  background: var(--primary-light);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.drawing-info { flex: 1; min-width: 0; }
.drawing-name { font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drawing-community { font-size: 15px; font-weight: 700; color: var(--primary); }
.drawing-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--bg);
  color: var(--text-muted);
  white-space: nowrap;
}
.tag.community { background: var(--primary-light); color: var(--primary); }
.drawing-meta { font-size: 12px; color: var(--text-muted); display: flex; gap: 12px; flex-wrap: wrap; }
.drawing-actions { display: flex; gap: 8px; margin-top: 4px; }
.drawing-actions .btn { flex: 1; }

/* ===== 上传表单 ===== */
.upload-box { background: white; border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
.form-row { display: flex; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.form-row .form-group { flex: 1; min-width: 180px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 500; color: var(--text); }
.form-group input, .form-group select, .form-group textarea {
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0 12px;
  font-size: 14px;
  color: var(--text);
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--primary); }
.required-star { color: var(--danger); }

.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 16px;
  background: var(--bg);
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--primary);
  background: var(--primary-light);
}
.upload-icon { font-size: 40px; margin-bottom: 10px; }
.upload-zone p { font-size: 14px; color: var(--text-muted); }
.upload-zone small { font-size: 12px; color: var(--text-muted); }
.link { color: var(--primary); cursor: pointer; text-decoration: underline; }

/* 智能识别提示横幅 */
.smart-tip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, #eff6ff, #f0fdf4);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #1e40af;
}
.smart-tip-icon { font-size: 16px; flex-shrink: 0; }

/* 信息区分组标题 */
.form-section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-bottom: 12px;
  margin-top: 4px;
}

.file-list { margin-bottom: 16px; }
.file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--bg);
  border-radius: 6px;
  margin-bottom: 6px;
  font-size: 13px;
}
.file-item-main { flex: 1; min-width: 0; }
.file-item-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-item-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.file-tag {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 10px;
  background: white;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.file-tag.community { background: var(--primary-light); color: var(--primary); border-color: #bfdbfe; }
.file-item-size { color: var(--text-muted); flex-shrink: 0; }
.file-item-del { color: var(--danger); cursor: pointer; flex-shrink: 0; }

/* ===== 展开的文件项（含独立编辑字段） ===== */
.file-item-expanded {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: 6px;
  margin-bottom: 8px;
  font-size: 13px;
}
.file-item-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.file-item-icon { flex-shrink: 0; font-size: 16px; }
.file-item-fields {
  border-top: 1px dashed var(--border);
  padding-top: 8px;
}
.file-field-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.file-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.file-field label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 2px;
  white-space: nowrap;
}
.file-field label .req { color: var(--danger); }
.file-input {
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0 8px;
  font-size: 12px;
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
  min-width: 90px;
}
.file-input:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(37,99,235,0.15); outline: none; }
.file-input.sm { min-width: 70px; width: 80px; }
.file-input.auto-filled { border-color: #22c55e; background: #f0fdf4; }
.file-field:nth-child(1) .file-input { min-width: 120px; }

.progress-bar-wrap { height: 6px; background: var(--border); border-radius: 3px; margin-bottom: 8px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--primary); border-radius: 3px; transition: width 0.3s; }
.progress-text { font-size: 13px; color: var(--text-muted); }

.form-actions { display: flex; gap: 12px; margin-top: 16px; }

/* ===== 管理列表 ===== */
.manage-toolbar { display: flex; gap: 12px; margin-bottom: 16px; align-items: center; }
.manage-list { }
.manage-table { width: 100%; border-collapse: collapse; background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.manage-table th {
  background: var(--bg);
  padding: 10px 14px;
  text-align: left;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.manage-table td {
  padding: 10px 14px;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.manage-table tr:last-child td { border-bottom: none; }
.manage-table tr:hover td { background: var(--primary-light); }

/* ===== 消息提示 ===== */
.msg-box {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 12px;
}
.msg-box.success { background: #f0fdf4; color: var(--success); border: 1px solid #bbf7d0; }
.msg-box.error { background: #fef2f2; color: var(--danger); border: 1px solid #fecaca; }
.msg-box.info { background: var(--primary-light); color: var(--primary); border: 1px solid #bfdbfe; }

/* ===== 通用组件 ===== */
.card { background: white; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 16px; }
.card h3 { font-size: 15px; margin-bottom: 16px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 16px; height: 36px;
  border: none; border-radius: 6px;
  font-size: 14px; font-weight: 500;
  cursor: pointer; transition: all 0.15s;
  text-decoration: none; white-space: nowrap;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); }
.btn-success { background: var(--success); color: white; }
.btn-success:hover:not(:disabled) { background: #15803d; }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover:not(:disabled) { background: #b91c1c; }
.btn-outline { background: white; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover:not(:disabled) { background: var(--bg); }
.btn-sm { height: 30px; padding: 0 12px; font-size: 12px; }
.btn-lg { height: 44px; padding: 0 24px; font-size: 15px; }
.btn-block { width: 100%; }

/* ===== 动画 ===== */
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.drawing-card { animation: fadeIn 0.25s ease; }

/* 自动填充高亮闪烁 */
@keyframes autoFillPulse {
  0%   { border-color: var(--border); background: white; }
  30%  { border-color: #22c55e; background: #f0fdf4; }
  70%  { border-color: #22c55e; background: #f0fdf4; }
  100% { border-color: var(--border); background: white; }
}
.auto-filled {
  animation: autoFillPulse 2s ease forwards;
  border-color: #22c55e !important;
}

/* ===== 用户管理 - 添加方式切换 ===== */
.add-mode-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  width: fit-content;
  background: var(--bg);
}
.add-mode-tab {
  padding: 8px 24px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.15s;
}
.add-mode-tab.active {
  background: var(--primary);
  color: white;
}
.add-mode-tab:not(.active):hover { background: var(--border); color: var(--text); }

/* ===== 批量表格 ===== */
.batch-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
  gap: 12px;
}
.batch-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
}
.batch-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.batch-table th {
  background: var(--bg);
  padding: 8px 10px;
  text-align: left;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.batch-table td {
  padding: 4px 6px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.batch-table tr:last-child td { border-bottom: none; }
.batch-table input, .batch-table select {
  width: 100%;
  height: 32px;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 0 8px;
  font-size: 13px;
  background: transparent;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s;
}
.batch-table input:focus, .batch-table select:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
}
.batch-table input::placeholder { color: #cbd5e1; }
.batch-table tr:hover input, .batch-table tr:hover select { background: white; }
.batch-row-del {
  color: var(--danger);
  cursor: pointer;
  font-size: 16px;
  padding: 0 6px;
  opacity: 0.5;
  transition: opacity 0.15s;
}
.batch-row-del:hover { opacity: 1; }
.batch-row-num { color: var(--text-muted); font-size: 12px; text-align: center; padding: 0 6px; }

/* 行状态 */
.batch-table tr.row-ok td { background: #f0fdf4; }
.batch-table tr.row-error td { background: #fef2f2; }

/* ===== Excel粘贴面板 ===== */
.paste-panel {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}
.paste-panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.paste-area {
  width: 100%;
  height: 140px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 13px;
  font-family: monospace;
  resize: vertical;
  color: var(--text);
  background: white;
}
.paste-area:focus { outline: none; border-color: var(--primary); }

/* 批量结果 */
.batch-result-summary {
  display: flex;
  gap: 16px;
  padding: 12px 16px;
  background: var(--bg);
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 10px;
}
.batch-result-summary .ok { color: var(--success); font-weight: 600; }
.batch-result-summary .fail { color: var(--danger); font-weight: 600; }
.batch-result-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 4px;
}
.batch-result-item.ok { background: #f0fdf4; color: var(--success); }
.batch-result-item.fail { background: #fef2f2; color: var(--danger); }
/* ===== 楼盘卡片首页 ===== */
.community-grid { }
.community-grid-inner {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.community-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  position: relative;
}
.community-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.community-card-cover {
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, #dbeafe, #e0e7ff);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.community-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.community-cover-placeholder {
  font-size: 52px;
  opacity: 0.5;
  line-height: 1;
}
.community-card-body {
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.community-card-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
}
.community-card-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.comm-stat {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}
.comm-stat strong {
  color: var(--primary);
  font-weight: 600;
}
.community-card-time {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 4px;
}
.community-card-arrow {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.2s;
}
.community-card:hover .community-card-arrow {
  opacity: 1;
}

/* ===== 小区详情页 ===== */
.detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.detail-title-area {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex: 1;
}
.detail-community-name {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}
.detail-total {
  font-size: 14px;
  color: var(--text-muted);
  white-space: nowrap;
}
.detail-total strong {
  color: var(--primary);
  font-weight: 600;
}

/* 封面图条 */
.detail-cover-bar {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.detail-cover-img {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  display: block;
}

/* 封面上传区 */
.cover-upload-area {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.cover-upload-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  flex-shrink: 0;
}
.cover-upload-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.cover-current {
  font-size: 13px;
  color: var(--success);
}

/* ===== 可编辑表格 ===== */
.row-editing {
  background: #fffbeb !important;
}
.row-editing td {
  vertical-align: middle;
  padding: 8px 10px;
}
.edit-input {
  width: 100%;
  height: 32px;
  border: 1px solid var(--primary);
  border-radius: 5px;
  padding: 0 8px;
  font-size: 13px;
  color: var(--text);
  background: white;
  box-shadow: 0 1px 3px rgba(37,99,235,0.15);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.edit-input:focus {
  outline: none;
  border-color: var(--primary-dark);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.edit-input.edit-sm {
  width: 80px;
}
.edit-actions-cell {
  display: flex;
  gap: 6px;
  white-space: nowrap;
}

/* 设计师标签 */
.designer-tag {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  color: #7c3aed;
  background: #f3e8ff;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ===== PPT相关样式 ===== */

/* 小区卡片PPT标记 */
.community-card-ppt-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(124,58,237,0.35);
  z-index: 2;
}

/* PPT统计标签 */
.comm-stat-ppt strong {
  color: #7c3aed !important;
}

/* PPT卡片 */
.ppt-card {
  border-left: 3px solid #7c3aed;
}

/* 详情页分区标题 */
.detail-section {
  margin-bottom: 28px;
}
.detail-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
.detail-section-header h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
  color: var(--text);
}
.detail-section-count {
  font-size: 13px;
  color: var(--text-muted);
  background: var(--bg);
  padding: 2px 10px;
  border-radius: 20px;
}

/* PPT文件列表头部 */
.file-list-header {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 12px;
  background: var(--bg);
  border-radius: 6px 6px 0 0;
  margin-bottom: 4px;
}

/* 管理页标签切换 */
.manage-tab-bar {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--border);
}
.manage-tab {
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.manage-tab:hover {
  color: var(--primary);
}
.manage-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* 搜索类型筛选下拉框 */
.filter-select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  background: white;
  color: var(--text);
  cursor: pointer;
  min-width: 100px;
}
.filter-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* 搜索结果分区标题 */
.search-section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 20px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

@media (max-width: 768px) {
  .sidebar { display: none; }
  .result-grid { grid-template-columns: 1fr; }
  .community-grid-inner { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; }
  .login-box { width: 90%; padding: 24px; }
  .manage-tab-bar { overflow-x: auto; }
  .manage-tab { padding: 8px 16px; font-size: 13px; }
}
