/* 产品分类页面样式 - 左侧导航 + 右侧内容布局 */
.product-page-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    gap: 20px;
    background: #f5f5f5;
    height: calc(100vh - 92px);
    overflow: hidden;
}

/* 左侧分类导航 */
.product-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow-y: auto;
    overflow-x:hidden;
}

.sidebar-header {
    background: var(--primary);
    color: #fff;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px 4px 0 0;
}

/* 多级菜单样式 */
.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-menu li:last-child {
    border-bottom: none;
}

.menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    position: relative;
}

.menu-item a {
    flex: 1;
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.menu-item a:hover,
.menu-item a.active {
    background: #f8f8f8;
    color: var(--primary);
}

.menu-item a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
}

/* 展开/收起按钮 */
.toggle-btn {
    width: 36px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #999;
    font-size: 12px;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
}

.toggle-btn:hover {
    color: var(--primary);
    background: transparent;
}

.toggle-btn.expanded {
    transform: rotate(90deg);
}

/* 子菜单 */
.submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #fafafa;
    display: none;
}

.submenu.expanded {
    display: block;
}

.submenu li {
    border-bottom: 1px solid #f0f0f0;
}

.submenu li:last-child {
    border-bottom: none;
}

.submenu .menu-item a {
    padding-left: 30px;
    font-size: 13px;
    color: #666;
}

.submenu .submenu .menu-item a {
    padding-left: 45px;
    font-size: 12px;
}

.submenu .menu-item a:hover,
.submenu .menu-item a.active {
    background: #f0f0f0;
    color: var(--primary);
}

/* 右侧内容区域 */
.product-main-content {
    flex: 1;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 25px;
    overflow-y: auto;
}

/* 面包屑导航 */
.breadcrumb-nav {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.breadcrumb-nav a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.breadcrumb-nav a:hover {
    color: var(--primary);
}

.breadcrumb-nav .separator {
    margin: 0 8px;
    color: #ccc;
}

.breadcrumb-nav .current {
    color: #333;
    font-weight: 500;
}

/* 页面标题 */
.page-title {
    font-size: 20px;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

/* 分类卡片网格 - 每行4个 */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-state i {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #666;
    font-size: 18px;
    margin-bottom: 10px;
}

.empty-state p {
    color: #999;
    font-size: 14px;
}

/* 产品表格样式 */
.product-table-container {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 1px solid #e8e8e8;
}

.product-table {
    width: 100%;
    border-collapse: collapse;
}

.product-table th {
    background: var(--primary);
    padding: 8px 10px;
    text-align: left;
    font-weight: 600;
    color: #fff;
    border: 1px solid var(--table-header-border);
    font-size: 13px;
}

.product-table td {
    padding: 6px 10px;
    border: 1px solid #e0e0e0;
    vertical-align: middle;
    font-size: 13px;
}

.product-table tbody tr {
    background: #fff;
}

.product-table tbody tr:hover {
    background: #f5f5f5;
}

.product-table tbody tr.expanded-row {
    background: var(--table-row-highlight);
}

.product-name {
    font-weight: 500;
    color: #333;
}

.add-cart-btn {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.add-cart-btn:hover {
    background: var(--primary-dark);
}

.add-cart-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.add-cart-btn.added {
    background: #52c41a;
}

/* 内联数量输入组 */
.inline-qty-wrap {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d9d9d9;
    border-radius: 3px;
    overflow: hidden;
}

.qty-minus-btn,
.qty-plus-btn {
    width: 24px;
    height: 30px;
    border: none;
    background: #f5f5f5;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    transition: all 0.2s;
}

.qty-minus-btn:hover,
.qty-plus-btn:hover {
    background: #e8e8e8;
    color: var(--primary);
}

.inline-qty-input {
    width: 46px;
    height: 30px;
    border: none;
    border-left: 1px solid #d9d9d9;
    border-right: 1px solid #d9d9d9;
    text-align: center;
    font-size: 13px;
    color: #333;
    outline: none;
    padding: 0 2px;
    -moz-appearance: textfield;
}

.inline-qty-input::-webkit-outer-spin-button,
.inline-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.inline-qty-input:focus {
    background: #fafafa;
}

/* 内联添加购物车按钮 */
.inline-cart-btn {
    padding: 4px 14px;
    font-size: 13px;
    line-height: 24px;
}

.product-table .price {
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

/* 展开按钮 */
.expand-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    cursor: pointer;
    color: #666;
    font-size: 12px;
    transition: transform 0.2s ease;
    border: none;
    background: transparent;
}

.expand-btn:hover {
    color: var(--primary);
}

.expand-btn.expanded {
    transform: rotate(90deg);
}

/* 规格详情行 */
.spec-detail-row {
    display: none;
    background: #fafafa;
}

.spec-detail-row.expanded {
    display: table-row;
}

.spec-detail-content {
    padding: 15px;
    min-height: 250px;
}

/* Loading状态 */
.detail-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    color: #999;
    font-size: 14px;
}

.detail-loading i {
    font-size: 24px;
    margin-bottom: 10px;
    color: #1890ff;
}

/* 图片切换区域样式 */
.sku-image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sku-image-wrapper {
    width: 200px;
    height: 200px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sku-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sku-image-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.sku-image-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d0d0d0;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    padding: 0;
}

.sku-image-dot:hover {
    background: #999;
}

.sku-image-dot.active {
    background: var(--primary);
}

.sku-no-image {
    color: #ccc;
    font-size: 48px;
}

/* SKU信息区域 - 左右布局 */
.sku-info-section {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.sku-info-left {
    flex: 0 0 auto;
}

.sku-info-right {
    flex: 1;
    min-width: 0;
}

/* 资源文件区域 */
.resource-files-section {
    min-height: 200px;
}

.resource-files-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.resource-file-item {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: #333;
}

.resource-file-item:hover {
    background: #e8f4f8;
    border-color: #1890ff;
    color: #1890ff;
}

.resource-file-item.has-multiple {
    background: #fff8f0;
    border-color: #ff9800;
}

.resource-file-item.has-multiple:hover {
    background: #fff3e0;
    border-color: #e65100;
}

.resource-file-ext {
    color: #666;
    margin-right: 5px;
    font-weight: 500;
}

.resource-loading {
    color: #999;
    font-size: 12px;
    padding: 10px 0;
}

.resource-empty {
    color: #999;
    font-size: 12px;
    padding: 10px 0;
}

/* 规格参数区域 */
.specs-section {
    margin-top: 15px;
}

.spec-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.spec-item {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    font-size: 12px;
}

.spec-item .spec-name {
    color: #666;
    margin-right: 5px;
}

.spec-item .spec-value {
    color: #333;
    font-weight: 500;
}

.spec-loading {
    color: #999;
    font-size: 12px;
}

.spec-empty {
    color: #999;
    font-size: 12px;
}

/* 规格参数网格展示 */
.spec-section-title {
    font-size: 14px;
    color: #333;
    margin: 12px 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.specs-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.specs-grid-item {
    display: inline-flex;
    align-items: center;
    background: #f7f8fa;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
    font-size: 13px;
}

.specs-grid-name {
    color: #666;
    padding: 5px 6px 5px 12px;
    white-space: nowrap;
}

.specs-grid-value {
    color: #333;
    padding: 5px 12px 5px 4px;
    font-weight: 500;
}

/* 产品详情展开区域 - 图片+文件左右布局 */
.product-detail-layout {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.product-image-section {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-image-wrapper {
    width: 220px;
    height: 220px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-no-image {
    color: #ccc;
    font-size: 48px;
}

.product-image-dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    max-width: 220px;
}

.product-files-section {
    flex: 1;
    min-width: 0;
}

.download-file-btn {
    cursor: pointer;
}

.download-file-btn:hover {
    background: #e8f4f8;
    border-color: var(--primary);
    color: var(--primary);
}

/* 产品列表页面专用样式 - 只作用于.product-ent-page容器内 */
.product-ent-page {
    padding: 20px 50px;
    background: #f8f9fa;
    min-height: 600px;
}

/* 导航栏样式 - 保持在一行内，使用网站主色调 */
.product-ent-page .category-nav {
    background: #fff;
    padding: 12px 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--primary);
}

.product-ent-page .category-nav .breadcrumb {
    background: transparent;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
}

.product-ent-page .category-nav .breadcrumb-item {
    white-space: nowrap;
}

.product-ent-page .category-nav .breadcrumb-item a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.product-ent-page .category-nav .breadcrumb-item a:hover {
    color: var(--primary);
}

.product-ent-page .category-nav .breadcrumb-item.active {
    color: #333;
    font-weight: 500;
}

.product-ent-page .category-nav .breadcrumb-item + .breadcrumb-item::before {
    color: #999;
    content: ">";
    padding: 0 10px;
}

/* 页面标题 */
.product-ent-page .page-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.product-ent-page .page-header h1 {
    font-size: 24px;
    color: #333;
    margin: 0;
    font-weight: 600;
    border-left: 4px solid var(--primary);
    padding-left: 15px;
}

/* 产品列表样式 - 每行四个 */
.product-ent-page .product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.product-ent-page .product-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
    border: 1px solid transparent;
}

.product-ent-page .product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--primary);
}

.product-ent-page .product-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-ent-page .product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-ent-page .product-image .placeholder {
    color: #999;
    font-size: 14px;
    text-align: center;
}

.product-ent-page .product-info {
    padding: 15px;
    text-align: center;
    background: #fff;
}

.product-ent-page .product-name {
    font-size: 16px;
    color: #333;
    font-weight: 500;
    margin: 0 0 8px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-ent-page .product-model {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.product-ent-page .product-serial {
    font-size: 12px;
    color: #999;
    margin: 5px 0 0 0;
}

/* 空状态提示 */
.product-ent-page .empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.product-ent-page .empty-state h3 {
    color: #666;
    font-size: 18px;
    margin-bottom: 10px;
}

.product-ent-page .empty-state p {
    color: #999;
    font-size: 14px;
}

.product-ent-page .btn-back {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 30px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.product-ent-page .btn-back:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* 响应式布局 */
@media (max-width: 1200px) {
    .product-ent-page .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .product-ent-page .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .product-ent-page .product-grid {
        grid-template-columns: 1fr;
    }
}

/* 飞入购物车动画标签 */
.fly-cart-badge {
    position: fixed;
    z-index: 99999;
    min-width: 30px;
    height: 22px;
    line-height: 22px;
    padding: 0 6px;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    border-radius: 11px;
    box-shadow: 0 2px 8px rgba(1, 99, 211, 0.4);
    pointer-events: none;
    transition: all 0.45s cubic-bezier(0.55, 0, 1, 0.45);
}

.fly-cart-badge.flying {
    opacity: 0;
    transform: scale(0.5);
}

/* ===== 购物车页面 ===== */
.cart-page-container {
    background: #f5f6f8;
    min-height: 600px;
}

.cart-page-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 0 60px 0;
}

.cart-page-wrap .breadcrumb-nav {
    padding: 8px 0;
    font-size: 13px;
    color: #999;
}

.cart-page-wrap .breadcrumb-nav a {
    color: #666;
    text-decoration: none;
}

.cart-page-wrap .breadcrumb-nav a:hover {
    color: var(--primary);
}

.cart-page-wrap .breadcrumb-nav .separator {
    margin: 0 8px;
    color: #ccc;
}

.cart-page-wrap .breadcrumb-nav .current {
    color: #333;
    font-weight: 500;
}

.cart-page-wrap .page-title {
    font-size: 22px;
    color: #333;
    font-weight: 600;
    margin: 12px 0 24px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
}

/* 购物车表格 */
.cart-table-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table thead {
    background: #fafafa;
    border-bottom: 1px solid #eee;
}

.cart-table thead th {
    padding: 14px 12px;
    font-size: 13px;
    color: #666;
    font-weight: 500;
    text-align: left;
}

.cart-table thead th:nth-child(4),
.cart-table thead th:nth-child(5) {
    text-align: center;
}

.cart-table tbody td {
    padding: 16px 12px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.cart-table .cart-row:last-child td {
    border-bottom: none;
}

/* 图片 */
.cart-image-cell {
    text-align: center;
}

.cart-product-image {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 4px;
    background: #fafafa;
    border: 1px solid #eee;
}

.cart-no-image {
    width: 70px;
    height: 70px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 24px;
    margin: 0 auto;
}

/* 产品信息 */
.cart-product-name {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    margin-bottom: 4px;
    line-height: 1.4;
}

.cart-product-desc {
    font-size: 12px;
    color: #999;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 单价 */
.cart-price-cell,
.cart-subtotal-cell {
    text-align: center;
}

.cart-price,
.cart-subtotal {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.cart-subtotal {
    color: #e74c3c;
    font-weight: 600;
}

/* 数量控制 */
.cart-qty-cell {
    text-align: center;
}

.cart-qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    overflow: hidden;
}

.cart-qty-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: #f5f5f5;
    color: #666;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-weight: 600;
}

.cart-qty-btn:hover {
    background: #e8e8e8;
    color: var(--primary);
}

.cart-qty-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.cart-qty-input {
    width: 50px;
    height: 30px;
    border: none;
    border-left: 1px solid #d9d9d9;
    border-right: 1px solid #d9d9d9;
    text-align: center;
    font-size: 14px;
    color: #333;
    outline: none;
    -moz-appearance: textfield;
}

.cart-qty-input::-webkit-outer-spin-button,
.cart-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* 移除按钮 */
.cart-remove-btn {
    padding: 4px 10px;
    background: transparent;
    color: #e74c3c;
    border: 1px solid #e74c3c;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cart-remove-btn:hover {
    background: #e74c3c;
    color: #fff;
}

/* 底部操作栏 */
.cart-footer {
    margin-top: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-total-info {
    font-size: 14px;
    color: #666;
}

.cart-total-count {
    color: var(--primary);
    font-weight: 600;
}

.cart-total-price {
    color: #e74c3c;
    font-size: 20px;
    font-weight: 700;
}

.cart-purchase-btn {
    padding: 12px 40px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cart-purchase-btn:hover {
    background: var(--primary-dark);
}

/* 空购物车 */
.cart-empty-state {
    text-align: center;
    padding: 80px 20px 100px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.cart-empty-state i {
    font-size: 64px;
    color: #ccc;
    margin-bottom: 16px;
}

.cart-empty-state h3 {
    font-size: 18px;
    color: #666;
    margin: 0 0 8px 0;
}

.cart-empty-state p {
    font-size: 14px;
    color: #999;
    margin: 0 0 20px 0;
}

.cart-go-shop-btn {
    display: inline-block;
    padding: 10px 30px;
    background: var(--primary);
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.cart-go-shop-btn:hover {
    background: var(--primary-dark);
    color: #fff;
    text-decoration: none;
}

/* ===== 提交订单对话框 ===== */
.order-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-dialog {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
    width: 480px;
    max-width: 95vw;
}

.dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid #eee;
    background: #fafafa;
}

.dialog-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    padding-right: 16px;
}

.dialog-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.dialog-close:hover {
    color: #333;
    background: #eee;
}

.dialog-body {
    padding: 24px;
    overflow-y: auto;
}

.order-form {
    padding: 4px 0;
}

.order-form-group {
    margin-bottom: 16px;
}

.order-form-label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 6px;
    font-weight: 500;
}

.order-form-label .required {
    color: #e74c3c;
}

.order-form-input {
    width: 100%;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.order-form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(1, 99, 211, 0.1);
}

.order-form-textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
    resize: vertical;
    font-family: inherit;
}

.order-form-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(1, 99, 211, 0.1);
}

.order-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.order-cancel-btn {
    padding: 8px 24px;
    background: #fff;
    color: #666;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.order-cancel-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.order-submit-btn {
    padding: 8px 24px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.order-submit-btn:hover {
    background: var(--primary-dark);
}

.order-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* ========== 右侧筛选面板 ========== */
.filter-panel-wrapper {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    align-items: flex-start;
}

.filter-toggle {
    background: var(--primary);
    color: #fff;
    padding: 14px 10px;
    border-radius: 4px 0 0 4px;
    cursor: pointer;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 15px;
    letter-spacing: 3px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    user-select: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.3s;
}
.filter-toggle i {
    font-size: 18px;
}
.filter-toggle.hidden {
    opacity: 0;
    pointer-events: none;
}

.filter-panel {
    width: 320px;
    max-height: 75vh;
    background: #fff;
    box-shadow: -2px 0 16px rgba(0,0,0,0.12);
    border-radius: 8px 0 0 8px;
    overflow: hidden;
    display: none;
    flex-direction: column;
}

.filter-panel.open {
    display: flex;
}

.filter-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid #eee;
    background: #fafafa;
}
.filter-panel-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}
.filter-panel-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 0 4px;
}
.filter-panel-close:hover {
    color: #333;
}

.filter-panel-body {
    padding: 16px 18px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}
.filter-loading {
    text-align: center;
    color: #999;
    padding: 40px 0;
    font-size: 14px;
}
.filter-loading i {
    margin-right: 6px;
}

.filter-group {
    margin-bottom: 16px;
}
.filter-group:last-child {
    margin-bottom: 0;
}
.filter-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}
.filter-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}
.filter-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(1, 99, 211, 0.1);
}
.filter-range-row {
    display: flex;
    gap: 8px;
    align-items: center;
}
.filter-range-row .filter-input {
    flex: 1;
    min-width: 0;
}
.filter-range-sep {
    color: #999;
    font-size: 13px;
}
.filter-select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    outline: none;
    box-sizing: border-box;
    cursor: pointer;
}
.filter-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(1, 99, 211, 0.1);
}
.filter-empty {
    text-align: center;
    color: #bbb;
    padding: 40px 0;
    font-size: 14px;
}

.filter-panel-footer {
    padding: 12px 18px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}
.btn-filter-search {
    padding: 8px 28px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-filter-search:hover {
    background: var(--primary-dark);
}
.btn-filter-reset {
    padding: 8px 16px;
    background: #fff;
    color: #666;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-filter-reset:hover {
    color: var(--primary);
    border-color: var(--primary);
}

/* ========== 图片灯箱 Modal ========== */
#imageLightboxModal .modal-dialog {
    max-width: 100vw;
    height: 100vh;
    margin: 0;
}
#imageLightboxModal .modal-content {
    background: rgba(80, 80, 80, 0.85);
    border: none;
    border-radius: 0;
    height: 100vh;
}
#imageLightboxModal .modal-header {
    border-bottom: none;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: transparent;
}
.lightbox-close {
    position: absolute;
    right: 20px;
    top: 12px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 24px;
    line-height: 36px;
    text-align: center;
    cursor: pointer;
    border-radius: 4px;
    padding: 0;
    z-index: 11;
}
.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.4);
}
.lightbox-counter {
    color: #fff;
    font-size: 14px;
    user-select: none;
}
#imageLightboxModal .modal-body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 80px;
    height: 100%;
    position: relative;
}
.lightbox-image {
    max-width: 100%;
    max-height: calc(100vh - 120px);
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    width: 48px;
    height: 72px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: background 0.2s;
    z-index: 10;
}
.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}
.lightbox-nav:focus {
    outline: none;
}
.lightbox-prev {
    left: 16px;
}
.lightbox-next {
    right: 16px;
}