/* css/style.css */
:root {
  --bg-color: #191919;
  --sidebar-bg: #202020;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  --primary-color: #3b82f6;
  --primary-hover: #2563eb;
  --text-main: #f5f5f7;
  --text-muted: #8e8e93;
  --danger-color: #ff453a;
  --success-color: #32d74b;
  --sidebar-width: 250px;
  --transition-speed: 0.2s;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

body {
  background: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
  overflow: hidden;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

/* Utilities */
.hidden {
  display: none !important;
  opacity: 0;
  pointer-events: none;
}

.fade-in {
  animation: fadeIn 0.4s ease-in-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Glassmorphism Panel Base */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 16px;
}

/* ----------------------------- */
/* Login Overlay                 */
/* ----------------------------- */
#login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  transition: opacity 0.5s ease;
}

.login-box {
  width: 100%;
  max-width: 400px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
}

.login-box h2 {
  font-weight: 600;
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.input-group {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 8px;
}

.input-group label {
  font-size: 13px;
  color: var(--text-muted);
}

.glass-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--text-main);
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
}

.glass-input:focus {
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

/* Hide number input spinners */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

.glass-btn {
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
  margin-top: 10px;
}

.glass-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.glass-btn:active {
  transform: translateY(1px);
}

.login-error {
  color: var(--danger-color);
  font-size: 13px;
  min-height: 20px;
}


/* ----------------------------- */
/* Application Structure         */
/* ----------------------------- */
#app-layout {
  display: flex;
  height: 100vh;
  width: 100vw;
  transition: opacity 0.5s ease;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  height: 100%;
  border-radius: 0;
  border-right: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  background: var(--sidebar-bg);
}

.brand {
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--glass-border);
}

.brand span {
  color: var(--text-main);
}

.nav-menu {
  padding: 24px 12px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-group {
  margin-bottom: 16px;
}

.nav-group-title {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
  padding: 0 12px;
  margin-bottom: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  margin-bottom: 4px;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

.nav-item.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  font-weight: 500;
}

.nav-item .icon {
  margin-right: 10px;
  font-size: 15px;
  opacity: 0.7;
}

.sidebar-footer {
  padding: 20px;
  border-top: 1px solid var(--glass-border);
}

.user-profile {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #3a3a3c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 13px;
}

.user-name {
  font-size: 13px;
  font-weight: 500;
}

.logout-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  font-size: 12px;
  transition: 0.2s;
  text-align: center;
}

.logout-btn:hover {
  background: rgba(255, 69, 58, 0.1);
  color: var(--danger-color);
  border-color: rgba(255, 69, 58, 0.2);
}

/* Main Content Area */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--bg-color);
}

/* View Container */
.view-container {
  flex: 1;
  padding: 32px;
  overflow-y: auto;
}

.view-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Temporary Widget Style */
.widget-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.widget-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.widget-title {
  font-size: 14px;
  color: var(--text-muted);
}

.widget-value {
  font-size: 32px;
  font-weight: bold;
  color: var(--text-main);
}

.placeholder-box {
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-muted);
  font-size: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

/* 6. 审核项通用样式 */
.audit-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.audit-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  transition: transform 0.2s;
}

.audit-item:hover {
  transform: scale(1.005);
  border-color: rgba(255, 255, 255, 0.15);
}

.audit-info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.audit-badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-topic {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-post {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.badge-comment {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.audit-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.audit-text {
  font-size: 14px;
  color: var(--text-main);
}

.audit-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.audit-actions {
  display: flex;
  gap: 8px;
}

.action-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: 0.2s;
}

.action-icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.action-check:hover {
  color: var(--success-color);
  border-color: var(--success-color);
}

.action-cross:hover {
  color: var(--danger-color);
  border-color: var(--danger-color);
}

/* ----------------------------- */
/* 通用组件扩展                  */
/* ----------------------------- */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.section-header h2 {
  margin: 0;
}

.glass-select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--text-main);
  font-size: 13px;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238e8e93' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.glass-select:focus {
  border-color: var(--primary-color);
  background-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

.glass-select option {
  background: #2a2a2a;
  color: var(--text-main);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 8px;
  margin-top: 0;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  transform: none;
  box-shadow: none;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
}

.btn-full {
  width: 100%;
  text-align: center;
}

.btn-danger-sm {
  background: rgba(255, 69, 58, 0.1);
  border: 1px solid rgba(255, 69, 58, 0.2);
  color: var(--danger-color);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: 0.2s;
}

.btn-danger-sm:hover {
  background: rgba(255, 69, 58, 0.25);
  border-color: var(--danger-color);
}

.required {
  color: var(--danger-color);
}


/* ----------------------------- */
/* 商品列表页                    */
/* ----------------------------- */
.product-filters {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  align-items: center;
  flex-wrap: wrap;
}

.filter-input {
  flex: 1;
  min-width: 200px;
}

.product-table-wrap {
  overflow-x: auto;
  padding: 0;
}

.product-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.product-table thead {
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--glass-border);
}

.product-table th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.product-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.product-table tbody tr {
  transition: background 0.15s;
}

.product-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.product-cover-thumb {
  width: 44px;
  height: 49px;
  border-radius: 6px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.product-name-cell {
  font-weight: 500;
  color: var(--text-main);
}

.product-name-cell .product-aliases {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.status-active {
  background: rgba(50, 215, 75, 0.15);
  color: #32d74b;
  border: 1px solid rgba(50, 215, 75, 0.25);
}

.status-offline {
  background: rgba(142, 142, 147, 0.15);
  color: #8e8e93;
  border: 1px solid rgba(142, 142, 147, 0.25);
}

.status-recycle {
  background: rgba(255, 159, 10, 0.15);
  color: #ff9f0a;
  border: 1px solid rgba(255, 159, 10, 0.25);
}

.table-actions {
  display: flex;
  gap: 6px;
}

.table-empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}


/* ----------------------------- */
/* 商品表单页（创建/编辑）       */
/* ----------------------------- */
.product-form-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}

.form-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--glass-border);
}

.form-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--glass-border);
}

.form-card-header .form-card-title {
  border-bottom: none;
  padding-bottom: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.full-width {
  grid-column: 1 / -1;
}

.glass-textarea {
  resize: vertical;
  min-height: 60px;
  line-height: 1.6;
  font-family: inherit;
}

.form-divider {
  height: 1px;
  background: var(--glass-border);
  margin: 4px 0;
}

.form-subtitle {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0;
}

.form-action-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}


/* ----------------------------- */
/* 媒体上传区域                  */
/* ----------------------------- */
.media-upload-zone {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.upload-placeholder {
  border: 2px dashed rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
}

.upload-placeholder:hover {
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(59, 130, 246, 0.05);
}

.upload-placeholder.drag-over {
  border-color: var(--primary-color);
  background: rgba(59, 130, 246, 0.1);
  transform: scale(1.01);
}

.upload-icon {
  font-size: 36px;
  opacity: 0.5;
}

.upload-text {
  font-size: 14px;
  color: var(--text-muted);
}

.upload-hint {
  font-size: 12px;
  color: rgba(142, 142, 147, 0.6);
}

.media-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 120px));
  gap: 12px;
}

.media-preview-item {
  position: relative;
  aspect-ratio: 9/10;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.media-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-preview-item .cover-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background: var(--primary-color);
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.media-preview-item .remove-media {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s;
}

.media-preview-item:hover .remove-media {
  opacity: 1;
}


/* ----------------------------- */
/* SKU 规格行                    */
/* ----------------------------- */
.sku-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sku-row {
  display: grid;
  grid-template-columns: 1fr 120px 90px 40px;
  gap: 10px;
  align-items: end;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  transition: all 0.2s;
  animation: slideIn 0.25s ease-out;
}

.sku-row:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sku-row .input-group {
  gap: 4px;
}

.sku-row .input-group label {
  font-size: 11px;
  color: var(--text-muted);
}

.sku-row .glass-input {
  padding: 8px 10px;
  font-size: 13px;
}

.sku-remove-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(255, 69, 58, 0.08);
  border: 1px solid rgba(255, 69, 58, 0.15);
  color: var(--danger-color);
  font-size: 14px;
  transition: 0.2s;
  margin-bottom: 1px;
}

.sku-remove-btn:hover {
  background: rgba(255, 69, 58, 0.2);
  border-color: var(--danger-color);
  transform: scale(1.05);
}

.sku-empty-hint {
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}


/* ----------------------------- */
/* 标签选择器                    */
/* ----------------------------- */
.tag-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-chip {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  transition: all 0.2s;
  user-select: none;
}

.tag-chip:hover {
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(59, 130, 246, 0.08);
  color: var(--text-main);
}

.tag-chip.selected {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.4);
  color: #60a5fa;
  font-weight: 500;
}

.tag-input-row {
  display: flex;
  gap: 8px;
}

.tag-input-row .glass-input {
  flex: 1;
}


/* ----------------------------- */
/* 统计小卡片                    */
/* ----------------------------- */
.stats-mini-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
}

.stat-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}


/* ----------------------------- */
/* 响应式适配                    */
/* ----------------------------- */
/* ----------------------------- */
/* 轮播图管理样式                */
/* ----------------------------- */
.banner-management-card {
  margin-top: 10px;
}

.banner-upload-box {
  width: 180px;
  aspect-ratio: 9/10;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--glass-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition: all 0.2s;
}

.banner-upload-box:hover {
  border-color: var(--primary-color);
  background: rgba(59, 130, 246, 0.05);
}

.banner-upload-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-placeholder-inner {
  font-size: 13px;
  color: var(--text-muted);
}

.modal-overlay-custom {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-box {
  width: 100%;
  max-width: 500px;
  padding: 32px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 10px;
}

.banner-gallery-wrapper {
  margin-bottom: 20px;
}

.banner-cards-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* 小缩略图卡片 */
.banner-thumb-card {
  width: 80px;
  aspect-ratio: 9/10;
  border-radius: 8px;
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.05);
  cursor: grab;
  overflow: hidden;
  position: relative;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.banner-thumb-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.1);
}

.banner-thumb-card.selected {
  border-color: var(--primary-color);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.banner-thumb-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-thumb-card .empty-hint {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  opacity: 0.5;
}

/* 拖拽效果 */
.banner-thumb-card.dragging {
  opacity: 0.4;
  cursor: grabbing;
}

/* 详情编辑面板 */
.banner-detail-panel {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 24px;
  margin-top: 10px;
  animation: slideDown 0.3s ease-out;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.detail-image-box {
  width: 120px;
  aspect-ratio: 9/10;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

.detail-image-box:hover {
  border-color: var(--primary-color);
}

.detail-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-image-box .change-hint {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.6);
  color: white;
  font-size: 10px;
  text-align: center;
  padding: 4px 0;
  opacity: 0;
  transition: 0.2s;
}

.detail-image-box:hover .change-hint {
  opacity: 1;
}

.detail-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

@media (max-width: 1100px) {
  .product-form-layout {
    grid-template-columns: 1fr;
  }

  .sku-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* ----------------------------- */
/* 图片预览 Modal (Lightbox)     */
/* ----------------------------- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  z-index: 10001;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalZoom 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalZoom {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-content img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
}

.modal-close {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: 0.2s;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

@media (max-width: 768px) {
  .modal-close {
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.5);
  }
}