/* ============================================================
   cleaning-trash.css - 清理垃圾（CleaningUpTrash）专属样式
   ============================================================ */

/* --- 页面标题 --- */
.cleaning-main h2 {
    font-size: 1.9rem;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(52, 152, 219, 0.15);
    padding-bottom: 12px;
    letter-spacing: -0.3px;
}

.cleaning-main h2 a {
    color: #4fc3f7;
    transition: color 0.2s ease;
}

.cleaning-main h2 a:hover {
    color: #81d4fa;
}

body.light-theme .cleaning-main h2 a {
    color: #1e88e5;
}
body.light-theme .cleaning-main h2 a:hover {
    color: #42a5f5;
}

/* ====== 特殊选项卡片 ====== */
.cleaning-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.option-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.25s ease;
}

.option-card:hover {
    border-color: rgba(52, 152, 219, 0.2);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

body.light-theme .option-card {
    background: rgba(0, 0, 0, 0.01);
    border-color: rgba(0, 0, 0, 0.04);
}

body.light-theme .option-card:hover {
    background: #ffffff;
    border-color: rgba(30, 136, 229, 0.12);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.option-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    line-height: 1.2;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.option-content {
    flex: 1;
}

.option-content h4 {
    margin: 0 0 4px 0;
    font-size: 1rem;
    font-weight: 700;
    color: #e0f2fe;
}

body.light-theme .option-content h4 {
    color: #1a237e;
}

.option-content p {
    margin: 0 0 6px 0;
    font-size: 0.85rem;
    color: #b0bec5;
    line-height: 1.5;
}

body.light-theme .option-content p {
    color: #546e7a;
}

.option-tag {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 2px 12px;
    border-radius: 20px;
    background: rgba(52, 152, 219, 0.12);
    color: #4fc3f7;
    border: 1px solid rgba(52, 152, 219, 0.08);
}

body.light-theme .option-tag {
    background: rgba(30, 136, 229, 0.06);
    color: #1e88e5;
    border-color: rgba(30, 136, 229, 0.06);
}

/* --- 统计信息 --- */
.cleaning-stats {
    display: flex;
    gap: 28px;
    padding: 12px 20px;
    margin-bottom: 22px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(2px);
}

body.light-theme .cleaning-stats {
    background: rgba(0, 0, 0, 0.01);
    border-color: rgba(0, 0, 0, 0.04);
}

.stat-item {
    font-size: 0.9rem;
    color: #b0bec5;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stat-item strong {
    color: #4dd0e1;
    font-weight: 700;
    font-size: 1.05rem;
}

body.light-theme .stat-item {
    color: #546e7a;
}
body.light-theme .stat-item strong {
    color: #00838f;
}

/* --- 垃圾列表容器 --- */
.cleaning-list-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

/* --- 分类卡片 --- */
.trash-category {
    background: rgba(255, 255, 255, 0.015);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.trash-category:hover {
    border-color: rgba(52, 152, 219, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

body.light-theme .trash-category {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.04);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.02);
}
body.light-theme .trash-category:hover {
    border-color: rgba(30, 136, 229, 0.15);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
}

/* --- 分类头部（表格头） --- */
.category-header {
    display: grid;
    grid-template-columns: 32px 1fr 2.5fr;
    gap: 14px;
    align-items: center;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #90a4ae;
}

body.light-theme .category-header {
    background: rgba(0, 0, 0, 0.01);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    color: #78909c;
}

.category-header .col-icon {
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.6;
}

.category-header .col-name {
    color: #4fc3f7;
    font-weight: 700;
}

body.light-theme .category-header .col-name {
    color: #1e88e5;
}

.category-header .col-path {
    color: #78909c;
    font-weight: 500;
}

/* --- 分类主体 --- */
.category-body {
    display: flex;
    flex-direction: column;
}

/* --- 列表项 --- */
.trash-item {
    display: grid;
    grid-template-columns: 32px 1fr 2.5fr;
    gap: 14px;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    transition: background 0.15s ease;
    font-size: 0.85rem;
}

.trash-item:last-child {
    border-bottom: none;
}

.trash-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

body.light-theme .trash-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.02);
}
body.light-theme .trash-item:hover {
    background: rgba(0, 0, 0, 0.01);
}

/* --- 图标列 --- */
.item-icon {
    text-align: center;
    font-size: 1rem;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.trash-item:hover .item-icon {
    opacity: 0.9;
}

/* --- 名称列 --- */
.item-name {
    font-weight: 500;
    color: #e0f2fe;
    letter-spacing: -0.2px;
}

body.light-theme .item-name {
    color: #1a237e;
}

/* --- 路径列 --- */
.item-paths {
    font-size: 0.7rem;
    font-family: 'Consolas', 'Courier New', monospace;
    color: #b0bec5;
    line-height: 1.6;
    word-break: break-all;
}

.item-paths .path-line {
    display: block;
    padding: 1px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.02);
    color: #b0bec5;
}

.item-paths .path-line:last-child {
    border-bottom: none;
}

body.light-theme .item-paths {
    color: #546e7a;
}
body.light-theme .item-paths .path-line {
    border-bottom-color: rgba(0, 0, 0, 0.02);
    color: #546e7a;
}

/* --- 辅助信息 --- */
.cleaning-legal {
    margin-top: 20px;
    padding: 16px 24px;
    border-left: 4px solid #8bc34a;
    background: rgba(139, 195, 74, 0.02);
    border-radius: 12px;
}

body.light-theme .cleaning-legal {
    background: rgba(139, 195, 74, 0.03);
}

/* --- 选项卡片中的 strong 标签高亮 --- */
.option-content strong {
    color: #ffab40;  /* 亮橙色，非常醒目 */
    font-weight: 700;
}

body.light-theme .option-content strong {
    color: #e65100;  /* 深橙色，在浅色背景下更明显 */
}

/* --- 响应式 --- */
@media (max-width: 820px) {
    .category-header,
    .trash-item {
        grid-template-columns: 28px 1fr 1.8fr;
        gap: 10px;
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    .item-paths {
        font-size: 0.65rem;
    }
    .category-header .col-path {
        font-size: 0.7rem;
    }
    .cleaning-stats {
        gap: 18px;
        padding: 10px 16px;
        font-size: 0.8rem;
        flex-wrap: wrap;
    }
    .cleaning-options {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 600px) {
    .category-header {
        display: none;
    }
    .trash-item {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 12px 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }
    body.light-theme .trash-item {
        border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    }
    .trash-item .item-icon {
        text-align: left;
        font-size: 1.1rem;
    }
    .trash-item .item-name {
        font-size: 0.95rem;
        font-weight: 600;
        padding-bottom: 2px;
        color: #e0f2fe;
    }
    body.light-theme .trash-item .item-name {
        color: #1a237e;
    }
    .trash-item .item-paths {
        font-size: 0.7rem;
        padding-left: 6px;
        border-left: 2px solid rgba(52, 152, 219, 0.1);
        padding-left: 10px;
        margin-top: 2px;
        color: #b0bec5;
    }
    body.light-theme .trash-item .item-paths {
        color: #546e7a;
    }
    .cleaning-stats {
        flex-direction: column;
        gap: 4px;
        padding: 10px 14px;
        font-size: 0.85rem;
    }
    .cleaning-main h2 {
        font-size: 1.5rem;
    }
    .option-card {
        padding: 14px 16px;
    }
    .option-icon {
        font-size: 1.5rem;
    }
    .option-content h4 {
        font-size: 0.95rem;
    }
    .option-content p {
        font-size: 0.8rem;
    }
}

@media (max-width: 400px) {
    .trash-item {
        padding: 10px 12px;
    }
    .trash-item .item-name {
        font-size: 0.85rem;
    }
    .trash-item .item-paths {
        font-size: 0.6rem;
        padding-left: 8px;
    }
    .cleaning-main h2 {
        font-size: 1.25rem;
    }
    .cleaning-legal {
        padding: 12px 16px;
        font-size: 0.85rem;
    }
    .option-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}