/* 吾侪照片打印插件 - 修复版 CSS */
/* 重置和基础样式 */
.wuchai-container * {
    box-sizing: border-box;
}

.wuchai-container {
    max-width: 1200px;
    margin: 20px auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 30px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    position: relative;
    z-index: 1;
}

/* Tabs 标签页 */
.wuchai-tabs {
    display: flex;
    border-bottom: 2px solid #f0f0f1;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.wuchai-tab {
    padding: 10px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #646970;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
}

.wuchai-tab:hover {
    color: #2271b1;
}

.wuchai-tab.active {
    color: #2271b1;
    border-bottom-color: #2271b1;
    font-weight: 600;
}

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

.wuchai-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.wuchai-login-tip {
    margin-left: auto;
    color: #999;
    font-size: 14px;
    align-self: center;
    padding: 10px 20px;
}

/* 头部 */
.wuchai-header {
    border-bottom: 2px solid #f0f0f1;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.wuchai-header h2 {
    margin: 0 0 10px 0;
    color: #1d2327;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
}

.wuchai-header p {
    margin: 0;
    color: #646970;
}

/* 工作区布局 */
.wuchai-workspace {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    min-height: 500px;
}

.wuchai-sidebar {
    flex: 1;
    min-width: 280px;
    max-width: 320px;
    border-right: 1px solid #f0f0f1;
    padding-right: 30px;
    display: flex;
    flex-direction: column;
}

.wuchai-main {
    flex: 2;
    min-width: 320px;
}

.wuchai-section-title {
    font-weight: 600;
    margin-bottom: 15px;
    color: #1d2327;
    font-size: 16px;
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.wuchai-section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 16px;
    background: #2271b1;
    margin-right: 8px;
    border-radius: 2px;
}

/* 按钮组 */
.wuchai-actions-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.wuchai-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    background: #f6f7f7;
    color: #2271b1;
    border-color: #2271b1;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 5px;
}

.wuchai-btn:hover {
    background: #f0f6fc;
    border-color: #135e96;
    color: #135e96;
}

.wuchai-btn-primary {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

.wuchai-btn-primary:hover {
    background: #135e96;
    border-color: #135e96;
    color: #fff;
}

.wuchai-btn-success {
    background: #00a32a;
    color: #fff;
    border-color: #00a32a;
}

.wuchai-btn-success:hover {
    background: #008a20;
    border-color: #008a20;
}

.wuchai-btn-info {
    background: #72aee6;
    color: #fff;
    border-color: #72aee6;
}

.wuchai-btn-info:hover {
    background: #5c9dd4;
    border-color: #5c9dd4;
}

.wuchai-btn-secondary {
    background: #f0c33c;
    border-color: #f0c33c;
    color: #000;
}

.wuchai-btn-secondary:hover {
    background: #d4b12f;
    border-color: #d4b12f;
}

/* 媒体列表 (左侧) */
.wuchai-media-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 12px;
    max-height: 500px;
    overflow-y: auto;
    padding: 5px;
    border: 1px solid #f0f0f1;
    border-radius: 6px;
    background: #fafafa;
    flex-grow: 1;
}

.wuchai-pool-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.wuchai-pool-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wuchai-pool-item.active {
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.2);
}

.wuchai-pool-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    color: #fff;
}

.wuchai-pool-item:hover .wuchai-pool-overlay {
    opacity: 1;
}

/* 预览区域 (右侧) */
.wuchai-preview-area {
    min-height: 250px;
    background: #f9f9f9;
    border: 2px dashed #ddd;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px;
    margin-bottom: 25px;
    align-content: flex-start;
    transition: border-color 0.3s;
    flex-grow: 1;
}

.wuchai-preview-area:hover {
    border-color: #bbb;
}

.wuchai-empty-state {
    width: 100%;
    text-align: center;
    color: #999;
    padding-top: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wuchai-empty-state .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    margin-bottom: 15px;
    color: #ccc;
}

.wuchai-preview-item {
    position: relative;
    width: 110px;
    height: 110px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    background: #fff;
    animation: fadeIn 0.3s ease;
    cursor: zoom-in;
}

.wuchai-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wuchai-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #d63638;
    color: #fff;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    text-align: center;
    line-height: 22px;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}

.wuchai-remove:hover {
    transform: scale(1.1);
}

/* 表单区域 */
.wuchai-form-area {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.wuchai-form-area h3 {
    margin-top: 0;
    font-size: 16px;
    color: #1d2327;
    margin-bottom: 10px;
}

#wuchai-remark {
    width: 100%;
    height: 100px;
    padding: 12px;
    border: 1px solid #8c8f94;
    border-radius: 6px;
    margin-bottom: 15px;
    resize: vertical;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
}

#wuchai-remark:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 1px #2271b1;
}

.wuchai-share-setting {
    margin-bottom: 15px;
    background: #f0f6fc;
    padding: 10px;
    border-radius: 4px;
}

#wuchai-share-password {
    margin-top: 5px;
    padding: 8px;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #8c8f94;
    border-radius: 4px;
}

.wuchai-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.wuchai-actions .wuchai-btn {
    flex: 1;
    min-width: 120px;
}

/* 加载器 */
.wuchai-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(2px);
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2271b1;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 0.8s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hidden {
    display: none !important;
}

/* Lightbox 幻灯片 */
.wuchai-lightbox {
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.wuchai-lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.wuchai-lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.wuchai-lightbox-close:hover {
    color: #bbb;
}

.wuchai-lightbox-prev, .wuchai-lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
}

.wuchai-lightbox-next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.wuchai-lightbox-prev {
    left: 0;
    border-radius: 3px 0 0 3px;
}

.wuchai-lightbox-prev:hover, .wuchai-lightbox-next:hover {
    background-color: rgba(0,0,0,0.8);
}

.wuchai-lightbox-caption {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    color: #ccc;
    font-size: 16px;
}

/* 我的订单区域 */
#my-orders {
    margin-top: 20px;
}

#my-orders h2 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f1;
}

/* 订单卡片样式 */
.wuchai-order-card {
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.wuchai-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.wuchai-order-header span:first-child {
    font-weight: 600;
    color: #1d2327;
}

.wuchai-status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.wuchai-status-badge.green { background: #00a32a; }
.wuchai-status-badge.orange { background: #dba617; }
.wuchai-status-badge.blue { background: #2271b1; }
.wuchai-status-badge.gray { background: #646970; }

.wuchai-order-thumbs {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    overflow-x: auto;
    padding: 10px 0;
}

.wuchai-order-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #eee;
    cursor: pointer;
    transition: transform 0.2s;
}

.wuchai-order-thumb:hover {
    transform: scale(1.05);
}

.wuchai-order-info {
    margin-bottom: 15px;
}

.wuchai-order-info p {
    margin: 8px 0;
    line-height: 1.5;
}

.wuchai-order-info strong {
    color: #1d2327;
}

.admin-reply {
    background: #f0f6fc;
    padding: 10px;
    border-left: 4px solid #2271b1;
    margin: 10px 0;
    border-radius: 4px;
}

.tracking {
    color: #00a32a;
    font-weight: 500;
}

.tracking a {
    margin-left: 10px;
    color: #2271b1;
    text-decoration: none;
}

.tracking a:hover {
    text-decoration: underline;
}

.wuchai-order-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.wuchai-order-actions .button {
    margin: 0;
    padding: 6px 12px;
    font-size: 13px;
}

.btn-view-images, .btn-print-order, .btn-delete-order, .btn-resubmit {
    margin-right: 8px;
    margin-bottom: 5px;
}

.btn-delete-order {
    background: #d63638;
    border-color: #d63638;
    color: white;
}

.btn-delete-order:hover {
    background: #b32d2e;
    border-color: #b32d2e;
}

.btn-resubmit {
    background: #00a32a;
    border-color: #00a32a;
    color: white;
}

.btn-resubmit:hover {
    background: #008a20;
    border-color: #008a20;
}

/* 打印控制面板 */
.print-controls {
    background: #f8f9fa;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.print-image-container {
    margin-bottom: 30px;
    page-break-inside: avoid;
}

@media print {
    .print-controls, .print-actions, .no-print {
        display: none !important;
    }
    .print-image {
        max-width: 100% !important;
        max-height: 90vh !important;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .wuchai-workspace {
        flex-direction: column;
    }
    
    .wuchai-sidebar {
        border-right: none;
        border-bottom: 1px solid #f0f0f1;
        padding-right: 0;
        padding-bottom: 20px;
        max-width: 100%;
    }
    
    .wuchai-actions {
        flex-direction: column;
    }
    
    .wuchai-actions .wuchai-btn {
        width: 100%;
    }
    
    .wuchai-order-actions {
        flex-direction: column;
    }
    
    .wuchai-order-actions .button {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .wuchai-tabs {
        flex-direction: column;
    }
    
    .wuchai-tab {
        width: 100%;
        text-align: left;
        border-bottom: 1px solid #eee;
        margin-bottom: 0;
    }
    
    .wuchai-tab.active {
        border-bottom: 3px solid #2271b1;
    }
}

/* 确保与WordPress主题兼容 */
.wuchai-container .button {
    display: inline-block;
    text-decoration: none;
    font-size: 13px;
    line-height: 2.15384615;
    min-height: 30px;
    margin: 0;
    padding: 0 10px;
    cursor: pointer;
    border-width: 1px;
    border-style: solid;
    -webkit-appearance: none;
    border-radius: 3px;
    white-space: nowrap;
    box-sizing: border-box;
}

.wuchai-container .button-primary {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
    text-decoration: none;
    text-shadow: none;
}

.wuchai-container .button-primary:hover {
    background: #135e96;
    border-color: #135e96;
    color: #fff;
}

/* 清除浮动和溢出 */
.wuchai-container:after {
    content: "";
    display: table;
    clear: both;
}

/* 确保图片不会溢出容器 */
.wuchai-container img {
    max-width: 100%;
    height: auto;
}

/* 修复按钮布局 - 在CSS文件末尾添加 */
.wuchai-actions .wuchai-btn {
    width: auto !important;
    flex: 0 0 auto !important;
    min-width: 120px;
}

/* 或者更具体的针对保存草稿按钮 */
#wuchai-save-btn {
    width: auto !important;
    flex: 0 0 auto !important;
    min-width: 120px;
    background: #f0c33c;
    border-color: #f0c33c;
    color: #000;
}

#wuchai-save-btn:hover {
    background: #d4b12f;
    border-color: #d4b12f;
}

/* Lightbox 幻灯片 */
.wuchai-lightbox {
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    cursor: pointer; /* 添加这个让用户知道可以点击关闭 */
}

.wuchai-lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: default; /* 图片本身不响应点击 */
}

.wuchai-lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10002; /* 确保关闭按钮在最上层 */
}

.wuchai-lightbox-close:hover {
    color: #bbb;
}

.wuchai-lightbox-prev, .wuchai-lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
    z-index: 10002; /* 确保导航按钮在最上层 */
}

.wuchai-lightbox-next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.wuchai-lightbox-prev {
    left: 0;
    border-radius: 3px 0 0 3px;
}

.wuchai-lightbox-prev:hover, .wuchai-lightbox-next:hover {
    background-color: rgba(0,0,0,0.8);
}

.wuchai-lightbox-caption {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    color: #ccc;
    font-size: 16px;
    z-index: 10002; /* 确保标题在最上层 */
}


/* 修改图库网格布局 */

/* 使用Flexbox实现均匀分布 */
.wuchai-gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}


.wuchai-gallery-item {
    position: relative;
    border-radius: 8px;
    /* 移除 overflow: hidden 或改为 visible */
    overflow: visible;  /* 改为 visible 或直接移除 */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    background: #fff;
    cursor: pointer;
}

.wuchai-gallery-item img {
    width: 100%;
    height: 200px; /* 固定高度，保持一致性 */
    object-fit: cover;
    display: block;
}


/* 或者使用瀑布流布局 */
.masonry-grid {
    column-count: 4;
    column-gap: 15px;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 15px;
    width: 100%;
}

.masonry-item img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
}

@media (max-width: 1200px) {
    .masonry-grid {
        column-count: 3;
    }
}

@media (max-width: 768px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 480px) {
    .masonry-grid {
        column-count: 1;
    }
}


/* 图库选择器Modal样式 */
.wuchai-modal {
    position: fixed;
    z-index: 10002;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    display: none;
}

.wuchai-modal.active {
    display: block;
}

.wuchai-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 8px;
    position: relative;
}

.wuchai-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 10px;
}

.wuchai-close:hover {
    color: #000;
}

.wuchai-gallery-grid-modal {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

.wuchai-gallery-selector-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s;
    background: #fff;
}

.wuchai-gallery-selector-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.wuchai-gallery-selector-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}




/* 1.初始状态：强制隐藏 */
.wuchai-gallery-checkbox {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 20px;
    height: 20px;
    z-index: 100;
    cursor: pointer;
    
    /* 关键修改：添加 !important 强制隐藏 */
    opacity: 0 !important; 
    visibility: hidden !important; /* 双重保险，防止占据空间或响应点击 */
    
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 3px;
    border: 2px solid #2271b1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* 2. 鼠标悬停时：强制显示 */
.wuchai-gallery-item:hover .wuchai-gallery-checkbox {
    opacity: 1 !important;
    visibility: visible !important;
    transform: scale(1.05);
}

/* 3. 选中状态：强制保持显示 */
.wuchai-gallery-checkbox:checked,
.wuchai-gallery-item.selected .wuchai-gallery-checkbox {
    opacity: 1 !important;
    visibility: visible !important;
    background-color: #2271b1;
    border-color: #135e96;
}

/* 选中的对勾标记 */
.wuchai-gallery-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 12px;
}






.gallery-select-info {
    padding: 10px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
}

.gallery-select-info span {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.gallery-select-info small {
    color: #666;
    font-size: 12px;
}

.wuchai-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}


/* 确保幻灯大图图片支持缩放 */
#wuchai-lightbox-img {
    cursor: zoom-in;
    max-width: 90%;
    max-height: 90%;
    transition: transform 0.2s ease;
}

#wuchai-lightbox-img.zoomed {
    cursor: zoom-out;
}

/* 缩放提示样式 */
#zoom-hint {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    z-index: 10003;
    font-size: 14px;
    display: none;
}

/* 管理员删除通知样式 */
.wuchai-admin-notice-box {
    background-color: #fff8e5;
    border-left: 4px solid #ffb900;
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
    display: flex;
    align-items: flex-start;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.wuchai-admin-notice-box .notice-icon {
    font-size: 24px;
    margin-right: 15px;
    line-height: 1;
}

.wuchai-admin-notice-box .notice-content h4 {
    margin: 0 0 5px 0;
    color: #8a6d3b;
    font-size: 16px;
}

.wuchai-admin-notice-box .notice-content p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* 咨询对话框样式 */
.consult-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    z-index: 10000;
    width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

#dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
}

/* 消息历史记录样式 */
.message-history {
    margin-bottom: 15px;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
}

.message-item {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 4px;
    background: white;
    border: 1px solid #eee;
}

.message-item.user {
    background: #e8f5e9;
    border-color: #c8e6c9;
}

.message-item.admin {
    background: #e3f2fd;
    border-color: #bbdefb;
}

.message-sender {
    font-weight: bold;
    font-size: 12px;
    color: #666;
    display: block;
    margin-bottom: 5px;
}

.message-content {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.message-time {
    font-size: 11px;
    color: #999;
    display: block;
    margin-top: 5px;
    text-align: right;
}

/* 图库勾选框样式 */
.wuchai-gallery-checkbox {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 20px;
    height: 20px;
    z-index: 10;
    accent-color: #2271b1;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.wuchai-gallery-checkbox:hover {
    opacity: 1;
}

/* 选中状态样式 */
.wuchai-gallery-item.selected {
    outline: 3px solid #2271b1;
    outline-offset: -3px;
    box-shadow: 0 0 10px rgba(34, 113, 177, 0.3);
}

/* 删除按钮样式 */
.wuchai-btn-danger {
    background: #d63638;
    border-color: #d63638;
    color: white;
}

.wuchai-btn-danger:hover {
    background: #b32d2e;
    border-color: #b32d2e;
}


/* 打印工作台网格缩略图样式 */
.thumb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.thumb-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    aspect-ratio: 1/1;
    background: #fff;
}

.thumb-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumb-checkbox {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 20px;
    height: 20px;
    z-index: 10;
    accent-color: #2271b1;
}

.thumb-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px;
    text-align: center;
    font-size: 12px;
}

/* 打印预览区域 */
.print-preview-area {
    width: 100%;
    height: 400px;
    background: #fff;
    border: 2px dashed #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 20px 0;
}

.print-preview-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* 打印控制面板 */
.print-controls {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

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

.control-row label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.control-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* 幻灯大图样式 */
#lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#lightbox.active {
    display: flex;
}

.lb-content {
    position: relative;
    max-width: 90%;
    max-height: 85%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lb-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    border-radius: 2px;
}

.lb-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: none;
    padding: 20px;
    cursor: pointer;
    font-size: 24px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    transition: background 0.2s;
}

.lb-btn:hover {
    background: rgba(255,255,255,0.3);
}

.lb-prev { left: 30px; }
.lb-next { right: 30px; }

.lb-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    border: none;
    line-height: 1;
}

.lb-close:hover {
    color: #ccc;
}

.lb-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 16px;
    background: rgba(0,0,0,0.6);
    padding: 8px 16px;
    border-radius: 20px;
}

/* 打印页面样式 */
@media print {
    .print-controls,
    .thumb-grid,
    .control-buttons,
    .lb-controls {
        display: none !important;
    }
    
    .print-preview-area {
        border: none;
        height: auto;
    }
    
    .print-preview-img {
        max-width: 100% !important;
        max-height: 100vh !important;
    }
}


