/* ============================================
   SwiftAI Admin 后台管理样式
   ============================================ */

:root {
  --admin-bg: #0f1117;
  --admin-surface: #1a1d27;
  --admin-card: #21242f;
  --admin-border: rgba(255, 255, 255, 0.08);
  --admin-primary: #00d4ff;
  --admin-text: #e2e8f0;
  --admin-text-secondary: #94a3b8;
  --admin-text-muted: #64748b;
  --admin-sidebar-width: 260px;
  --admin-topbar-height: 64px;
  --admin-font: 'Inter', 'Noto Sans SC', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--admin-font);
  background: var(--admin-bg);
  color: var(--admin-text);
  line-height: 1.6;
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }

/* ============ 登录页 ============ */
.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--admin-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  width: 100%;
  max-width: 400px;
  padding: 48px 36px 36px;
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 16px;
  text-align: center;
}

.login-logo svg {
  margin-bottom: 16px;
}

.login-logo h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--admin-text);
  margin-bottom: 6px;
}

.login-logo p {
  font-size: 0.88rem;
  color: var(--admin-text-secondary);
  margin-bottom: 32px;
}

.login-field {
  position: relative;
  margin-bottom: 16px;
}

.login-field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--admin-text-muted);
  pointer-events: none;
}

.login-field input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  background: var(--admin-card);
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  color: var(--admin-text);
  font-size: 0.95rem;
  font-family: var(--admin-font);
  outline: none;
  transition: border-color 0.3s;
}

.login-field input:focus {
  border-color: var(--admin-primary);
}

.login-field input::placeholder {
  color: var(--admin-text-muted);
}

.login-error {
  min-height: 22px;
  font-size: 0.82rem;
  color: #ef4444;
  margin-bottom: 8px;
}

.login-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #00d4ff, #7b2ff7);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--admin-font);
  cursor: pointer;
  transition: opacity 0.3s;
}

.login-btn:hover {
  opacity: 0.9;
}

.login-footer {
  margin-top: 24px;
}

.login-footer a {
  font-size: 0.82rem;
  color: var(--admin-text-muted);
  transition: color 0.3s;
}

.login-footer a:hover {
  color: var(--admin-primary);
}

/* ============ 修改密码提示 ============ */
.change-pwd-msg {
  min-height: 22px;
  font-size: 0.85rem;
  margin-bottom: 8px;
  padding: 0 2px;
}

.change-pwd-msg.error {
  color: #ef4444;
}

.change-pwd-msg.success {
  color: #22c55e;
}

/* ============ 布局 ============ */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

/* ============ 侧边栏 ============ */
.sidebar {
  width: var(--admin-sidebar-width);
  background: var(--admin-surface);
  border-right: 1px solid var(--admin-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  transition: transform 0.3s ease;
}

.sidebar-header {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--admin-border);
}

.admin-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
}

.sidebar-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--admin-text-muted);
  cursor: pointer;
  padding: 4px;
}

.sidebar-toggle svg {
  width: 20px;
  height: 20px;
}

.sidebar-nav {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  color: var(--admin-text-secondary);
  transition: all 0.2s;
  position: relative;
  cursor: pointer;
  font-size: 0.9rem;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--admin-text);
}

.nav-item.active {
  background: rgba(0, 212, 255, 0.1);
  color: var(--admin-primary);
}

.nav-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.badge {
  margin-left: auto;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #ef4444;
  color: #fff;
  border-radius: 10px;
  line-height: 1.4;
}

.sidebar-footer {
  padding: 12px;
  border-top: 1px solid var(--admin-border);
}

/* ============ 主内容 ============ */
.main-content {
  flex: 1;
  margin-left: var(--admin-sidebar-width);
  min-height: 100vh;
}

/* ============ 顶部栏 ============ */
.topbar {
  height: var(--admin-topbar-height);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--admin-border);
  background: var(--admin-surface);
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-left h1 {
  font-size: 1.2rem;
  font-weight: 600;
}

.mobile-sidebar-btn {
  display: none;
  background: none;
  border: none;
  color: var(--admin-text);
  cursor: pointer;
  padding: 4px;
}

.mobile-sidebar-btn svg {
  width: 24px;
  height: 24px;
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--admin-text-secondary);
}

.admin-user svg {
  width: 20px;
  height: 20px;
}

/* ============ 内容区 ============ */
.content-section {
  display: none;
  padding: 32px;
}

.content-section.active {
  display: block;
}

/* ============ 统计卡片 ============ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: var(--admin-card);
  border: 1px solid var(--admin-border);
  border-radius: 14px;
  transition: all 0.3s;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 212, 255, 0.2);
}

.stat-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-card-icon svg {
  width: 24px;
  height: 24px;
}

.stat-card-icon.blue { background: rgba(0, 212, 255, 0.15); color: #00d4ff; }
.stat-card-icon.green { background: rgba(74, 222, 128, 0.15); color: #4ade80; }
.stat-card-icon.purple { background: rgba(123, 47, 247, 0.15); color: #7b2ff7; }
.stat-card-icon.orange { background: rgba(251, 146, 60, 0.15); color: #fb923c; }

.stat-card-value {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
}

.stat-card-label {
  font-size: 0.85rem;
  color: var(--admin-text-muted);
}

/* ============ Dashboard Grid ============ */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}

/* ============ Card ============ */
.card {
  background: var(--admin-card);
  border: 1px solid var(--admin-border);
  border-radius: 14px;
  padding: 24px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.card-header h3 {
  font-size: 1.05rem;
  font-weight: 600;
}

.link-sm {
  font-size: 0.85rem;
  color: var(--admin-primary);
}

.link-sm:hover {
  text-decoration: underline;
}

/* ============ 图表占位 ============ */
.chart-placeholder {
  padding: 20px 0;
}

.mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 200px;
  padding: 0 8px;
}

.chart-bar {
  flex: 1;
  background: linear-gradient(180deg, rgba(0, 212, 255, 0.3) 0%, rgba(0, 212, 255, 0.05) 100%);
  border-radius: 6px 6px 0 0;
  position: relative;
  min-height: 20px;
  transition: all 0.3s;
  cursor: pointer;
}

.chart-bar:hover, .chart-bar.active {
  background: linear-gradient(180deg, rgba(0, 212, 255, 0.5) 0%, rgba(0, 212, 255, 0.1) 100%);
}

.chart-bar span {
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: var(--admin-text-muted);
  white-space: nowrap;
}

/* ============ 消息列表 ============ */
.message-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.message-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  transition: background 0.2s;
  cursor: pointer;
}

.message-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.message-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(123, 47, 247, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  flex-shrink: 0;
  color: var(--admin-primary);
}

.message-name {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 4px;
}

.message-time {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--admin-text-muted);
  margin-left: 8px;
}

.message-text {
  font-size: 0.85rem;
  color: var(--admin-text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============ 消息详情 ============ */
.message-detail-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.message-detail-item {
  padding: 20px;
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  transition: all 0.2s;
}

.message-detail-item.unread {
  border-color: rgba(0, 212, 255, 0.2);
  background: rgba(0, 212, 255, 0.02);
}

.message-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.message-detail-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.message-detail-email {
  font-size: 0.85rem;
  color: var(--admin-text-muted);
}

.message-company {
  font-size: 0.8rem;
  padding: 2px 10px;
  background: rgba(123, 47, 247, 0.1);
  border-radius: 6px;
  color: #a78bfa;
}

.message-detail-time {
  font-size: 0.8rem;
  color: var(--admin-text-muted);
  white-space: nowrap;
}

.message-detail-text {
  font-size: 0.9rem;
  color: var(--admin-text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.message-detail-actions {
  display: flex;
  gap: 8px;
}

/* ============ 动态消息卡片 ============ */
.message-card {
  padding: 20px;
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  margin-bottom: 16px;
  transition: all 0.2s;
}

.message-card.unread {
  border-color: rgba(0, 212, 255, 0.2);
  background: rgba(0, 212, 255, 0.02);
}

.message-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.message-email {
  font-size: 0.85rem;
  color: var(--admin-text-muted);
}

.message-company {
  font-size: 0.8rem;
  padding: 2px 10px;
  background: rgba(123, 47, 247, 0.1);
  border-radius: 6px;
  color: #a78bfa;
}

.message-date {
  font-size: 0.8rem;
  color: var(--admin-text-muted);
  margin-left: auto;
}

.message-body {
  font-size: 0.9rem;
  color: var(--admin-text-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
}

.message-actions {
  display: flex;
  gap: 8px;
}

.empty-hint {
  text-align: center;
  color: var(--admin-text-muted);
  padding: 40px 0;
}

.btn-mark-read {
  color: var(--admin-primary) !important;
  border-color: var(--admin-primary) !important;
}

.btn-delete-msg {
  color: #f87171 !important;
  border-color: #f87171 !important;
}

/* ============ 表单 ============ */
.form-section {
  padding: 24px 0;
  border-bottom: 1px solid var(--admin-border);
}

.form-section:last-child {
  border-bottom: none;
}

.form-section h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--admin-text);
}

.header-actions {
  display: flex;
  gap: 10px;
}

/* ============ 保存提示 ============ */
.save-toast {
  padding: 12px 20px;
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: 10px;
  color: #4ade80;
  font-size: 0.9rem;
  margin-bottom: 8px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.save-toast.show {
  opacity: 1;
  max-height: 60px;
  margin-bottom: 16px;
}

/* ============ 产品特性动态列表 ============ */
.feature-list-section {
  margin-top: 8px;
}

.feature-list-section > label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--admin-text-secondary);
  margin-bottom: 10px;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-item .feature-input {
  flex: 1;
}

.btn-remove-feature {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  line-height: 1;
  border-radius: 8px;
}

.btn-add-feature {
  font-size: 0.85rem;
  color: var(--admin-primary);
  border-color: rgba(0, 212, 255, 0.3);
  border-style: dashed;
  width: 100%;
  text-align: center;
  padding: 10px;
}

.btn-add-feature:hover {
  background: rgba(0, 212, 255, 0.06);
  border-color: var(--admin-primary);
  color: var(--admin-primary);
}

.form-group-admin {
  margin-bottom: 16px;
}

.form-group-admin label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--admin-text-secondary);
  margin-bottom: 6px;
}

.admin-input, .admin-textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--admin-bg);
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  color: var(--admin-text);
  font-family: var(--admin-font);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.admin-input:focus, .admin-textarea:focus {
  border-color: var(--admin-primary);
}

.admin-textarea {
  resize: vertical;
}

.form-row-admin {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-hint {
  font-size: 0.85rem;
  color: var(--admin-text-muted);
  margin-bottom: 16px;
}

.form-actions {
  padding-top: 24px;
  display: flex;
  gap: 12px;
}

/* ============ 复选框 ============ */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--admin-text-secondary);
  cursor: pointer;
}

.checkbox-item input[type="checkbox"] {
  accent-color: var(--admin-primary);
  width: 16px;
  height: 16px;
}

/* ============ 表格 ============ */
.table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--admin-border);
  font-size: 0.9rem;
}

.admin-table th {
  font-weight: 600;
  color: var(--admin-text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-table td {
  color: var(--admin-text-secondary);
}

.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.status-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
}

.status-tag.active {
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
}

.status-tag.draft {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}

/* ============ 按钮 ============ */
.btn-admin {
  padding: 10px 20px;
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  background: var(--admin-bg);
  color: var(--admin-text-secondary);
  font-family: var(--admin-font);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-admin:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--admin-text);
}

.btn-admin.active {
  background: rgba(0, 212, 255, 0.1);
  border-color: rgba(0, 212, 255, 0.3);
  color: var(--admin-primary);
}

.btn-primary-admin {
  background: linear-gradient(135deg, #00d4ff, #7b2ff7);
  border: none;
  color: #fff;
}

.btn-primary-admin:hover {
  opacity: 0.9;
  color: #fff;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
  border-radius: 8px;
}

.btn-danger {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.3);
}

.btn-danger:hover {
  background: rgba(248, 113, 113, 0.1);
  color: #f87171;
}

.select-sm {
  padding: 6px 12px;
  background: var(--admin-bg);
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  color: var(--admin-text-secondary);
  font-size: 0.8rem;
  font-family: var(--admin-font);
  outline: none;
  cursor: pointer;
}

.filter-group {
  display: flex;
  gap: 6px;
}

/* ============ 响应式 ============ */
@media (max-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.5);
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .mobile-sidebar-btn {
    display: block;
  }
  
  .content-section {
    padding: 20px 16px;
  }
  
  .topbar {
    padding: 0 16px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .form-row-admin {
    grid-template-columns: 1fr;
  }
  
  .card {
    padding: 16px;
  }
  
  .admin-table {
    font-size: 0.8rem;
  }
  
  .admin-table th,
  .admin-table td {
    padding: 10px 8px;
  }
  
  .login-card {
    margin: 16px;
    padding: 32px 20px 28px;
  }

  .message-detail-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* 遮罩层 */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
}

.sidebar-overlay.active {
  display: block;
}

/* ============ 子产品管理 ============ */
.subproduct-category-tabs {
  display: flex;
  gap: 8px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--admin-border);
  flex-wrap: wrap;
}
.category-tab {
  padding: 8px 20px;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  background: transparent;
  color: var(--admin-text-secondary);
  cursor: pointer;
  font-size: 0.88rem;
  font-family: var(--admin-font);
  transition: all 0.2s;
}
.category-tab:hover {
  border-color: var(--admin-primary);
  color: var(--admin-text);
}
.category-tab.active {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--admin-primary);
  color: var(--admin-primary);
  font-weight: 600;
}

.sub-product-list {
  padding: 20px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.sp-card {
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.sp-card:hover {
  border-color: rgba(0, 212, 255, 0.3);
}
.sp-card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
.sp-card-img-placeholder {
  width: 100%;
  height: 160px;
  background: rgba(255,255,255,0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--admin-text-muted);
}
.sp-card-img-placeholder svg {
  width: 36px;
  height: 36px;
  opacity: 0.3;
}
.sp-card-body {
  padding: 16px;
}
.sp-card-name {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--admin-text);
}
.sp-card-desc {
  font-size: 0.85rem;
  color: var(--admin-text-secondary);
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sp-card-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sp-feature-tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.75rem;
  background: rgba(0, 212, 255, 0.08);
  color: var(--admin-primary);
  border-radius: 4px;
  border: 1px solid rgba(0, 212, 255, 0.15);
}
.sp-card-actions {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--admin-border);
}

/* 弹窗 */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-card {
  background: var(--admin-card);
  border: 1px solid var(--admin-border);
  border-radius: 16px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 0;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--admin-border);
}
.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
}
.modal-close {
  background: none;
  border: none;
  color: var(--admin-text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}
.modal-close:hover { color: var(--admin-text); }

.modal-card form {
  padding: 24px;
}
.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--admin-border);
}

/* 图片上传区 */
.image-upload-area {
  margin-top: 8px;
}
.image-preview {
  width: 100%;
  min-height: 120px;
  border: 2px dashed var(--admin-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s;
  margin-bottom: 10px;
  padding: 12px;
}
.image-preview:hover {
  border-color: var(--admin-primary);
}
.image-placeholder {
  color: var(--admin-text-muted);
  font-size: 0.9rem;
}
.image-upload-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
