/**
 * WP Param Table - 前端展示样式
 * 包含 6 套精美风格：经典商务、简约现代、深色工业、蓝白清新、绿色环保、活力橙黄
 * 前 4 款与 WP CAD 插件风格保持一致
 */

/* ============================================ */
/* 基础变量 */
/* ============================================ */
:root {
    --wpt-border: #e0e0e0;
    --wpt-header-bg: #f5f5f5;
    --wpt-header-text: #333;
    --wpt-row-hover: #f9f9f9;
    --wpt-text: #333;
    --wpt-link: #2271b1;
    --wpt-accent: #2271b1;
}

/* ============================================ */
/* 风格 1: 经典商务 - 与 WP CAD 保持一致 */
/* ============================================ */
.wp-param-table.style-classic {
    --wpt-primary: #2C3E50;
    --wpt-border: #DEE2E6;
    --wpt-text: #2C3E50;
}

/* 标题区域和滚动提示 - 经典商务配色 */
.wp-param-table-wrapper.style-classic-wrapper .param-table-title {
    background: linear-gradient(180deg, #2C3E50 0%, #34495E 100%);
    border-bottom: none;
}

.wp-param-table-wrapper.style-classic-wrapper .param-table-title .template-name {
    color: #fff;
    font-weight: 600;
}

.wp-param-table-wrapper.style-classic-wrapper .param-table-scroll-hint {
    background: linear-gradient(135deg, #ECF0F1 0%, #BDC3C7 100%);
    color: #2C3E50;
    border: 1px solid #DEE2E6;
}

.wp-param-table.style-classic {
    border: 1px solid #DEE2E6;
    border-radius: 4px;
    overflow: hidden;
}

.wp-param-table.style-classic thead {
    background: linear-gradient(180deg, #2C3E50 0%, #34495E 100%);
}

.wp-param-table.style-classic thead th {
    background: transparent;
    color: #fff;
    font-weight: 600;
    text-align: center !important;
    vertical-align: middle !important;
    padding: 14px 16px;
    border-bottom: 2px solid #1A252F;
}

.wp-param-table.style-classic tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid #DEE2E6;
    text-align: center !important;
    vertical-align: middle !important;
    color: #2C3E50;
}

.wp-param-table.style-classic tbody tr {
    transition: background 0.2s;
}

.wp-param-table.style-classic tbody tr:hover {
    background: #ECF0F1;
}

.wp-param-table.style-classic tbody tr:last-child td {
    border-bottom: none;
}

/* ============================================ */
/* 风格 2: 简约现代 - 与 WP CAD 保持一致 */
/* ============================================ */
.wp-param-table.style-modern {
    --wpt-primary: #2563EB;
    --wpt-border: #E5E7EB;
    --wpt-text: #1F2937;
}

/* 标题区域和滚动提示 - 简约现代配色 */
.wp-param-table-wrapper.style-modern-wrapper .param-table-title {
    background: transparent;
    border-bottom: 2px solid #2563EB;
}

.wp-param-table-wrapper.style-modern-wrapper .param-table-title .template-name {
    color: #2563EB;
    font-weight: 600;
}

.wp-param-table-wrapper.style-modern-wrapper .param-table-scroll-hint {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    color: #2563EB;
    border: 1px solid #BFDBFE;
}

.wp-param-table.style-modern {
    border: none;
    background: transparent;
}

.wp-param-table.style-modern thead {
    background: transparent;
}

.wp-param-table.style-modern thead th {
    background: transparent;
    color: #1F2937;
    font-weight: 600;
    text-align: center !important;
    vertical-align: middle !important;
    padding: 14px 16px;
    border-bottom: 2px solid #2563EB;
}

.wp-param-table.style-modern tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid #E5E7EB;
    text-align: center !important;
    vertical-align: middle !important;
    color: #1F2937;
}

.wp-param-table.style-modern tbody tr {
    transition: background 0.2s;
}

.wp-param-table.style-modern tbody tr:hover {
    background: #F3F4F6;
}

.wp-param-table.style-modern tbody tr:last-child td {
    border-bottom: none;
}

/* ============================================ */
/* 风格 3: 深色工业 - 与 WP CAD 保持一致 */
/* ============================================ */
.wp-param-table.style-industrial {
    --wpt-primary: #16213E;
    --wpt-bg: #1A1A2E;
    --wpt-border: #2D3748;
    --wpt-text: #E2E8F0;
    --wpt-accent: #4FC3F7;
}

/* 容器也需要深色背景 */
.wp-param-table-wrapper.style-industrial-wrapper {
    background: #1A1A2E;
    padding: 15px;
    border-radius: 6px;
}

/* 标题区域深色适配 */
.wp-param-table-wrapper.style-industrial-wrapper .param-table-title {
    background: transparent;
    border-bottom: 1px solid #2D3748;
}

.wp-param-table-wrapper.style-industrial-wrapper .param-table-title .template-name {
    color: #fff;
}

/* 滚动提示深色适配 */
.wp-param-table-wrapper.style-industrial-wrapper .param-table-scroll-hint {
    background: linear-gradient(135deg, #232B3E 0%, #1A1A2E 100%);
    color: #4FC3F7;
    border: 1px solid #2D3748;
}

/* 响应式容器深色适配 */
.wp-param-table-wrapper.style-industrial-wrapper .param-table-responsive {
    background: transparent !important;
}

.wp-param-table.style-industrial {
    background: transparent !important;
    border: 1px solid #2D3748;
    border-radius: 6px;
    overflow: hidden;
}

.wp-param-table.style-industrial thead {
    background: linear-gradient(180deg, #0F0F23 0%, #16213E 100%);
}

.wp-param-table.style-industrial thead th {
    background: transparent !important;
    color: #fff;
    font-weight: 600;
    text-align: center !important;
    vertical-align: middle !important;
    padding: 14px 16px;
    border-bottom: 1px solid #2D3748;
}

.wp-param-table.style-industrial tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid #2D3748;
    text-align: center !important;
    vertical-align: middle !important;
    color: #E2E8F0;
    background: transparent !important;
}

.wp-param-table.style-industrial tbody tr {
    background: transparent !important;
    transition: background 0.2s;
}

.wp-param-table.style-industrial tbody tr:hover {
    background: #232B3E !important;
}

.wp-param-table.style-industrial tbody tr:last-child td {
    border-bottom: none;
}

/* ============================================ */
/* 风格 4: 蓝白清新 - 与 WP CAD 保持一致 */
/* ============================================ */
.wp-param-table.style-fresh {
    --wpt-primary: #0066CC;
    --wpt-border: #E0E7FF;
    --wpt-text: #1E40AF;
}

/* 标题区域和滚动提示 - 蓝白清新配色 */
.wp-param-table-wrapper.style-fresh-wrapper .param-table-title {
    background: linear-gradient(180deg, #0066CC 0%, #0052A3 100%);
    border-bottom: none;
}

.wp-param-table-wrapper.style-fresh-wrapper .param-table-title .template-name {
    color: #fff;
    font-weight: 600;
}

.wp-param-table-wrapper.style-fresh-wrapper .param-table-scroll-hint {
    background: linear-gradient(135deg, #E0EFFF 0%, #B3D9FF 100%);
    color: #0066CC;
    border: 1px solid #80BFFF;
}

.wp-param-table.style-fresh {
    border: 1px solid #E0E7FF;
    border-radius: 6px;
    overflow: hidden;
}

.wp-param-table.style-fresh thead {
    background: linear-gradient(180deg, #0066CC 0%, #0052A3 100%);
}

.wp-param-table.style-fresh thead th {
    background: transparent;
    color: #fff;
    font-weight: 600;
    text-align: center !important;
    vertical-align: middle !important;
    padding: 14px 16px;
    border-bottom: none;
}

.wp-param-table.style-fresh tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid #E0E7FF;
    text-align: center !important;
    vertical-align: middle !important;
    line-height: normal;
    height: 100%;
    color: #1E40AF;
}

.wp-param-table.style-fresh tbody tr {
    height: 50px;
}

.wp-param-table.style-fresh tbody tr:nth-child(odd) {
    background: #fff;
}

.wp-param-table.style-fresh tbody tr:nth-child(even) {
    background: #F0F7FF;
}

.wp-param-table.style-fresh tbody tr:hover {
    background: #E0EFFF;
}

.wp-param-table.style-fresh tbody tr:last-child td {
    border-bottom: none;
}

/* ============================================ */
/* 风格 5: 绿色环保 */
/* ============================================ */
.wp-param-table.style-eco {
    --wpt-border: #a7f3d0;
    --wpt-header-bg: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    --wpt-header-text: #fff;
    --wpt-row-hover: #ecfdf5;
    --wpt-text: #064e3b;
    --wpt-accent: #27ae60;
}

/* 标题区域和滚动提示 - 绿色环保配色 */
.wp-param-table-wrapper.style-eco-wrapper .param-table-title {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    border-bottom: none;
}

.wp-param-table-wrapper.style-eco-wrapper .param-table-title .template-name {
    color: #fff;
    font-weight: 600;
}

.wp-param-table-wrapper.style-eco-wrapper .param-table-scroll-hint {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.wp-param-table.style-eco {
    border: 2px solid #a7f3d0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.15);
}

.wp-param-table.style-eco thead th {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: #fff;
    font-weight: 600;
    text-align: center !important;
    vertical-align: middle !important;
    padding: 14px 16px;
    border-bottom: none;
}

.wp-param-table.style-eco tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid #d1fae5;
    text-align: center !important;
    vertical-align: middle !important;
    color: #064e3b;
}

.wp-param-table.style-eco tbody tr:hover {
    background: #ecfdf5;
}

.wp-param-table.style-eco tbody tr:nth-child(even) {
    background: #f0fdf4;
}

.wp-param-table.style-eco tbody tr:nth-child(even):hover {
    background: #ecfdf5;
}

/* ============================================ */
/* 风格 6: 活力橙黄 */
/* ============================================ */
.wp-param-table.style-energy {
    --wpt-border: #fed7aa;
    --wpt-header-bg: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    --wpt-header-text: #fff;
    --wpt-row-hover: #fffbeb;
    --wpt-text: #78350f;
    --wpt-accent: #f39c12;
}

/* 标题区域和滚动提示 - 活力橙黄配色 */
.wp-param-table-wrapper.style-energy-wrapper .param-table-title {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    border-bottom: none;
}

.wp-param-table-wrapper.style-energy-wrapper .param-table-title .template-name {
    color: #fff;
    font-weight: 600;
}

.wp-param-table-wrapper.style-energy-wrapper .param-table-scroll-hint {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid #fcd34d;
}

.wp-param-table.style-energy {
    border: 2px solid #fed7aa;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.2);
}

.wp-param-table.style-energy thead th {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: #fff;
    font-weight: 600;
    text-align: center !important;
    vertical-align: middle !important;
    padding: 14px 16px;
    border-bottom: none;
}

.wp-param-table.style-energy tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid #fef3c7;
    text-align: center !important;
    vertical-align: middle !important;
    color: #78350f;
}

.wp-param-table.style-energy tbody tr:hover {
    background: #fffbeb;
}

.wp-param-table.style-energy tbody tr:nth-child(even) {
    background: #fffdf7;
}

.wp-param-table.style-energy tbody tr:nth-child(even):hover {
    background: #fffbeb;
}

/* ============================================ */
/* 包装器和标题 */
/* ============================================ */
.wp-param-table-wrapper {
    margin: 30px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.wp-param-table-wrapper.has-template {
    border-radius: 12px;
    overflow: hidden;
}

.param-table-title {
    padding: 12px 20px;
    background: var(--wpt-header-bg, #f5f5f5);
    border-bottom: 1px solid var(--wpt-border, #e0e0e0);
}

.param-table-title .template-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--wpt-header-text, #333);
}

/* ============================================ */
/* 默认灰色样式（上一版本简洁风格） */
/* ============================================ */
.wp-param-table-wrapper.title-color-default .param-table-title {
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}

.wp-param-table-wrapper.title-color-default .param-table-title .template-name {
    color: #333;
}

.wp-param-table-wrapper.title-color-default .param-table-scroll-hint {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #666;
    border: none;
}

/* ============================================ */
/* 自定义颜色样式 */
/* ============================================ */
.wp-param-table-wrapper[style*="--wpt-title-bg"] .param-table-title {
    background: var(--wpt-title-bg, #f5f5f5);
}

.wp-param-table-wrapper[style*="--wpt-title-text"] .param-table-title .template-name {
    color: var(--wpt-title-text, #333);
}

.wp-param-table-wrapper[style*="--wpt-scroll-bg"] .param-table-scroll-hint {
    background: var(--wpt-scroll-bg, #f8f9fa);
    color: var(--wpt-scroll-text, #666);
    border: none;
}

/* ============================================ */
/* 表格基础样式 */
/* ============================================ */
.wp-param-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    color: var(--wpt-text, #333);
    background: #fff;
}

.wp-param-table th,
.wp-param-table td,
.wp-param-table.style-classic thead th,
.wp-param-table.style-classic tbody td,
.wp-param-table.style-modern thead th,
.wp-param-table.style-modern tbody td,
.wp-param-table.style-industrial thead th,
.wp-param-table.style-industrial tbody td,
.wp-param-table.style-fresh thead th,
.wp-param-table.style-fresh tbody td,
.wp-param-table.style-eco thead th,
.wp-param-table.style-eco tbody td,
.wp-param-table.style-energy thead th,
.wp-param-table.style-energy tbody td {
    text-align: center !important;
    min-width: 60px;
    white-space: nowrap;
    vertical-align: middle !important;
}

.wp-param-table th .th-content {
    display: block;
    text-align: center;
}

/* ============================================ */
/* 排序图标 */
/* ============================================ */
.param-table-sortable th {
    cursor: pointer;
    user-select: none;
}

.sort-icon {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 6px;
    vertical-align: middle;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid currentColor;
    opacity: 0.3;
    transition: opacity 0.2s;
}

.param-table-sortable th:hover .sort-icon {
    opacity: 0.6;
}

.param-table-sortable th.sort-asc .sort-icon {
    border-top: none;
    border-bottom: 5px solid currentColor;
    opacity: 1;
}

.param-table-sortable th.sort-desc .sort-icon {
    opacity: 1;
}

/* ============================================ */
/* 页脚 */
/* ============================================ */
.param-table-footer {
    padding: 10px 16px;
    background: #f8f9fa;
    border-top: 1px solid #e5e7eb;
    font-size: 12px;
    color: #6b7280;
    text-align: center;
}

/* ============================================ */
/* 响应式表格 */
/* ============================================ */
.param-table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.param-table-responsive.needs-scroll {
    position: relative;
}

/* 滚动提示 */
.param-table-scroll-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #666;
    animation: scroll-hint-pulse 2s ease-in-out infinite;
}

.param-table-scroll-hint .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

@keyframes scroll-hint-pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* 滚动阴影效果 */
.param-table-responsive.needs-scroll::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 30px;
    background: linear-gradient(to right, transparent, rgba(0,0,0,0.05));
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.param-table-responsive.needs-scroll.scrolled::after {
    opacity: 1;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .wp-param-table {
        font-size: 13px;
    }
    
    .wp-param-table th,
    .wp-param-table td {
        padding: 10px 12px;
        text-align: center !important;
    }
    
    .param-table-title {
        padding: 10px 15px;
    }
    
    .param-table-scroll-hint {
        background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
        color: #856404;
        font-weight: 500;
    }
}

/* 超小屏幕 */
@media (max-width: 480px) {
    .wp-param-table {
        font-size: 12px;
    }
    
    .wp-param-table th,
    .wp-param-table td {
        padding: 8px 10px;
        text-align: center !important;
    }
    
    .param-table-scroll-hint {
        font-size: 12px;
        padding: 8px;
    }
}

/* ============================================ */
/* 无数据提示 */
/* ============================================ */
.wp-param-table tbody tr:only-child td.no-data {
    text-align: center !important;
    padding: 30px;
    color: #9ca3af;
}

/* ============================================ */
/* 加载动画 */
/* ============================================ */
.wp-param-table.is-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ============================================ */
/* 暗色模式适配 */
/* ============================================ */
@media (prefers-color-scheme: dark) {
    .wp-param-table.style-classic {
        background: #1f2937;
    }
    
    .wp-param-table.style-classic tbody td {
        color: #e5e7eb;
    }
    
    .wp-param-table.style-fresh tbody td,
    .wp-param-table.style-eco tbody td,
    .wp-param-table.style-energy tbody td {
        background: #1f2937;
        color: #e5e7eb;
        border-color: #374151;
    }
}

/* ============================================ */
/* 打印样式 */
/* ============================================ */
@media print {
    .wp-param-table-wrapper {
        margin: 20px 0;
    }
    
    .wp-param-table {
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }
    
    .wp-param-table th,
    .wp-param-table td {
        border: 1px solid #000 !important;
        background: #fff !important;
        color: #000 !important;
    }
    
    .sort-icon,
    .param-table-scroll-hint {
        display: none !important;
    }
}

/* ============================================ */
/* 图片展示区域样式 */
/* ============================================ */
.param-table-images {
    margin: 30px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* 图片查看器 */
.wpt-images-viewer {
    position: relative;
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
    max-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wpt-image-slide {
    display: none;
    width: 100%;
    text-align: center;
}

.wpt-image-slide.wpt-active {
    display: block;
}

.wpt-image-slide img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    cursor: pointer;
}

.wpt-image-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
    font-size: 14px;
    text-align: left;
}

/* 图片导航按钮 */
.wpt-image-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wpt-image-nav-btn:hover {
    background: rgba(255,255,255,0.4);
}

.wpt-image-prev {
    left: 15px;
}

.wpt-image-next {
    right: 15px;
}

/* 缩略图列表 */
.wpt-images-thumbs {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: #f5f5f5;
    overflow-x: auto;
    justify-content: center;
    flex-wrap: wrap;
}

.wpt-thumb-item {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: border-color 0.2s, transform 0.2s;
    background: #fff;
}

.wpt-thumb-item:hover {
    transform: scale(1.05);
}

.wpt-thumb-item.wpt-active {
    border-color: var(--wpt-accent, #2271b1);
}

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

/* ============================================ */
/* Lightbox 样式 */
/* ============================================ */
.param-table-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.param-table-lightbox.wpt-active {
    display: flex;
    animation: lightbox-fade-in 0.2s ease;
}

@keyframes lightbox-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.param-table-lightbox .wpt-lightbox-image {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
    border-radius: 4px;
}

.param-table-lightbox .wpt-lightbox-title {
    color: #fff;
    font-size: 16px;
    margin-top: 20px;
    text-align: center;
    max-width: 80%;
}

.param-table-lightbox .wpt-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.param-table-lightbox .wpt-lightbox-close:hover {
    background: rgba(255,255,255,0.3);
}

.param-table-lightbox .wpt-lightbox-zoom {
    position: absolute;
    top: 20px;
    right: 80px;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.param-table-lightbox .wpt-lightbox-zoom:hover {
    background: rgba(255,255,255,0.3);
}

.param-table-lightbox .wpt-lightbox-zoom.wpt-zoomed {
    background: rgba(255,255,255,0.4);
}

.param-table-lightbox .wpt-lightbox-image.wpt-zoomed {
    max-width: none;
    max-height: none;
    cursor: zoom-out;
    transform-origin: center center;
    transition: transform 0.3s ease;
}

.param-table-lightbox .wpt-lightbox-image {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.param-table-lightbox .wpt-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.param-table-lightbox .wpt-lightbox-nav:hover {
    background: rgba(255,255,255,0.3);
}

.param-table-lightbox .wpt-lightbox-prev {
    left: 20px;
}

.param-table-lightbox .wpt-lightbox-next {
    right: 20px;
}

/* Lightbox 移动端适配 */
@media (max-width: 768px) {
    .param-table-lightbox .wpt-lightbox-nav {
        width: 44px;
        height: 44px;
        font-size: 24px;
    }
    
    .param-table-lightbox .wpt-lightbox-close {
        width: 44px;
        height: 44px;
        font-size: 24px;
        top: 10px;
        right: 10px;
    }
    
    .param-table-lightbox .wpt-lightbox-image {
        max-width: 95%;
        max-height: 70vh;
    }
}

/* 暗色模式下的图片区域 */
@media (prefers-color-scheme: dark) {
    .wpt-images-viewer {
        background: #1a1a1a;
    }
    
    .wpt-images-thumbs {
        background: #2d2d2d;
    }
    
    .wpt-thumb-item {
        background: #3d3d3d;
    }
}

/* 打印样式 - 隐藏图片查看器和Lightbox */
@media print {
    .param-table-images,
    .param-table-lightbox {
        display: none !important;
    }
}
