/* 标签页面样式 */
.tags-page {
    padding: 20px 0;
}

.page-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-pink);
    margin-bottom: 10px;
}

.title-icon {
    width: 32px;
    height: 32px;
    stroke: var(--primary-pink);
}

.page-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 30px;
}

/* 搜索框 */
.tags-search-box {
    display: flex;
    max-width: 500px;
    margin: 0 auto 30px;
    background: var(--light-pink);
    border-radius: 25px;
    border: 2px solid var(--primary-pink);
    overflow: hidden;
}

.tag-search-input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    font-size: 1rem;
    outline: none;
    color: var(--text);
}

.tag-search-input::placeholder {
    color: var(--text-light);
}

.tag-search-btn {
    padding: 12px 20px;
    background: var(--primary-pink);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.tag-search-btn:hover {
    background: var(--primary-pink);
    filter: brightness(0.9);
}

.tag-search-btn svg {
    width: 20px;
    height: 20px;
    stroke: white;
}

/* 标签云容器 */
.tags-cloud-container {
    background: white;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 8px 30px var(--shadow);
}

/* 标签云 - 复用首页样式 */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

.tags-cloud .tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--light-pink);
    color: var(--primary-pink);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.tags-cloud .tag:hover {
    background: var(--primary-pink);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px var(--shadow);
}

.tags-cloud .tag-large {
    padding: 10px 20px;
    font-size: 1rem;
}

/* 分页 - 沿用漫画库样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    padding: 20px 0;
}

.page-link {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.page-link:hover {
    background: var(--primary-pink);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow);
}

.page-link.active {
    background: var(--primary-pink);
    color: white;
    cursor: default;
}

.arrow-icon {
    width: 18px;
    height: 18px;
}

/* 页码跳转 - 伪装输入框样式 */
.page-jump-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    padding: 10px;
}

.page-jump-fake-input {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border: 2px solid transparent;
    border-radius: 12px;
    background: #FFF0F5;
    box-shadow: inset 0 2px 4px rgba(255, 158, 181, 0.1);
    transition: all 0.3s ease;
    cursor: text;
}

.page-jump-fake-input:focus-within {
    border-color: var(--primary-pink);
    background: #FFE8F0;
    box-shadow: 0 0 0 3px rgba(255, 158, 181, 0.2), inset 0 2px 4px rgba(255, 158, 181, 0.1);
}

.page-jump-editable {
    width: 40px;
    border: none;
    background: transparent;
    text-align: right;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    outline: none;
    padding: 0;
}

.page-jump-suffix {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-light);
    margin-left: 2px;
}

/* 无结果提示 */
.no-results {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
    font-size: 1.1rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 30px var(--shadow);
    display: none;
}

.no-results p {
    margin: 0;
}

/* 响应式 */
@media (max-width: 768px) {
    .page-title {
        font-size: 1.5rem;
    }

    .tags-cloud-container {
        padding: 15px;
    }

    .tags-cloud .tag {
        font-size: 0.85rem;
        padding: 6px 12px;
    }

    .tags-cloud .tag-large {
        font-size: 0.9rem;
        padding: 8px 14px;
    }

    .pagination {
        gap: 6px;
    }

    .page-link {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}
