/**
 * 主题: 纸鸢图床ZIH
 * 核心 UI（导航、搜索、上传弹窗等）
 *
 * @package Zhiyuan_Imgzus
 */

/* ===== 基础布局 ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site-main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/* ===== 玻璃面板 ===== */
.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(0.75rem) saturate(180%);
    border: 0.0625rem solid rgba(14, 165, 233, 0.25);
    border-radius: var(--radius-md);
    box-shadow: 
        0 0.5rem 1.25rem rgba(0,0,0,0.5),
        inset 0 0 0 0.0625rem rgba(255, 255, 255, 0.05);
}

/* ===== 霓虹边框按钮 ===== */
.neon-border {
    position: relative;
    padding: 0.75rem 2rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(0.375rem);
    border: 0.0625rem solid rgba(14, 165, 233, 0.4);
    border-radius: var(--radius-md);
    box-shadow:
        0 0.125rem 0.375rem rgba(0, 0, 0, 0.05),
        inset 0 0 0.625rem rgba(14, 165, 233, 0.05);
    color: var(--neon-primary);
    letter-spacing: 0.125rem;
    transition: all 0.3s ease;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 0.875rem;
}

.neon-border:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--neon-primary);
    box-shadow:
        0 0.25rem 0.75rem rgba(14, 165, 233, 0.15),
        inset 0 0 0.9375rem rgba(14, 165, 233, 0.08);
    transform: translateY(-0.0625rem);
}

.neon-border:active {
    transform: translateY(0);
    box-shadow:
        0 0.125rem 0.25rem rgba(0, 0, 0, 0.05),
        inset 0 0 0.625rem rgba(14, 165, 233, 0.05);
}

.neon-border:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ===== 底部导航栏样式 ===== */
.site-header {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 101;
    padding: 0;
    background: var(--bg-panel);
    backdrop-filter: blur(0.75rem);
    border-top: 0.0625rem solid rgba(14, 165, 233, 0.25);
    box-shadow:
        0 -0.25rem 1rem rgba(0, 0, 0, 0.3),
        inset 0 0.0625rem 0 0 rgba(255, 255, 255, 0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.5rem 0;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: filter 0.3s ease;
}

.site-logo:hover {
    filter: drop-shadow(0 0 0.625rem rgba(14, 165, 233, 0.8))
            drop-shadow(0 0 1.25rem rgba(14, 165, 233, 0.5));
}

.site-logo-img {
    display: block;
    height: 2rem;
    width: auto;
    object-fit: contain;
}

.site-name {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--neon-primary), #9333EA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-left: 0.75rem;
    white-space: nowrap;
    position: relative;
    padding-bottom: 0.25rem;
}

.site-name::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0.125rem;
    background: linear-gradient(135deg, var(--neon-primary), #9333EA);
    border-radius: var(--radius-full);
    transform-origin: left;
    transform: scaleX(1);
    transition: transform 0.3s ease;
}

.site-logo:hover .site-name::after {
    transform: scaleX(0);
}

.main-navigation {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 0;
    overflow: visible;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 0.5rem;
    margin: 0;
    padding: 0.5rem;
    background: transparent;
    border: none;
    flex-wrap: nowrap;
}

.nav-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li::before {
    display: none;
}

.nav-menu a {
    position: relative;
    display: block;
    color: var(--text-white-70);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 0.0625rem solid rgba(14, 165, 233, 0.2);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    font-size: 0.875rem;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: var(--neon-purple);
    border-color: var(--neon-purple);
    background: rgba(147, 51, 234, 0.1);
    text-shadow: 0 0 0.5rem var(--neon-purple);
}

/* ⚠️ 导航菜单未配置提示 */
.nav-menu-notice {
    font-size: 0.75rem;
    color: var(--text-white-40);
    white-space: nowrap;
}

/* 📱 导航折叠（默认隐藏，JS 按空间按需显示） */
.nav-overflow-wrap {
    display: none;
    position: relative;
    flex-shrink: 0;
}

.nav-overflow-wrap:not([hidden]) {
    display: block;
}

.main-navigation.nav-has-overflow .nav-menu {
    overflow: hidden;
}

.nav-overflow-toggle {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: rgba(14, 165, 233, 0.1);
    border: 0.0625rem solid rgba(14, 165, 233, 0.3);
    border-radius: var(--radius-md);
    color: var(--neon-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-overflow-toggle:hover,
.nav-overflow-toggle.active {
    background: rgba(14, 165, 233, 0.2);
    border-color: rgba(14, 165, 233, 0.5);
    box-shadow: 0 0 0.75rem rgba(14, 165, 233, 0.3);
}

.nav-overflow-toggle svg {
    width: 1.25rem;
    height: 1.25rem;
}

.nav-overflow-menu {
    position: absolute;
    bottom: calc(100% + 0.625rem);
    right: 0;
    min-width: 9rem;
    max-width: 14rem;
    max-height: 50vh;
    overflow-y: auto;
    list-style: none;
    margin: 0;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(1rem);
    -webkit-backdrop-filter: blur(1rem);
    border: 0.0625rem solid rgba(14, 165, 233, 0.2);
    border-radius: var(--radius-lg);
    box-shadow: 0 -0.25rem 1.5rem rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(0.625rem) scale(0.95);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    pointer-events: none;
    z-index: 102;
}

.nav-overflow-wrap::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    height: 0.625rem;
    background: transparent;
}

.nav-overflow-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.nav-overflow-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-overflow-menu li::before {
    display: none;
}

.nav-overflow-menu a {
    display: block;
    padding: 0.625rem 0.875rem;
    color: var(--text-white-70);
    text-decoration: none;
    font-size: 0.8125rem;
    border-radius: var(--radius-md);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.2s ease;
}

.nav-overflow-menu a:hover {
    background: rgba(14, 165, 233, 0.1);
    color: var(--neon-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.action-btn {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0.0625rem solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-white-70);
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    border-color: var(--neon-primary);
    color: var(--neon-primary);
    box-shadow: 0 0 0.625rem rgba(14, 165, 233, 0.3);
}

.action-btn svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* 📤 上传按钮 - 突出显示 */
.upload-btn {
    background: rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.3);
    color: var(--neon-primary);
    text-decoration: none;
}

.upload-btn:hover {
    background: var(--neon-primary);
    border-color: var(--neon-primary);
    color: var(--bg-deep);
    box-shadow: 0 0 0.75rem rgba(14, 165, 233, 0.4);
    transform: translateY(-0.0625rem);
}

/* ===== 👤 用户菜单 ===== */
.user-menu {
    position: relative;
}

.user-avatar {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    background: rgba(14, 165, 233, 0.1);
    border: 0.0625rem solid rgba(14, 165, 233, 0.3);
    border-radius: var(--radius-md);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar:hover {
    background: rgba(14, 165, 233, 0.2);
    border-color: rgba(14, 165, 233, 0.5);
    box-shadow: 0 0 1rem rgba(14, 165, 233, 0.3);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

/* 🎡 用户下拉菜单 */
.user-dropdown {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 0.75rem;
    min-width: 140px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(1rem);
    -webkit-backdrop-filter: blur(1rem);
    border: 0.0625rem solid rgba(14, 165, 233, 0.2);
    border-radius: var(--radius-lg);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    pointer-events: none;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
    z-index: 101;
}

/* 伪元素填补间隙 */
.user-menu::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    height: 0.75rem;
    background: transparent;
}

.user-menu:hover .user-dropdown,
.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    color: var(--text-white-70);
    text-decoration: none;
    font-size: 0.875rem;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.user-dropdown__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.user-dropdown__icon--emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    line-height: 1;
}

.user-dropdown a:hover {
    background: rgba(14, 165, 233, 0.1);
    color: var(--neon-primary);
}

/* ===== 🎯 管理轮盘按钮 - 固定在左下角 ===== */
.admin-wheel {
    position: fixed;
    bottom: 5rem;
    left: 1.5rem;
    z-index: 98;
}

.wheel-trigger {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-md);
    background: rgba(14, 165, 233, 0.1);
    border: 0.0625rem solid rgba(14, 165, 233, 0.3);
    color: var(--neon-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.wheel-trigger:hover {
    background: rgba(14, 165, 233, 0.2);
    box-shadow: 0 0 1rem rgba(14, 165, 233, 0.3);
}

.wheel-trigger svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wheel-trigger.active {
    background: rgba(14, 165, 233, 0.3);
    transform: rotate(45deg);
}

/* 🎡 轮盘菜单 - 向上展开 */
.wheel-menu {
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    pointer-events: none;
}

.wheel-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.wheel-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-panel);
    backdrop-filter: blur(0.75rem);
    border: 0.0625rem solid rgba(14, 165, 233, 0.2);
    border-radius: var(--radius-lg);
    color: var(--text-white-70);
    text-decoration: none;
    font-size: 0.875rem;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.3);
}

.wheel-item:hover {
    background: rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.4);
    color: var(--neon-primary);
    transform: translateX(5px);
}

.wheel-item svg {
    width: 1.125rem;
    height: 1.125rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* ===== 🔍 搜索面板 - 窗口模式 ===== */
.search-panel {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-panel.active {
    opacity: 1;
    visibility: visible;
}

/* 🌫️ 高斯模糊背景遮罩 */
.search-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(1.5rem);
    -webkit-backdrop-filter: blur(1.5rem);
}

/* 📦 搜索窗口 */
.search-modal {
    position: relative;
    width: 90%;
    max-width: 600px;
    background: var(--bg-panel);
    backdrop-filter: blur(1rem) saturate(180%);
    -webkit-backdrop-filter: blur(1rem) saturate(180%);
    border: 0.0625rem solid rgba(14, 165, 233, 0.3);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: 
        0 1.5rem 3rem rgba(0, 0, 0, 0.5),
        0 0 2rem rgba(14, 165, 233, 0.1),
        inset 0 0 0 0.0625rem rgba(255, 255, 255, 0.05);
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.search-panel.active .search-modal {
    transform: scale(1) translateY(0);
}

/* ❌ 关闭按钮 */
.search-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.05);
    border: 0.0625rem solid var(--border-light);
    border-radius: var(--radius-full);
    color: var(--text-white-50);
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-close:hover {
    background: rgba(225, 29, 72, 0.1);
    border-color: var(--neon-secondary);
    color: var(--neon-secondary);
}

.search-close svg {
    width: 1.25rem;
    height: 1.25rem;
    stroke: currentColor;
    stroke-width: 2;
}

/* 📝 搜索内容 */
.search-content {
    text-align: center;
}

.search-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 1rem rgba(14, 165, 233, 0.3);
}

/* 🔤 输入框包装 */
.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.search-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.7);
    border: 0.0625rem solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    font-size: 1rem;
    color: var(--text-white);
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--neon-primary);
    box-shadow: 0 0 1rem rgba(14, 165, 233, 0.2);
}

.search-input::placeholder {
    color: var(--text-white-40);
}

/* 🔍 搜索按钮 */
.search-submit {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(14, 165, 233, 0.1);
    border: 0.0625rem solid var(--neon-primary);
    border-radius: var(--radius-lg);
    color: var(--neon-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-submit:hover {
    background: var(--neon-primary);
    color: var(--bg-deep);
    box-shadow: 0 0 1rem rgba(14, 165, 233, 0.5);
}

.search-submit svg {
    width: 1.25rem;
    height: 1.25rem;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

/* 💡 搜索建议 */
.search-suggestions {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 3.75rem;
    z-index: 2;
    max-height: 16rem;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.95);
    border: 0.0625rem solid rgba(14, 165, 233, 0.25);
    border-radius: var(--radius-lg);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.15);
    text-align: left;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.5rem);
    transition: all 0.2s ease;
}

.search-suggestions.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-suggestion-item {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    background: transparent;
    border: 0;
    border-bottom: 0.0625rem solid rgba(0, 0, 0, 0.05);
    color: var(--text-white);
    font-size: 0.9375rem;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.search-suggestion-item:last-child {
    border-bottom: 0;
}

.search-suggestion-item:hover,
.search-suggestion-item.active {
    background: rgba(14, 165, 233, 0.08);
    color: var(--neon-primary);
}

.search-suggestion-item mark {
    background: transparent;
    color: var(--neon-primary);
    font-weight: 600;
}

.search-hint {
    margin-top: 1rem;
    font-size: 0.8125rem;
    color: var(--text-white-40);
}

/* ===== 📤 上传面板 - 窗口模式 ===== */
.upload-panel {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.upload-panel.active {
    opacity: 1;
    visibility: visible;
}

/* 🌫️ 高斯模糊背景遮罩 */
.upload-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(1.5rem);
    -webkit-backdrop-filter: blur(1.5rem);
}

/* 📦 上传窗口 */
.upload-modal {
    position: relative;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(1.5rem) saturate(200%);
    -webkit-backdrop-filter: blur(1.5rem) saturate(200%);
    border: 0.0625rem solid rgba(14, 165, 233, 0.2);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow:
        0 1.5rem 3rem rgba(0, 0, 0, 0.1),
        0 0 0.75rem rgba(14, 165, 233, 0.08),
        inset 0 0 0 0.0625rem rgba(255, 255, 255, 0.6);
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.upload-panel.active .upload-modal {
    transform: scale(1) translateY(0);
}

/* ❌ 关闭按钮 */
.upload-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.05);
    border: 0.0625rem solid var(--border-light);
    border-radius: var(--radius-full);
    color: var(--text-white-50);
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-close:hover {
    background: rgba(225, 29, 72, 0.1);
    border-color: var(--neon-secondary);
    color: var(--neon-secondary);
}

.upload-close svg {
    width: 1.25rem;
    height: 1.25rem;
    stroke: currentColor;
    stroke-width: 2;
}

/* 📝 上传内容 */
.upload-content {
    text-align: center;
}

.upload-modal .upload-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.upload-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 1rem rgba(14, 165, 233, 0.3);
}

.upload-modal .upload-title {
    flex-shrink: 0;
    margin-bottom: 1.25rem;
}

/* 📁 上传区域 */
.upload-area {
    border: 0.125rem dashed var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.upload-modal .upload-area {
    flex-shrink: 0;
    padding: 2rem 1.5rem;
    margin-bottom: 1rem;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--neon-primary);
    background: rgba(14, 165, 233, 0.05);
}

.upload-icon {
    width: 3.5rem;
    height: 3.5rem;
    stroke: var(--neon-primary);
    stroke-width: 1.5;
    fill: none;
    margin-bottom: 1rem;
}

.upload-placeholder h3 {
    color: var(--text-white);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.upload-placeholder p {
    color: var(--text-white-50);
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
}

/* ⚙️ 上传设置 */
.upload-modal .upload-settings {
    flex-shrink: 0;
    margin-bottom: 1rem;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    text-align: left;
    overflow: visible;
}

.setting-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-white-70);
    font-size: 0.875rem;
}

.upload-original-label,
.upload-tag-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0;
    margin-right: 1rem;
    cursor: pointer;
}

.setting-group--tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: center;
}

.setting-group select {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.7);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231E293B' fill-opacity='0.5' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 0.75rem;
    border: 0.0625rem solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-white);
    font-size: 0.9375rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.setting-group select::-ms-expand {
    display: none;
}

.setting-group select option {
    background: rgba(255, 255, 255, 0.98);
    color: var(--text-white);
    padding: 0.5rem 1rem;
}

.setting-group select option:checked {
    background: rgba(14, 165, 233, 0.12);
    color: var(--neon-primary);
}

.setting-group select:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.9);
    border-color: var(--neon-primary);
    box-shadow: 0 0 0.625rem rgba(14, 165, 233, 0.2);
}

/* 📋 上传面板 - 自定义分类下拉 */
.upload-settings .setting-group .zy-custom-select {
    position: relative;
    display: block;
    width: 100%;
}

.upload-settings .zy-custom-select__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(0.375rem);
    -webkit-backdrop-filter: blur(0.375rem);
    border: 0.0625rem solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-white);
    font-size: 0.9375rem;
    box-shadow:
        0 0.125rem 0.375rem rgba(0, 0, 0, 0.05),
        inset 0 0 0.625rem rgba(14, 165, 233, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    user-select: none;
    box-sizing: border-box;
}

.upload-settings .zy-custom-select__trigger:hover {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(14, 165, 233, 0.3);
}

.upload-settings .zy-custom-select__trigger:focus,
.upload-settings .zy-custom-select.zy-custom-select--open .zy-custom-select__trigger {
    outline: none;
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--neon-primary);
    box-shadow:
        0 0 0.625rem rgba(14, 165, 233, 0.2),
        inset 0 0 0.625rem rgba(14, 165, 233, 0.05);
}

.upload-settings .zy-custom-select__arrow {
    width: 0;
    height: 0;
    border-left: 0.3125rem solid transparent;
    border-right: 0.3125rem solid transparent;
    border-top: 0.3125rem solid var(--text-white-50);
    transition: transform 0.2s ease, border-top-color 0.3s ease;
    flex-shrink: 0;
}

.upload-settings .zy-custom-select.zy-custom-select--open .zy-custom-select__arrow {
    transform: rotate(180deg);
    border-top-color: var(--neon-primary);
}

.upload-settings .zy-custom-select__options {
    position: absolute;
    top: auto;
    bottom: calc(100% + 0.375rem);
    left: 0;
    right: 0;
    max-height: 12rem;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(1rem);
    -webkit-backdrop-filter: blur(1rem);
    border: 0.0625rem solid rgba(14, 165, 233, 0.2);
    border-radius: var(--radius-md);
    box-shadow:
        0 0.5rem 1.25rem rgba(0, 0, 0, 0.1),
        0 0 0.75rem rgba(14, 165, 233, 0.08);
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    transform: translateY(0.375rem);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.upload-settings .zy-custom-select.zy-custom-select--open .zy-custom-select__options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.upload-settings .zy-custom-select__option {
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
    color: var(--text-white);
    border-bottom: 0.0625rem solid rgba(30, 41, 59, 0.06);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.upload-settings .zy-custom-select__option:last-child {
    border-bottom: none;
}

.upload-settings .zy-custom-select__option:hover {
    background: rgba(14, 165, 233, 0.08);
}

.upload-settings .zy-custom-select__option.zy-custom-select__option--selected {
    background: rgba(14, 165, 233, 0.15);
    color: var(--neon-primary);
}

.upload-settings .zy-custom-select__option.zy-custom-select__option--selected:hover {
    background: rgba(14, 165, 233, 0.2);
}

.upload-settings .zy-custom-select__native {
    display: none;
}

/* 📋 上传队列 */
.upload-modal .upload-queue {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* body上传打开时禁止滚动 */
body.upload-open {
    overflow: hidden;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h1 {
    color: var(--text-white);
    font-size: 1.5rem;
}

.load-more {
    text-align: center;
    padding: 3rem 0;
}

/* ===== 页脚 ===== */
.footer-menu a:hover {
    color: var(--neon-primary);
}
