/* ═══════════════════════════════════════════════════════
   Print3D 3D打印报价系统 — 全局样式表
   参考 wenext.cn 未来工场风格：专业、简洁、科技感
   ═══════════════════════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
  --primary: #0066FF;
  --primary-dark: #0052CC;
  --primary-light: #E8F0FF;
  --accent: #FF6B00;
  --success: #00B894;
  --warning: #FDCB6E;
  --danger: #E74C3C;
  --bg: #F5F7FA;
  --white: #FFFFFF;
  --text: #1A1A2E;
  --text-light: #6B7280;
  --text-lighter: #9CA3AF;
  --border: #E5E7EB;
  --border-light: #F0F2F5;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.14);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --font: 'Inter', 'Noto Sans SC', -apple-system, sans-serif;
  --topbar-h: 36px;
  --header-h: 64px;
  --hero-h: auto;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 14px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; outline: none; }
input, select, textarea { font-family: inherit; outline: none; }
img { max-width: 100%; display: block; }

/* ── Site Wrapper ── */
.site-wrapper { min-height: 100vh; background: var(--bg); }

/* ═══════════════════════════════
   TOPBAR
═══════════════════════════════ */
.topbar {
  background: #1A1A2E;
  height: var(--topbar-h);
  line-height: var(--topbar-h);
}
.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar-slog { color: var(--text-lighter); font-size: 12px; }
.topbar-right { display: flex; gap: 12px; align-items: center; }
.topbar-right a { color: #C0C8D8; font-size: 12px; transition: color 0.2s; }
.topbar-right a:hover { color: var(--white); }
.topbar-div { color: #4A4A5A; font-size: 12px; }

/* ═══════════════════════════════
   HEADER
═══════════════════════════════ */
.site-header {
  background: var(--white);
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-gem { font-size: 24px; color: var(--primary); }
.logo-text strong { font-size: 18px; color: var(--text); display: block; line-height: 1.2; }
.logo-text span { font-size: 11px; color: var(--text-light); }
.header-nav { display: flex; gap: 4px; flex: 1; }
.nav-item {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
  transition: all 0.2s;
}
.nav-item:hover { color: var(--text); background: var(--bg); }
.nav-item.active { color: var(--primary); background: var(--primary-light); }
.header-cart {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
  position: relative;
}
.header-cart:hover { background: var(--primary-dark); }
.cart-badge {
  background: var(--accent);
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
}

.mobile-menu-btn:active {
  background: var(--border);
  transform: scale(0.95);
}

/* 移动端菜单面板 */
.mobile-menu-panel {
  display: none;
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  z-index: 99;
  padding: 12px 16px;
  transform: translateY(-100%);
  opacity: 0;
  transition: all 0.3s ease;
}

.mobile-menu-panel.active {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu-panel .nav-item {
  display: block;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--text);
  border-bottom: 1px solid var(--border-light);
}

.mobile-menu-panel .nav-item:last-child {
  border-bottom: none;
}

.mobile-menu-panel .nav-item.active {
  background: var(--primary-light);
  color: var(--primary);
}

/* ═══════════════════════════════
   HERO UPLOAD
═══════════════════════════════ */
.hero-upload {
  background: var(--white);
  padding: 40px 24px 32px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0A1628 0%, #1A3A6B 50%, #0A1628 100%);
  z-index: 0;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,102,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,102,255,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
}
.hero-text { text-align: center; margin-bottom: 32px; }
.hero-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.3;
}
.hero-title .highlight { color: #5BADFF; }
.hero-sub { color: #8FAABB; font-size: 16px; }

/* 4-Step Process */
.process-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 8px;
}
.proc-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  border-radius: 50px;
  border: 1px solid rgba(0,102,255,0.3);
  background: rgba(0,102,255,0.08);
  transition: all 0.3s;
}
.proc-step.active {
  background: rgba(0,102,255,0.25);
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(0,102,255,0.2);
}
.proc-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
}
.proc-step.active .proc-icon { background: var(--accent); }
.proc-num { font-size: 11px; color: var(--primary); font-weight: 700; display: block; }
.proc-step.active .proc-num { color: #5BADFF; }
.proc-label { font-size: 14px; font-weight: 600; color: #C0D8F0; }
.proc-step.active .proc-label { color: var(--white); }
.proc-arrow { color: rgba(0,102,255,0.4); font-size: 12px; }

/* ═══════════════════════════════
   UPLOAD SPLIT LAYOUT (Upload + Preview)
═══════════════════════════════ */
.upload-container {
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.upload-split-left {
  min-width: 0;
}

.upload-split-right {
  display: flex;
  flex-direction: column;
  background: #0a0a14;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid #2a2a4a;
  min-height: 360px;
}

/* Preview Header */
.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #1a1a2e;
  border-bottom: 1px solid #2a2a4a;
  flex-shrink: 0;
}
.preview-title-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.preview-title {
  font-size: 13px;
  font-weight: 600;
  color: #c0c8d8;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 模型选择器 */
.model-selector {
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #3a3a5a;
  background: #2a2a4a;
  color: #c0c8d8;
  font-size: 11px;
  font-family: inherit;
  cursor: pointer;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.2s;
}
.model-selector:hover {
  border-color: var(--primary);
  background: #3a3a5a;
}
.model-selector:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0, 102, 255, 0.2);
}
.model-selector option {
  background: #2a2a4a;
  color: #c0c8d8;
  padding: 4px;
}
.model-selector option:disabled {
  color: #666;
}

/* 文件计数器 */
.file-counter {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: #2a2a4a;
  border-radius: 12px;
  font-size: 11px;
  color: #8892a0;
  font-weight: 500;
}
.file-counter #current-file-num {
  color: #00d2ff;
  font-weight: 600;
}

/* 控制按钮分隔线 */
.ctrl-divider {
  width: 1px;
  height: 20px;
  background: #3a3a5a;
  margin: 0 4px;
}

.preview-controls {
  display: flex;
  gap: 4px;
  align-items: center;
}
.preview-ctrl-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid #2a2a4a;
  background: #1a1a2e;
  color: #8892a0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 11px;
  transition: all 0.2s;
}
.preview-ctrl-btn:hover {
  background: #2a2a4a;
  color: #00d2ff;
  border-color: #3a7bd5;
}
.preview-ctrl-btn.active {
  background: rgba(0,210,255,0.15);
  color: #00d2ff;
  border-color: #00d2ff;
}

/* Preview Viewer Area */
.preview-viewer {
  flex: 1;
  position: relative;
  min-height: 280px;
}
.preview-viewer canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.preview-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #4a4a6a;
  gap: 12px;
}
.preview-placeholder i { font-size: 40px; }
.preview-placeholder p { font-size: 13px; }

/* Info Strip */
.preview-info-strip {
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  background: #0f0f1a;
  border-top: 1px solid #2a2a4a;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.info-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #8892a0;
  background: #1a1a2e;
  border: 1px solid #2a2a4a;
  border-radius: 50px;
  padding: 3px 10px;
  white-space: nowrap;
}
.info-chip i { color: #00d2ff; font-size: 10px; }
.info-chip span { color: #c0d8f0; font-weight: 600; }

/* 壁厚信息条颜色 */
.info-chip-wall.safe { border-color: #00B894; }
.info-chip-wall.safe i { color: #00B894; }
.info-chip-wall.safe span { color: #00B894; }

.info-chip-wall.warning { border-color: #FDCB6E; background: rgba(253, 203, 110, 0.1); }
.info-chip-wall.warning i { color: #FDCB6E; }
.info-chip-wall.warning span { color: #FDCB6E; }

.info-chip-wall.danger { border-color: #E74C3C; background: rgba(231, 76, 60, 0.1); }
.info-chip-wall.danger i { color: #E74C3C; }
.info-chip-wall.danger span { color: #E74C3C; }

/* 壁厚分析面板 */
.wall-analysis-panel {
  background: #1a1a2e;
  border-top: 1px solid #2a2a4a;
  padding: 12px;
  animation: slideUp 0.3s ease;
}
.wall-analysis-panel.hidden { display: none; }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.wall-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.wall-panel-header span {
  font-size: 12px;
  font-weight: 600;
  color: #c0c8d8;
  display: flex;
  align-items: center;
  gap: 6px;
}
.wall-panel-header i { color: #00d2ff; }

.wall-panel-close {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: none;
  background: transparent;
  color: #8892a0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.wall-panel-close:hover {
  background: #2a2a4a;
  color: #fff;
}

.wall-panel-body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.wall-stat {
  background: #0f0f1a;
  border: 1px solid #2a2a4a;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
}
.wall-stat-label {
  display: block;
  font-size: 10px;
  color: #8892a0;
  margin-bottom: 4px;
}
.wall-stat-value {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #c0d8f0;
}

.wall-warning {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 6px;
  margin-top: 8px;
  font-size: 12px;
}
.wall-warning.warning {
  background: rgba(253, 203, 110, 0.1);
  border: 1px solid rgba(253, 203, 110, 0.3);
  color: #FDCB6E;
}
.wall-warning.danger {
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.3);
  color: #E74C3C;
}

.wall-legend {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid #2a2a4a;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #8892a0;
}
.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

/* Fullscreen Viewer */
.fullscreen-viewer {
  position: fixed;
  inset: 0;
  background: #0a0a14;
  z-index: 9999;
  display: flex;
  flex-direction: column;
}
.fullscreen-viewer.hidden { display: none; }
.fullscreen-viewer.show { display: flex; }

.fullscreen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: #1a1a2e;
  border-bottom: 1px solid #2a2a4a;
  flex-shrink: 0;
}
.fullscreen-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.fullscreen-controls {
  display: flex;
  gap: 6px;
}
.fullscreen-canvas {
  flex: 1;
  position: relative;
  min-height: 0;
}
.fullscreen-canvas canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.fullscreen-info-strip {
  display: flex;
  gap: 10px;
  padding: 10px 20px;
  background: #0f0f1a;
  border-top: 1px solid #2a2a4a;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* Upload Main Area */
.upload-main {
  border: 2px dashed rgba(0,102,255,0.35);
  border-radius: var(--radius-lg);
  padding: 60px 40px 40px;
  text-align: center;
  background: rgba(255,255,255,0.97);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  overflow: hidden;
}
.upload-main::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,102,255,0.02), rgba(0,102,255,0.06));
  pointer-events: none;
}
.upload-main:hover, .upload-main.drag-over {
  border-color: var(--primary);
  background: rgba(0,102,255,0.04);
  transform: scale(1.005);
  box-shadow: 0 0 40px rgba(0,102,255,0.12);
}
.upload-visual { margin-bottom: 20px; }
.upload-3d-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  color: var(--primary);
  opacity: 0.7;
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.upload-heading { font-size: 18px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.upload-sub { color: var(--text-light); font-size: 14px; margin-bottom: 16px; }
.upload-browse {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.upload-browse:hover { color: var(--primary-dark); }
.upload-formats { display: flex; justify-content: center; gap: 8px; margin-bottom: 16px; }
.format-tag {
  padding: 4px 14px;
  border-radius: 50px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.upload-note {
  font-size: 12px;
  color: var(--text-lighter);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.upload-note i { color: var(--success); }

.upload-tips {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.tip-item {
  flex: 1;
  min-width: 280px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
}
.tip-item i { flex-shrink: 0; }
.tip-item:first-child i { color: var(--warning); }
.tip-item:last-child i { color: var(--danger); }

/* ── File List ── */
.file-list { margin-top: 20px; }
.file-list.hidden { display: none; }

.file-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.2s;
  animation: slideIn 0.3s ease;
}
@keyframes slideIn { from { opacity:0; transform: translateY(-8px); } to { opacity:1; transform: translateY(0); } }
.file-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary); }

/* 文件卡片预览状态 */
.file-card.previewing {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.15), var(--shadow-md);
  background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFF 100%);
}

.file-thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.file-thumb:hover { background: var(--primary); color: white; transform: scale(1.08); }

/* 预览指示器 */
.preview-indicator {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 10px;
  box-shadow: 0 2px 6px rgba(0, 102, 255, 0.4);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

/* 预览中标签 */
.viewing-badge {
  display: inline-block;
  padding: 2px 8px;
  background: var(--primary);
  color: white;
  font-size: 10px;
  font-weight: 600;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }

.file-name-text { vertical-align: middle; }

.file-info { flex: 1; min-width: 0; }
.file-name { font-weight: 600; font-size: 14px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-meta { font-size: 12px; color: var(--text-light); margin-top: 4px; display: flex; gap: 16px; flex-wrap: wrap; }
.file-meta span { display: flex; align-items: center; gap: 4px; }
.file-status { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.status-badge {
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
}
.status-ok { background: #D4EDDA; color: #155724; }
.status-pending { background: #FFF3CD; color: #856404; }
.status-error { background: #F8D7DA; color: #721C24; }

.file-remove {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-lighter);
  font-size: 14px;
  transition: all 0.2s;
}
.file-remove:hover { background: #FDE8E8; color: var(--danger); }

/* Progress bar */
.upload-progress { width: 100%; height: 4px; background: var(--border-light); border-radius: 2px; margin-top: 8px; overflow: hidden; }
.upload-progress-bar { height: 100%; background: linear-gradient(90deg, var(--primary), #5BADFF); border-radius: 2px; transition: width 0.3s; }

/* Upload Actions */
.upload-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 24px;
  margin-top: 16px;
  animation: slideIn 0.3s ease;
}
.upload-hint-text { font-size: 14px; color: var(--text-light); }
.upload-hint-text strong { color: var(--primary); font-size: 16px; }
.action-btns { display: flex; gap: 12px; }

.btn-add-more {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}
.btn-add-more:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

.btn-next-step {
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-next-step:hover { background: var(--primary-dark); box-shadow: 0 4px 12px rgba(0,102,255,0.3); }

/* ═══════════════════════════════
   FEATURES BAR
═══════════════════════════════ */
.features-bar {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
}
.features-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 16px;
}
.feat-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.feat-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 16px;
  flex-shrink: 0;
}
.feat-text strong { display: block; font-size: 13px; color: var(--text); }
.feat-text span { font-size: 11px; color: var(--text-light); }

/* ═══════════════════════════════
   WORKSPACE
═══════════════════════════════ */
.workspace {
  max-width: 1280px;
  margin: 24px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}
.workspace-left { min-width: 0; }
.workspace-right { position: sticky; top: calc(var(--header-h) + var(--topbar-h) + 24px); }

/* ── Panel ── */
.panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  animation: fadeIn 0.4s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.panel.hidden { display: none; }
.panel-header {
  padding: 24px 28px 0;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.panel-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.panel-title i { color: var(--primary); }
.panel-hint { font-size: 13px; color: var(--text-light); }
.price-validity { font-size: 12px; color: var(--success); margin-left: auto; background: #D4EDDA; padding: 4px 10px; border-radius: 50px; }

/* Bulk Settings */
.bulk-settings {
  margin: 16px 28px;
  padding: 16px 20px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.bulk-label { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.bulk-row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.bulk-field { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 120px; }
.bulk-field label { font-size: 11px; color: var(--text-light); font-weight: 500; }
.bulk-field select, .bulk-field input {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: var(--white);
  color: var(--text);
  transition: border-color 0.2s;
  width: 100%;
}
.bulk-field select:focus, .bulk-field input:focus { border-color: var(--primary); }
.btn-apply-bulk {
  padding: 8px 16px;
  background: var(--text);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
  flex-shrink: 0;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-apply-bulk:hover { background: var(--primary); }

/* ── Config List ── */
.config-list { padding: 0 28px 20px; }
.config-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 16px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.config-item:hover { border-color: var(--primary); }
.config-item-header {
  padding: 14px 16px;
  background: var(--bg);
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}
.config-file-name { font-weight: 600; font-size: 13px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.config-status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text-lighter);
  flex-shrink: 0;
}
.config-status-dot.ready { background: var(--success); }
.config-item-body { padding: 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.config-field { display: flex; flex-direction: column; gap: 5px; }
.config-field label { font-size: 11px; color: var(--text-light); font-weight: 500; display: flex; align-items: center; gap: 4px; }
.config-field label .req { color: var(--danger); }
.config-field select, .config-field input {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: var(--white);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.config-field select:focus, .config-field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,102,255,0.08);
}
.config-field select.error { border-color: var(--danger); background: #FEF2F2; }
.config-warning {
  grid-column: 1 / -1;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid;
}
.config-warning.warn { background: #FFFBEB; border-color: var(--warning); color: #92400E; }
.config-warning.error { background: #FEF2F2; border-color: var(--danger); color: var(--danger); }
.config-warning.ok { background: #F0FDF4; border-color: var(--success); color: #065F46; }

/* Panel Actions */
.panel-actions {
  padding: 20px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg);
}
.btn-back {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-light);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}
.btn-back:hover { border-color: var(--text-light); color: var(--text); }
.btn-next {
  padding: 10px 28px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}
.btn-next:hover { background: var(--primary-dark); box-shadow: 0 4px 12px rgba(0,102,255,0.3); }
.btn-cart { background: var(--accent); }
.btn-cart:hover { background: #E55C00; box-shadow: 0 4px 12px rgba(255,107,0,0.3); }
.btn-submit {
  padding: 12px 32px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--success), #009B77);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}
.btn-submit:hover { box-shadow: 0 4px 20px rgba(0,184,148,0.4); transform: translateY(-1px); }

/* ── Quote Items ── */
.quote-items { padding: 20px 28px; }
.quote-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
}
.quote-card-header {
  padding: 12px 16px;
  background: var(--bg);
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}
.quote-filename { font-weight: 600; font-size: 13px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quote-price-main { font-size: 20px; font-weight: 700; color: var(--accent); }
.quote-price-unit { font-size: 12px; color: var(--text-light); font-weight: 400; }
.quote-card-body { padding: 14px 16px; }
.quote-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--border-light);
}
.quote-row:last-child { border-bottom: none; }
.quote-row-label { color: var(--text-light); }
.quote-row-val { font-weight: 600; color: var(--text); }
.quote-row.total { font-size: 15px; margin-top: 8px; }
.quote-row.total .quote-row-val { color: var(--accent); font-size: 18px; }
.quote-qty { display: flex; align-items: center; gap: 10px; }
.qty-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text);
  transition: all 0.2s;
}
.qty-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.qty-input {
  width: 48px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px;
  font-size: 13px;
  font-weight: 600;
}

/* ── Order Form ── */
.order-form { padding: 20px 28px; }
.order-section { margin-bottom: 24px; }
.order-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.order-section-title i { color: var(--primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-row.full { grid-template-columns: 1fr; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 13px; font-weight: 500; color: var(--text); display: flex; align-items: center; gap: 4px; }
.form-field label .req { color: var(--danger); }
.form-field input, .form-field select, .form-field textarea {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: var(--white);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,102,255,0.08);
}
.form-field textarea { resize: vertical; min-height: 80px; }
.form-field .field-hint { font-size: 11px; color: var(--text-lighter); }

/* ═══════════════════════════════
   SIDEBAR
═══════════════════════════════ */
.sidebar-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  position: sticky;
  top: calc(var(--header-h) + var(--topbar-h) + 24px);
}
.sidebar-header {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sidebar-header h3 { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.sidebar-header h3 i { color: var(--primary); }
.sidebar-empty-hint { font-size: 12px; color: var(--text-lighter); }
.sidebar-body { padding: 16px 20px; max-height: 480px; overflow-y: auto; }
.sidebar-empty {
  text-align: center;
  padding: 32px 0;
  color: var(--text-lighter);
  font-size: 13px;
}
.sidebar-empty i { font-size: 28px; margin-bottom: 8px; display: block; opacity: 0.4; }

.sidebar-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}
.sidebar-item:last-child { border-bottom: none; }
.sidebar-item-name { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.sidebar-item-meta { font-size: 11px; color: var(--text-light); margin-bottom: 4px; }
.sidebar-item-price { font-size: 14px; font-weight: 700; color: var(--accent); }

.sidebar-footer { padding: 16px 20px; border-top: 1px solid var(--border); background: var(--bg); }
.sidebar-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 15px;
}
.sidebar-total strong { font-size: 22px; color: var(--accent); }
.btn-sidebar-checkout {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--text);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-sidebar-checkout:hover:not(:disabled) { background: var(--primary); box-shadow: 0 4px 12px rgba(0,102,255,0.3); }
.btn-sidebar-checkout:disabled { opacity: 0.5; cursor: not-allowed; }

/* ═══════════════════════════════
   MODAL
═══════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.hidden { display: none; }
.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: modalIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes modalIn { from { opacity:0; transform: scale(0.9); } to { opacity:1; transform: scale(1); } }
.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h3 { font-size: 16px; font-weight: 700; }
.modal-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-light);
  transition: all 0.2s;
}
.modal-close:hover { background: #FDE8E8; color: var(--danger); }
.modal-body { padding: 24px; overflow-y: auto; flex: 1; }
.preview-3d-area {
  width: 100%;
  height: 360px;
  background: #F0F4FF;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 48px;
  border: 1px solid var(--border);
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
.preview-3d-area canvas { border-radius: var(--radius); }
.preview-3d-placeholder { text-align: center; }
.preview-3d-placeholder p { font-size: 14px; margin-top: 12px; color: var(--text-light); }
.preview-info {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.info-card {
  padding: 12px 16px;
  background: var(--bg);
  border-radius: var.info-card-label { font-size: 11px; color: var(--text-light); margin-bottom: 4px; }
.info-card-val { font-size: 16px; font-weight: 700; color: var(--text); }

/* ═══════════════════════════════
   FOOTER
═══════════════════════════════ */
.site-footer {
  background: #1A1A2E;
  color: #C0C8D8;
  margin-top: 48px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 24px 40px;
  display: grid;
  grid-template-columns: 300px 1fr 240px;
  gap: 48px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-logo .logo-gem { font-size: 20px; }
.footer-brand p { font-size: 13px; line-height: 1.8; color: #8892A0; margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #C0C8D8;
  font-size: 14px;
  transition: all 0.2s;
}
.footer-social a:hover { background: var(--primary); color: white; }
.footer-links { display: flex; gap: 48px; }
.footer-col h4 { font-size: 14px; color: var(--white); margin-bottom: 16px; font-weight: 600; }
.footer-col a { display: block; font-size: 13px; color: #8892A0; margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }
.footer-contact h4 { font-size: 14px; color: var(--white); margin-bottom: 16px; font-weight: 600; }
.footer-contact p { font-size: 13px; color: #8892A0; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.footer-contact p i { color: var(--primary); width: 16px; }
.footer-qr { margin-top: 16px; }
.qr-box {
  width: 96px; height: 96px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 32px;
  color: rgba(255,255,255,0.3);
}
.qr-box span { font-size: 10px; color: rgba(255,255,255,0.4); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 24px;
  text-align: center;
  font-size: 12px;
  color: #5A6270;
}
.footer-bottom a { color: #8892A0; transition: color 0.2s; }
.footer-bottom a:hover { color: var(--white); }

/* ═══════════════════════════════
   TOAST
═══════════════════════════════ */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  padding: 12px 24px;
  border-radius: 50px;
  background: var(--text);
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  white-space: nowrap;
}
.toast.hidden { opacity: 0; transform: translateX(-50%) translateY(20px); pointer-events: none; }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.warning { background: var(--warning); color: var(--text); }

/* ═══════════════════════════════
   RESPONSIVE - 移动端优化
   ═══════════════════════════════ */

/* ── 平板端 (≤1024px) ── */
@media (max-width: 1024px) {
  .workspace { grid-template-columns: 1fr; }
  .workspace-right { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ── 移动端 (≤768px) ── */
@media (max-width: 768px) {
  /* 隐藏桌面端导航 */
  .header-nav { display: none; }
  
  /* 显示移动端菜单按钮 */
  .mobile-menu-btn { display: flex; }
  .mobile-menu-panel { display: block; }
  
  /* 顶部栏简化 */
  .topbar { display: none; }
  
  /* Header 简化 */
  .site-header {
    padding: 0 16px;
    height: 56px;
  }
  .header-inner {
    height: 56px;
    gap: 12px;
  }
  .logo-text span { display: none; }
  .header-cart span:last-child { display: none; }
  .header-cart {
    padding: 10px;
    border-radius: 50%;
  }
  
  /* Hero 区域 */
  .hero-upload {
    padding: 16px 12px 24px;
  }
  .hero-text { margin-bottom: 20px; }
  .hero-title {
    font-size: 20px;
    line-height: 1.4;
  }
  .hero-sub {
    font-size: 13px;
    line-height: 1.5;
  }
  
  /* 流程步骤 - 可滑动 */
  .process-steps {
    justify-content: flex-start;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 8px;
    margin-bottom: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .process-steps::-webkit-scrollbar { display: none; }
  .proc-step {
    padding: 10px 16px;
    flex-shrink: 0;
  }
  .proc-icon {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
  .proc-num { font-size: 10px; }
  .proc-label { font-size: 12px; }
  .proc-arrow { display: none; }
  
  /* 上传区域 - 垂直布局 */
  .upload-container {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto !important;
    gap: 16px !important;
    margin-bottom: 20px !important;
  }
  
  .upload-split-left {
    width: 100% !important;
    order: 1 !important;
  }
  
  .upload-split-right {
    width: 100% !important;
    order: 2 !important;
    min-height: 280px !important;
  }
  
  /* 上传主区域 */
  .upload-main {
    padding: 24px 16px;
    min-height: auto;
  }
  .upload-visual {
    margin-bottom: 16px;
  }
  .upload-3d-icon {
    width: 64px;
    height: 64px;
  }
  .upload-heading {
    font-size: 16px;
    margin-bottom: 8px;
  }
  .upload-sub {
    font-size: 13px;
    margin-bottom: 12px;
  }
  .upload-formats {
    margin-bottom: 12px;
  }
  .format-tag {
    padding: 4px 10px;
    font-size: 11px;
  }
  .upload-note {
    font-size: 11px;
  }
  
  /* 预览区域 */
  .preview-header {
    padding: 8px 12px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .preview-title {
    font-size: 12px;
  }
  .preview-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }
  .preview-ctrl-btn {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
  .ctrl-divider { display: none; }
  
  /* 预览信息条 */
  .preview-info-strip {
    padding: 8px 12px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .info-chip {
    padding: 4px 8px;
    font-size: 10px;
    gap: 4px;
  }
  
  /* 壁厚分析面板 */
  .wall-analysis-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 16px 16px 0 0;
    max-height: 60vh;
    z-index: 1000;
  }
  
  /* 文件列表 */
  .file-list {
    padding: 12px;
    gap: 12px;
  }
  .file-card {
    padding: 12px;
    gap: 12px;
  }
  .file-thumb {
    width: 48px;
    height: 48px;
  }
  .file-name-text {
    font-size: 13px;
  }
  .file-meta {
    font-size: 11px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .file-remove {
    width: 28px;
    height: 28px;
  }
  
  /* 上传操作按钮 */
  .upload-actions {
    flex-direction: column;
    gap: 12px;
    padding: 16px 12px;
  }
  .upload-hint-text {
    font-size: 13px;
  }
  .action-btns {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }
  .btn-add-more, .btn-next-step {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 14px;
  }
  
  /* 特性栏 */
  .features-bar {
    padding: 16px 12px;
  }
  .features-inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .feat-item {
    padding: 12px;
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  .feat-icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  .feat-text strong { font-size: 13px; }
  .feat-text span { font-size: 11px; }
  
  /* 工作区 */
  .workspace {
    padding: 12px;
    gap: 16px;
  }
  
  /* 配置面板 */
  .panel {
    padding: 16px;
  }
  .panel-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 16px;
  }
  .panel-title {
    font-size: 16px;
  }
  .panel-hint {
    font-size: 12px;
  }
  
  /* 批量设置 */
  .bulk-settings {
    padding: 12px;
    margin-bottom: 16px;
  }
  .bulk-label {
    font-size: 12px;
    margin-bottom: 12px;
  }
  .bulk-row {
    flex-direction: column;
    gap: 12px;
  }
  .bulk-field {
    width: 100%;
  }
  .bulk-field label {
    font-size: 12px;
    margin-bottom: 4px;
  }
  .bulk-field select, .bulk-field input {
    padding: 10px 12px;
    font-size: 14px;
  }
  .btn-apply-bulk {
    width: 100%;
    padding: 12px;
  }
  
  /* 配置列表 */
  .config-list {
    gap: 12px;
  }
  .config-card {
    padding: 12px;
  }
  .config-card-header {
    flex-wrap: wrap;
    gap: 8px;
  }
  .config-card-title {
    font-size: 13px;
  }
  .config-row {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .config-field label {
    font-size: 11px;
  }
  .config-field select, .config-field input {
    padding: 10px;
    font-size: 14px;
  }
  
  /* 面板操作按钮 */
  .panel-actions {
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
  }
  .btn-back, .btn-next, .btn-cart, .btn-submit {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 14px;
  }
  
  /* 报价面板 */
  .quote-items {
    gap: 12px;
  }
  .quote-card {
    padding: 12px;
  }
  .quote-card-header {
    flex-wrap: wrap;
    gap: 8px;
  }
  .quote-card-title {
    font-size: 13px;
  }
  .quote-detail-row {
    font-size: 12px;
  }
  .quote-card-total {
    font-size: 14px;
  }
  
  /* 订单表单 */
  .order-form {
    gap: 16px;
  }
  .form-section-title {
    font-size: 14px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .form-group label {
    font-size: 12px;
  }
  .form-group input, .form-group select, .form-group textarea {
    padding: 12px;
    font-size: 14px;
  }
  
  /* 侧边栏 - 移动端底部固定，可折叠 */
  .workspace-right {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--white);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    border-radius: 16px 16px 0 0;
    max-height: 60px;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  
  /* 侧边栏展开状态 */
  .workspace-right.expanded {
    max-height: 50vh;
  }
  
  /* 侧边栏拖动条 */
  .sidebar-drag-handle {
    display: flex;
    justify-content: center;
    padding: 8px 0 4px;
    cursor: pointer;
  }
  .sidebar-drag-handle::before {
    content: '';
    width: 40px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
  }
  
  .sidebar-card {
    border-radius: 16px 16px 0 0;
    box-shadow: none;
  }
  .sidebar-header {
    padding: 8px 16px;
    cursor: pointer;
  }
  .sidebar-header h3 {
    font-size: 14px;
  }
  .sidebar-body {
    padding: 0 16px 12px;
    max-height: 200px;
    overflow-y: auto;
  }
  .sidebar-item {
    padding: 10px 0;
  }
  .sidebar-item-name {
    font-size: 12px;
  }
  .sidebar-item-meta {
    font-size: 11px;
  }
  .sidebar-item-price {
    font-size: 13px;
  }
  .sidebar-footer {
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }
  .sidebar-total {
    font-size: 14px;
  }
  .btn-sidebar-checkout {
    padding: 12px;
    font-size: 14px;
  }
  
  /* 为工作区底部留出空间 */
  .workspace-left {
    padding-bottom: 80px;
  }
  
  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 16px;
  }
  .footer-brand {
    text-align: center;
  }
  .footer-brand p {
    font-size: 12px;
  }
  .footer-social {
    justify-content: center;
  }
  .footer-links {
    flex-direction: column;
    gap: 16px;
  }
  .footer-col {
    text-align: center;
  }
  .footer-col h4 {
    font-size: 13px;
    margin-bottom: 8px;
  }
  .footer-col a {
    font-size: 12px;
    padding: 4px 0;
  }
  .footer-contact {
    text-align: center;
  }
  .footer-contact h4 {
    font-size: 13px;
  }
  .footer-contact p {
    font-size: 12px;
  }
  .footer-qr {
    justify-content: center;
  }
  .footer-bottom {
    padding: 12px 16px;
  }
  .footer-bottom p {
    font-size: 11px;
  }
  
  /* 全屏预览 */
  .fullscreen-viewer {
    z-index: 2000;
  }
  .fullscreen-header {
    padding: 12px 16px;
    padding-top: calc(12px + env(safe-area-inset-top));
  }
  .fullscreen-title {
    font-size: 14px;
  }
  .fullscreen-controls {
    gap: 4px;
  }
  .fullscreen-info-strip {
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    gap: 8px;
    flex-wrap: wrap;
  }
}

/* ── 小屏手机 (≤480px) ── */
@media (max-width: 480px) {
  .hero-title {
    font-size: 18px;
  }
  .hero-sub {
    font-size: 12px;
  }
  
  /* 流程步骤更紧凑 */
  .proc-step {
    padding: 8px 12px;
    gap: 8px;
  }
  .proc-icon {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }
  .proc-label {
    font-size: 11px;
  }
  
  /* 上传区域 */
  .upload-main {
    padding: 20px 12px;
  }
  .upload-3d-icon {
    width: 56px;
    height: 56px;
  }
  .upload-heading {
    font-size: 15px;
  }
  
  /* 预览区域 */
  .upload-split-right {
    min-height: 240px;
  }
  .preview-viewer {
    min-height: 180px;
  }
  
  /* 特性栏单列 */
  .features-inner {
    grid-template-columns: 1fr;
  }
  
  /* 配置行单列 */
  .config-row {
    grid-template-columns: 1fr;
  }
  
  /* 信息芯片更小 */
  .info-chip {
    padding: 3px 6px;
    font-size: 9px;
  }
}

/* ── 横屏模式 ── */
@media (max-width: 768px) and (orientation: landscape) {
  .upload-split-right {
    min-height: 200px;
  }
  
  .preview-info-strip {
    position: relative;
  }
  
  .wall-analysis-panel {
    max-height: 80vh;
  }
}

/* ── 安全区域适配 (iPhone X+) ── */
@supports (padding: env(safe-area-inset-bottom)) {
  @media (max-width: 768px) {
    .sidebar-footer {
      padding-bottom: calc(12px + env(safe-area-inset-bottom));
    }
    
    .fullscreen-info-strip {
      padding-bottom: calc(12px + env(safe-area-inset-bottom));
    }
    
    .wall-analysis-panel {
      padding-bottom: env(safe-area-inset-bottom);
    }
  }
}

/* ═══════════════════════════════
   微信环境适配
   ═══════════════════════════════ */
.wechat-upload-tip {
  margin-bottom: 16px;
  animation: slideDown 0.3s ease;
}

.wechat-tip-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(135deg, #E8F5E9 0%, #E3F2FD 100%);
  border: 1px solid #C8E6C9;
  border-radius: var(--radius);
  position: relative;
}

.wechat-tip-content > i {
  font-size: 24px;
  color: #4CAF50;
  flex-shrink: 0;
}

.wechat-tip-text {
  flex: 1;
}

.wechat-tip-text strong {
  display: block;
  color: var(--text);
  margin-bottom: 8px;
  font-size: 14px;
}

.wechat-tip-text p {
  font-size: 12px;
  color: var(--text-light);
  margin: 4px 0;
  line-height: 1.5;
}

.wechat-tip-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 12px;
  transition: all 0.2s;
}

.wechat-tip-close:hover {
  background: rgba(0,0,0,0.2);
  color: var(--text);
}

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

/* 微信环境下优化上传区域 */
@media (max-width: 768px) {
  .wechat-upload-tip {
    margin-bottom: 12px;
  }
  
  .wechat-tip-content {
    padding: 12px;
  }
  
  .wechat-tip-text p {
    font-size: 11px;
  }
}

/* ═══════════════════════════════
   云盘上传按钮
   ═══════════════════════════════ */
.cloud-upload-btns {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.cloud-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.cloud-btn:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.baidu-pan-btn {
  border-color: #06A7FF;
  color: #06A7FF;
}

.baidu-pan-btn:hover {
  background: rgba(6, 167, 255, 0.1);
  border-color: #06A7FF;
}

.baidu-pan-btn i {
  font-size: 16px;
}

/* ═══════════════════════════════
   百度网盘文件选择器弹窗
   ═══════════════════════════════ */
.baidu-pan-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.2s ease;
}

.baidu-pan-modal-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow-lg);
}

.baidu-pan-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.baidu-pan-modal-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.baidu-pan-modal-header h3 i {
  color: #06A7FF;
}

.baidu-pan-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.baidu-pan-close:hover {
  background: #FDE8E8;
  color: var(--danger);
}

.baidu-pan-search {
  display: flex;
  gap: 8px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
}

.baidu-pan-search input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: var(--white);
  color: var(--text);
  transition: border-color 0.2s;
}

.baidu-pan-search input:focus {
  border-color: #06A7FF;
  outline: none;
}

.baidu-pan-search button {
  padding: 10px 16px;
  background: #06A7FF;
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.baidu-pan-search button:hover {
  background: #0595E0;
}

.baidu-pan-file-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  min-height: 200px;
  max-height: 400px;
}

.baidu-pan-loading,
.baidu-pan-empty,
.baidu-pan-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: var(--text-light);
  text-align: center;
}

.baidu-pan-loading i,
.baidu-pan-empty i,
.baidu-pan-error i {
  font-size: 32px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.baidu-pan-loading span {
  font-size: 13px;
}

.baidu-pan-empty p {
  font-size: 13px;
  margin: 0;
}

.baidu-pan-empty .hint {
  font-size: 11px;
  color: var(--text-lighter);
  margin-top: 8px;
}

.baidu-pan-error p {
  font-size: 13px;
  margin-bottom: 12px;
}

.baidu-pan-error button {
  padding: 8px 16px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 12px;
  cursor: pointer;
}

.baidu-pan-file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.baidu-pan-file-item:hover {
  border-color: #06A7FF;
  background: rgba(6, 167, 255, 0.05);
}

.baidu-pan-file-item.selected {
  border-color: #06A7FF;
  background: rgba(6, 167, 255, 0.1);
}

.baidu-pan-file-checkbox {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-lighter);
}

.baidu-pan-file-item.selected .baidu-pan-file-checkbox {
  color: #06A7FF;
}

.baidu-pan-file-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 16px;
}

.baidu-pan-file-info {
  flex: 1;
  min-width: 0;
}

.baidu-pan-file-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.baidu-pan-file-meta {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: var(--text-light);
  margin-top: 4px;
}

.baidu-pan-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.baidu-pan-btn-secondary {
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.baidu-pan-btn-secondary:hover {
  border-color: var(--text-light);
}

.baidu-pan-btn-primary {
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-sm);
  background: #06A7FF;
  color: white;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.baidu-pan-btn-primary:hover:not(:disabled) {
  background: #0595E0;
}

.baidu-pan-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 百度网盘配置对话框 */
.baidu-pan-config-dialog {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.baidu-pan-config-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 100%;
  max-width: 400px;
  animation: modalIn 0.3s ease;
}

.baidu-pan-config-content h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

.baidu-pan-config-content .config-hint {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 16px;
}

.baidu-pan-config-content .config-hint a {
  color: #06A7FF;
}

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

.config-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.config-field label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
}

.config-field input {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.config-field input:focus {
  border-color: #06A7FF;
  outline: none;
}

.config-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

.config-btn-secondary {
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
}

.config-btn-primary {
  padding: 10px 16px;
  border: none;
  border-radius: var(--radius-sm);
  background: #06A7FF;
  color: white;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.config-btn-primary:hover {
  background: #0595E0;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .cloud-upload-btns {
    flex-direction: column;
  }
  
  .cloud-btn {
    width: 100%;
    justify-content: center;
  }
  
  .baidu-pan-modal-content {
    max-height: 90vh;
    margin: 16px;
  }
  
  .baidu-pan-file-list {
    max-height: 300px;
  }
  
  .baidu-pan-modal-footer {
    flex-direction: column;
  }
  
  .baidu-pan-btn-secondary,
  .baidu-pan-btn-primary {
    width: 100%;
    justify-content: center;
  }
}
