﻿.Page_PromptEdit_Body_main {
    padding-top: calc(var(--topbar-height) + var(--top-safe) + 16px);
    padding-bottom: calc(var(--tabbar-height) + var(--bottom-safe) + var(--bar-height) + 16px);
    padding-left: 16px;
    padding-right: 16px;
}

.Page_PromptEdit_Body_section {
    margin-bottom: 16px;
}

/* ========== Body 区：页面主题 · 图片提示词编辑板块 ========== */
.Page_PromptEdit_Body_themeBlock {
    background: var(--card);
    border-radius: 18px;
    padding: 20px 18px;
    box-shadow: var(--shadow);
    margin-bottom: 18px;
}

.Page_PromptEdit_Body_themeTitle {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.Page_PromptEdit_Body_themeDesc {
    font-size: 12px;
    color: var(--text-sub);
    line-height: 1.6;
}

/* ========== Body 区：分类筛选 chips ========== */
.Page_PromptEdit_Body_chipBar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 14px;
}

    .Page_PromptEdit_Body_chipBar::-webkit-scrollbar {
        display: none;
    }

.Page_PromptEdit_Body_chip {
    flex: 0 0 auto;
    padding: 7px 14px;
    border-radius: 16px;
    background: var(--card);
    font-size: 12px;
    color: var(--text-sub);
    box-shadow: var(--shadow);
    cursor: pointer;
    border: none;
    font-family: inherit;
}

    .Page_PromptEdit_Body_chip.active {
        background: var(--primary-light);
        color: var(--primary);
        font-weight: 600;
    }

/* ========== Body 区：提示词编辑表格（可横向滑动） ========== */
.Page_PromptEdit_Body_tableWrap {
    background: var(--card);
    border-radius: 18px;
    box-shadow: var(--shadow);
    overflow-x: auto;
    margin-bottom: 16px;
}

    .Page_PromptEdit_Body_tableWrap::-webkit-scrollbar {
        display: none;
    }

.Page_PromptEdit_Body_table {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
    table-layout: fixed;
}

    .Page_PromptEdit_Body_table th {
        font-size: 12px;
        color: var(--text-sub);
        font-weight: 600;
        padding: 13px 10px;
        border-bottom: 1px solid var(--line);
        text-align: center;
        white-space: nowrap;
    }

    .Page_PromptEdit_Body_table td {
        padding: 12px 10px;
        border-bottom: 1px solid var(--line);
        white-space: nowrap;
        font-size: 13px;
        vertical-align: middle;
    }

    .Page_PromptEdit_Body_table tr:last-child td {
        border-bottom: none;
    }

    .Page_PromptEdit_Body_table th:nth-child(1), .Page_PromptEdit_Body_table td:nth-child(1) {
        width: 24%;
        text-align: center;
    }

    .Page_PromptEdit_Body_table th:nth-child(2), .Page_PromptEdit_Body_table td:nth-child(2) {
        width: 56%;
    }

    .Page_PromptEdit_Body_table th:nth-child(3), .Page_PromptEdit_Body_table td:nth-child(3) {
        width: 20%;
        text-align: center;
    }

.Page_PromptEdit_Body_catTag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-light);
    padding: 5px 10px;
    border-radius: 12px;
    white-space: nowrap;
}

.Page_PromptEdit_Body_promptInput {
    width: 100%;
    min-width: 0;
    border: 1px dashed var(--line);
    border-radius: 10px;
    background: var(--bg);
    color: var(--text);
    font-size: 12px;
    font-family: inherit;
    padding: 8px 10px;
    outline: none;
}

    .Page_PromptEdit_Body_promptInput:focus {
        border-color: var(--primary);
        background: var(--card);
    }

.Page_PromptEdit_Body_addBtn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: #fff;
    font-size: 19px;
    line-height: 1;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    box-shadow: var(--shadow);
}

    .Page_PromptEdit_Body_addBtn.selected {
        background: var(--gold);
        color: #fff;
    }

/* ========== Body 区：底部已选参数操作栏 ========== */
.Page_PromptEdit_Body_actionBar {
    position: fixed;
    bottom: calc(var(--tabbar-height) + var(--bottom-safe));
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    height: var(--bar-height);
    padding: 10px 16px;
    background: var(--card);
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 90;
}

.Page_PromptEdit_Body_actionInfo {
    flex: 1;
    font-size: 12px;
    color: var(--text-sub);
}

.Page_PromptEdit_Body_actionCount {
    color: var(--primary);
    font-weight: 700;
}

.Page_PromptEdit_Body_compileBtn {
    flex: 0 0 auto;
    border: none;
    border-radius: 20px;
    background: var(--primary);
    color: #fff;
    padding: 0 18px;
    height: 40px;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
}
