/* ===== 蓝领百川 Offer 墙管理后台 - 与官网统一设计体系 ===== */
/* 品牌色：深蓝 #1A3B85（Logo主色） / 科技蓝 #0066FF / 信任绿 #00A86B / 浅灰背景 #F5F7FA / 正文深灰 #1F2937 */

:root {
  --blue: #0066FF;
  --blue-dark: #004EC2;
  --blue-light: #E8F0FF;
  --green: #00A86B;
  --green-dark: #008055;
  --green-light: #E7F7F0;
  --orange: #1e40af;
  --orange-dark: #172e6e;
  --orange-light: #E8EDF7;
  --purple: #7C3AED;
  --purple-light: #F3EEFF;
  --teal: #0891B2;
  --teal-light: #E6F7FA;
  --gold: #D4A017;
  --gold-light: #FDF8E8;
  --red: #DC2626;
  --red-light: #FEF2F2;
  --amber: #F59E0b;
  --amber-light: #FFFBEA;
  --bg: #F5F7FA;
  --bg-alt: #F9FAFB;
  --text: #1F2937;
  --text-secondary: #4B5563;
  --t2: #4B5563;
  --muted: #6B7280;
  --t3: #6B7280;
  --line: #E5E9F0;
  --card: #FFFFFF;
  --radius: 0px;
  --radius-sm: 0px;
  --shadow: 0 2px 12px rgba(15,42,90,.08);
  --shadow-md: 0 4px 20px rgba(15,42,90,.12);
  --transition: all .2s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== 顶栏 - 与官网 site-header 统一 ===== */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-in {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 64px;
  padding: 0 32px;
}

/* Logo - 与官网 .logo 同构 */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}
.logo-img {
  height: 40px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.logo-dark { display: none; }
[data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark { display: block; }
.logo-meta { display: flex; flex-direction: column; line-height: 1.25; gap: 1px; }
.logo-line1, .logo-line2 {
  font-family: "优设标题黑", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  font-weight: 700;
  white-space: nowrap;
}
.logo-line1 { font-size: 15px; color: var(--blue); letter-spacing: 2.5px; }
.logo-line2 { font-size: 15px; color: var(--text-secondary); letter-spacing: 3.5px; }

/* 模块化导航 - 与官网 .main-nav + .nav-drop 同构 */
.main-nav {
  display: flex;
  gap: 2px;
  margin-left: auto;
  align-items: center;
  flex-wrap: nowrap;
}
.main-nav > a, .nav-drop .drop-parent {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text);
  cursor: pointer;
  background: none;
  border: none;
  transition: var(--transition);
}
.main-nav > a:hover, .nav-drop .drop-parent:hover {
  background: var(--bg);
  color: var(--blue);
}
.main-nav > a.active, .nav-drop .drop-parent.active {
  color: var(--blue);
  font-weight: 700;
}
.nav-drop { position: relative; display: flex; align-items: center; }
.nav-drop .caret {
  font-size: 11px;
  color: var(--muted);
  margin-left: 4px;
  transition: transform .18s ease;
}
.nav-drop.open .caret { transform: rotate(180deg); }

/* 下拉菜单 - 与官网 .drop-menu 同构 */
.drop-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(15,42,90,.14);
  padding: 8px;
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .22s cubic-bezier(.4,0,.2,1), transform .22s cubic-bezier(.4,0,.2,1), visibility .22s;
}
.nav-drop.open .drop-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.drop-menu a, .drop-menu .drop-btn {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  color: var(--text);
  white-space: nowrap;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: var(--transition);
}
.drop-menu a:hover, .drop-menu .drop-btn:hover {
  background: var(--bg);
  color: var(--blue);
}
.drop-menu a.active { color: var(--blue); font-weight: 700; background: var(--blue-light); }
.drop-menu .drop-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  margin-left: 6px;
  background: var(--blue-light);
  color: var(--blue);
}

/* 右侧用户区 */
.header-right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  border-left: 1px solid var(--line);
  padding-left: 16px;
}
.header-user {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.header-logout {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  transition: var(--transition);
}
.header-logout:hover {
  color: var(--red);
  background: var(--red-light);
}

/* ===== 容器 ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px;
}

/* ===== 按钮 - 与官网统一药丸形 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
  border-color: var(--line);
  min-height: 40px;
}
.btn:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  box-shadow: 0 4px 14px rgba(30,64,175,.35);
}
.btn-primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  color: #fff;
  box-shadow: 0 6px 20px rgba(30,64,175,.45);
}
.btn-publish {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,168,107,.35);
}
.btn-publish:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: #fff;
  box-shadow: 0 6px 20px rgba(0,168,107,.45);
}
.btn-danger {
  color: var(--red);
  border-color: var(--line);
}
.btn-danger:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  box-shadow: 0 4px 14px rgba(220,38,38,.3);
}
.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-secondary);
  box-shadow: none;
}
.btn-ghost:hover {
  color: var(--blue);
  background: var(--blue-light);
  border-color: transparent;
  box-shadow: none;
}
.btn-sm { padding: 6px 16px; font-size: 13px; min-height: 32px; }
.btn-block { width: 100%; }

/* ===== 登录页 - 参考伙伴云简洁布局 ===== */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #002D6B, var(--blue), #3B82F6);
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.login-wrap::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(255,255,255,.06) 0%, transparent 50%);
}
.login-card {
  background: #fff;
  border-radius: 0;
  padding: 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  position: relative;
  z-index: 1;
}

/* 顶部品牌区：logo + 名称 */
.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.login-brand .login-logo {
  height: 40px;
  width: auto;
  display: block;
  margin: 0;
  background: none;
  box-shadow: none;
}
.login-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.login-brand-text strong {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}
.login-brand-text small {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  letter-spacing: .5px;
}

/* 标题 */
.login-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.5px;
  margin-bottom: 24px;
  text-align: left;
}

/* 输入框（参考伙伴云：无label，纯placeholder） */
.login-form { margin-bottom: 8px; }
.login-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  color: var(--text);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0;
  margin-bottom: 14px;
  transition: border-color .2s, box-shadow .2s;
  font-family: inherit;
}
.login-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,102,255,.1);
}
.login-input::placeholder {
  color: #9ca3af;
}

/* 主登录按钮 */
.login-btn {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #1e40af 0%, var(--blue) 100%);
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s;
  font-family: inherit;
  box-shadow: 0 4px 14px rgba(30,64,175,.3);
}
.login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(30,64,175,.4);
}
.login-btn:active { transform: translateY(0); }

/* 分隔线 + 文本 */
.login-divider {
  display: flex;
  align-items: center;
  margin: 28px 0 20px;
  color: var(--muted);
  font-size: 13px;
}
.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  border-top: 1px solid #e5e7eb;
}
.login-divider span {
  padding: 0 16px;
}

/* 企微登录按钮（跳转整页二维码） */
.wecom-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  color: #1e40af;
  background: #f5f7fb;
  border: 1px solid #e5e7eb;
  border-radius: 0;
  text-decoration: none;
  transition: background .2s, border-color .2s;
  font-family: inherit;
}
.wecom-login-btn:hover {
  background: #e8f0ff;
  border-color: #0066FF;
}
.wecom-login-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* ===== 表单 ===== */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 7px;
}
.form-group label .req { color: var(--red); }
.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="date"],
.form-group input[type="file"],
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  transition: var(--transition);
  background: var(--card);
  color: var(--text);
}
.form-group input::placeholder { color: var(--muted); }
.form-group input:hover,
.form-group select:hover { border-color: var(--blue); }
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,102,255,.12);
}
.form-group input[type="file"] {
  padding: 8px 12px;
  cursor: pointer;
}
.form-group input[type="file"]::file-selector-button {
  padding: 6px 14px;
  margin-right: 10px;
  border: none;
  border-radius: 999px;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.form-group input[type="file"]::file-selector-button:hover {
  background: var(--blue);
  color: #fff;
}
.form-hint { font-size: 13px; color: var(--muted); margin-top: 5px; }

/* ===== 页头 ===== */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}
.page-header h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.3px;
  color: var(--text);
}
.page-actions { display: flex; gap: 12px; }

/* ===== 统计卡片 - 与官网 .card 统一 ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--blue);
  opacity: 0;
  transition: var(--transition);
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.stat-card:hover::before { opacity: 1; }
.stat-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -.3px;
  line-height: 1.1;
}
.stat-label {
  font-size: 14px;
  color: var(--muted);
  margin-top: 6px;
  font-weight: 500;
}
.stat-published .stat-num { color: var(--green); }
.stat-published::before { background: var(--green); }
.stat-draft .stat-num { color: var(--amber); }
.stat-draft::before { background: var(--amber); }
.stat-pending .stat-num { color: var(--purple); }
.stat-pending::before { background: var(--purple); }

/* ===== 筛选栏 ===== */
.filter-bar { margin-bottom: 18px; }
.filter-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  background: var(--card);
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.search-input {
  flex: 1;
  min-width: 220px;
  padding: 10px 14px 10px 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  background: var(--bg-alt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='7' cy='7' r='6'/%3E%3Cpath d='M21 21l-4.35-4.35'/%3E%3C/svg%3E") 12px center no-repeat;
  transition: var(--transition);
  color: var(--text);
}
.search-input::placeholder { color: var(--muted); }
.search-input:hover { border-color: var(--blue); }
.search-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,102,255,.12);
  background-color: var(--card);
}
.status-select {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
}
.status-select:hover { border-color: var(--blue); }
.status-select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,102,255,.12);
}

/* ===== 数据表格 ===== */
.table-wrap {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow-x: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table th {
  background: var(--bg-alt);
  padding: 12px 12px;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  white-space: nowrap;
  color: var(--text);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr {
  transition: var(--transition);
}
.data-table tbody tr:hover {
  background: var(--blue-light);
}
.row-draft { opacity: .6; }
.row-pending {
  background: var(--amber-light);
}
.row-pending:hover {
  background: #FEF3C7;
}
.empty-row {
  text-align: center;
  color: var(--muted);
  padding: 48px;
  font-size: 15px;
}
.actions { display: flex; gap: 6px; }

/* ===== 徽章 - 与官网 badge 体系统一 ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .3px;
}
.badge-published { background: var(--green-light); color: var(--green-dark); }
.badge-draft { background: var(--amber-light); color: #92400e; }
.badge-img { background: var(--blue-light); color: var(--blue); }
.badge-none { background: var(--bg-alt); color: var(--muted); }
.badge-pending { background: var(--purple-light); color: var(--purple); }
.badge-auto { background: var(--blue-light); color: var(--blue); }
.badge-api { background: var(--bg-alt); color: var(--muted); }
.badge-manual { background: var(--blue-light); color: var(--blue); }
.badge-warn { background: #FEF3C7; color: #92400e; }
.badge-danger { background: #FEE2E2; color: #991B1B; }

/* ===== 回收站相关 ===== */
.trash-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--amber, #F59E0B);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  margin-left: 2px;
}
.btn-disabled {
  opacity: .4;
  cursor: not-allowed;
  pointer-events: none;
}
.trash-info-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: var(--amber-light, #FEF3C7);
  color: #92400e;
  font-size: 14px;
  border: 1px solid #FDE68A;
}
.trash-info-bar svg { flex-shrink: 0; }
.row-deleted { opacity: .6; }

/* ===== Offer 表单 ===== */
.offer-form {
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px 24px;
}
.form-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.form-section h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 18px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-section h3::before {
  content: '';
  width: 4px;
  height: 20px;
  border-radius: 0;
  background: var(--blue);
}
.upload-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.upload-preview {
  margin-bottom: 10px;
  padding: 12px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  text-align: center;
  border: 2px dashed var(--line);
}
.upload-preview img {
  max-width: 100%;
  max-height: 140px;
  border-radius: var(--radius-sm);
}
.upload-preview img.avatar-preview {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
}
.upload-filename {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}
.form-actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* ===== Flash 消息 ===== */
.flash-group { margin-bottom: 20px; }
.flash {
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
}
.flash-success {
  background: var(--green-light);
  color: var(--green-dark);
  border-color: #A7F3D0;
}
.flash-error {
  background: var(--red-light);
  color: var(--red);
  border-color: #FECACA;
}
.flash-info {
  background: var(--blue-light);
  color: var(--blue);
  border-color: #BFDBFE;
}

/* ===== 移动端卡片列表（桌面隐藏，手机显示） ===== */
.mobile-cards { display: none; }

/* ===== 视图切换栏 ===== */
.view-toggle-bar {
  margin-bottom: 18px;
  display: flex;
  justify-content: center;
}
.view-toggle {
  display: inline-flex;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  box-shadow: var(--shadow);
}
.view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.view-btn:hover {
  color: var(--blue);
  background: var(--blue-light);
}
.view-btn.active {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,102,255,.3);
}

/* ===== 视图面板 ===== */
.view-panel { display: none; }
.view-panel.active { display: block; }

/* ===== 发布预览视图 ===== */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}
.preview-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.preview-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.preview-published {
  border-top: 3px solid var(--green);
}
.preview-draft {
  border-top: 3px solid var(--amber);
}
.preview-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px 10px;
}
.preview-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-alt);
}
.preview-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.preview-avatar-img.default-avatar-img {
  object-fit: contain;
  padding: 4px;
  background: linear-gradient(135deg, #F0F4F8, #E8EEF7);
}
.preview-avatar-ph {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), #3B82F6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
}
.preview-name-row {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.preview-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}
.preview-anon {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
}
.preview-stats {
  padding: 4px 18px 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}
.preview-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ps-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.ps-val {
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
}
.ps-val.highlight {
  color: var(--green-dark);
  font-weight: 800;
}
.preview-screenshot {
  margin: 0 18px 12px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
}
.preview-screenshot img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  display: block;
}
.preview-card-footer {
  margin-top: auto;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 8px;
  background: var(--bg-alt);
}
.preview-card-footer .btn { flex: 1; }
.preview-card-footer form { flex: 1; }
.preview-card-footer form .btn { width: 100%; }
.preview-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 48px 20px;
  font-size: 15px;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

/* ===== 发布确认弹窗 ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,.5);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-box {
  background: #fff;
  border-radius: var(--radius);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}
.modal-header h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}
.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--bg-alt);
  border-radius: 50%;
  font-size: 22px;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  line-height: 1;
}
.modal-close:hover {
  background: var(--red-light);
  color: var(--red);
}
.modal-body {
  padding: 20px 24px;
}
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
.publish-preview-content {
  margin-bottom: 16px;
}
.preview-card-mini {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid var(--line);
}
.preview-card-mini .preview-card-header {
  padding: 0 0 10px;
}
.preview-card-mini .preview-stats {
  padding: 0 0 10px;
}
.preview-card-mini .preview-screenshot {
  margin: 0 0 10px;
  max-height: 180px;
}
.preview-card-mini .preview-screenshot img {
  max-height: 180px;
}
.publish-info-line {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 8px 12px;
  background: var(--blue-light);
  border-radius: var(--radius-sm);
  margin-top: 4px;
}
.publish-warn {
  font-size: 13px;
  color: var(--muted);
  padding: 10px 14px;
  background: var(--amber-light);
  border-radius: var(--radius-sm);
  border: 1px solid #FDE68A;
}
.publish-warn p { margin-bottom: 4px; }
.publish-warn p:last-child { margin-bottom: 0; }

/* ===== 下架按钮 ===== */
.btn-warn {
  color: #92400e;
  border-color: #FDE68A;
  background: var(--amber-light);
}
.btn-warn:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: #fff;
  box-shadow: 0 4px 14px rgba(245,158,11,.3);
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  /* ---- 顶栏 ---- */
  .header-in { padding: 0 14px; min-height: 52px; gap: 8px; }
  .logo-img { height: 32px; }
  .logo-meta { display: none; }
  .main-nav { gap: 0; }
  .main-nav > a, .nav-drop .drop-parent { padding: 0 8px; font-size: 13px; }
  .header-right { padding-left: 8px; gap: 2px; }
  .header-user { display: none; }
  .header-logout { padding: 6px 10px; font-size: 13px; }

  /* ---- 容器 ---- */
  .container { padding: 16px 14px; }

  /* ---- 页头 ---- */
  .page-header { flex-direction: column; align-items: stretch; gap: 10px; }
  .page-header h1 { font-size: 20px; }
  .page-actions { width: 100%; }
  .page-actions .btn { flex: 1; min-height: 44px; font-size: 14px; }
  .page-actions .btn svg { width: 14px; height: 14px; }

  /* ---- 统计卡片 ---- */
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 18px; }
  .stat-card { padding: 16px 14px; }
  .stat-num { font-size: 24px; }
  .stat-label { font-size: 12px; }

  /* ---- 筛选栏 ---- */
  .filter-bar { margin-bottom: 14px; }
  .filter-form { flex-direction: column; align-items: stretch; padding: 12px; gap: 8px; }
  .search-input { min-width: unset; width: 100%; padding: 10px 14px 10px 36px; }
  .status-select { width: 100%; }
  .filter-form .btn { width: 100%; min-height: 40px; }

  /* ---- 表格→卡片切换 ---- */
  .table-wrap { display: none; }
  .mobile-cards { display: block; }

  .offer-card-m {
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 14px 16px;
    margin-bottom: 12px;
  }
  .offer-card-m.card-draft { opacity: .75; }
  .offer-card-m.card-pending { border-left: 3px solid var(--purple); }
  .card-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
  }
  .card-name { font-size: 17px; font-weight: 800; color: var(--text); }
  .card-salary { font-size: 15px; font-weight: 700; color: var(--green-dark); white-space: nowrap; }
  .card-info {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-bottom: 10px;
  }
  .info-item { font-size: 13px; color: var(--text-secondary); display: inline-flex; align-items: center; gap: 4px; }
  .info-item i { font-style: normal; font-size: 12px; }
  .card-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
  .card-badges .badge { font-size: 11px; padding: 3px 9px; }
  .card-actions { display: flex; gap: 8px; }
  .card-actions .btn { flex: 1; min-height: 40px; }
  .card-actions form { flex: 1; }
  .card-actions form .btn { width: 100%; }
  .empty-card {
    text-align: center;
    color: var(--muted);
    padding: 48px 20px;
    font-size: 15px;
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--line);
  }

  /* ---- Offer 表单 ---- */
  .offer-form { padding: 18px 16px; }
  .form-grid { grid-template-columns: 1fr; gap: 14px; }
  .form-section { margin-top: 22px; padding-top: 18px; }
  .form-section h3 { font-size: 15px; margin-bottom: 14px; }
  .upload-grid { grid-template-columns: 1fr; gap: 18px; }
  .form-actions { flex-direction: column; gap: 10px; }
  .form-actions .btn { width: 100%; min-height: 44px; }
  .form-group input[type="text"],
  .form-group input[type="password"],
  .form-group input[type="date"],
  .form-group input[type="file"],
  .form-group select {
    padding: 12px 14px;
    font-size: 16px; /* 防止 iOS 缩放 */
    min-height: 44px;
  }

  /* ---- 登录页 ---- */
  .login-card { padding: 32px 24px; }
  .login-title { font-size: 24px; }
  .login-input { font-size: 16px; min-height: 48px; padding: 14px 16px; }
  .login-btn { min-height: 48px; font-size: 16px; }
  .wecom-login-btn { min-height: 48px; font-size: 15px; }

  /* ---- 下拉菜单 ---- */
  .drop-menu { left: auto; right: 0; min-width: 180px; }

  /* ---- 视图切换 ---- */
  .view-toggle-bar { margin-bottom: 14px; }
  .view-btn { padding: 8px 14px; font-size: 13px; }

  /* ---- 发布预览视图 ---- */
  .preview-grid { grid-template-columns: 1fr; gap: 14px; }
  .preview-card { padding: 0; }
  .preview-card-header { padding: 14px 14px 8px; }
  .preview-stats { padding: 4px 14px 10px; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
  .preview-screenshot { margin: 0 14px 10px; }
  .preview-screenshot img { max-height: 160px; }
  .preview-card-footer { padding: 10px 14px; }
  .preview-card-footer .btn { min-height: 40px; }

  /* ---- 弹窗 ---- */
  .modal-overlay { padding: 12px; }
  .modal-box { max-height: 95vh; }
  .modal-header { padding: 14px 18px; }
  .modal-header h3 { font-size: 16px; }
  .modal-body { padding: 16px 18px; }
  .modal-footer { padding: 12px 18px; flex-direction: column; gap: 8px; }
  .modal-footer .btn { width: 100%; min-height: 44px; }
  .preview-card-mini { padding: 14px; }

  /* ---- Flash ---- */
  .flash { padding: 10px 14px; font-size: 13px; }
}

/* ===== 超小屏（≤480px） ===== */
@media (max-width: 480px) {
  .header-in { padding: 0 12px; gap: 6px; }
  .logo-img { height: 28px; }
  .container { padding: 12px 12px; }
  .stats-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat-card { padding: 12px 10px; }
  .stat-num { font-size: 20px; }
  .stat-label { font-size: 11px; }
  .offer-card-m { padding: 12px 14px; }
  .card-name { font-size: 16px; }
  .card-salary { font-size: 14px; }
  .preview-card .preview-name { font-size: 15px; }
  .preview-anon { font-size: 12px; }
  .preview-stats { grid-template-columns: 1fr; }
  .login-card { padding: 24px 20px; }
  .login-brand .login-logo { height: 32px; }
  .login-brand-text strong { font-size: 16px; }
  .login-title { font-size: 22px; margin-bottom: 18px; }
  .login-divider { margin: 22px 0 16px; }
  .drop-parent { font-size: 12px !important; padding: 0 6px !important; }
  .header-logout { padding: 6px 8px; font-size: 12px; }
  .btn-sm { padding: 8px 14px; font-size: 13px; min-height: 40px; }
}

/* ===== 滚动条 ===== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ===== 发布确认弹窗 ===== */
.publish-confirm-info {
  text-align: center;
}
.publish-confirm-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}
.publish-confirm-detail {
  background: var(--bg-alt);
  border-radius: 0;
  padding: 14px 18px;
  margin-bottom: 14px;
}
.confirm-row {
  display: flex;
  align-items: center;
  padding: 6px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}
.confirm-row:last-child { border-bottom: none; }
.confirm-label {
  width: 56px;
  color: var(--muted);
  flex-shrink: 0;
}
.confirm-val {
  color: var(--text);
  font-weight: 500;
  flex: 1;
}
.confirm-anon {
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  background: var(--blue-light);
  padding: 2px 8px;
  border-radius: 0;
}
.publish-confirm-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

/* ===== 评价管理页 ===== */
.rv-add-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 28px;
}
.rv-add-title { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 18px; }
.rv-add-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0 16px;
}
.rv-fg { margin-bottom: 14px; }
.rv-fg input, .rv-fg select, .rv-add-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  background: var(--bg-alt);
  color: var(--text);
  transition: var(--transition);
}
.rv-add-form textarea { background: var(--card); resize: vertical; }
.rv-fg input:hover, .rv-fg select:hover, .rv-add-form textarea:hover { border-color: var(--blue); }
.rv-fg input:focus, .rv-fg select:focus, .rv-add-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,102,255,.12);
  background-color: var(--card);
}
.rv-add-actions { display: flex; gap: 10px; }

.rv-user-cell { display: flex; align-items: center; gap: 10px; min-width: 120px; }
.rv-user-avatar {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), #4d94ff);
  color: #fff;
  font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.rv-user-name { font-weight: 600; color: var(--text); white-space: nowrap; }
.rv-stars { color: #f59e0b; letter-spacing: 1px; white-space: nowrap; }
.rv-stars-off { color: var(--line); }
.rv-content-cell { line-height: 1.6; color: var(--text-secondary); }
.rv-course-tag { margin-left: 6px; vertical-align: 1px; }
.rv-time { white-space: nowrap; color: var(--muted); font-size: 13px; }
.rv-actions { display: flex; gap: 6px; align-items: center; }
.rv-btn-del:hover { color: var(--red) !important; border-color: var(--red) !important; }
