:root {
    --primary: #FF6B6B;
    --primary-dark: #FF5252;
    --secondary: #4ECDC4;
    --secondary-dark: #26A69A;
    --accent: #FFD166;
    --dark: #2D3047;
    --light: #F7F9FC;
    --gray-light: #F0F2F5;
    --gray: #D1D5DB;
    --gray-dark: #6B7280;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

.app-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* 侧边栏分组导航 */
.sidebar {
    width: 280px;
    background: white;
    border-right: 1px solid var(--gray);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--gray);
    position: relative;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.search-box {
    margin-top: 15px;
}

.search-box input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--gray);
    border-radius: 8px;
    font-size: 14px;
    background: var(--gray-light);
    transition: border-color 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
}

.category-nav {
    flex: 1;
    padding: 15px 0;
}

.category-item {
    padding: 12px 20px;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

.category-item:hover {
    background: var(--gray-light);
}

.category-item.active {
    background: linear-gradient(90deg, rgba(255, 107, 107, 0.1), transparent);
    border-left-color: var(--primary);
    color: var(--primary);
}

.category-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.stats-section {
    padding: 20px;
    border-top: 1px solid var(--gray);
}

.stats-label {
    font-size: 12px;
    color: var(--gray-dark);
    margin-bottom: 10px;
}

.stats-numbers {
    display: flex;
    gap: 20px;
}

.stat-item {
    flex: 1;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.stat-label-small {
    font-size: 12px;
    color: var(--gray-dark);
}

/* 主内容区 */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.content-header {
    padding: 15px 25px;
    background: white;
    border-bottom: 1px solid var(--gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 汉堡菜单按钮 - 仅手机端显示 */
.sidebar-toggle-btn {
    display: none;
    padding: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--gray-dark);
    flex: 1;
    margin-left: 15px;
}

.view-controls {
    display: flex;
    gap: 10px;
}

.view-btn {
    padding: 8px 16px;
    border: 1px solid var(--gray);
    border-radius: 6px;
    background: white;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

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

.view-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* 商品网格区 */
.products-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.category-header {
    margin-bottom: 20px;
}

.category-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 5px;
}

.category-desc {
    color: var(--gray-dark);
    font-size: 14px;
}

/* 网格视图 */
.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.list-view {
    display: none;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.product-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid var(--gray-light);
}

.product-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-desc {
    font-size: 13px;
    color: var(--gray-dark);
    margin-bottom: 10px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.product-tags {
    display: flex;
    gap: 5px;
}

.tag {
    padding: 3px 8px;
    background: var(--gray-light);
    border-radius: 4px;
    font-size: 11px;
    color: var(--gray-dark);
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.quantity-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--gray);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.quantity-btn:hover {
    background: var(--gray-light);
}

.quantity-input {
    width: 60px;
    height: 36px;
    border: 1px solid var(--gray);
    border-radius: 6px;
    text-align: center;
    font-size: 16px;
}

.quantity-input:focus {
    outline: none;
    border-color: var(--primary);
}

.add-btn {
    width: 100%;
    padding: 10px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.add-btn:hover {
    background: var(--primary-dark);
}

.add-btn.added {
    background: var(--secondary);
}

.add-btn.added:hover {
    background: var(--secondary-dark);
}

/* 列表视图 */
.product-list-item {
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    padding: 15px;
    gap: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.product-image-small {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.product-info-list {
    flex: 1;
}

/* 订单面板 */
.order-panel {
    width: 350px;
    background: white;
    border-left: 1px solid var(--gray);
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.order-header {
    padding: 20px;
    border-bottom: 1px solid var(--gray);
    flex-shrink: 0;
    position: relative;
}

.order-header h3 {
    margin-bottom: 15px;
}

.order-header-buttons {
    display: flex;
    gap: 10px;
}

.primary-btn {
    flex: 1;
    padding: 10px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.primary-btn:hover {
    background: var(--primary-dark);
}

.secondary-btn {
    padding: 10px 20px;
    border: 1px solid var(--gray);
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

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

.order-items-container {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.order-items {
    padding: 20px;
}

.empty-cart {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray-dark);
}

.empty-cart-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.empty-cart-text {
    font-size: 16px;
    margin-bottom: 5px;
}

.empty-cart-subtext {
    font-size: 14px;
}

.order-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-light);
}

.order-item-info {
    flex: 1;
}

.order-item-name {
    font-weight: 500;
    margin-bottom: 3px;
}

.order-item-price {
    font-size: 13px;
    color: var(--gray-dark);
}

.order-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-item-quantity span {
    min-width: 30px;
    text-align: center;
}

.remove-btn {
    width: 24px;
    height: 24px;
    border: 1px solid var(--gray);
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-btn:hover {
    border-color: var(--danger);
    color: var(--danger);
}

.order-footer {
    padding: 20px;
    border-top: 1px solid var(--gray);
    flex-shrink: 0;
    max-height: 50vh;
    overflow-y: auto;
}

.order-totals {
    margin-bottom: 20px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 16px;
}

.grand-total {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    border-top: 2px solid var(--gray-light);
    padding-top: 10px;
}

.customer-info-section {
    margin-bottom: 20px;
}

.customer-info-header {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--gray);
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group input.error,
.form-group textarea.error {
    border-color: var(--danger);
}

.payment-section {
    margin-bottom: 20px;
    padding: 10px;
    background: var(--gray-light);
    border-radius: 8px;
}

.payment-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-method {
    font-weight: 600;
    color: var(--primary);
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 20px;
}

.checkout-btn:hover {
    background: var(--secondary-dark);
}

.order-management-section {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
}

.order-management-section .secondary-btn {
    flex: 1;
    text-align: center;
}

.export-section {
    text-align: center;
}

.export-btn {
    padding: 10px 20px;
    background: var(--accent);
    color: var(--dark);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 8px;
    transition: all 0.2s;
}

.export-btn:hover {
    background: #FFC043;
}

.saved-count {
    font-size: 12px;
    color: var(--gray-dark);
}

/* 侧边栏关闭按钮 */
.sidebar-close-btn {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--gray-light);
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
    align-items: center;
    justify-content: center;
}

/* 购物车面板关闭按钮 */
.order-panel-close-btn {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--gray-light);
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
    align-items: center;
    justify-content: center;
}

/* 移动端订单面板切换按钮 */
.toggle-order-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    z-index: 99;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    display: none;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.cart-count {
    font-size: 12px;
    background: white;
    color: var(--primary);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 遮罩层 */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.overlay.active {
    display: block;
}

/* 成功提示 */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--success);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    animation: slideIn 0.3s ease;
    font-size: 14px;
    display: none;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--light);
    flex-shrink: 0;
}

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

.modal-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray-dark);
    padding: 5px;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

/* 编辑订单头部样式 */
.edit-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray);
}

.danger-btn {
    background: var(--danger) !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    transition: all 0.2s !important;
}

.danger-btn:hover {
    background: #DC2626 !important;
}

/* 订单选择列表样式 */
.order-select-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.order-select-item {
    padding: 12px;
    border: 1px solid var(--gray);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.order-select-item:hover {
    border-color: var(--primary);
    background: var(--gray-light);
}

.order-select-item.selected {
    border-color: var(--primary);
    background: rgba(255, 107, 107, 0.1);
}

.order-select-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 5px;
}

.order-select-id {
    font-weight: 600;
    color: var(--dark);
}

.order-select-amount {
    text-align: right;
    color: var(--primary);
    font-weight: 600;
}

.order-select-customer {
    font-size: 14px;
    color: var(--gray-dark);
}

.order-select-time {
    font-size: 12px;
    color: var(--gray-dark);
    text-align: right;
}

.order-select-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

/* 恢复订单按钮样式 */
.restore-order-btn {
    background: var(--success) !important;
    color: white !important;
    border: none !important;
    padding: 5px 10px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 12px !important;
    transition: all 0.2s !important;
    margin-top: 8px !important;
    width: 100% !important;
}

.restore-order-btn:hover {
    background: #0DA271 !important;
}

/* 编辑订单商品项优化样式 */
.edit-order-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 12px;
    border: 1px solid var(--gray);
    border-radius: 8px;
    margin-bottom: 10px;
    background: white;
}

.edit-order-item-main {
    display: flex;
    align-items: center;
    gap: 10px;
}

.edit-order-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.edit-order-item-info {
    flex: 1;
}

.edit-order-item-name {
    font-weight: 500;
    margin-bottom: 5px;
}

.edit-order-item-price {
    font-size: 14px;
    color: var(--gray-dark);
}

.edit-order-item-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
}

.edit-order-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.edit-order-item-total {
    font-weight: 600;
    color: var(--primary);
    font-size: 16px;
    margin-bottom: 5px;
}

.delete-item-btn {
    padding: 4px 10px;
    font-size: 12px;
    border: 1px solid var(--danger);
    background: white;
    color: var(--danger);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.delete-item-btn:hover {
    background: var(--danger);
    color: white;
}

/* 空状态提示 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray-dark);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 10px;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 16px;
    margin-bottom: 5px;
}

.empty-state-subtext {
    font-size: 14px;
    color: var(--gray);
}

/* 状态标签 */
.status-badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.status-saved {
    background: #E0F2FE;
    color: #0369A1;
}

.status-paid {
    background: #DCFCE7;
    color: #166534;
}

.status-completed {
    background: #FEF3C7;
    color: #92400E;
}

.status-cancelled {
    background: #FEE2E2;
    color: #991B1B;
}

/* 添加商品模态框样式 */
.product-select-list {
    display: grid;
    gap: 10px;
}

.product-select-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--gray);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.product-select-item:hover {
    border-color: var(--primary);
    background: var(--gray-light);
}

.product-select-item.active {
    border-color: var(--primary);
    background: rgba(255, 107, 107, 0.1);
}

.product-select-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 15px;
}

.product-select-info {
    flex: 1;
}

.product-select-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.product-select-price {
    color: var(--primary);
    font-weight: 600;
}

/* 表单控件 */
.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--gray);
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 10px;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--dark);
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--gray);
}

/* 确认删除模态框 */
.confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1002;
    display: none;
    align-items: center;
    justify-content: center;
}

.confirm-modal.active {
    display: flex;
}

.confirm-modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    padding: 30px;
    text-align: center;
}

.confirm-modal-icon {
    font-size: 48px;
    color: var(--danger);
    margin-bottom: 15px;
}

.confirm-modal-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark);
}

.confirm-modal-message {
    color: var(--gray-dark);
    margin-bottom: 25px;
    line-height: 1.5;
}

.confirm-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    /* 显示汉堡菜单按钮 */
    .sidebar-toggle-btn {
        display: block;
    }
    
    /* 默认隐藏侧边栏 */
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        width: 280px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    }
    
    /* 侧边栏激活状态 */
    .sidebar.active {
        transform: translateX(0);
    }
    
    /* 显示侧边栏关闭按钮 */
    .sidebar-close-btn {
        display: flex;
    }
    
    /* 显示购物车面板关闭按钮 */
    .order-panel-close-btn {
        display: flex;
    }
    
    /* 购物车面板样式 */
    .order-panel {
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        width: 100%;
        max-width: 400px;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    }
    
    .order-panel.active {
        transform: translateX(0);
    }
    
    /* 主内容区全屏 */
    .main-content {
        width: 100%;
    }
    
    /* 调整内容头部间距 */
    .content-header {
        padding: 15px 20px;
    }
    
    /* 调整商品网格 */
    .grid-view {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
    
    /* 调整商品卡片样式 */
    .product-card {
        min-height: 320px;
    }
    
    .product-image {
        height: 150px;
    }
    
    /* 调整商品操作按钮 */
    .quantity-control {
        flex-wrap: wrap;
    }
    
    .quantity-input {
        width: 50px;
    }
}

@media (max-width: 768px) {
    /* 侧边栏全屏 */
    .sidebar {
        width: 100%;
        max-width: 100%;
    }
    
    /* 购物车面板全屏 */
    .order-panel {
        max-width: 100%;
    }
    
    /* 商品网格调整 */
    .grid-view {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }
    
    /* 调整商品卡片 */
    .product-card {
        min-height: 300px;
    }
    
    .product-image {
        height: 120px;
    }
    
    /* 调整商品信息 */
    .product-info {
        padding: 12px;
    }
    
    .product-name {
        font-size: 14px;
    }
    
    .product-desc {
        font-size: 12px;
    }
    
    .product-price {
        font-size: 16px;
    }
    
    /* 调整操作按钮 */
    .quantity-control {
        margin-bottom: 10px;
    }
    
    .quantity-btn {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    
    .quantity-input {
        width: 40px;
        height: 30px;
        font-size: 14px;
    }
    
    .add-btn {
        padding: 8px;
        font-size: 14px;
    }
    
    /* 调整内容头部 */
    .content-header {
        flex-direction: row;
        align-items: center;
    }
    
    .breadcrumb {
        font-size: 12px;
    }
    
    .view-controls {
        font-size: 12px;
    }
    
    .view-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    /* 调整底部订单按钮 */
    .toggle-order-btn {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }
    
    .cart-count {
        width: 18px;
        height: 18px;
        font-size: 10px;
    }
}

/* 防止页面滚动当侧边栏或购物车打开时 */
body.no-scroll {
    overflow: hidden;
}

/* 表单验证样式 */
.error-message {
    color: var(--danger);
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.form-group input.error + .error-message,
.form-group textarea.error + .error-message {
    display: block;
}