/* ==================== 1. 全局与基础重置 ==================== */
* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden; /* 禁用全局网页滚动，由内部列表独立滚动 */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f4f6f9;
    color: #333;
}

/* ==================== 2. 主页面 Flex 布局 ==================== */
.app-layout {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
    position: relative;
}

/* 顶部固定区域 */
.header-section {
    flex: 0 0 auto;
    z-index: 10;
    padding: 15px 20px;
    border-bottom: 2px solid #eef2f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h2, h3 {
    color: #2c3e50;
    margin: 0;
}
h2 {
    font-size: 1.25rem;
}
h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.title-link {
    color: #111;
    text-decoration: none;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ==================== 3. 中间列表区域 ==================== */
.list-section {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 15px 20px;
    -webkit-overflow-scrolling: touch;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

li {
    padding: 12px 10px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    transition: background-color 0.2s ease; /* 鼠标悬停变暗动画 */
}
li:last-child {
    border-bottom: none;
}

/* 鼠标移动到列表项时整行变暗效果 */
li:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.file-info {
    display: flex;
    align-items: center;
    overflow: hidden;
    flex: 1;
}

.file-name {
    font-weight: 500;
    word-break: break-all;
    font-size: 0.95rem;
}

.folder-link, .back-link {
    color: #222;
    text-decoration: none;
    font-weight: normal;
}

.btn-group {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
}

/* ==================== 4. 按钮统一基础样式 ==================== */
.btn-home, .btn-download, .btn-delete, .btn-upload, .btn-share, .btn-user, .btn-more {
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    line-height: 1.2;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    border: 1px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 12px;
    height: 30px;
    box-sizing: border-box;
    outline: none;
}

/* 下载按钮：蓝色渐变 */
.btn-download {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    box-shadow: 0 2px 5px rgba(37, 99, 235, 0.2);
}
.btn-download:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 3px 8px rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}

/* 分享按钮：青色渐变 */
.btn-share {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: #fff;
    box-shadow: 0 2px 5px rgba(8, 145, 178, 0.2);
}
.btn-share:hover {
    background: linear-gradient(135deg, #0891b2, #0e7490);
    box-shadow: 0 3px 8px rgba(8, 145, 178, 0.3);
    transform: translateY(-1px);
}

/* 删除按钮：红色渐变 */
.btn-delete {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    box-shadow: 0 2px 5px rgba(220, 38, 38, 0.2);
}
.btn-delete:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    box-shadow: 0 3px 8px rgba(220, 38, 38, 0.3);
    transform: translateY(-1px);
}

/* 更多按钮：高级灰 */
.btn-more {
    background-color: #f1f5f9;
    color: #334155;
    border-color: #cbd5e1;
}
.btn-more:hover {
    background-color: #e2e8f0;
    color: #0f172a;
    border-color: #94a3b8;
    transform: translateY(-1px);
}

/* 编辑按钮：翡翠绿渐变 */
.btn-edit {
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    line-height: 1.2;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    border: 1px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 12px;
    height: 30px;
    box-sizing: border-box;
    outline: none;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff !important;
    box-shadow: 0 2px 5px rgba(16, 185, 129, 0.2);
}
.btn-edit:hover {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 3px 8px rgba(16, 185, 129, 0.3);
    transform: translateY(-1px);
}
.btn-edit:active {
    transform: translateY(0) scale(0.97);
}

/* 个人中心按钮 */
.btn-user {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    color: #fff;
    box-shadow: 0 2px 5px rgba(79, 70, 229, 0.2);
}
.btn-user:hover {
    background: linear-gradient(135deg, #4338ca, #3730a3);
    transform: translateY(-1px);
}

.btn-home {
    background-color: #6c757d;
    color: #fff;
}

/* 按下反馈 */
.btn-download:active, .btn-share:active, .btn-delete:active, .btn-user:active, .btn-more:active {
    transform: translateY(0) scale(0.97);
}

/* ==================== 下拉菜单组件 ==================== */
.dropdown-container {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    background-color: #ffffff;
    min-width: 120px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.06);
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 6px 0;
    z-index: 100;
    display: none;
    flex-direction: column;
}

.dropdown-menu.show {
    display: flex;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 14px;
    font-size: 13px;
    color: #334155;
    background: none;
    border: none;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
    box-sizing: border-box;
}

/* 下拉菜单选项悬停变暗 */
.dropdown-item:hover {
    background-color: rgba(0, 0, 0, 0.06);
    color: #0f172a;
}

.dropdown-item.danger {
    color: #ef4444;
}
.dropdown-item.danger:hover {
    background-color: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

/* ==================== 5. 右下角组合悬浮球 ==================== */
.fab-container {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 999;
}

.fab-main-btn {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    border: none;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35), 0 2px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    padding: 0;
    position: relative;
    z-index: 2;
}
.fab-main-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.45);
}

.fab-container.active .fab-main-btn {
    transform: rotate(135deg);
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.35);
}

.fab-options {
    position: absolute;
    bottom: calc(100% + 12px);
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.fab-container.active .fab-options {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.fab-item {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    white-space: nowrap;
}

.fab-label {
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 13px;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.fab-sub-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    outline: none;
    padding: 0;
    flex-shrink: 0;
}
.fab-sub-btn:hover {
    transform: scale(1.1);
}

.fab-btn-upload {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
.fab-btn-folder {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* ==================== 6. 模态弹窗模块 ==================== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 1000;
    padding: 20px;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: #fff;
    width: 100%;
    max-width: 420px;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transform: translateY(20px);
    transition: transform 0.25s ease;
    position: relative;
}
.modal-overlay.active .modal-card {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    border: none;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
    color: #888;
    line-height: 1;
}
.modal-close:hover { color: #333; }

/* 弹窗内部表单与输入框 */
.modal-form, .upload-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}
.modal-form input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}
.modal-form input[type="text"]:focus {
    border-color: #3b82f6;
}

input[type="file"] {
    width: 100%;
    font-size: 14px;
    padding: 10px;
    border: 1px dashed #ccc;
    border-radius: 6px;
    background-color: #fafafa;
}

/* 统一控制：删除弹窗底部按钮组样式 */
.btn-cancel-submit, .btn-delete-submit {
    height: 36px;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    text-decoration: none;
    line-height: 1;
}

/* 弹窗取消按钮 (高级灰) */
.btn-cancel-submit {
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}
.btn-cancel-submit:hover {
    background-color: #e2e8f0;
    color: #0f172a;
    border-color: #94a3b8;
    transform: translateY(-1px);
}

/* 确认删除按钮 (红色渐变) */
.btn-delete-submit {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff !important;
    border: 1px solid transparent;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.25);
}
.btn-delete-submit:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.35);
    transform: translateY(-1px);
}

.btn-cancel-submit:active, .btn-delete-submit:active {
    transform: translateY(0) scale(0.97);
}

.btn-upload {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 15px;
    font-weight: bold;
    width: 100%;
    border-radius: 6px;
    border: none;
    height: auto;
}

.btn-folder-submit {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.25);
    color: #fff;
    padding: 10px;
    font-size: 14px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.25s ease;
    height: auto;
}
.btn-folder-submit:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-1.5px);
}

.btn-rename-submit {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.25);
    color: #fff;
    padding: 10px;
    font-size: 14px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.25s ease;
    height: auto;
}
.btn-rename-submit:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-1.5px);
}

.share-input-group {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}
.share-input-group input[type="text"] {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
}

/* ==================== 7. 登录页 & 单独分享外链页 ==================== */
.login-body, .share-body {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}

.login-card, .share-card {
    width: 100%;
    max-width: 380px;
    background: rgba(255, 255, 255, 0.88);
    padding: 28px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-align: center;
}
.login-card h2, .share-card h2 { text-align: center; margin-bottom: 20px; color: #222; }
.login-card input[type="password"] {
    width: 100%; padding: 12px 14px; border: 1px solid #ddd;
    border-radius: 8px; font-size: 16px; margin-bottom: 16px;
}
.login-card button {
    width: 100%; padding: 12px; border: none; border-radius: 8px;
    background: #2563eb; color: #fff; font-size: 16px; cursor: pointer;
}

/* 分享页详情与图片预览缩略图 */
.share-file-icon { font-size: 48px; margin-bottom: 10px; }
.share-file-name { font-size: 1.1rem; font-weight: bold; margin-bottom: 6px; word-break: break-all; color: #1e293b; }
.share-file-size { color: #64748b; font-size: 0.9rem; margin-bottom: 24px; }

.share-preview-box {
    margin: 15px 0;
    max-height: 300px;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}
.share-preview-img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
    display: block;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.share-preview-img:hover { transform: scale(1.02); }

.btn-share-download {
    display: block; width: 100%; padding: 12px;
    background-color: #2563eb; color: #fff; text-decoration: none;
    border-radius: 8px; font-weight: bold; font-size: 15px;
    transition: background 0.2s;
}
.btn-share-download:hover { background-color: #1d4ed8; }

/* 提示框 */
.alert { padding: 10px 12px; border-radius: 6px; margin-bottom: 12px; font-size: 13px; word-break: break-all; border: 1px solid transparent; }
.alert.success { background-color: #d4edda; color: #155724; border-color: #c3e6cb; }
.alert.error { background-color: #f8d7da; color: #721c24; border-color: #f5c6cb; }

/* 大屏适配 */
@media (min-width: 600px) {
    h2 { font-size: 1.4rem; }
}

/* ==================== 个人中心专有样式 ==================== */
.profile-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.btn-pwd-modal {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
    transition: all 0.2s ease;
    height: auto;
}
.btn-pwd-modal:hover {
    background: linear-gradient(135deg, #0369a1, #075985);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.35);
}

.logout-btn {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.25);
    transition: all 0.2s ease;
    height: auto;
}
.logout-btn:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.35);
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.form-group input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
    background-color: #f8fafc;
}

.form-group input[type="password"]:focus {
    border-color: #0284c7;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.btn-submit {
    margin-top: 6px;
    padding: 11px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.25);
    transition: all 0.2s ease;
    height: auto;
}
.btn-submit:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
}

.share-list {
    margin: 10px 0 0 0;
    padding: 0;
    list-style: none;
}
.share-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.share-list li:last-child {
    border-bottom: none;
}

.header-nav .btn-home,
.header-nav .btn-user {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    height: auto;
}

.header-nav .btn-home {
    background: linear-gradient(135deg, #64748b, #475569);
    box-shadow: 0 2px 6px rgba(71, 85, 105, 0.25);
}
.header-nav .btn-home:hover {
    background: linear-gradient(135deg, #475569, #334155);
    transform: translateY(-1px);
}

.header-nav .btn-user {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.25);
}
.header-nav .btn-user:hover {
    background: linear-gradient(135deg, #4338ca, #3730a3);
    transform: translateY(-1px);
}

/* ==================== 登录/注册按钮与Tab优化 ==================== */

/* 顶部 Tab 容器 */
.login-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    padding: 4px;
    background: #f1f5f9;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

/* Tab 切换按钮 */
.login-tabs button {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-tabs button:hover:not(.active) {
    color: #1e293b;
    background: rgba(255, 255, 255, 0.6);
}

.login-tabs button.active {
    background: #ffffff;
    color: #2563eb;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* 输入框聚焦质感增强 */
.login-form input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
    background-color: #f8fafc;
}

.login-form input:focus {
    background-color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* 提交按钮（登录/注册主按钮） */
.login-form button[type="submit"] {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 悬浮态：微上浮与光影加深 */
.login-form button[type="submit"]:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

/* 按下态：按压按键反馈 */
.login-form button[type="submit"]:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
}

/* ==================== 8. 自定义鼠标右键菜单 ==================== */
.context-menu {
    position: fixed;
    z-index: 10000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 10px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    padding: 6px;
    min-width: 150px;
    display: none;
    flex-direction: column;
    gap: 2px;
}

.context-menu.active {
    display: flex;
}

.context-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 13px;
    color: #334155;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

/* 右键菜单普通选项悬停变暗 */
.context-menu-item:hover {
    background-color: rgba(0, 0, 0, 0.06);
    color: #0f172a;
}

/* 右键菜单危险选项（删除）悬停红暗 */
.context-menu-item.danger {
    color: #ef4444;
}
.context-menu-item.danger:hover {
    background-color: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

.context-menu-divider {
    height: 1px;
    background-color: #e2e8f0;
    margin: 4px 0;
}


/* ==================== 面包屑导航栏样式 ==================== */
.breadcrumb-bar {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px 14px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 13px;
    -webkit-overflow-scrolling: touch;
}

.breadcrumb-bar::-webkit-scrollbar {
    height: 3px;
}
.breadcrumb-bar::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 3px;
}

.breadcrumb-item {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
}

.breadcrumb-item:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.breadcrumb-item.current {
    color: #475569;
    font-weight: 600;
    cursor: default;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: #94a3b8;
    font-weight: bold;
    user-select: none;
}