/* ============================================
   BEBEPICK 电商网站样式 v2
   新增：后台管理、订单表单、客户信息
   ============================================ */

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #E91E8C 0%, #9B59B6 100%);
    --primary-color: #9B59B6;
    --primary-pink: #E91E8C;
    --secondary-color: #7B68EE;
    --bg-color: #F5F5F5;
    --card-bg: #FFFFFF;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-muted: #999999;
    --border-color: #E0E0E0;
    --success-color: #4CAF50;
    --warning-bg: #FFF3E0;
    --warning-border: #FFB74D;
    --danger-color: #F44336;
    --info-color: #2196F3;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    padding-bottom: 70px;
}

/* ============================================
   顶部导航栏
   ============================================ */
.header {
    background: var(--primary-gradient);
    padding: 0 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.logo {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.nav-tabs {
    display: flex;
    gap: 8px;
}

.nav-tab {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: var(--radius-xl);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-tab:hover {
    background: rgba(255, 255, 255, 0.3);
}

.nav-tab.active {
    background: white;
    color: var(--primary-color);
}

/* ============================================
   主内容区
   ============================================ */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
}

.page {
    display: none;
    animation: fadeIn 0.3s ease;
}

.page.active {
    display: block;
}

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

/* ============================================
   搜索和筛选栏
   ============================================ */
.search-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    font-size: 0.9375rem;
    background: white;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(155, 89, 182, 0.1);
}

.sort-select {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    font-size: 0.9375rem;
    background: white;
    color: var(--text-primary);
    cursor: pointer;
    min-width: 100px;
}

/* ============================================
   分类标签
   ============================================ */
.category-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.category-tag {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    background: white;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-tag:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.category-tag.active {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
}

/* ============================================
   产品网格
   ============================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ============================================
   产品卡片
   ============================================ */
.product-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.product-image-wrapper {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--primary-gradient);
    color: white;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.product-info {
    padding: 12px;
}

.product-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex-wrap: wrap;
}

.price-unit {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.price-total {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.price-original {
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-status {
    font-size: 0.75rem;
    color: var(--success-color);
    margin-top: 4px;
}

/* ============================================
   空状态
   ============================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.empty-state-text {
    font-size: 0.9375rem;
    margin-bottom: 8px;
}

.empty-state-hint {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ============================================
   弹窗样式
   ============================================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.modal.hidden {
    display: none;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: white;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
    padding: 20px;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    z-index: 10;
}

.modal-header {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    padding-top: 10px;
}

.modal-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.modal-info {
    flex: 1;
}

.modal-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.modal-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ============================================
   选项选择区域
   ============================================ */
.options-container {
    margin-bottom: 20px;
}

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

.option-label {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.option-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.option-btn {
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    background: white;
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-btn:hover {
    border-color: var(--primary-color);
}

.option-btn.selected {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
}

/* ============================================
   客户信息表单
   ============================================ */
.customer-form {
    background: var(--bg-color);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
}

.customer-form h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(155, 89, 182, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 60px;
}

/* ============================================
   警告框
   ============================================ */
.warning-box {
    background: var(--warning-bg);
    border: 1px solid var(--warning-border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 16px;
    display: flex;
    gap: 12px;
}

.warning-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.warning-text {
    font-size: 0.8125rem;
    color: var(--text-primary);
    line-height: 1.6;
}

.warning-text strong {
    color: #E65100;
}

.warning-text ul {
    margin-top: 6px;
    padding-left: 16px;
}

.warning-text li {
    margin-bottom: 2px;
}

/* ============================================
   按钮样式
   ============================================ */
.btn-submit {
    width: 100%;
    padding: 16px;
    background: var(--primary-gradient);
    border: none;
    border-radius: var(--radius-xl);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 12px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-cancel {
    width: 100%;
    padding: 14px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    color: var(--text-secondary);
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: var(--bg-color);
}

.btn-primary {
    padding: 12px 24px;
    background: #2C3E50;
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #34495E;
}

.btn-dark {
    width: 100%;
    padding: 14px;
    background: #2C3E50;
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 20px;
}

.btn-danger {
    padding: 12px 24px;
    background: var(--danger-color);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: #D32F2F;
}

/* ============================================
   订单确认页面样式
   ============================================ */
.order-confirm-content {
    text-align: center;
}

.success-header {
    padding: 20px 0;
}

.celebrate-emoji {
    font-size: 3rem;
    margin-bottom: 12px;
}

.order-number-display {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--secondary-color);
    letter-spacing: 2px;
    margin: 16px 0;
    padding: 12px;
    background: #F3E5F5;
    border-radius: var(--radius-md);
}

.order-hint {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.order-summary {
    background: var(--bg-color);
    border-radius: var(--radius-md);
    padding: 16px;
    margin: 20px 0;
    text-align: left;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 12px;
    font-size: 0.9375rem;
}

.customer-info-summary {
    background: white;
    padding: 12px;
    border-radius: var(--radius-sm);
    margin: 12px 0;
    font-size: 0.875rem;
}

.customer-info-summary h4 {
    font-size: 0.875rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.customer-info-summary p {
    margin-bottom: 4px;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    font-weight: 600;
}

.total-price {
    color: var(--secondary-color);
}

.selected-options-summary {
    background: #F3E5F5;
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 20px;
    text-align: left;
}

.selected-options-summary h4 {
    font-size: 0.875rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.option-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
}

.option-row .label {
    color: var(--text-secondary);
}

.option-row .value {
    color: var(--text-primary);
    font-weight: 500;
}

.save-hint {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 16px;
}

/* ============================================
   订单查询页面样式
   ============================================ */
.order-query-container {
    padding: 8px 0;
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.search-box {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.order-search-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
}

.order-result {
    background: white;
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 20px;
    box-shadow: var(--shadow-sm);
}

.order-result-header {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.order-result-header h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-color);
}

.order-result-details {
    font-size: 0.9375rem;
}

.order-result-details p {
    margin-bottom: 8px;
}

/* ============================================
   管理员页面样式
   ============================================ */
.admin-container {
    max-width: 800px;
    margin: 0 auto;
}

.admin-login {
    background: white;
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    max-width: 400px;
    margin: 40px auto;
    text-align: center;
}

.admin-login h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.admin-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    margin-bottom: 16px;
}

.admin-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    margin-bottom: 12px;
}

.admin-panel {
    background: white;
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.admin-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 12px;
}

.admin-tab {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.admin-tab:hover {
    color: var(--primary-color);
}

.admin-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

.admin-tab-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.order-filter {
    margin-bottom: 16px;
}

.order-filter select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
}

.admin-order-list,
.admin-product-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-order-card,
.admin-product-card {
    background: var(--bg-color);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.admin-order-info,
.admin-product-info {
    flex: 1;
}

.admin-order-info h4,
.admin-product-info h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.admin-order-info p,
.admin-product-info p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.admin-order-actions,
.admin-product-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-contact-info {
    font-size: 0.8125rem;
    line-height: 1.6;
    white-space: pre-line;
}

.setting-item {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-item label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.setting-item .admin-input {
    margin-bottom: 12px;
}

/* ============================================
   底部导航（移动端）
   ============================================ */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    z-index: 99;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 4px 16px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.6875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bottom-nav-item .nav-icon {
    font-size: 1.25rem;
}

.bottom-nav-item.active {
    color: var(--primary-color);
}

/* ============================================
   响应式调整
   ============================================ */
@media (min-width: 768px) {
    .bottom-nav {
        display: none;
    }
    
    body {
        padding-bottom: 0;
    }
    
    .modal-content {
        border-radius: var(--radius-lg);
        margin: auto;
        max-height: 85vh;
    }
}

@media (max-width: 767px) {
    .nav-tabs {
        display: none;
    }
    
    .header-content {
        justify-content: center;
    }
}

/* ============================================
   滚动条美化
   ============================================ */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ============================================
   加载动画
   ============================================ */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   提示消息
   ============================================ */
.toast {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-xl);
    font-size: 0.875rem;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2000;
    white-space: nowrap;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ============================================
   状态标签
   ============================================ */
.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.status-pending {
    background: #FFF9C4;
    color: #F57F17;
}

.status-confirmed {
    background: #C8E6C9;
    color: #2E7D32;
}

.status-shipped {
    background: #BBDEFB;
    color: #1565C0;
}

.status-delivered {
    background: #E1BEE7;
    color: #6A1B9A;
}

/* ============================================
   产品管理表单样式
   ============================================ */
.product-form-area {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 16px;
    box-shadow: var(--shadow-sm);
}

.product-form-area h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.product-form .form-group {
    margin-bottom: 14px;
}

.product-form .form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.product-form .admin-input,
.product-form .admin-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: inherit;
    background: #FAFAFA;
    transition: border-color 0.2s;
}

.product-form .admin-input:focus,
.product-form .admin-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
}

.product-form .admin-textarea {
    resize: vertical;
    min-height: 80px;
}

.product-form .form-row {
    display: flex;
    gap: 12px;
}

.product-form .form-row .form-group {
    flex: 1;
}

.product-form .form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.product-form .form-actions .btn-primary {
    flex: 1;
}

.product-image-preview {
    max-width: 120px;
    max-height: 120px;
    border-radius: var(--radius-sm);
    margin-top: 8px;
    border: 1px solid var(--border-color);
}

.product-form small {
    display: block;
    margin-top: 4px;
    font-size: 0.75rem;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.status-pending {
    background: #FFF9C4;
    color: #F57F17;
}

.status-confirmed {
    background: #C8E6C9;
    color: #2E7D32;
}

.status-shipped {
    background: #BBDEFB;
    color: #1565C0;
}

.status-delivered {
    background: #E1BEE7;
    color: #6A1B9A;
}

/* ============================================
   图片上传区域样式
   ============================================ */
.image-upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #FAFAFA;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.image-upload-zone:hover,
.image-upload-zone.drag-over {
    border-color: var(--primary-color);
    background: #F3E5F5;
}

.upload-placeholder {
    color: var(--text-muted);
}

.upload-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 8px;
}

.upload-placeholder p {
    font-size: 0.85rem;
    line-height: 1.5;
}

.product-image-preview {
    max-width: 200px;
    max-height: 200px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

/* 上架表单底部按钮区 */
.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.form-actions .btn-primary {
    flex: 1;
}

/* 表单行 */
.form-row {
    display: flex;
    gap: 12px;
}

.form-row .form-group {
    flex: 1;
}

.product-form small {
    display: block;
    margin-top: 4px;
    font-size: 0.75rem;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.status-pending {
    background: #FFF9C4;
    color: #F57F17;
}

.status-confirmed {
    background: #C8E6C9;
    color: #2E7D32;
}

.status-shipped {
    background: #BBDEFB;
    color: #1565C0;
}

.status-delivered {
    background: #E1BEE7;
    color: #6A1B9A;
}

.status-cancelled {
    background: #FFCDD2;
    color: #C62828;
}
