/* style.css */

/* --- 全局重置与清新动态风景背景 --- */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; 
}

body { 
    min-height: 100vh; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    overflow: hidden; 
    position: relative; 
    background-color: #eef5ed; 
}

.scenery-bg {
    position: absolute; top: -5%; left: -5%; width: 110%; height: 110%;
    background: url('https://images.unsplash.com/photo-1502082553048-f009c37129b9?auto=format&fit=crop&w=1920&q=80') center center / cover no-repeat;
    z-index: 1; filter: brightness(1.02) contrast(0.95); animation: slowMoveBg 25s infinite alternate ease-in-out; pointer-events: none;
}

@keyframes slowMoveBg {
    0% { transform: scale(1) translate(0, 0); }
    50% { transform: scale(1.04) translate(-10px, 10px); }
    100% { transform: scale(1.02) translate(10px, -5px); }
}

.bg-overlay {
    position: absolute; width: 100%; height: 100%; top: 0; left: 0;
    background: linear-gradient(135deg, rgba(224, 244, 241, 0.2) 0%, rgba(244, 248, 234, 0.1) 100%); z-index: 2; pointer-events: none;
}

.container { width: 100%; max-width: 1200px; padding: 20px; display: flex; justify-content: center; align-items: center; z-index: 3; }

/* --- 登录卡片 --- */
.auth-card {
    background: rgba(255, 255, 255, 0.45); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
    padding: 45px 40px; border-radius: 24px; box-shadow: 0 15px 35px rgba(0,0,0,0.03), inset 0 0 0 1px rgba(255,255,255,0.5); width: 100%; max-width: 400px; text-align: center; 
}
.auth-card h2 { color: #2c3e50; margin-bottom: 30px; font-size: 24px; letter-spacing: 2px; font-weight: 600; }
.input-group { margin-bottom: 22px; }
.input-group input, .input-group select {
    width: 100%; padding: 14px 18px; border: 1px solid rgba(165, 214, 167, 0.3); border-radius: 12px; outline: none; font-size: 16px;
    transition: all 0.3s; background: rgba(255,255,255,0.5); color: #37474f;
}
.input-group input:focus, .input-group select:focus { border-color: #81c784; background: rgba(255,255,255,0.85); box-shadow: 0 0 12px rgba(129, 199, 132, 0.25); }

.btn { 
    width: 100%; padding: 14px; background: linear-gradient(135deg, #a5d6a7 0%, #81c784 100%); border: none; border-radius: 12px; 
    color: white; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.3s; box-shadow: 0 4px 12px rgba(129,199,132,0.2);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 15px rgba(129,199,132,0.35); }
.switch-auth { margin-top: 20px; font-size: 13px; color: #546e7a; cursor: pointer; transition: color 0.3s; }
.switch-auth:hover { color: #2e7d32; }

/* --- 主页大底板 --- */
.main-dashboard { 
    display: none; width: 100%; max-width: 1020px; background: rgba(255, 255, 255, 0.35); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 32px; padding: 60px 40px 40px 40px; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.05); position: relative; flex-direction: column; 
}
.user-profile {
    position: absolute; top: -25px; right: 30px; display: flex; align-items: center; gap: 12px;
    background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(10px); padding: 8px 18px; border-radius: 30px; box-shadow: 0 8px 25px rgba(0,0,0,0.04); border: 1px solid rgba(255,255,255,0.7); z-index: 10;
}
.avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #b2dfdb 0%, #80cbc4 100%); display: flex; justify-content: center; align-items: center; font-weight: bold; color: #004d40; font-size: 16px; }
.user-info { text-align: left; }
.username { font-size: 13px; font-weight: 600; color: #2c3e50; }
.role-tag { font-size: 10px; padding: 1px 6px; border-radius: 8px; font-weight: bold; }
.logout-btn { font-size: 12px; color: #ff7043; cursor: pointer; margin-left: 8px; border: none; background: none; font-weight: 500; }
.logout-btn:hover { color: #f4511e; }

/* 3x2 网格 */
.grid-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; width: 100%; }
.card {
    background: rgba(255, 255, 255, 0.6); border: 1px solid rgba(255,255,255,0.5); border-radius: 24px; aspect-ratio: 1.25 / 1; 
    display: flex; flex-direction: column; justify-content: center; align-items: center; cursor: pointer; transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1); gap: 12px;
}
.card-title { font-size: 18px; color: #37474f; font-weight: 600; letter-spacing: 0.5px; }
.card-icon { width: 38px; height: 38px; stroke: #546e7a; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: all 0.5s ease; }

.card:hover { transform: translateY(-8px) scale(1.05); background: rgba(255, 255, 255, 0.92); box-shadow: 0 20px 40px rgba(129, 199, 132, 0.2); border-color: rgba(129, 199, 132, 0.5); }
.card:hover .card-title { color: #2e7d32; }
.card:hover .card-icon { stroke: #81c784; transform: scale(1.1); }
.card-photo:hover .card-icon { transform: scale(1.1) rotate(-8deg); }
.card-note:hover .card-icon { transform: scale(1.1) translateY(-4px); }
.card-idea:hover .card-icon { filter: drop-shadow(0 0 6px #ffb300); stroke: #ffb300; }
.card-game:hover .card-icon { animation: jitter 0.3s infinite alternate; }

@keyframes jitter { 0% { transform: scale(1.1) translateX(-1px); } 100% { transform: scale(1.1) translateX(1px); } }

.card.pending { background: rgba(255, 255, 255, 0.25); cursor: not-allowed; border-color: rgba(255,255,255,0.15); }
.card.pending .card-title { color: #78909c; } .card.pending .card-icon { stroke: #90a4ae; }

/* ==================== 模态框通用样式 ==================== */
.album-overlay, .notes-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(245, 249, 247, 0.94); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); z-index: 100;
    flex-direction: column; padding: 40px; overflow-y: auto;
}
.overlay-header { display: flex; justify-content: space-between; align-items: center; max-width: 1000px; width: 100%; margin: 0 auto 30px auto; }
.overlay-header h3 { font-size: 24px; color: #2c3e50; border-left: 4px solid #81c784; padding-left: 12px; font-weight: 600; }
.close-btn { padding: 8px 24px; background: rgba(0,0,0,0.05); border: none; border-radius: 20px; cursor: pointer; font-weight: 600; color: #546e7a; transition: all 0.3s; }
.close-btn:hover { background: rgba(0,0,0,0.1); color: #37474f; }

/* ==================== 相册样式 ==================== */
.upload-zone { max-width: 1000px; width: 100%; margin: 0 auto 40px auto; background: rgba(255,255,255,0.6); border: 2px dashed #a5d6a7; border-radius: 18px; padding: 35px; text-align: center; cursor: pointer; transition: all 0.3s; color: #43a047; font-weight: 500; }
.upload-zone.dragover, .upload-zone:hover { background: rgba(232, 245, 233, 0.8); border-color: #66bb6a; }
#fileInput { display: none; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 25px; max-width: 1000px; width: 100%; margin: 0 auto; }
.photo-item { background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid rgba(0,0,0,0.04); transition: all 0.3s; }
.photo-item:hover { transform: translateY(-4px); box-shadow: 0 12px 25px rgba(129, 199, 132, 0.2); }
.photo-item img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.photo-info { padding: 12px 14px; background: #fff; font-size: 12px; color: #78909c; }

/* ==================== 备忘录样式 ==================== */
.notes-layout { display: grid; grid-template-columns: 320px 1fr; gap: 40px; max-width: 1000px; width: 100%; margin: 0 auto; }
.notes-input-panel { background: rgba(255,255,255,0.5); padding: 25px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.6); height: fit-content; }
.notes-input-panel h4 { margin-bottom: 15px; color: #37474f; font-size: 16px; }
.notes-list-area { display: flex; flex-direction: column; gap: 30px; }
.notes-section-title { font-size: 15px; color: #546e7a; font-weight: 600; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.notes-list { display: flex; flex-direction: column; gap: 12px; }

.note-card {
    display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.4); box-shadow: 0 4px 10px rgba(0,0,0,0.01); transition: all 0.3s ease; background: rgba(255, 255, 255, 0.4); 
}
.note-card:hover { transform: translateX(4px); }
.note-left { display: flex; align-items: center; gap: 14px; flex: 1; }
.note-checkbox { font-size: 18px; font-family: monospace; cursor: pointer; color: #78909c; user-select: none; transition: color 0.2s; font-weight: bold; }
.note-checkbox:hover { color: #81c784; }
.note-text-group { display: flex; flex-direction: column; gap: 4px; }
.note-content { color: #2c3e50; font-size: 15px; font-weight: 500; word-break: break-all; }
.note-meta { display: flex; align-items: center; gap: 12px; font-size: 11px; color: #78909c; }
.priority-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.priority-high { background: #ff7043; box-shadow: 0 0 6px #ff7043; }
.priority-medium { background: #ffb74d; }
.priority-low { background: #4fc3f7; }

.note-card.completed { background: rgba(240, 240, 240, 0.3) !important; border-color: rgba(0,0,0,0.03); opacity: 0.7; }
.note-card.completed .note-content { text-decoration: line-through; color: #90a4ae; }
.note-card.completed .note-checkbox { color: #43a047; }
.note-card.urgent-warning { border-color: rgba(229, 115, 115, 0.5); box-shadow: 0 4px 12px rgba(229, 115, 115, 0.1); }
/* ==================== 💡 小巧思 2.0 升级版专属样式 ==================== */
/* 拓宽整体布局，改为更开阔的左右分栏 */
.idea-layout-upgrade { 
    display: grid; 
    grid-template-columns: 660px 1fr; 
    gap: 35px; 
    max-width: 1300px; 
    width: 100%; 
    margin: 0 auto; 
}

.idea-workspace { 
    background: rgba(255,255,255,0.7); 
    padding: 25px; 
    border-radius: 24px; 
    border: 1px solid rgba(255,255,255,0.8); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 仿 Word 工具栏 */
.word-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(240, 245, 241, 0.9);
    padding: 8px 15px;
    border-radius: 12px;
    border: 1px solid rgba(165, 214, 167, 0.3);
}
.toolbar-btn {
    width: 32px; height: 32px; background: #fff; border: 1px solid #cfd8dc;
    border-radius: 6px; cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center;
}
.toolbar-btn:hover { background: #e8f5e9; border-color: #81c784; color: #2e7d32; }
.toolbar-select { padding: 6px; border-radius: 6px; border: 1px solid #cfd8dc; outline: none; background: #fff; font-size: 13px; }
.toolbar-color { border: none; width: 28px; height: 28px; cursor: pointer; background: none; }

/* 富文本编辑区 */
#ideaRichEditor {
    width: 100%; min-height: 150px; max-height: 220px; overflow-y: auto;
    padding: 15px; border: 1px solid rgba(165, 214, 167, 0.4); border-radius: 14px;
    outline: none; background: rgba(255,255,255,0.8); font-size: 15px; line-height: 1.6;
}
#ideaRichEditor:focus { border-color: #81c784; background: #fff; box-shadow: 0 0 10px rgba(129,199,132,0.15); }
#ideaRichEditor:empty:before { content: attr(placeholder); color: #90a4ae; }

/* 宽敞画板外框 */
.canvas-container-upgrade {
    background: rgba(255,255,255,0.5); padding: 15px; border-radius: 14px; border: 1px dashed rgba(129, 199, 132, 0.5);
}
.canvas-tools-upgrade { display: flex; align-items: center; gap: 15px; margin-bottom: 10px; font-size: 13px; color: #546e7a; }
.canvas-tools-upgrade input[type="range"] { flex: 1; accent-color: #81c784; }
#ideaCanvas { background: #ffffff; border-radius: 8px; display: block; cursor: crosshair; }

/* 带删除按钮的灵感卡片 */
.idea-item-card { position: relative; }
.idea-delete-btn {
    position: absolute; top: 15px; right: 15px; width: 24px; height: 24px;
    border-radius: 50%; background: rgba(255, 112, 67, 0.1); border: none;
    color: #ff7043; font-size: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.2s; font-weight: bold;
}
.idea-delete-btn:hover { background: #ff7043; color: white; transform: scale(1.1); }

/* ==================== 🎯 核心界面完美隔离与居中 (类名校准版) ==================== */

/* 1. 强力回收并居中登录卡片 */
.auth-card {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    z-index: 9999 !important;
    width: 380px !important;
}

/* 2. 状态强力联动：只要登录框显示着，主面板彻底隐藏，决不穿透 */
#authBox:not([style*="display: none"]):not([style*="display:none"]) ~ .main-dashboard,
#authBox:not([style*="display: none"]):not([style*="display:none"]) ~ #mainDashboard {
    display: none !important;
}

/* 3. 完美还原并居中主面板大框 */
.main-dashboard {
    display: none; 
    width: 100% !important;
    max-width: 1020px !important;
    margin: 0 auto !important;
    padding: 60px 40px 40px 40px !important;
    position: relative !important;
    box-sizing: border-box !important;
    z-index: 5 !important;
}

/* 4. 当登录框隐藏后，主面板完美转为 flex 居中现身 */
#authBox[style*="display: none"] ~ .main-dashboard,
#authBox[style*="display:none"] ~ .main-dashboard,
#authBox[style*="display: none"] ~ #mainDashboard,
#authBox[style*="display:none"] ~ #mainDashboard {
    display: flex !important;
}

/* 5. 小巧思弹窗背景全覆盖 */
.idea-overlay {
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(245, 249, 247, 0.96); 
    backdrop-filter: blur(25px); 
    -webkit-backdrop-filter: blur(25px); 
    z-index: 10000;
    flex-direction: column; 
    padding: 40px; 
    overflow-y: auto;
}

/* 6. 严格隔离：保证小巧思内部大布局不受任何普通网格规则干扰 */
.idea-layout-upgrade {
    display: grid !important;
    grid-template-columns: 660px 1fr !important;
    gap: 35px !important;
    width: 100% !important;
    max-width: 1300px !important;
    margin: 0 auto !important;
}

/* ==================== 🌌 脑洞银河：半透明框型缩略图样式 ==================== */

/* 1. 全新的半透明毛玻璃灵感卡片外框 */
.idea-item-card-glass {
    position: relative;
    background: rgba(255, 255, 255, 0.25) !important; /* 极轻的白色半透明 */
    backdrop-filter: blur(12px) !important;            /* 磨砂玻璃效果 */
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important; /* 晶莹高光边框 */
    border-radius: 16px !important;
    padding: 18px !important;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.04) !important;
    transition: all 0.3s ease !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.idea-item-card-glass:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.4) !important; /* 悬浮时稍稍变亮 */
    border-color: rgba(129, 199, 132, 0.6) !important; /* 边缘泛出柔和的绿色生态光芒 */
    box-shadow: 0 12px 40px rgba(129, 199, 132, 0.15) !important;
}

/* 2. 灵感文字排版微调 */
.idea-item-text-preview {
    color: #2c3e50;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-all;
    margin-bottom: 8px;
}

/* 3. 缩略图集合围墙：限制其尺寸，做成框型包裹 */
.idea-thumb-gallery {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

/* 4. 媒体与大版涂鸦的框型缩略图化 */
.media-thumb-wrapper {
    background: rgba(255, 255, 255, 0.5) !important;
    border: 1px dashed rgba(165, 214, 167, 0.5) !important;
    border-radius: 10px !important;
    padding: 6px !important;
    max-height: 160px !important; /* 限制缩略图最大高度 */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 确保多媒体缩略图在框内优雅自适应 */
.media-thumb-wrapper img, 
.media-thumb-wrapper video, 
.media-thumb-wrapper iframe {
    max-width: 100% !important;
    max-height: 146px !important;
    object-fit: contain !important;
    border-radius: 6px !important;
    border: none !important;
}

/* 专门针对白底手绘涂鸦的半透明轻量化包裹 */
.drawing-thumb {
    background: rgba(255, 255, 255, 0.8) !important; /* 稍白底色凸显线稿 */
}

/* 灵感时间与作者行调整 */
.idea-item-user {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #607d8b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 6px;
}

/* ==================== 🛠️ 灵感看板：图片与媒体全链路防撑破规范 ==================== */

/* 1. 强行约束富文本编辑器内部的图片 (解决输入框被撑爆、出现横向滚动条问题) */
#ideaRichEditor img {
    max-width: 100% !important;   /* 宽度绝不超出编辑框 */
    max-height: 180px !important;  /* 高度锁定在舒适范围内，避免长图无限向下延伸 */
    object-fit: contain !important;/* 保持原图比例不拉伸变形 */
    border-radius: 8px !important;
    margin: 6px 0 !important;
    display: block !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* 2. 强行约束脑洞银河卡片中由富文本带入的图片 (解决图8中的“网页套娃”和图片过大问题) */
.idea-item-text-preview img {
    max-width: 100% !important;    /* 严格限制在半透明卡片容器宽度内 */
    max-height: 120px !important;   /* 作为缩略图，高度进一步压缩 */
    object-fit: cover !important;   /* 缩略图采用裁剪填满模式，确保九宫格或单图排版整齐 */
    border-radius: 8px !important;
    border: 1px solid rgba(165, 214, 167, 0.3) !important;
    margin-top: 8px !important;
    display: block !important;
    cursor: zoom-in;                /* 提示用户这是缩略图 */
}

/* 3. 防止直接粘贴的 iframe/video 等媒体把卡片撑开 */
.idea-item-text-preview iframe,
.idea-item-text-preview video {
    max-width: 100% !important;
    max-height: 140px !important;
    border-radius: 8px !important;
}

/* 4. 顺便优化：为右侧“脑洞银河”流容器增加最大高度与滚动条，防止长卡片无限向下撑开整个主网页 */
#ideaStream {
    max-height: 650px !important;   /* 锁定银河长河的高度 */
    overflow-y: auto !important;    /* 超出时内部滚动，不破坏大主页的整洁 */
    padding-right: 8px !important;
}

/* 美化银河滚动条 */
#ideaStream::-webkit-scrollbar {
    width: 6px;
}
#ideaStream::-webkit-scrollbar-thumb {
    background: rgba(129, 199, 132, 0.3);
    border-radius: 4px;
}
#ideaStream::-webkit-scrollbar-thumb:hover {
    background: rgba(129, 199, 132, 0.5);
}

/* ==================== 🏷️ 云端记忆相册：动态标签美化样式 ==================== */

/* 图片卡片底部的标签包裹层 */
.photo-tags-box {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

/* 单个小标签胶囊样式 */
.photo-tag-badge {
    background: rgba(129, 199, 132, 0.15);
    color: #2e7d32;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid rgba(129, 199, 132, 0.25);
}

/* 顶部筛选栏的标签按钮 */
.filter-tag-btn {
    padding: 5px 14px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(165, 214, 167, 0.4);
    border-radius: 20px;
    font-size: 13px;
    color: #546e7a;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tag-btn:hover {
    background: rgba(232, 245, 233, 0.8);
    border-color: #81c784;
    color: #2e7d32;
}

/* 当前被选中的激活态标签按钮 */
.filter-tag-btn.active {
    background: linear-gradient(135deg, #a5d6a7 0%, #81c784 100%);
    color: white !important;
    border-color: #81c784;
    box-shadow: 0 4px 10px rgba(129,199,132,0.25);
}

/* ==================== 📸 相册升级：删除与修改标签交互样式 ==================== */

/* 让相册卡片具备相对定位，以便删除按钮绝对定位 */
.photo-item {
    position: relative;
    overflow: hidden;
}

/* 悬浮在照片右上角的删除按钮 */
.photo-delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: rgba(239, 83, 80, 0.85); /* 柔和的红色半透明 */
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
    z-index: 10;
    opacity: 0; /* 默认隐藏，鼠标滑过才显示 */
}

/* 鼠标悬浮在照片上时显现删除按钮 */
.photo-item:hover .photo-delete-btn {
    opacity: 1;
}

.photo-delete-btn:hover {
    background: #e53935;
    transform: scale(1.1);
}

/* 赋予标签胶囊可点击的指针，并增加悬浮微变色效果提示用户“可编辑” */
.photo-tag-badge {
    cursor: pointer;
    transition: all 0.2s ease;
}

.photo-tag-badge:hover {
    background: rgba(129, 199, 132, 0.3);
    border-color: #66bb6a;
    color: #1b5e20;
}

/* ==================== 🌌 遮罩层：清新动态风景与毛玻璃升级 ==================== */

.album-overlay, .notes-overlay, .idea-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    /* 替换原本的纯白或纯暗背景，改为色彩清新的大自然/星空风景图（可自行更换 URL） */
    background: url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?w=1920') no-repeat center center;
    background-size: cover;
    z-index: 990;
    display: flex;
    flex-direction: column;
    
    /* 核心：极其高级的毛玻璃滤镜，让动态风景变成柔和的色彩底衬，绝不刺眼 */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    
    /* 赋予背景微弱的呼吸律动感 */
    animation: bgPulse 20s infinite alternate ease-in-out;
}

/* 背景微动动画 */
@keyframes bgPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.03); }
}

/* 确保内部容器背景半透明，透出朦胧的风景 */
.overlay-header, .upload-zone-wrapper, .note-card, .idea-item-card-glass {
    background: rgba(255, 255, 255, 0.65) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(4px);
}

/* 隐藏系统自带的鼠标指针（因为我们要自定义星星鼠标） */
.album-overlay, .notes-overlay, .idea-overlay {
    cursor: none !important;
}
/* 确保按钮和可点击元素依然有反馈，但同样隐藏原生指针 */
.album-overlay *, .notes-overlay *, .idea-overlay * {
    cursor: none !important;
}

/* ==================== 🎮 摸鱼小游戏大厅与蜘蛛纸牌样式 ==================== */

/* 游戏大厅遮罩层 */
.game-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?w=1920') no-repeat center center;
    background-size: cover;
    z-index: 990;
    display: none; /* 默认隐藏 */
    flex-direction: column;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: none !important; /* 自定义鼠标指针 */
}
/* >>> 修改这里：确保游戏大厅内部所有元素鼠标正常 <<< */
.game-overlay * { 
    cursor: auto !important; 
}

/* 补充：当鼠标悬停在纸牌画布上时，显式变成“手型”或者“抓取”反馈，体验更佳 */
#spiderCanvas {
    background: rgba(20, 80, 40, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    
    /* 指针悬浮在游戏画布上时，提示用户可以点击、抓取 */
    cursor: pointer !important; 
}

/* 游戏选择主面板 */
.game-menu-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 60px;
    margin-top: 40px;
}

/* 游戏入口卡片 */
.game-select-card {
    width: 220px;
    height: 280px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.game-select-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.game-icon {
    font-size: 64px;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.game-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

/* 蜘蛛纸牌游戏舞台容器 */
#spiderGameContainer {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: calc(100vh - 80px);
}

/* 游戏控制栏 */
.game-tools {
    display: flex;
    gap: 15px;
    margin: 10px 0;
    z-index: 10;
}

.game-btn {
    padding: 8px 18px;
    border: none;
    border-radius: 20px;
    background: rgba(76, 175, 80, 0.8);
    color: white;
    font-size: 13px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: all 0.2s;
}
.game-btn:hover {
    background: rgba(76, 175, 80, 1);
    transform: scale(1.05);
}

/* 蜘蛛纸牌 Canvas 样式 */
#spiderCanvas {
    background: rgba(20, 80, 40, 0.4); /* 透明绿底，完美透出背景风景 */
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}