/* ============================================================
   files-operation.css - 文件操作（FilesOperation）专属样式
   仅包含页面特有样式，通用组件已移至 qistoolkit3-page.css
   ============================================================ */

/* --- 页面标题 --- */
.files-main h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    border-bottom: 2px solid rgba(52, 152, 219, 0.12);
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.files-main h2 a {
    color: #3498db;
    transition: color 0.3s ease;
}

.files-main h2 a:hover {
    color: #5dade2;
}

body.light-theme .files-main h2 a {
    color: #2980b9;
}

body.light-theme .files-main h2 a:hover {
    color: #3498db;
}

/* --- 预览图 --- */
.preview-image {
    margin: 12px 0 18px 0;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.15);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.preview-image:hover {
    border-color: rgba(52, 152, 219, 0.15);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

body.light-theme .preview-image {
    border-color: rgba(0, 0, 0, 0.06);
    background: rgba(0, 0, 0, 0.02);
}

body.light-theme .preview-image:hover {
    border-color: rgba(41, 128, 185, 0.12);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.preview-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    background: #1a1a1a;
}

body.light-theme .preview-image img {
    background: #f8fafc;
}

.preview-caption {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    color: #666;
    padding: 6px 0 8px 0;
    letter-spacing: 0.3px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

body.light-theme .preview-caption {
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    color: #888;
}

/* --- 一句话描述 --- */
.files-description {
    font-size: 0.95rem;
    color: #aaa;
    margin: -4px 0 18px 0;
    padding-left: 14px;
    border-left: 3px solid rgba(52, 152, 219, 0.2);
}

body.light-theme .files-description {
    color: #666;
}

/* --- 能力边界 (capability-box) --- */
.capability-box {
    background: rgba(255, 255, 255, 0.015);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    margin-top: 0;
    margin-bottom: 14px;
    overflow: hidden;
}

body.light-theme .capability-box {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.04);
}

.capability-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: rgba(52, 152, 219, 0.04);
    border-bottom: 1px solid rgba(52, 152, 219, 0.04);
}

.capability-icon {
    font-size: 1.1rem;
}

.capability-header h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #b0d4f0;
}

body.light-theme .capability-header {
    background: rgba(41, 128, 185, 0.03);
    border-bottom: 1px solid rgba(41, 128, 185, 0.04);
}

body.light-theme .capability-header h4 {
    color: #2c3e50;
}

.capability-body {
    padding: 12px 18px 14px;
}

.capability-body ul {
    margin: 0;
    padding-left: 20px;
    list-style: none;
}

.capability-body ul li {
    font-size: 0.88rem;
    color: #aaa;
    padding: 4px 0;
    position: relative;
    padding-left: 18px;
    line-height: 1.6;
}

.capability-body ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #3498db;
}

.capability-body ul li strong {
    color: #c8d8e8;
}

body.light-theme .capability-body ul li {
    color: #555;
}

body.light-theme .capability-body ul li strong {
    color: #2c3e50;
}

/* --- 使用流程 (flow-box) --- */
.flow-box {
    background: rgba(255, 255, 255, 0.015);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    margin-bottom: 16px;
    overflow: hidden;
}

body.light-theme .flow-box {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.04);
}

.flow-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: rgba(139, 195, 74, 0.04);
    border-bottom: 1px solid rgba(139, 195, 74, 0.04);
}

.flow-icon {
    font-size: 1.1rem;
}

.flow-header h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #8bc34a;
}

body.light-theme .flow-header {
    background: rgba(139, 195, 74, 0.04);
    border-bottom: 1px solid rgba(139, 195, 74, 0.04);
}

body.light-theme .flow-header h4 {
    color: #558b2f;
}

.flow-body {
    padding: 12px 18px 14px;
}

.flow-body ol {
    margin: 0;
    padding-left: 22px;
}

.flow-body ol li {
    font-size: 0.88rem;
    color: #aaa;
    padding: 3px 0;
    line-height: 1.6;
}

.flow-body ol li strong {
    color: #c8d8e8;
}

body.light-theme .flow-body ol li {
    color: #555;
}

body.light-theme .flow-body ol li strong {
    color: #2c3e50;
}

/* --- 辅助信息 --- */
.files-legal {
    margin-top: 0;
    padding: 14px 24px;
}

/* --- 响应式 --- */
@media (max-width: 600px) {
    .files-main h2 {
        font-size: 1.4rem;
    }

    .files-description {
        font-size: 0.85rem;
        padding-left: 10px;
    }

    .preview-image {
        margin: 8px 0 14px 0;
        border-radius: 8px;
    }

    .preview-caption {
        font-size: 0.65rem;
        padding: 4px 0 6px 0;
    }

    .capability-header,
    .flow-header {
        padding: 8px 14px;
    }

    .capability-header h4,
    .flow-header h4 {
        font-size: 0.85rem;
    }

    .capability-body,
    .flow-body {
        padding: 10px 14px 12px;
    }

    .capability-body ul li,
    .flow-body ol li {
        font-size: 0.82rem;
    }

    .files-legal {
        padding: 10px 16px;
        font-size: 0.8rem;
    }
}

@media (max-width: 400px) {
    .files-main h2 {
        font-size: 1.2rem;
    }

    .files-description {
        font-size: 0.8rem;
    }

    .capability-body ul li,
    .flow-body ol li {
        font-size: 0.78rem;
    }
}