h1 {
    font-size: 24px;
    color: #222;
}

h1,
h2 {
    color: var(--blue);
    margin: 10px 0;
}

.upload-btn {
    background-color: var(--orange);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

.upload-btn:hover {
    background-color: #e68a00;
}

.label-filter {
    display: flex;
    margin-top: 18px;
    margin-left: 10px;
    align-items: end;
}

.label-filter span {
    margin-right: 6px;
    font-size: 14px;
}

.label-filter .label-filter-tags {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 8px; /* 给滚动条一些空间 */
}

.tag {
    background-color: #f0f0f0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: #343536;
    margin-right: 6px;
    font-size: 14px;
    padding: 6px 12px; /* 增加内边距以防止按钮被压缩 */
    flex-shrink: 0; /* 防止按钮被压缩 */
}

.tag:hover {
    background-color: #e0e0e0;
}

.tag input[type="checkbox"] {
    display: none;
}

.tag.selected {
    background-color: #e0e0e0;
    border-color: var(--orange);
    color: var(--orange);
}

/* tab 切换 */
.tab-container {
    width: 100%;
}

.tab-buttons {
    display: flex;
    margin-top: 16px;
}

.tab-btn {
    background-color: transparent;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    color: #333;
    transition: color 0.3s ease, border-bottom 0.3s ease;
}

.tab-btn.active {
    border-bottom: 2px solid #ff9900; /* 激活状态的下边框 */
}

.tab-btn:hover {
    border-bottom: 2px solid #ff9900;
    background-color: transparent;
}

/* 列表 */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    padding: 20px;
}

.name {
    padding: 10px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
}

.page-item {
    background-color: #fff;
    /*border-radius: 8px;*/
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.page-item:hover {
    transform: scale(1.05);
}

.page-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.page-item .operate {
    display: flex;
    align-items: center;
    justify-content: right;
    width: 100%; /* 保证父容器宽度 */
}

.page-item .name {
    padding: 2px 10px;
    text-align: left;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden; /* 隐藏超出的内容 */
    font-size: 12px;
    border-bottom: 1px solid gray;
}

.showcase-button,
.edit-page-button {
    background-color: gray;
    color: white;
    border: none;
    padding: 1px 5px;
    font-size: 12px;
    white-space: nowrap;
    margin-left: 4px; /* 给按钮和文字留一点间距 */
    margin-right: 4px;
    margin-top: 0;
}

.edit-page-button:hover {
    background-color: #e68a00;
}

/* 添加图像流提示项样式 */
.add-image-flow {
    background-color: #f9f9f9;
    border: 2px dashed #ff9900;
    cursor: pointer;
}

.add-image-flow:hover {
    background-color: #fff3e0;
    border-color: #ff9900;
}

.add-flow-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.add-icon {
    font-size: 36px;
    color: #ff9900;
    font-weight: bold;
    margin-bottom: 10px;
}

.add-text {
    font-size: 16px;
    color: #ff9900;
    font-weight: 500;
}

@media (max-width: 768px) {

    body {
        padding: 6px;
    }
}