/* 基础重置 */
.wuchai-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f9f9f9;
    min-height: 100vh;
}

.wuchai-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e74c3c; /* 成都红 */
}

.wuchai-header h1 {
    color: #333;
    font-size: 1.5em;
    margin: 0;
}

.wuchai-card {
    background: #fff;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.wuchai-label {
    font-weight: bold;
    color: #666;
    font-size: 0.9em;
    display: block;
    margin-bottom: 5px;
}

.wuchai-value {
    font-size: 1.1em;
    color: #333;
}

.wuchai-footer {
    text-align: center;
    font-size: 0.8em;
    color: #999;
    margin-top: 30px;
}


/* 原有样式... */

.wuchai-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.wuchai-thumb {
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: transform 0.2s;
}

.wuchai-thumb:hover {
    transform: scale(1.05);
}

.wuchai-thumb img {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.wuchai-btn {
    display:block; text-align:center; background:#e74c3c; color:#fff; padding:10px; border-radius:4px; text-decoration:none;
}

/* 灯箱样式 */
.wuchai-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

.wuchai-lightbox-content {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.wuchai-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.wuchai-prev, .wuchai-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;
    user-select: none;
}

.wuchai-next { right: 0; }
.wuchai-prev { left: 0; }
.wuchai-prev:hover, .wuchai-next:hover { background-color: rgba(0,0,0,0.8); }


/* ... 原有样式保持不变 ... */

/* 画廊网格布局 */
.wuchai-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.wuchai-thumb {
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #eee;
    aspect-ratio: 1 / 1; /* 保持正方形 */
}

.wuchai-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}

.wuchai-thumb:hover img {
    transform: scale(1.05);
}

/* PhotoSwipe 必须的基础样式修正 */
.pswp__bg {
    background: rgba(0, 0, 0, 0.95) !important;
}


.trace-code {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-top: 5px;
    letter-spacing: 1px;
    background: #f5f5f5;
    padding: 2px 5px;
    border-radius: 3px;
    display: inline-block;
}


/* 后台列表样式 */
.column-trace_code {
    width: 120px;
}

/* 前台显示样式 */
.trace-code-display {
    margin: 20px 0;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 5px;
}

.trace-code-value {
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: bold;
    color: #0073aa;
    padding: 5px 10px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 3px;
}

/* 打印样式 */
@media print {
    .trace-code-print {
        font-size: 10px !important;
        color: #000 !important;
    }
}


