/* ==========================================================================
   1. 全局变量与配色 (回退至原始配色)
   ========================================================================== */
:root {
    /* --- Dark Chaos (极暗·混沌微光) --- */
    --bg-type: 
        /* [Layer 1] 噪点 (维持质感) */
        url('data:image/svg+xml;charset=utf-8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noise"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noise)" opacity="0.03"/%3E%3C/svg%3E'),
        
        /* [Layer 2] 主光：左上偏中，极弱的幽光 (范围缩小，亮度压低) */
        radial-gradient(80% 80% at 30% -10%, #111111 0%, transparent 60%),
        
        /* [Layer 3] 侧光：屏幕右侧中部的微弱浮光 (亮度压低) */
        radial-gradient(60% 50% at 95% 40%, #0d0d0d 0%, transparent 50%),
        
        /* [Layer 4] 底光：左下角的微弱反射 (几乎不可见) */
        radial-gradient(circle at 5% 90%, #080808 0%, transparent 30%),
        
        /* [Layer 5] 基底：完全纯黑 */
        linear-gradient(135deg, #000000 0%, #000000 100%);
    
    /* 配合极暗环境，卡片稍微提亮边框，防止看不见 */
    --text-main: #ffffff;
    --text-sub: #a1a1aa;
    --text-shadow: 0 4px 30px rgba(0,0,0,0.7);
    
    --card-bg: rgba(15, 15, 15, 0.5); /* 几乎隐形 */
    --card-border: rgba(255, 255, 255, 0.05); /* 微弱的描边 */
    --card-shadow: 0 40px 100px rgba(0, 0, 0, 1);
    --card-backdrop: blur(40px);

    /* 辅助色 */
    --pill-bg: rgba(255, 255, 255, 0.05);
    --pill-border: rgba(255, 255, 255, 0.15);
    --pill-shadow: 0 10px 30px rgba(0, 0, 0, 0.8); 
    --pill-hover-bg: rgba(255, 255, 255, 0.1);
    
    --scrollbar-thumb: rgba(255, 255, 255, 0.2);
    --scrollbar-thumb-hover: rgba(255, 255, 255, 0.4);
    
    --toggle-bg: #1a1a1a;
    --toggle-circle: #000000;
    --font-main: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

    /* 分类渐变色 (保持不变) */
    --accent-nature: linear-gradient(135deg, #a8ff78 0%, #78ffd6 100%);
    --accent-arch: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --accent-avatar: linear-gradient(135deg, #fccb90 0%, #d57eeb 100%);
    --accent-life: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
    --accent-bio: linear-gradient(135deg, #9fab95 0%, #cfd6cd 100%);
    --accent-exhibit: linear-gradient(135deg, #e57254 0%, #f0a68d 100%);
}

/* --- Light Mode 覆盖配置 --- */
html.light-mode body, 
body.light-mode {
    /* --- Warm Paper (羊皮纸质感) --- */
    --bg-type: 
        /* [Layer 1] 纸张纹理噪点 (减少数码感) */
        url('data:image/svg+xml;charset=utf-8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noise"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noise)" opacity="0.02"/%3E%3C/svg%3E'),
        
        /* [Layer 2] 暖光漫射：顶部微暖 -> 底部米灰 */
        linear-gradient(180deg, #fffefc 0%, #f2f0eb 100%);
    
    /* 文字：使用“墨色”而非纯黑，配合暖底 */
    --text-main: #333330;   
    --text-sub: #8a8a85;    
    --text-shadow: none;    

    /* 卡片：暖白磨砂玻璃 */
    --card-bg: rgba(255, 255, 255, 0.6);
    --card-border: rgba(255, 255, 255, 0.4);
    --card-shadow: 0 20px 60px rgba(100, 90, 80, 0.05); /* 阴影带一点暖棕色 */
    
    --pill-bg: rgba(255, 255, 255, 0.7); 
    --pill-border: rgba(0, 0, 0, 0.03); 
    --pill-hover-bg: #ffffff;
    /* 背景：极微弱的暖光(顶部)流向冷灰(底部)，模拟自然天光 */
    
    
       /* 降低纯黑对比度，使用深炭灰 */
    
    

    /* 卡片：提高不透明度，增加一点点暖色倾向 */
    
    
     /* 阴影极淡，像浮在云上 */
    
    
    
    

/* 背景：极微弱的暖光(顶部)流向冷灰(底部)，模拟自然天光 */
    
    
       /* 降低纯黑对比度，使用深炭灰 */
    
    

    /* 卡片：提高不透明度，增加一点点暖色倾向 */
    
    
     /* 阴影极淡，像浮在云上 */
    
    
    
    

--scrollbar-thumb: rgba(0, 0, 0, 0.2);
    --scrollbar-thumb-hover: rgba(0, 0, 0, 0.4);
    --toggle-bg: #e0ded8; 
    --toggle-circle: #ffffff;

    
       
        
        

    
    
     /* 极淡的阴影 */
}

/* ==========================================================================
   2. 基础重置 (保留了 1.2s 的慢速过渡)
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-main);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    height: auto;
    overflow-y: auto;
    overflow-x: hidden;
    background-image: var(--bg-type);
    background-attachment: fixed;
    background-repeat: no-repeat;
    /* 保留之前优化的慢速过渡 */
    transition: none;
}

::-webkit-scrollbar { display: none; }
html, body, .gallery-content, .main-card {
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); scrollbar-width: none; }

/* ==========================================================================
   3. 通用组件 (保留了滑动球动画)
   ========================================================================== */
.theme-switch-wrapper { position: fixed; top: 10px; right: 30px; z-index: 10000; }
.theme-switch-checkbox { display: none; }

.theme-switch-label {
    width: 50px; height: 26px; 
    background-color: var(--toggle-bg);
    border-radius: 50px; position: relative; cursor: pointer;
    border: 1px solid rgba(255,255,255,0.1);
    transition: background-color 0.4s ease; 
    display: block;
}

/* 滑动球主体 */
.theme-switch-label .ball {
    width: 20px; height: 20px; border-radius: 50%;
    position: absolute; top: 2px; left: 3px;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
    background-color: #ffffff; 
    color: #ffa500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s ease;
    z-index: 2;
}

/* 选中状态（右侧：黑夜） */
.theme-switch-checkbox:checked + .ball {
    transform: translateX(24px); 
    background-color: #484848;    
    color: #f1c40f; 
}

#mode-icon {
    display: inline-block;
    transition: transform 0.4s ease;
    user-select: none;
}

.auto-mode-btn {
    position: fixed; top: 10px; right: 90px; z-index: 10000;
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--toggle-bg);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-sub); font-size: 0.8rem; font-weight: 800; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease; box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.auto-mode-btn.active {
    color: var(--text-main); border-color: rgba(255,255,255,0.5);
    background: var(--toggle-bg); box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.auto-mode-btn:hover { transform: scale(1.1); }

.auto-settings-popover {
    position: fixed; top: 60px; right: 80px; width: 220px;
    background: var(--card-bg); border: 1px solid var(--card-border);
    backdrop-filter: blur(20px); border-radius: 16px; padding: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    display: none; flex-direction: column; gap: 12px; z-index: 1999;
    opacity: 0; transform: translateY(-10px); transition: all 0.3s ease;
}
.auto-settings-popover.show { display: flex; opacity: 1; transform: translate3d(0, 0, 0); }
.popover-header { font-size: 0.85rem; font-weight: bold; color: var(--text-main); margin-bottom: 5px; border-bottom: 1px solid var(--pill-border); padding-bottom: 5px; }
.setting-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: var(--text-sub); }
.setting-row input { 
    background: rgba(128, 128, 128, 0.15); 
    border: 1px solid var(--pill-border); 
    color: var(--text-main); 
    padding: 4px 8px; 
    border-radius: 6px; 
    font-family: inherit; 
    width: 85px; 
    outline: none; 
    transition: all 0.2s ease; 
} 
html.light-mode .setting-row input { 
    background: rgba(0, 0, 0, 0.05); 
    border-color: rgba(0, 0, 0, 0.1); 
} 

.back-btn {
    text-decoration: none; color: var(--text-sub); font-weight: 500;
    display: flex; align-items: center; gap: 8px;
    transition: 0.3s; padding: 8px 16px; border-radius: 20px;
    background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.25); border: 1px solid var(--pill-border);
}
.back-btn:hover { background: var(--pill-hover-bg); color: var(--text-main); transform: translateX(-5px); }

/* ==========================================================================
   4. 主布局
   ========================================================================== */
.container {
    width: 100%; min-height: 104.5vh; height: auto;
    padding: 50px 20px 70px 20px; 
    display: flex; flex-direction: column;
}

.main-card {
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    flex: 1; width: 100%; min-height: 600px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 30px;
    box-shadow: var(--card-shadow);
    backdrop-filter: var(--card-backdrop);
    
    padding: 50px 60px;
    display: flex; flex-direction: column;
    justify-content: center;
    transition: none;
    position: relative; overflow: hidden; 
}

.main-card.content-mode {
    max-height: 93vh; display: flex; flex-direction: column; overflow: hidden;
    padding-top: 25px; padding-bottom: 25px; 
}

/* ==========================================================================
   5. 首页 (Home Page) - 恢复原始浮动与缩放
   ========================================================================== */
.hero { display: flex; align-items: flex-start; justify-content: center; gap: 60px; width: 100%; max-width: 1200px; margin: 0 auto; }
.hero-text { flex: 0 0 auto; margin-top: -105px; }
.profile-header { display: flex; align-items: center; gap: 24px; margin-bottom: 2.3rem; }
.avatar { width: 95px; height: 95px; background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(4px); border: 1px solid var(--pill-border); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.9rem; overflow: hidden; box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
h1 { font-size: 3.6rem; font-weight: 800; line-height: 1.1; color: var(--text-main); text-shadow: var(--text-shadow); }
.social-icons { display: flex; gap: 15px; margin-left: 5px; }

.icon-btn {
    color: var(--text-sub); text-decoration: none; font-size: 1.08rem; font-weight: 500;
    display: flex; align-items: center; gap: 9px; padding: 10px 23px;
    background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.25); border: 1px solid var(--pill-border);
    border-radius: 100px; box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    will-change: transform;
}
.icon-btn:hover {
    color: var(--text-main); background: rgba(255, 255, 255, 0.15); border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.1) translateY(-4px);
    box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
}

.hero-visual { flex: 0 0 435px; height: 400px; position: relative; perspective: 1000px; margin-top: -65px; }
a.tech-pill {
    will-change: transform;
    transform: translate3d(0,0,0);
    position: absolute; z-index: 1; text-decoration: none; 
    display: flex; align-items: center; gap: 14px;
    padding: 14px 19px; padding-right: 27px;
    background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.25);  
    border: 1px solid var(--pill-border); border-radius: 100px; 
    box-shadow: var(--pill-shadow);
    animation: float-icon 6s ease-in-out infinite;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
a.tech-pill:hover {
    transform: scale(1.1) translateY(-10px) !important;
    background: rgba(255, 255, 255, 0.15); border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2); z-index: 100;
}
.pill-icon-box {
    width: 51px; height: 51px; border-radius: 50%; 
    display: flex; align-items: center; justify-content: center;
    font-size: 1.7rem; flex-shrink: 0; filter: drop-shadow(0 4px 3px rgba(0,0,0,0.4));
    transition: transform 0.4s ease;
}
a.tech-pill:hover .pill-icon-box { transform: scale(1.1); }
.pill-text {
    color: var(--text-main); font-weight: 700; font-size: 1.25rem; text-shadow: var(--text-shadow);
    transition: transform 0.4s ease; will-change: transform; transform: translateZ(0);
}
a.tech-pill:hover .pill-text { transform: scale(1.1); }

.pos-left { top: -8%; left: 18%; animation-delay: 0s; }
.pos-right { top: -18%; right: -25%; animation-delay: -1.2s; }
.pos-center { top: 25%; left: 68%; transform: translate(-50%, -50%); z-index: 10; animation-delay: -2.4s; }
.pos-lit { top: 55%; left: 30%; animation-delay: -3.6s; }
.pos-thinking { top: 60%; right: -25%; animation-delay: -4.8s; }

@keyframes float-icon { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -15px, 0); } }

/* ==========================================================================
   6. 画廊 & 详情
   ========================================================================== */
.page-header-bar { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-bottom: 10px; min-height: 40px;}
.page-title, .header-title { font-size: 2.2rem; font-weight: 800; color: var(--text-main); text-shadow: var(--text-shadow); letter-spacing: 0.5px; line-height: 1.2; }
.upload-btn-wrapper { position: relative; overflow: hidden; display: none; cursor: pointer; height: 40px; line-height: 40px; border-radius: 20px; margin-left: auto; }
.btn-upload { border: 1px solid var(--pill-border); color: var(--text-main); background: rgba(255,255,255,0.1); padding: 0 20px; height: 100%; border-radius: 20px; font-weight: bold; font-size: 1.0rem; pointer-events: none; transition: 0.3s; display: flex; align-items: center; justify-content: center;}
.upload-btn-wrapper:hover .btn-upload { background: rgba(255,255,255,0.2); }
.upload-btn-wrapper input[type=file] { position: absolute; width: 200%; height: 200%; left: -50%; top: -50%; opacity: 0; cursor: pointer; z-index: 10; }

.photo-grid { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; align-content: flex-start; flex: 1; min-height: 0; padding: 10px; padding-right: 10px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--scrollbar-thumb) transparent; }
.photo-grid::after { content: ''; flex-grow: 99999; }
.photo-grid::-webkit-scrollbar { display: block; width: 5px; }
.photo-grid::-webkit-scrollbar-track { background: transparent; margin: 5px 0; }
.photo-grid::-webkit-scrollbar-thumb { background-color: var(--scrollbar-thumb); border-radius: 4px; border: none; }
.photo-grid::-webkit-scrollbar-thumb:hover { background-color: var(--scrollbar-thumb-hover); }

.photo-item { height: 240px; flex-grow: 1; width: auto; position: relative; border-radius: 8px; overflow: hidden; transform: translateZ(0); border: none; background: rgba(128, 128, 128, 0.15); cursor: pointer; }
.photo-item img { width: 100%; height: 100%; object-fit: cover; min-width: 150px; display: block; pointer-events: none; image-rendering: -webkit-optimize-contrast; transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.5s ease; opacity: 0; }
.photo-item img.loaded { opacity: 1; }
.photo-item:hover img { transform: scale(1.08); }

.delete-btn { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%; background: rgba(0, 0, 0, 0.5); border: 1px solid rgba(255, 255, 255, 0.3); color: rgba(255, 255, 255, 0.9); display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 20; opacity: 0; transform: scale(0.8); transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); }
.photo-item:hover .delete-btn { opacity: 1; transform: scale(1); }
.delete-btn:hover { background: rgba(255, 59, 48, 1); border-color: rgba(255, 59, 48, 1); color: white; transform: scale(1.15) rotate(5deg); box-shadow: 0 4px 12px rgba(255, 59, 48, 0.4); }
.delete-btn svg { width: 16px; height: 16px; fill: currentColor; pointer-events: none; }

/* ==========================================================================
   7. 弹窗与灯箱
   ========================================================================== */
.custom-confirm-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(8px); z-index: 4000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: 0.3s ease; }
.custom-confirm-overlay.active { opacity: 1; pointer-events: all; }
.confirm-card { background: var(--card-bg); border: 1px solid var(--card-border); box-shadow: var(--card-shadow); backdrop-filter: blur(30px); border-radius: 20px; padding: 30px; width: 320px; text-align: center; transform: scale(0.9); transition: 0.3s; }
.custom-confirm-overlay.active .confirm-card { transform: scale(1); }
.confirm-title { font-size: 1.2rem; font-weight: bold; margin-bottom: 10px; color: var(--text-main); }
.confirm-text { font-size: 0.95rem; color: var(--text-sub); margin-bottom: 25px; line-height: 1.5; }
.confirm-actions { display: flex; gap: 15px; justify-content: center; }
.btn-modal { padding: 8px 20px; border-radius: 20px; border: none; font-weight: bold; cursor: pointer; transition: 0.2s; font-size: 0.9rem; }
.btn-cancel { background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.25); border: 1px solid var(--pill-border); color: var(--text-main); }
.btn-delete { background: rgba(255, 59, 48, 0.9); color: white; box-shadow: 0 4px 10px rgba(255, 59, 48, 0.3); }

.lightbox {
    touch-action: none;  position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: 0.3s; z-index: 3000; }
.lightbox.active { opacity: 1; pointer-events: all; }

#lightbox-img {
    width: 95vw; height: 85vh; object-fit: contain; border-radius: 4px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.5); transition: opacity 0.3s ease;
}

.close-lightbox { position: absolute; top: 30px; right: 40px; color: white; font-size: 3rem; cursor: pointer; border: none; background: none; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); color: white; font-size: 2rem; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; z-index: 3010; user-select: none; backdrop-filter: blur(5px); }
.lb-nav:hover { background: rgba(255, 255, 255, 0.3); transform: translateY(-50%) scale(1.1); }
.lb-nav:active { transform: translateY(-50%) scale(0.95); }
.lb-prev { left: 20px; } .lb-next { right: 20px; }

/* ==========================================================================
   8. 响应式适配
   ========================================================================== */
@media (max-width: 1024px) {
    .hero { flex-direction: column; align-items: center; text-align: center; gap: 40px; }
    .hero-text { margin-top: 20px; }
    .hero-visual { margin-top: 0; width: 100%; height: 350px; flex: none; }
    .main-card {
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); padding: 30px; height: auto; min-height: auto; overflow-y: auto; justify-content: center; }
    .container { padding-top: 60px; height: auto; overflow: auto; }
    .pos-left { left: 5%; top: 10%; } 
    .pos-right { right: 5%; top: 5%; } 
    .pos-center { top: 40%; left: 50%; transform: translate(-50%, -50%); } 
    .pos-thinking { top: 75%; right: 10%; left: auto; transform: none; }
    .pos-lit { top: 75%; left: 10%; }
    .photo-item { width: calc(50% - 10px); }
}

@media (max-width: 768px) {
    .grid-layout { grid-template-columns: 1fr; gap: 20px; display: block; }
    .category-card { margin-bottom: 20px; height: 160px; flex-direction: row; gap: 20px; padding: 0 30px; justify-content: flex-start;}
    .card-icon { font-size: 3rem; margin-bottom: 0; }
    .text-group { text-align: left; }
    .photo-item { width: 100%; height: 140px; }
    .lb-nav { width: 40px; height: 40px; font-size: 1.5rem; background: rgba(0,0,0,0.3); }
    .lb-prev { left: 10px; } .lb-next { right: 10px; }
    .page-title, .header-title { font-size: 1.6rem; } 
}

/* ==========================================================================
   9. Iframe 嵌入模式适配
   ========================================================================== */
html.in-iframe, html.in-iframe body {
    height: auto !important; min-height: 104.5vh !important; 
    overflow-y: auto !important; overflow-x: hidden !important;
    background: transparent !important; background-image: none !important;
}
html.in-iframe .main-card {
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    height: auto !important; overflow: visible !important;
    border: none !important; box-shadow: none !important;
    background: transparent !important; backdrop-filter: none !important;
}
html.in-iframe .main-card.content-mode {
    height: 90vh !important; max-height: 90vh !important;
    overflow: hidden !important; display: flex !important; flex-direction: column !important;
}
html.in-iframe .photo-grid {
    flex: 1 !important; height: 100% !important; overflow-y: auto !important;
}
html.in-iframe .photo-grid::-webkit-scrollbar { display: block !important; width: 5px; }

/* ================= 灯箱控制按钮组 ================= */
.hd-switch-wrapper {
    position: absolute; top: 30px; left: 40px; width: 44px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px; cursor: pointer; z-index: 3020; padding: 0; 
    box-sizing: border-box; transition: all 0.3s ease; backdrop-filter: blur(4px);
}
.hd-switch-wrapper:hover { background: rgba(255, 255, 255, 0.25); transform: scale(1.05); }
.hd-text { font-weight: 900; font-size: 0.9rem; color: rgba(255, 255, 255, 0.6); line-height: 1; pointer-events: none; }
.hd-switch-wrapper.active { background: rgba(120, 255, 214, 0.9); border-color: transparent; box-shadow: 0 0 15px rgba(120, 255, 214, 0.4); }
.hd-switch-wrapper.active .hd-text { color: #000; }

.btn-view-raw {
    position: absolute; top: 68px; width: 80px; height: 28px; left: 22px; 
    display: flex; justify-content: center; align-items: center;
    background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8); font-weight: 700; font-size: 0.75rem; letter-spacing: 2px;
    padding-left: 3px; border-radius: 6px; text-decoration: none; cursor: pointer;
    z-index: 3020; white-space: nowrap; transition: all 0.3s ease; backdrop-filter: blur(4px);
}
.btn-view-raw:hover { background: rgba(255, 255, 255, 0.25); color: #fff; border-color: rgba(255, 255, 255, 0.5); transform: scale(1.05); }

/* === Home Page Clean Mode (纯净模式) === */
.main-card.clean-layout {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    
}
/* 保持内部布局对齐，但移除视觉干扰 */

/* 管理模式增强样式 */
.sortable-ghost { opacity: 0.3; transform: scale(0.95); filter: grayscale(1); }

/* 管理模式增强 */
.sortable-ghost { opacity: 0.2; transform: scale(0.8); }
.photo-item:active { cursor: grabbing; }

/* 原生拖拽增强样式 */
.photo-item.over {
    border: 2px dashed #ffeb3b;
    transform: scale(1.05);
    z-index: 100;
}
.photo-item[draggable="true"] {
    cursor: grab;
}
.photo-item[draggable="true"]:active {
    cursor: grabbing;
}


/* [Auto-Inject] Tooltip for M/A Button */

.auto-mode-btn::after {
    content: "更改配置";
    position: absolute;
    top: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    
    /* 样式 */
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    pointer-events: none;
    
    /* 动画 */
    opacity: 0;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 3000;
}
.auto-mode-btn:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 白昼模式下提示框反色 */
body.light-mode .auto-mode-btn::after {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
}
