/* 拷贝数据清单页面 manifest.php */

.manifest-page {
    padding: 40px 0;
}

.manifest-header {
    text-align: center;
    margin-bottom: 30px;
}

.manifest-header h1 {
    color: #8b4513;
    font-size: 2.6rem;
    margin-bottom: 12px;
}

.manifest-subtitle {
    color: #a0522d;
    font-size: 1.15rem;
    font-style: italic;
}

/* 顶部说明块 */
.manifest-intro {
    background: rgba(244, 241, 232, 0.9);
    border-radius: 20px;
    padding: 30px 35px;
    margin-bottom: 25px;
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.1);
}

.manifest-intro p {
    color: #2c1810;
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 12px;
}

.manifest-tip {
    color: #8b7355 !important;
    font-size: 0.95rem !important;
    margin-bottom: 0 !important;
}

.unit-note {
    color: #8b7355;
    font-size: 0.88rem;
    font-weight: normal;
}

/* 下载按钮 */
.manifest-dl {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 18px 0;
}

.manifest-dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #d2691e, #cd853f);
    color: #f4f1e8;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.manifest-dl-btn:hover {
    background: linear-gradient(135deg, #cd853f, #d2691e);
    transform: translateY(-2px);
}

.manifest-dl-btn.is-ghost {
    background: transparent;
    color: #8b4513;
    border: 2px solid #cd853f;
}

.manifest-dl-btn.is-ghost:hover {
    background: rgba(210, 105, 30, 0.1);
    color: #a0522d;
}

/* 搜索 */
.manifest-search {
    margin-bottom: 25px;
    text-align: center;
}

.manifest-search-input {
    width: 100%;
    max-width: 640px;
    padding: 14px 22px;
    font-size: 1.05rem;
    font-family: inherit;
    color: #2c1810;
    background: rgba(244, 241, 232, 0.95);
    border: 2px solid #d2691e;
    border-radius: 30px;
    outline: none;
    transition: all 0.3s ease;
}

.manifest-search-input:focus {
    border-color: #a0522d;
    box-shadow: 0 4px 18px rgba(139, 69, 19, 0.2);
}

.manifest-search-hint {
    margin-top: 10px;
    color: #8b7355;
    font-size: 0.92rem;
}

/* 加载 / 错误 */
.manifest-loading {
    text-align: center;
    padding: 50px 20px;
    color: #8b4513;
}

.manifest-loading i {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.manifest-error {
    text-align: center;
    padding: 40px 20px;
    color: #dc3545;
}

.manifest-error i {
    font-size: 2rem;
    margin-bottom: 12px;
}

/* 大类卡片 */
.manifest-cats {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cat-card {
    background: rgba(244, 241, 232, 0.9);
    border: 2px solid rgba(210, 105, 30, 0.4);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.08);
}

.cat-card:hover {
    border-color: #d2691e;
    box-shadow: 0 8px 22px rgba(139, 69, 19, 0.15);
}

.cat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    cursor: pointer;
    user-select: none;
}

.cat-name {
    color: #8b4513;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0;
    word-break: break-all;
}

.cat-arrow {
    color: #d2691e;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
}

.cat-card.is-open .cat-arrow {
    transform: rotate(180deg);
}

.cat-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    padding: 0 22px 18px;
    color: #8b7355;
    font-size: 0.93rem;
}

.cat-meta i {
    margin-right: 4px;
    color: #a0522d;
}

.cat-size {
    color: #d2691e !important;
    font-weight: bold;
}

/* 展开体 */
.cat-body {
    display: none;
    border-top: 1px solid rgba(139, 69, 19, 0.2);
    background: rgba(232, 220, 192, 0.28);
    max-height: 520px;
    overflow-y: auto;
}

.cat-card.is-open .cat-body {
    display: block;
}

.cat-card.is-loading .cat-body {
    display: block;
}

.cat-inner {
    padding: 12px 0;
}

/* 目录树行 */
.t-row {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 16px 5px 0;
    font-size: 0.92rem;
    line-height: 1.5;
    border-bottom: 1px solid rgba(139, 69, 19, 0.07);
}

.t-row:last-child {
    border-bottom: none;
}

.t-dir {
    color: #8b4513;
    font-weight: bold;
    background: rgba(210, 105, 30, 0.05);
}

.t-dir i {
    color: #cd853f;
    flex-shrink: 0;
}

.t-file {
    color: #2c1810;
    font-weight: normal;
}

.t-file i {
    color: #a0522d;
    flex-shrink: 0;
    font-size: 0.85rem;
}

.t-name {
    flex: 1;
    word-break: break-all;
}

.t-cnt {
    color: #8b7355;
    font-size: 0.85rem;
    white-space: nowrap;
    flex-shrink: 0;
    font-weight: normal;
}

/* 搜索结果 */
.manifest-results {
    background: rgba(244, 241, 232, 0.9);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.1);
}

.res-head {
    color: #8b4513;
    font-size: 1.05rem;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #d2691e;
}

.res-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(139, 69, 19, 0.12);
    font-size: 0.93rem;
}

.res-row:last-child {
    border-bottom: none;
}

.res-cat {
    flex-shrink: 0;
    width: 165px;
    color: #a0522d;
    font-size: 0.86rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.res-path {
    flex: 1;
    color: #2c1810;
    word-break: break-all;
    line-height: 1.5;
}

.res-size {
    flex-shrink: 0;
    color: #d2691e;
    font-weight: bold;
    font-size: 0.88rem;
    white-space: nowrap;
}

.res-empty {
    text-align: center;
    padding: 45px 20px;
    color: #8b7355;
}

.res-empty i {
    font-size: 2.2rem;
    margin-bottom: 12px;
    display: block;
}

/* 底部 */
.manifest-foot {
    text-align: center;
    margin-top: 30px;
    padding: 22px;
    background: rgba(232, 220, 192, 0.4);
    border-radius: 14px;
    color: #8b7355;
    font-size: 0.98rem;
}

@media (max-width: 768px) {
    .manifest-header h1 {
        font-size: 1.9rem;
    }

    .manifest-intro {
        padding: 22px 18px;
    }

    .manifest-dl-btn {
        flex: 1 1 100%;
        justify-content: center;
    }

    .cat-top {
        padding: 14px 16px;
    }

    .cat-meta {
        padding: 0 16px 14px;
        font-size: 0.86rem;
    }

    .res-row {
        flex-wrap: wrap;
        gap: 4px;
    }

    .res-cat {
        width: auto;
        max-width: 100%;
    }
}
