/* ============================================
   海拉鲁地区风眠省资料博物馆 - 完整样式
   主题：暗色博物馆风格 + 神秘彩蛋
   ============================================ */

/* ---------- 全局重置 ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gold: #d4a843;
    --gold-light: #f0d48a;
    --gold-dark: #a07828;
    --bg-dark: #0a0a14;
    --bg-card: rgba(20, 20, 35, 0.85);
    --bg-glass: rgba(255, 255, 255, 0.04);
    --text-primary: #e8e0d0;
    --text-secondary: #8a8070;
    --text-muted: #8a7a68;
    --border-glow: rgba(212, 168, 67, 0.15);
    --danger: #c0392b;
    --danger-glow: rgba(192, 57, 43, 0.4);
}

/* ============================================
   日间模式 - 淡暖色调
   ============================================ */
.theme-light {
    --gold: #c9952e;
    --gold-light: #dbb86a;
    --gold-dark: #8a6620;
    --bg-dark: #f5efe6;
    --bg-card: rgba(255, 248, 235, 0.92);
    --bg-glass: rgba(200, 170, 140, 0.08);
    --text-primary: #3d3228;
    --text-secondary: #7a6b5a;
    --text-muted: #9a8b7a;
    --border-glow: rgba(201, 149, 46, 0.2);
    --danger: #c0392b;
    --danger-glow: rgba(192, 57, 43, 0.3);
}

.theme-light .particles {
    background:
        radial-gradient(1px 1px at 10% 20%, rgba(201, 149, 46, 0.15), transparent),
        radial-gradient(1px 1px at 30% 70%, rgba(201, 149, 46, 0.1), transparent),
        radial-gradient(1px 1px at 50% 40%, rgba(201, 149, 46, 0.15), transparent),
        radial-gradient(1px 1px at 70% 80%, rgba(201, 149, 46, 0.1), transparent),
        radial-gradient(1px 1px at 90% 10%, rgba(201, 149, 46, 0.12), transparent),
        radial-gradient(1.5px 1.5px at 20% 50%, rgba(201, 149, 46, 0.1), transparent),
        radial-gradient(1.5px 1.5px at 80% 30%, rgba(201, 149, 46, 0.1), transparent);
}

.theme-light .top-bar {
    background: rgba(245, 239, 230, 0.95);
    border-bottom: 1px solid rgba(201, 149, 46, 0.2);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.theme-light .password-card {
    background: var(--bg-card);
    box-shadow: 0 0 60px rgba(201, 149, 46, 0.08);
}

.theme-light .btn-museum {
    color: #fff;
}

.theme-light .btn-nav {
    background: rgba(200, 170, 140, 0.15);
    border: 1px solid rgba(200, 170, 140, 0.2);
}

.theme-light .btn-nav:hover {
    background: rgba(200, 170, 140, 0.25);
}

.theme-light .select-styled {
    background-color: rgba(200, 170, 140, 0.12);
    border: 1px solid rgba(200, 170, 140, 0.2);
}

.theme-light .user-badge {
    background: rgba(201, 149, 46, 0.12);
    border-color: rgba(201, 149, 46, 0.2);
}

.theme-light .media-card {
    background: rgba(255, 248, 235, 0.6);
    border-color: rgba(200, 170, 140, 0.15);
}

.theme-light .media-card:hover {
    border-color: rgba(201, 149, 46, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.theme-light .input-styled {
    background: rgba(200, 170, 140, 0.1);
    border-color: rgba(200, 170, 140, 0.2);
}

.theme-light .qr-image {
    border-color: rgba(201, 149, 46, 0.3);
}

.theme-light .modal-card {
    background: var(--bg-card);
}

.theme-light .browse-header {
    background: rgba(200, 170, 140, 0.06);
}

.theme-light .upload-zone {
    background: rgba(255, 248, 235, 0.3);
    border-color: rgba(201, 149, 46, 0.2);
}

.theme-light .upload-tips {
    background: rgba(201, 149, 46, 0.06);
    border-color: rgba(201, 149, 46, 0.12);
}

.theme-light .profile-page-card {
    background: rgba(255, 248, 235, 0.4);
}

.theme-light ::-webkit-scrollbar-track {
    background: #f5efe6;
}
.theme-light ::-webkit-scrollbar-thumb {
    background: rgba(201, 149, 46, 0.2);
}

.theme-light .upload-preview .preview-item {
    background: rgba(200, 170, 140, 0.15);
}

.theme-light .password-field {
    background: rgba(200, 170, 140, 0.1);
    border-color: rgba(201, 149, 46, 0.2);
}

.theme-light .btn-nav-upload {
    background: linear-gradient(135deg, rgba(0, 184, 148, 0.15), rgba(0, 206, 201, 0.15));
    border-color: rgba(0, 206, 201, 0.25);
}

.theme-light .btn-nav-upload:hover {
    background: linear-gradient(135deg, rgba(0, 184, 148, 0.3), rgba(0, 206, 201, 0.3));
}

.theme-light .btn-nav-out {
    color: #e74c3c;
}

.theme-light .profile-page-bio {
    background: rgba(255, 248, 235, 0.4);
    border-color: rgba(201, 149, 46, 0.1);
}


/* ============================================
   动态背景 Canvas
   ============================================ */
.bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ============================================
   美化增强 - 过渡动画与视觉效果
   ============================================ */

/* 密码页面优雅背景装饰 */
.password-card::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -30%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(212, 168, 67, 0.04), transparent 70%);
    pointer-events: none;
    border-radius: 50%;
}

/* 密码卡顶部的金色光晕 */
.password-card .museum-emblem {
    position: relative;
}

.password-card .museum-emblem::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    border-radius: 2px;
    opacity: 0.5;
}

/* 卡片悬浮微光效 */
.media-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212, 168, 67, 0.03), transparent 50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s;
}

.media-card:hover::before {
    opacity: 1;
}

/* 按钮按压微效 */
.btn-museum:active {
    transform: translateY(0) scale(0.98);
}

.btn-nav:active {
    transform: scale(0.95);
}

/* 密码输入框更细腻的焦点光晕 */
.password-field:focus-within::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--gold), transparent, var(--gold));
    z-index: -1;
    opacity: 0.3;
    animation: borderGlow 2s ease-in-out infinite alternate;
}

.password-field {
    position: relative;
}

@keyframes borderGlow {
    0% { opacity: 0.2; }
    100% { opacity: 0.5; }
}

/* 灯箱图片入场微弹跳 */
.lightbox-media {
    animation: lightboxBounce 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes lightboxBounce {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* 分页按钮悬浮动效 */
.pagination-bar button {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.pagination-bar button:hover {
    transform: translateY(-2px);
}

.pagination-bar button.active:hover {
    transform: translateY(-2px) scale(1.05);
}

/* 滚动条美化增强 */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
    border-left: 1px solid rgba(212, 168, 67, 0.05);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(212, 168, 67, 0.2), rgba(212, 168, 67, 0.1));
    border-radius: 4px;
    border: 2px solid transparent;
    background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(212, 168, 67, 0.4), rgba(212, 168, 67, 0.2));
    background-clip: content-box;
}

/* 媒体卡片图片悬浮微缩放平滑 */
.media-card img,
.media-card video {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 加载动画美化 */
.loading-spinner {
    border-width: 3px;
    border-color: rgba(212, 168, 67, 0.08);
    border-top-color: var(--gold);
    border-right-color: rgba(212, 168, 67, 0.2);
}

/* 上传区域的微动效 */
.upload-zone {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.upload-zone:hover .upload-zone-icon {
    animation: iconWiggle 0.6s ease;
}

@keyframes iconWiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

/* toast提示美化 */
.toast-notification {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    color: #fff;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 14px;
    z-index: 9999;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    animation: toastIn 0.4s ease forwards;
    pointer-events: none;
}

@keyframes toastIn {
    0% { opacity: 0; transform: translateX(-50%) translateY(20px); }
    100% { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* 模态弹窗背景强化 */
.modal-overlay {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: opacity 0.3s;
}

/* 输入框内图标动画 */
.input-styled-wrapper .input-icon {
    transition: transform 0.3s;
}

.input-styled-wrapper:focus-within .input-icon {
    transform: scale(1.1);
}

/* 用户徽章更加精致 */
.user-badge {
    backdrop-filter: blur(4px);
}

.user-badge .user-edit-icon {
    transition: transform 0.3s;
}

.user-badge:hover .user-edit-icon {
    transform: rotate(90deg);
}

/* 预览移除按钮美观增强 */
.preview-item .remove-btn {
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    transform: scale(0.8);
}

.preview-item:hover .remove-btn {
    opacity: 1;
    transform: scale(1);
}

/* 上传进度条更细腻 */
.progress-track {
    height: 6px;
    border-radius: 3px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.progress-fill {
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 文件类型选择器色彩微调 */
.select-styled option {
    background: #1a1a2e;
    color: #e8e0d0;
}

.theme-light .select-styled option {
    background: #f5efe6;
    color: #3d3228;
}

/* QR码悬浮旋转效果 */
.qr-image {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s;
}

.qr-image:hover {
    transform: scale(1.08) rotate(2deg);
}

/* 密码页面主题按钮位置美化 */
.theme-pwd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(212, 168, 67, 0.15);
    margin-top: 14px;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.theme-pwd-btn:hover {
    background: rgba(212, 168, 67, 0.15);
    border-color: var(--gold);
    transform: translateY(-1px);
}

/* 批量操作按钮区域美化 */
#batchDeleteBtn, #batchDownloadBtn, #selectAllBtn {
    backdrop-filter: blur(4px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#batchDeleteBtn:hover, #batchDownloadBtn:hover, #selectAllBtn:hover {
    transform: translateY(-1px);
}

/* 浏览标题布局优化 */
.browse-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* 媒体信息的点缀 */
.media-meta {
    position: relative;
}

.media-meta .media-uploader {
    transition: color 0.3s;
}

.media-meta .media-uploader:hover {
    color: var(--gold-light);
}

.media-meta .download-btn {
    transition: all 0.3s;
}

.media-meta .download-btn:hover {
    background: rgba(52, 152, 219, 0.3);
    transform: translateY(-1px);
}

/* 密码页加载状态优化 */
.loading-state p {
    line-height: 1.6;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ---------- 粒子背景 ---------- */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(1px 1px at 10% 20%, rgba(212, 168, 67, 0.3), transparent),
        radial-gradient(1px 1px at 30% 70%, rgba(212, 168, 67, 0.2), transparent),
        radial-gradient(1px 1px at 50% 40%, rgba(212, 168, 67, 0.3), transparent),
        radial-gradient(1px 1px at 70% 80%, rgba(212, 168, 67, 0.2), transparent),
        radial-gradient(1px 1px at 90% 10%, rgba(212, 168, 67, 0.25), transparent),
        radial-gradient(1.5px 1.5px at 20% 50%, rgba(212, 168, 67, 0.2), transparent),
        radial-gradient(1.5px 1.5px at 80% 30%, rgba(212, 168, 67, 0.2), transparent);
    background-size: 200px 200px;
    animation: twinkle 8s ease-in-out infinite alternate;
}

@keyframes twinkle {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* ---------- 容器 ---------- */
.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ============================================
   密码页面 - 博物馆大门
   ============================================ */
.password-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.password-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: 24px;
    padding: 50px 40px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    backdrop-filter: blur(20px);
    box-shadow:
        0 0 60px rgba(212, 168, 67, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.password-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 0%, rgba(212, 168, 67, 0.03), transparent 60%);
    pointer-events: none;
}

.museum-emblem {
    font-size: 64px;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 20px rgba(212, 168, 67, 0.3));
}

.museum-title {
    font-size: 1.8em;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
    margin-bottom: 8px;
}

.museum-subtitle {
    color: var(--text-secondary);
    font-size: 0.95em;
    letter-spacing: 2px;
}

.divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 24px auto;
}

.lock-section {
    margin: 10px 0;
}

.lock-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(212, 168, 67, 0.1);
    border: 1px solid rgba(212, 168, 67, 0.2);
    margin-bottom: 16px;
}

.lock-icon {
    font-size: 28px;
}

.lock-text {
    color: var(--text-secondary);
    font-size: 0.9em;
    margin-bottom: 20px;
}

.password-input-wrapper {
    margin-bottom: 16px;
}

.password-field {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(100, 130, 180, 0.2);
    border-radius: 12px;
    padding: 4px 16px;
    transition: all 0.3s;
}

.password-field:focus-within {
    border-color: rgba(120, 160, 220, 0.5);
    box-shadow: 0 0 25px rgba(80, 120, 200, 0.12), inset 0 0 15px rgba(80, 120, 200, 0.04);
}

.password-icon {
    font-size: 18px;
    margin-right: 10px;
    flex-shrink: 0;
}

.password-field input {
    flex: 1;
    background: none;
    border: none;
    padding: 14px 0;
    color: var(--text-primary);
    font-size: 16px;
    outline: none;
    letter-spacing: 2px;
}

.password-field input::placeholder {
    color: var(--text-muted);
    letter-spacing: 0;
}

/* 进入博物馆按钮 */
.btn-museum {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
    border: none;
    border-radius: 12px;
    color: #1a1a2e;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-museum::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-museum:hover::after {
    left: 100%;
}

.btn-museum:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 168, 67, 0.3);
}

.btn-museum:active {
    transform: translateY(0);
}

.btn-arrow {
    transition: transform 0.3s;
}

.btn-museum:hover .btn-arrow {
    transform: translateX(4px);
}

/* 密码错误区域 */
.error-area {
    margin-top: 16px;
    min-height: 40px;
    position: relative;
}

.error-gif-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: popIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.error-gif-container img {
    max-width: 150px;
    max-height: 120px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(212, 168, 67, 0.2);
    animation: slideUp 0.5s ease;
}

.error-count-text {
    color: var(--danger);
    font-size: 14px;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(192, 57, 43, 0.3);
}

.error-message {
    color: var(--danger);
    font-size: 13px;
    margin-top: 4px;
}

@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes slideUp {
    0% { transform: translateY(20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.museum-footer-text {
    margin-top: 30px;
    font-size: 0.8em;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* ============================================
   惊吓全屏覆盖（重写）
   ============================================ */
.scare-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: #000;
    animation: scareFlash 0.3s ease;
}

.scare-overlay.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* 背景图 - 全屏覆盖 */
.scare-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/picture/scare.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* 文字层 - 浮在图片上方 */
.scare-text-layer {
    position: relative;
    z-index: 10;
    font-size: 4em;
    font-weight: 900;
    color: #ff0000;
    text-shadow:
        0 0 20px rgba(255, 0, 0, 0.8),
        0 0 40px rgba(255, 0, 0, 0.6),
        0 0 80px rgba(255, 0, 0, 0.4),
        2px 2px 0 #000,
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000;
    text-align: center;
    letter-spacing: 6px;
    white-space: nowrap;
}

/* 第一句 "这不是你该来的地方" 单独加呼吸脉冲 */
.scare-text-layer.first-line {
    animation: scarePulse 1s ease-in-out infinite alternate;
}

@keyframes scareFlash {
    0% { opacity: 0; }
    20% { opacity: 1; }
    40% { opacity: 0; }
    60% { opacity: 1; }
    100% { opacity: 1; }
}

@keyframes scarePulse {
    0% { transform: scale(1); opacity: 0.9; }
    100% { transform: scale(1.05); opacity: 1; }
}

/* ---------- 惊吓 - 文字对话序列（样式由JS动态控制） ---------- */
.scare-text-layer {
    transition: opacity 1.2s ease;
}

/* Just Monika 层 - 基础样式 */
.scare-justmonika-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

/* 最后文字 - 基础样式 */
.scare-final-text {
    pointer-events: none;
    user-select: none;
}

/* 惊吓眼睛图 */
.scare-eyes-img {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 999;
    pointer-events: none;
}

/* ============================================
   主界面 - 博物馆内部
   ============================================ */
.main-screen {
    padding-top: 80px;
}

/* 顶部导航栏 */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(10, 10, 20, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 168, 67, 0.15);
    box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.top-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-emblem {
    font-size: 24px;
}

.top-title {
    font-size: 1.1em;
    font-weight: 600;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.top-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-badge {
    padding: 6px 14px;
    background: rgba(212, 168, 67, 0.15);
    border: 1px solid rgba(212, 168, 67, 0.25);
    border-radius: 20px;
    font-size: 13px;
    color: var(--gold-light);
}

.btn-nav {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-nav:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.btn-nav-upload {
    background: linear-gradient(135deg, rgba(0, 184, 148, 0.2), rgba(0, 206, 201, 0.2));
    border-color: rgba(0, 206, 201, 0.3);
}

.btn-nav-upload:hover {
    background: linear-gradient(135deg, rgba(0, 184, 148, 0.4), rgba(0, 206, 201, 0.4));
    color: #00cec9;
}

.btn-nav-admin {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.2), rgba(162, 155, 254, 0.2));
    border-color: rgba(162, 155, 254, 0.3);
}

.btn-nav-admin:hover {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.4), rgba(162, 155, 254, 0.4));
    color: #a29bfe;
}

.btn-nav-out {
    color: #e74c3c;
}

/* ============================================
   内容区
   ============================================ */
.content-wrapper {
    padding: 20px 0;
}

.view {
    display: none;
    animation: fadeIn 0.4s ease;
}

.view.active-view {
    display: block;
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.view-header {
    margin-bottom: 24px;
}

.view-header h2 {
    font-size: 1.6em;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.view-desc {
    color: var(--text-muted);
    font-size: 14px;
}

/* ---------- 浏览视图 ---------- */
.browse-header {
    margin-bottom: 20px;
    padding: 20px;
    background: var(--bg-glass);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
}

.browse-title {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 16px;
}

.browse-title h2 {
    font-size: 1.3em;
    color: var(--text-primary);
}

.media-count {
    color: var(--text-muted);
    font-size: 14px;
}

.browse-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.control-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* 选择框样式 */
.select-styled {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    outline: none;
    transition: all 0.3s;
    appearance: none;
    -webkit-appearance: none;
    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='%238a8070' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.select-styled:hover {
    border-color: rgba(212, 168, 67, 0.3);
}

.select-styled:focus {
    border-color: var(--gold);
}

/* 媒体网格 */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.media-card {
    background: var(--bg-glass);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s;
}

.media-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 168, 67, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.media-card img,
.media-card video {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.media-card video {
    background: #000;
}

.media-info {
    padding: 14px 16px;
}

.media-name {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.media-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.media-uploader {
    color: var(--gold-dark);
}

.delete-btn {
    color: var(--danger);
    cursor: pointer;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    transition: all 0.3s;
}

.delete-btn:hover {
    background: rgba(192, 57, 43, 0.15);
}

/* 分页 */
.pagination-bar {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 24px 0;
}

.pagination-bar button {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination-bar button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.pagination-bar button.active {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: #1a1a2e;
    border-color: var(--gold);
    font-weight: 600;
}

/* 加载动画 */
.loading-state {
    grid-column: 1/-1;
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 16px;
    border: 3px solid rgba(212, 168, 67, 0.1);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   上传视图
   ============================================ */
.upload-card {
    background: var(--bg-glass);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 30px;
}

.upload-zone {
    border: 2px dashed rgba(212, 168, 67, 0.2);
    border-radius: 16px;
    padding: 50px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(212, 168, 67, 0.02);
}

.upload-zone:hover,
.upload-zone.drag-over {
    border-color: var(--gold);
    background: rgba(212, 168, 67, 0.05);
}

.upload-zone-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.upload-zone-text {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 8px;
}

.upload-zone-hint {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 4px;
}

.upload-zone-formats {
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 20px;
}

.upload-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.upload-preview .preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
}

.upload-preview .preview-item img,
.upload-preview .preview-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-preview .preview-item .remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.upload-preview .preview-item .remove-btn:hover {
    background: var(--danger);
}

.upload-actions {
    text-align: center;
    margin: 20px 0;
}

.upload-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
}

.progress-track {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
    width: 0%;
    border-radius: 3px;
    transition: width 0.3s;
}

.progress-text {
    color: var(--text-muted);
    font-size: 13px;
    min-width: 40px;
}

.upload-result {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin: 10px 0;
}

/* ============================================
   管理视图
   ============================================ */
.admin-grid {
    display: grid;
    gap: 20px;
}

.admin-card {
    background: var(--bg-glass);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 24px;
}

.admin-card h3 {
    color: var(--gold-light);
    font-size: 1.1em;
    margin-bottom: 16px;
}

.admin-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.admin-form .input-styled {
    flex: 1;
    min-width: 160px;
}

.admin-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 16px 0;
}

.user-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    transition: all 0.3s;
}

.user-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.user-name {
    color: var(--text-primary);
    font-size: 14px;
}

.user-role {
    color: var(--text-muted);
    font-size: 12px;
    margin-left: 8px;
}

.user-date {
    color: var(--text-muted);
    font-size: 12px;
}

/* ============================================
   登录弹窗
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    0% { transform: scale(0.9) translateY(20px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.modal-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 12px;
}

.modal-header h2 {
    color: var(--text-primary);
    font-size: 1.3em;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 输入框样式 */
.input-styled {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
    width: 100%;
}

.input-styled:focus {
    border-color: var(--gold);
    box-shadow: 0 0 12px rgba(212, 168, 67, 0.1);
}

.input-styled::placeholder {
    color: var(--text-muted);
}

.input-styled-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    font-size: 16px;
    z-index: 1;
}

.input-styled-wrapper .input-styled {
    padding-left: 40px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
    .password-card {
        padding: 30px 24px;
    }

    .museum-title {
        font-size: 1.4em;
    }

    .museum-emblem {
        font-size: 48px;
    }

    .top-bar-inner {
        flex-direction: column;
        gap: 8px;
        padding: 10px 16px;
    }

    .top-right {
        flex-wrap: wrap;
        justify-content: center;
    }

    .media-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    .scare-text {
        font-size: 2em;
        white-space: normal;
        padding: 20px;
    }

    .browse-header {
        padding: 16px;
    }

    .control-group {
        width: 100%;
    }

    .select-styled {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .media-grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================
   用户头像 & 个人资料
   ============================================ */
.user-badge {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 4px 12px 4px 4px;
    background: rgba(212, 168, 67, 0.12);
    border: 1px solid rgba(212, 168, 67, 0.2);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
    color: var(--gold-light);
}

.user-badge:hover {
    background: rgba(212, 168, 67, 0.2);
    border-color: var(--gold);
}

.user-avatar-mini {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: rgba(255,255,255,0.1);
    flex-shrink: 0;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.user-name-text {
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-edit-icon {
    font-size: 12px;
    opacity: 0.6;
}

/* 个人资料弹窗 */
.modal-card-wide {
    max-width: 480px;
}

.profile-avatar-section {
    text-align: center;
    margin-bottom: 20px;
}

.profile-avatar {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 2px solid rgba(212,168,67,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 8px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s;
}

.profile-avatar:hover {
    border-color: var(--gold);
}

.profile-avatar-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 6px 0;
    background: rgba(0,0,0,0.7);
    color: white;
    font-size: 12px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.profile-avatar:hover .profile-avatar-overlay {
    opacity: 1;
}

.profile-avatar-hint {
    color: var(--text-muted);
    font-size: 12px;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.profile-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-field label {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
}

.profile-actions {
    margin-top: 20px;
}

.success-message {
    text-align: center;
    color: #2ecc71;
    font-size: 14px;
    margin-top: 10px;
}

/* 浮动 Toast 提示 */
.toast-floating {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: #fff;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 8px 32px rgba(46, 204, 113, 0.4);
    opacity: 1;
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
    user-select: none;
}

/* ============================================
   图片灯箱
   ============================================ */
.lightbox-modal {
    background: rgba(0, 0, 0, 0.92) !important;
    backdrop-filter: blur(10px);
    cursor: zoom-out;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 32px;
    color: white;
    z-index: 300;
    background: rgba(0,0,0,0.5);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.2);
}

.lightbox-media {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    animation: lightboxIn 0.3s ease;
}

@keyframes lightboxIn {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* ============================================
   上传区域改进
   ============================================ */
.upload-zone-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-camera {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe) !important;
}

.preview-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.06);
}

.preview-item img,
.preview-item video {
    width: 100%;
    height: 75%;
    object-fit: cover;
    display: block;
}

.preview-info {
    padding: 4px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.preview-name {
    font-size: 11px;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.preview-size {
    font-size: 10px;
    color: var(--text-muted);
}

.upload-tips {
    margin-top: 20px;
    padding: 16px;
    background: rgba(212, 168, 67, 0.05);
    border: 1px solid rgba(212, 168, 67, 0.1);
    border-radius: 12px;
}

.upload-tips h4 {
    color: var(--gold-light);
    font-size: 14px;
    margin-bottom: 8px;
}

.upload-tips ul {
    list-style: none;
    padding: 0;
}

.upload-tips li {
    color: var(--text-muted);
    font-size: 13px;
    padding: 4px 0;
    padding-left: 16px;
    position: relative;
}

.upload-tips li::before {
    content: '\2022';
    position: absolute;
    left: 4px;
    color: var(--gold);
}

/* 媒体卡片悬停效果 */
.media-card img,
.media-card video {
    transition: transform 0.3s;
}

.media-card:hover img,
.media-card:hover video {
    transform: scale(1.02);
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(212, 168, 67, 0.2);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 168, 67, 0.4);
}

/* 响应式补充 */
@media (max-width: 768px) {
    .user-name-text {
        max-width: 60px;
    }
    .lightbox-image {
        max-width: 95vw;
        max-height: 80vh;
    }
    .profile-avatar {
        width: 64px;
        height: 64px;
        font-size: 32px;
    }
}


/* ============================================
   头像裁剪
   ============================================ */
.crop-container {
    display: flex;
    justify-content: center;
    margin: 16px 0;
}

.crop-wrapper {
    position: relative;
    display: inline-block;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    max-width: 100%;
}

.crop-wrapper img {
    display: block;
    max-width: 100%;
    height: auto;
}

.crop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
}

.crop-box {
    position: absolute;
    border: 2px solid #fff;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.55);
    cursor: move;
    z-index: 10;
    box-sizing: border-box;
}

.crop-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: repeating-conic-gradient(rgba(255,255,255,0.15) 0% 25%, transparent 0% 50%) 0 0 / 20px 20px;
    pointer-events: none;
}

.crop-grid {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        linear-gradient(to right, rgba(255,255,255,0.3) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.3) 1px, transparent 1px);
    background-size: 33.33% 33.33%;
    pointer-events: none;
}

.crop-handle {
    position: absolute;
    width: 14px;
    height: 14px;
    background: #fff;
    border: 2px solid var(--gold);
    border-radius: 2px;
    z-index: 11;
}

.crop-handle-nw { top: -7px; left: -7px; cursor: nw-resize; }
.crop-handle-ne { top: -7px; right: -7px; cursor: ne-resize; }
.crop-handle-sw { bottom: -7px; left: -7px; cursor: sw-resize; }
.crop-handle-se { bottom: -7px; right: -7px; cursor: se-resize; }

.crop-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 16px;
}

/* 上传按钮组 */
.upload-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}


/* ============================================
   用户主页
   ============================================ */
.profile-page {
    padding-bottom: 40px;
}

.profile-page-header {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.profile-page-card {
    text-align: center;
    padding: 32px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(212,168,67,0.15);
    border-radius: 16px;
    margin-bottom: 28px;
}

.profile-page-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 3px solid rgba(212,168,67,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin: 0 auto 16px;
    overflow: hidden;
}

.profile-page-name {
    font-size: 1.6em;
    color: var(--gold-light);
    margin-bottom: 12px;
}

.profile-page-stats {
    display: flex;
    gap: 20px;
    justify-content: center;
    color: var(--text-muted);
    font-size: 14px;
}

.profile-page-stats span {
    padding: 6px 16px;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.06);
}

.profile-page-section-title {
    font-size: 1.1em;
    color: var(--text-secondary);
    margin-bottom: 16px;
    padding-left: 4px;
}

/* ============================================
   灯箱导航箭头
   ============================================ */
.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 300;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.15);
    color: white;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    user-select: none;
    line-height: 1;
}

.lightbox-nav:hover {
    background: rgba(212,168,67,0.3);
    border-color: var(--gold);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-counter {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 300;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    background: rgba(0,0,0,0.5);
    padding: 6px 18px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}

/* ============================================
   上传重命名
   ============================================ */
.preview-rename {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(212,168,67,0.2);
    color: var(--text-primary);
    font-size: 12px;
    padding: 2px 4px;
    outline: none;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.preview-rename:hover,
.preview-rename:focus {
    border-bottom-color: var(--gold);
}

.preview-rename::placeholder {
    color: var(--text-muted);
    font-size: 11px;
}

/* 预览项布局优化 */
.preview-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
}

.preview-item img,
.preview-item video {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.preview-info {
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.preview-size {
    font-size: 10px;
    color: var(--text-muted);
}

/* 上传区微调 */
.upload-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin-top: 16px;
}

/* 返回按钮样式 */
.profile-page-header .btn-nav {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-secondary);
    padding: 8px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}

.profile-page-header .btn-nav:hover {
    background: rgba(212,168,67,0.15);
    color: var(--gold-light);
}

@media (max-width: 768px) {
    .lightbox-prev { left: 8px; width: 40px; height: 40px; font-size: 24px; }
    .lightbox-next { right: 8px; width: 40px; height: 40px; font-size: 24px; }
    .profile-page-avatar { width: 72px; height: 72px; font-size: 36px; }
    .profile-page-stats { flex-wrap: wrap; gap: 8px; }
    .upload-preview { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}


/* ============================================
   头像正圆修复
   ============================================ */
.avatar-circle-div {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-circle-div img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================================
   文本域/简介
   ============================================ */
.textarea-styled {
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(212,168,67,0.2);
    border-radius: 10px;
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
    resize: vertical;
    min-height: 60px;
    box-sizing: border-box;
}

.textarea-styled:focus {
    border-color: var(--gold);
    background: rgba(255,255,255,0.08);
}

.textarea-styled::placeholder {
    color: var(--text-muted);
    font-size: 13px;
}

.profile-page-bio {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin: -8px 0 20px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    border: 1px solid rgba(212,168,67,0.08);
    line-height: 1.6;
}


/* ============================================
   QR码支持区
   ============================================ */
.qr-section {
    text-align: center;
    padding: 20px 0 40px;
    margin-top: 20px;
}

.qr-section-main {
    border-top: 1px solid rgba(212,168,67,0.1);
    padding-top: 30px;
    margin: 10px auto 0;
    max-width: 600px;
}

.qr-arrows {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 4px;
}

.qr-arrow {
    font-size: 20px;
    color: var(--gold);
    animation: qrBounce 1.5s ease infinite;
}

.qr-arrow:nth-child(2) { animation-delay: 0.3s; }
.qr-arrow:nth-child(3) { animation-delay: 0.6s; }

@keyframes qrBounce {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(8px); opacity: 1; }
}

.qr-image {
    width: 140px;
    height: 140px;
    border-radius: 12px;
    border: 2px solid rgba(212,168,67,0.25);
    padding: 6px;
    background: white;
    display: inline-block;
    transition: transform 0.3s;
}

.qr-image:hover {
    transform: scale(1.05);
    border-color: var(--gold);
}

.qr-label {
    margin-top: 8px;
    font-size: 15px;
    color: var(--gold-light);
    font-weight: 500;
    letter-spacing: 1px;
}

/* ============================================
   批量删除
   ============================================ */
.media-checkbox-label {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 5;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.media-checkbox-label:hover {
    background: rgba(212,168,67,0.3);
    border-color: var(--gold);
}

.media-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--gold);
}

/* 媒体卡片相对定位 */
.media-card {
    position: relative;
}

/* 批量删除按钮 */
.btn-danger {
    background: rgba(231, 76, 60, 0.15) !important;
    border-color: rgba(231, 76, 60, 0.25) !important;
    color: #e74c3c !important;
    font-size: 12px !important;
    padding: 6px 14px !important;
    margin-left: 12px;
}

.btn-danger:hover {
    background: rgba(231, 76, 60, 0.3) !important;
    border-color: #e74c3c !important;
}

.browse-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* ============================================
   Modal可滚动
   ============================================ */
.modal-scrollable {
    max-height: 85vh;
    overflow-y: auto;
}

.modal-scrollable .modal-body {
    overflow-y: visible;
}

@media (max-width: 768px) {
    .qr-image { width: 100px; height: 100px; }
    .modal-scrollable { max-height: 90vh; }
}


/* ============================================
   下载按钮
   ============================================ */
.download-btn {
    cursor: pointer;
    font-size: 12px;
    opacity: 0.7;
    transition: opacity 0.2s;
    margin-left: 8px;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(52, 152, 219, 0.1);
}

.download-btn:hover {
    opacity: 1;
    background: rgba(52, 152, 219, 0.25);
}

.btn-download {
    background: rgba(52, 152, 219, 0.15) !important;
    border-color: rgba(52, 152, 219, 0.25) !important;
    color: #3498db !important;
    font-size: 12px !important;
    padding: 6px 14px !important;
    margin-left: 8px;
}

.btn-download:hover {
    background: rgba(52, 152, 219, 0.3) !important;
    border-color: #3498db !important;
}
