/* === Export Format Selector === */
.export-format-group { display: flex; align-items: center; margin-right: 0.5rem; }
.format-toggle { display: inline-flex; background: var(--bg-subtle); padding: 3px; border-radius: 8px; border: 1px solid var(--border-color); gap: 2px; }
.format-btn { border: none; background: transparent; color: var(--text-muted); font-size: 0.65rem; font-weight: 700; padding: 2px 8px; cursor: pointer; border-radius: 6px; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); font-family: monospace; will-change: transform, background-color, box-shadow; }
.format-btn.active { background: white; color: var(--accent-color); box-shadow: 0 2px 6px rgba(0,0,0,0.08); transform: scale(1.02); }
.format-btn:hover:not(.active) { color: var(--text-primary); transform: translateY(-1px); }

/* === Change Export Overlay to Background Notification === */
.bg-export-status { position: fixed; right: 24px; bottom: 24px; z-index: 1000; pointer-events: none; }
.bg-status-card { pointer-events: auto; background: white; border-radius: 12px; padding: 12px 16px; width: 240px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); border: 1px solid var(--border-color); display: flex; flex-direction: column; gap: 8px; }
.status-top { display: flex; align-items: center; gap: 10px; }
.status-msg-short { flex: 1; font-size: 0.8rem; font-weight: 500; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status-percent-short { font-size: 0.75rem; font-weight: 700; color: var(--accent-color); font-family: monospace; }
.bg-progress-bar { width: 100%; height: 4px; background: rgba(0,0,0,0.05); border-radius: 10px; overflow: hidden; }

/* Slide Up Animation */
.slide-up-enter-active, .slide-up-leave-active { transition: all 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28); }
.slide-up-enter-from { opacity: 0; transform: translateY(20px) scale(0.9); }
.slide-up-leave-to { opacity: 0; transform: translateY(10px); }

/* Remove old overlay styles */
.export-overlay, .export-status-card, .status-spinner-l, .status-msg, .status-progress-bar, .status-percentage { display: none; }

/* Button Busy State */
.scene-export-btn.busy-state { cursor: wait; filter: saturate(0.5); }
.preview-menu-bar { position: sticky; top: 0; z-index: 50; display: flex; justify-content: center; align-items: center; width: 100%; padding: 10px 16px; background: var(--bg-main); opacity: 0.98; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--border-color); flex-shrink: 0; border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.menu-left, .menu-right { display: flex; gap: 0.5rem; align-items: center; }
.preview-exit-btn-right { display: inline-flex; align-items: center; justify-content: center; gap: 0; padding: 0; width: 30px; height: 30px; border-radius: 6px; background-color: var(--bg-subtle); border: 1px solid var(--border-color); color: var(--text-primary); font-size: 0.75rem; font-weight: 500; cursor: pointer; transition: all 0.2s; font-family: inherit; margin-right: 0.5rem; }
.preview-exit-btn-right:hover { background-color: var(--error-bg); color: var(--error-text); border-color: var(--error-border); }
.preview-exit-btn-right svg { width: 14px; height: 14px; }

.lang-preview-btn { min-width: 64px; padding: 0 0.5rem; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; height: 30px; border-radius: 6px; font-size: 0.75rem; font-weight: 400; cursor: pointer; background-color: var(--bg-workspace); color: var(--text-primary); border: 1px solid var(--border-color); transition: all 0.2s; }
.lang-preview-btn:hover { border-color: var(--text-secondary); background-color: var(--bg-subtle); }
.lang-preview-btn .lang-text { font-weight: 700; font-family: monospace; font-size: 0.75rem; }
.lang-preview-btn svg { width: 14px; height: 14px; opacity: 0.7; }

.action-btn-base { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; height: 30px; border-radius: 6px; font-size: 0.75rem; font-weight: 500; cursor: pointer; transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); letter-spacing: 0.02em; white-space: nowrap; padding: 0 0.8rem; font-family: inherit; will-change: transform, box-shadow, background-color, border-color; }
.scene-export-btn { background-color: #111; color: #fff; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 4px 10px rgba(0,0,0,0.12); }
.scene-export-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.1); background-color: #222; }
.scene-export-btn:active:not(:disabled) { transform: translateY(0) scale(0.96); box-shadow: 0 2px 6px rgba(0,0,0,0.15); opacity: 0.95; transition-duration: 0.1s; }
.scene-export-btn:disabled { opacity: 0.7; cursor: wait; transform: none !important; box-shadow: none !important; }
.scene-export-btn.success-state { background-color: var(--success-color); color: white; transform: scale(1.02); }
.scene-export-btn svg { width: 16px; height: 16px; transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.scene-export-btn:hover:not(:disabled) svg { transform: scale(1.1); }
.scene-export-btn.secondary { background-color: var(--bg-main); color: var(--text-primary); border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); }
.scene-export-btn.secondary:hover:not(:disabled) { border-color: var(--text-secondary); background-color: var(--bg-subtle); color: var(--accent-color); transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0,0,0,0.08); }
.scene-export-btn.secondary:active:not(:disabled) { transform: translateY(0) scale(0.96); box-shadow: var(--shadow-xs); transition-duration: 0.1s; }
.scene-export-btn.secondary .button-spinner-sm { border-color: rgba(0,0,0,0.1); border-top-color: var(--text-primary); }

.button-spinner-sm { width: 14px; height: 14px; animation: spin 0.8s linear infinite; display: inline-block; vertical-align: middle; margin-right: 0.25rem; background: none; border: none; }
.button-spinner-sm svg { width: 100%; height: 100%; display: block; }
.button-spinner-sm svg path { fill: white; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.icon-spinner { width: 16px; height: 16px; flex-shrink: 0; animation: spin 0.8s linear infinite; background: none; border: none; }
.icon-spinner svg { width: 100%; height: 100%; display: block; }
.scene-export-btn.secondary .icon-spinner svg path { fill: var(--text-primary); }


/* === Theme Color Popover === */
.color-grid-tight { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.color-swatch-mini { width: 24px; height: 24px; border-radius: 50%; cursor: pointer; border: 1px solid rgba(0,0,0,0.1); transition: transform 0.15s ease; }
.color-swatch-mini:hover { transform: scale(1.1); }

/* === Font Picker === */
.font-picker-wrapper, .theme-picker-wrapper { margin-right: 0.25rem; display: flex; align-items: center; height: 30px; }
.font-picker-btn { width: 110px; min-width: 110px; max-width: 110px; padding: 0 0.4rem; gap: 0.2rem; justify-content: center; overflow: hidden; }
.font-label { 
    font-size: 0.65rem; 
    color: var(--text-muted); 
    background: var(--bg-subtle); 
    padding: 0 3px; 
    border-radius: 3px;
    margin-right: 0.1rem;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex-shrink: 0;
}
.font-preview-text { font-size: 0.75rem; font-weight: 500; line-height: 1; display: inline-flex; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; justify-content: center; }
.font-option { padding: 6px 0; font-size: 0.8rem; cursor: pointer; transition: all 0.15s ease; color: #9ca3af; text-align: center; min-width: 90px; }
.font-option:hover { background: var(--bg-subtle); color: #6b7280; }
.font-option.active { background: var(--accent-light); color: var(--accent-color); font-weight: 500; }

/* 宽度按钮聚焦样式 - 浅灰色边框，不加粗 */
.font-picker-btn:has(.width-input-inline):focus,
.font-picker-btn:has(.width-input-inline):focus-within {
    outline: none !important;
    border-color: #F6F8FB !important;
    box-shadow: none !important;
}

/* === 选区加粗按钮 === */
.selection-weight-btns .weight-btn { min-width: auto; padding: 0 0.55rem; gap: 0; height: 28px; }
.selection-weight-btns .weight-btn-active { background: #e0e7ff; border-color: #6366f1; color: #4338ca; }

/* === 选区字号按钮 === */
.selection-size-picker .size-btn { min-width: 65px; padding: 0 0.4rem; gap: 4px; height: 28px; justify-content: center; }

/* === 字号选择双栏布局 === */
.font-size-dropdown .font-size-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}
.font-size-dropdown .font-size-grid .font-option {
    text-align: center;
    padding: 4px 6px;
    font-size: 12px;
}
.font-size-dropdown {
    min-width: auto !important;
    width: auto !important;
}
.font-size-dropdown .font-size-grid .font-option {
    min-width: 32px;
}


/* === Scene Workspace Scroll === */
.scene-workspace-scroll { flex: 1 1 0; min-height: 0; overflow-y: auto; overflow-x: hidden; width: 100%; display: flex; justify-content: center; padding: 0.75rem 0.75rem 0 0.75rem; background: #ffffff; scrollbar-width: none; -ms-overflow-style: none; align-items: flex-start; overscroll-behavior: contain; }
.scene-workspace-scroll::-webkit-scrollbar { width: 0; height: 0; display: none; }

/* === Printable Content (The "Paper") === */
.scene-printable-content { display: flex; flex-direction: column; width: 100%; max-width: 600px; container-type: inline-size; background: inherit; border-radius: 0; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); overflow: hidden; font-weight: 100; padding: 0; padding-bottom: 50px; gap: 0; margin-bottom: 0; height: auto; position: relative; align-items: stretch; border-bottom: none; }
.scene-printable-content:not(.is-sweet-bg) { }
.is-sweet-bg .scene-printable-content { padding-bottom: 50px; }
.scene-printable-content > .module-wrapper:last-child {
    margin-bottom: 0px !important;
}
.is-sweet-bg .scene-printable-content > .module-wrapper:last-child {
    margin-bottom: 0px !important;
}

/* === Empty State === */
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; min-height: 400px; color: var(--text-secondary); }
.empty-icon { width: 64px; height: 64px; opacity: 0.3; margin-bottom: 1rem; }
.empty-icon svg { width: 100%; height: 100%; }
.empty-text { font-size: 0.9rem; opacity: 0.6; }

/* === Module Wrapper === */
.module-wrapper { width: 100%; margin-bottom: 0; position: relative; background-color: transparent; z-index: 1; }
.module-wrapper.resume-module { padding: 1.5rem; background-color: #ffffff; }
.module-wrapper.resume-module:not(:last-child) { margin-bottom: 0; }
.module-wrapper.resume-module:nth-child(2) { margin-top: 0; padding-top: 1.5rem; }
.module-wrapper.resume-module:nth-child(3) { margin-top: 0; padding-top: 1.5rem; }

/* === Product Detail Module === */
.product-module { background: #ffffff; padding: 12px 75px; box-sizing: border-box; }
.product-module .section-heading { font-size: 1rem; font-weight: 100; color: var(--text-primary); margin-bottom: 0.75rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border-color); }

/* === Product Card Module (6 Modules) === */
.product-card-module { background: #ffffff; border-radius: 0; overflow: hidden; }
.product-card-module:not(:last-child) { margin-bottom: 0; }
.product-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius-md); border: 1px solid var(--border-color); overflow: hidden; }
.product-card-image { width: 100%; height: 200px; background: #f8fafc; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-card-image img { width: 100%; height: 100%; object-fit: cover; }
.product-card-image .image-placeholder { color: var(--text-muted); }
.product-card-image .image-placeholder svg { width: 48px; height: 48px; opacity: 0.3; }
.product-card-content { padding: 16px; }
.product-card-title { font-size: 1rem; font-weight: 300; color: var(--text-primary); margin: 0 0 8px 0; }
.product-card-desc { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; margin: 0; white-space: pre-wrap; font-weight: 100; }

/* Product Header */
.product-detail-header { display: flex; gap: 1.5rem; margin-bottom: 1.5rem; }
.product-gallery { flex-shrink: 0; width: 280px; }
.product-main-image { width: 100%; height: 280px; border-radius: var(--radius-md); overflow: hidden; background: #f8fafc; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border-color); }
.product-main-image img { width: 100%; height: 100%; object-fit: cover; }
.product-main-image .image-placeholder { color: var(--text-muted); }
.product-main-image .image-placeholder svg { width: 48px; height: 48px; opacity: 0.3; }
.product-thumbnails { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.thumbnail-item { width: 60px; height: 60px; border-radius: var(--radius-sm); overflow: hidden; background: #f8fafc; border: 1px solid var(--border-color); }
.thumbnail-item img { width: 100%; height: 100%; object-fit: cover; }
.thumb-placeholder { width: 100%; height: 100%; background: #f1f5f9; }

/* Product Info */
.product-info { flex: 1; display: flex; flex-direction: column; }
.product-title { font-size: 1.25rem; font-weight: 300; color: var(--text-primary); margin: 0 0 0.25rem 0; line-height: 1.3; }
.product-subtitle { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 0.75rem; font-weight: 100; }
.product-price-row { display: flex; align-items: baseline; gap: 0.75rem; margin-bottom: 0.75rem; }
.product-price-row .current-price { color: #ef4444; font-weight: 300; }
.product-price-row .current-price .currency { font-size: 0.9rem; }
.product-price-row .current-price .price-value { font-size: 1.5rem; }
.product-price-row .original-price { color: var(--text-muted); text-decoration: line-through; font-size: 0.9rem; }
.product-stats { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); margin-bottom: 0.75rem; }
.product-stats .stat-item { display: flex; align-items: center; gap: 0.25rem; }
.product-stats .stat-icon { color: #f59e0b; display: flex; }
.product-stats .stat-icon svg { width: 14px; height: 14px; }
.product-stats .stat-label { font-size: 0.75rem; color: var(--text-secondary); font-weight: 100; }
.product-stats .stat-value { font-size: 0.85rem; font-weight: 300; color: var(--text-primary); }
.product-stats .stat-divider { width: 1px; height: 12px; background: var(--border-color); }
.product-specs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.product-specs .spec-item { display: flex; align-items: center; gap: 0.25rem; font-size: 0.75rem; padding: 0.25rem 0.5rem; background: #f8fafc; border-radius: 4px; border: 1px solid var(--border-color); }
.product-specs .spec-label { color: var(--text-secondary); font-weight: 100; }
.product-specs .spec-value { color: var(--text-primary); font-weight: 300; }

/* Product Highlights */
.product-highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-bottom: 1.5rem; }
.highlight-item { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.75rem; background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%); border-radius: var(--radius-md); border: 1px solid var(--border-color); }
.highlight-icon { flex-shrink: 0; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: var(--accent-color); color: white; border-radius: 50%; }
.highlight-icon svg { width: 18px; height: 18px; }
.highlight-content { flex: 1; }
.highlight-title { font-size: 0.85rem; font-weight: 300; color: var(--text-primary); margin-bottom: 0.125rem; }
.highlight-desc { font-size: 0.75rem; color: var(--text-secondary); line-height: 1.4; font-weight: 100; }

/* Product Description */
.product-description { margin-bottom: 1.5rem; }
.product-description .description-text { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.7; white-space: pre-wrap; }

/* Product Reviews */
.product-reviews { }
.reviews-list { display: flex; flex-direction: column; gap: 0.75rem; }
.review-item { padding: 0.75rem; background: #f8fafc; border-radius: var(--radius-md); border: 1px solid var(--border-color); }
.review-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.reviewer-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-light); display: flex; align-items: center; justify-content: center; color: var(--accent-color); }
.reviewer-avatar svg { width: 16px; height: 16px; }
.reviewer-info { flex: 1; display: flex; flex-direction: column; }
.reviewer-name { font-size: 0.8rem; font-weight: 300; color: var(--text-primary); }
.review-rating { display: flex; gap: 2px; }
.review-rating .star-icon svg { width: 12px; height: 12px; }
.review-rating .star-icon.filled svg { color: #f59e0b; fill: #f59e0b; }
.review-rating .star-icon:not(.filled) svg { color: #d1d5db; }
.review-date { font-size: 0.7rem; color: var(--text-muted); font-weight: 100; }
.review-content { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.5; font-weight: 100; }

/* === Module List Transition === */
.module-list-move,
.module-list-enter-active,
.module-list-leave-active {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.module-list-enter-from {
  opacity: 0;
  transform: translateY(20px) scale(0.98);
}
.module-list-leave-to {
  opacity: 0;
  transform: translateY(-20px) scale(0.98);
}
.module-list-leave-active {
  /* removed absolute */
}
