/**
 * 蓝白清新主题 - 蓝色渐变表头，浅蓝交替行背景
 * 适合活力、科技、现代风格网站
 */
.wp-cad-theme-fresh {
    --cad-primary: #0066CC;
    --cad-secondary: #0052A3;
    --cad-border: #E0E7FF;
    --cad-bg: #FFFFFF;
    --cad-text: #1E3A5F;
    --cad-hover: #E0EFFF;
    --cad-odd: #FFFFFF;
    --cad-even: #F0F7FF;
}

/* 外层容器 */
.wp-cad-theme-fresh .wp-cad-wrapper {
    background: linear-gradient(135deg, #F8FBFF 0%, #EEF5FF 100%);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.1);
}

/* 表格容器 */
.wp-cad-theme-fresh .wp-cad-table-container {
    background: transparent;
}

/* 表格主体 */
.wp-cad-theme-fresh .wp-cad-table-responsive {
    border: 1px solid var(--cad-border);
    border-radius: 6px;
    background: var(--cad-bg);
    overflow: hidden;
}

/* 表头 */
.wp-cad-theme-fresh .wp-cad-table-responsive thead {
    background: linear-gradient(180deg, #0066CC 0%, #0052A3 100%);
    color: #fff;
}

/* 表头单元格 */
.wp-cad-theme-fresh .wp-cad-table-responsive th {
    border-bottom: none;
    color: #fff;
    background: transparent;
    font-weight: 700;
}

/* 型号列表头 */
.wp-cad-theme-fresh .wp-cad-table-responsive th.wp-cad-th-model {
    background: transparent;
    color: #fff;
}

/* 下载列表头 */
.wp-cad-theme-fresh .wp-cad-table-responsive th.wp-cad-th-file {
    background: transparent;
    color: #fff;
}

/* 表格行基础样式 */
.wp-cad-theme-fresh .wp-cad-table-responsive tbody tr {
    border-bottom: 1px solid var(--cad-border);
    background: var(--cad-bg);
    transition: all 0.2s;
}

/* 奇数行 */
.wp-cad-theme-fresh .wp-cad-table-responsive tbody tr:nth-child(odd) {
    background: #FFFFFF;
}

/* 偶数行 */
.wp-cad-theme-fresh .wp-cad-table-responsive tbody tr:nth-child(even) {
    background: #F0F7FF;
}

/* 行悬停 */
.wp-cad-theme-fresh .wp-cad-table-responsive tbody tr:hover {
    background: #E0EFFF;
}

/* 表格单元格 */
.wp-cad-theme-fresh .wp-cad-table-responsive td {
    border-bottom: 1px solid var(--cad-border);
    color: #1E3A5F;
    background: transparent;
}

/* 型号单元格 */
.wp-cad-theme-fresh .wp-cad-td-model {
    color: #1E3A5F;
    background: transparent;
}

/* 下载单元格 */
.wp-cad-theme-fresh .wp-cad-td-file {
    background: transparent;
}

/* 下载按钮 - 颜色由内联样式控制 (v2.4.8) */
.wp-cad-theme-fresh .wp-cad-download-link {
    /* 不设置 background，让内联样式生效 */
    color: #fff !important;
    border-radius: var(--button-border-radius, 4px);
    font-weight: 600;
    padding: 6px 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.wp-cad-theme-fresh .wp-cad-download-link:hover {
    opacity: 0.9;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 可用文件下载按钮 - 颜色由内联样式控制 (v2.4.8) */
.wp-cad-theme-fresh .wp-cad-download-link.wp-cad-file-available {
    /* 不设置 background，让内联样式生效 */
    color: #fff !important;
    border-radius: var(--button-border-radius, 4px);
    font-weight: 600;
    padding: 6px 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.wp-cad-theme-fresh .wp-cad-download-link.wp-cad-file-available:hover {
    opacity: 0.9;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 无文件状态 */
.wp-cad-theme-fresh .wp-cad-no-file {
    background-color: #E8F0FF !important;
    background: #E8F0FF !important;
    color: #A0B4D0;
    opacity: 0.7;
}

/* 表格标题 */
.wp-cad-theme-fresh .wp-cad-table-responsive caption.wp-cad-table-caption {
    background: #F0F7FF;
    color: #0066CC;
    font-weight: 700;
    border-bottom: 2px solid #0066CC;
}

/* 图例容器 */
.wp-cad-theme-fresh .wp-cad-legend {
    background: #F0F7FF;
    border: 1px solid var(--cad-border);
    border-radius: 6px;
    color: #1E3A5F;
}

/* 图例项 */
.wp-cad-theme-fresh .wp-cad-legend-item {
    color: #1E3A5F;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .wp-cad-theme-fresh .wp-cad-wrapper {
        padding: 10px;
    }
    
    .wp-cad-theme-fresh .wp-cad-download-link {
        font-size: 12px;
        height: 28px;
    }
}
