/* CSS 变量在 index.php 的内联 <style> 中定义 */

body.glass-off .nav-bar,
body.glass-off .glass-card,
body.glass-off .card-item,
body.glass-off .split-info,
body.glass-off .friends-list,
body.glass-off .admin-sidebar,
body.glass-off .footer {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body.glass-off .nav-bar,
body.glass-off .glass-card,
body.glass-off .card-item,
body.glass-off .split-info,
body.glass-off .friends-list,
body.glass-off .admin-sidebar,
body.glass-off .footer {
    background: rgba(255, 255, 255, 0.85);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif);
    font-weight: var(--font-weight, 400);
    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(212, 165, 116, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(125, 155, 118, 0.06) 0%, transparent 40%);
    pointer-events: none;
    z-index: -1;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif);
    font-weight: var(--font-weight-title, 600);
    color: var(--text-main);
}

/* Navigation */
.nav-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 40px;
    background: var(--glass-solid);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif);
    font-size: 24px;
    font-weight: var(--font-weight-title, 700);
    color: var(--accent);
    letter-spacing: 2px;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-menu a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 15px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.nav-menu a:hover {
    background: rgba(212, 165, 116, 0.15);
    color: var(--accent);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* 页面侧边栏（固定定位，在 container 外面利用视口空白） */
.page-sidebar {
    position: fixed;
    top: 80px;
    bottom: 40px;
    z-index: 90;
    display: flex;
    align-items: stretch;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}
.page-sidebar.expanded {
    pointer-events: auto;
    z-index: 95;
}
.page-sidebar-left {
    left: 0;
}
.page-sidebar-right {
    right: 0;
}

/* 侧边栏内容容器 */
.page-sidebar-inner {
    width: var(--sidebar-width);
    max-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: var(--radius-lg);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 91;
}
.page-sidebar-left .page-sidebar-inner {
    margin-left: 32px;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.page-sidebar-right .page-sidebar-inner {
    margin-right: 32px;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

/* 侧边栏内容 */
.page-sidebar-content {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-main);
    padding: 24px;
}
.page-sidebar-content > *:first-child {
    margin-top: 0;
}
.page-sidebar-content > *:last-child {
    margin-bottom: 0;
}
.page-sidebar-content p {
    margin: 12px 0;
}
.page-sidebar-content a {
    color: var(--accent);
    text-decoration: none;
}
.page-sidebar-content a:hover {
    text-decoration: underline;
}
.page-sidebar-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}
.page-sidebar-content ul,
.page-sidebar-content ol {
    padding-left: 20px;
    margin: 12px 0;
}
.page-sidebar-content h1,
.page-sidebar-content h2,
.page-sidebar-content h3,
.page-sidebar-content h4 {
    margin: 16px 0 8px;
    font-weight: 600;
    line-height: 1.4;
}
.page-sidebar-content h1 { font-size: 20px; }
.page-sidebar-content h2 { font-size: 18px; }
.page-sidebar-content h3 { font-size: 16px; }
.page-sidebar-content h4 { font-size: 15px; }
.page-sidebar-content blockquote {
    margin: 12px 0;
    padding: 8px 16px;
    border-left: 3px solid var(--accent);
    background: var(--accent-12);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-sub);
}
.page-sidebar-content code {
    background: rgba(0,0,0,0.06);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-family: 'Consolas', 'Courier New', monospace;
}
.page-sidebar-content pre {
    background: rgba(0,0,0,0.04);
    padding: 12px;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: 12px 0;
}
.page-sidebar-content pre code {
    background: none;
    padding: 0;
}
.page-sidebar-content hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 16px 0;
}

/* 侧边栏滚动条 */
.page-sidebar-inner::-webkit-scrollbar {
    width: 6px;
}
.page-sidebar-inner::-webkit-scrollbar-thumb {
    background: var(--accent-20, rgba(212, 165, 116, 0.2));
    border-radius: 3px;
}
.page-sidebar-inner::-webkit-scrollbar-thumb:hover {
    background: var(--accent-30, rgba(212, 165, 116, 0.3));
}

/* 侧边栏展开/关闭按钮（半圆形） */
.page-sidebar-toggle {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 48px;
    background: var(--accent);
    color: #fff;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 16px var(--accent-40);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 92;
    pointer-events: auto;
}
.page-sidebar-left .page-sidebar-toggle {
    left: 0;
    border-radius: 0 24px 24px 0;
    margin-left: -5px;
}
.page-sidebar-right .page-sidebar-toggle {
    right: 0;
    border-radius: 24px 0 0 24px;
    margin-right: -5px;
}
.page-sidebar-toggle:hover {
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 6px 20px var(--accent-50);
}
.page-sidebar-toggle:active {
    transform: translateY(-50%) scale(0.95);
}

/* 遮罩层（浮动模式时显示） */
.page-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 89;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* 固定模式：侧边栏紧贴内容区 */
.page-sidebar.fixed-mode {
    opacity: 1;
}
.page-sidebar.fixed-mode .page-sidebar-toggle {
    display: none;
}
.page-sidebar.fixed-mode .page-sidebar-overlay {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
.page-sidebar.fixed-mode .page-sidebar-inner {
    opacity: 1;
    visibility: visible;
}

/* 浮动模式：侧边栏隐藏，点击按钮展开 */
.page-sidebar.float-mode .page-sidebar-toggle {
    display: flex;
}
.page-sidebar.float-mode .page-sidebar-inner {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-100%);
}
.page-sidebar.float-mode.page-sidebar-right .page-sidebar-inner {
    transform: translateX(100%);
}
.page-sidebar.float-mode.expanded .page-sidebar-inner {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}
.page-sidebar.float-mode.expanded .page-sidebar-overlay {
    opacity: 1;
    visibility: visible;
}
.page-sidebar.float-mode.expanded.page-sidebar-left .page-sidebar-toggle {
    left: calc(var(--sidebar-width) + 32px);
    border-radius: 24px 0 0 24px;
    margin-left: 0;
    margin-right: -5px;
}
.page-sidebar.float-mode.expanded.page-sidebar-right .page-sidebar-toggle {
    right: calc(var(--sidebar-width) + 32px);
    border-radius: 0 24px 24px 0;
    margin-right: 0;
    margin-left: -5px;
}

/* 移动端：始终使用浮动模式 */
@media (max-width: 768px) {
    .page-sidebar {
        top: 72px;
        bottom: 24px;
    }
    .page-sidebar-inner {
        width: 360px !important;
        max-width: 85vw;
    }
    .page-sidebar-left .page-sidebar-inner {
        margin-left: 0px;
    }
    .page-sidebar-right .page-sidebar-inner {
        margin-right: 0px;
    }
    .page-sidebar.float-mode .page-sidebar-toggle {
        display: flex !important;
    }
    .page-sidebar.fixed-mode .page-sidebar-toggle {
        display: flex !important;
    }
    .page-sidebar.fixed-mode .page-sidebar-inner {
        opacity: 0;
        visibility: hidden;
        transform: translateX(-100%);
    }
    .page-sidebar.fixed-mode.page-sidebar-right .page-sidebar-inner {
        transform: translateX(100%);
    }
    .page-sidebar.float-mode.expanded.page-sidebar-left .page-sidebar-toggle {
        left: min(360px, 85vw);
    }
    .page-sidebar.float-mode.expanded.page-sidebar-right .page-sidebar-toggle {
        right: min(360px, 85vw);
    }
}

/* 平板端 */
@media (min-width: 769px) and (max-width: 1024px) {
    .page-sidebar-left .page-sidebar-inner {
        margin-left: 24px;
    }
    .page-sidebar-right .page-sidebar-inner {
        margin-right: 24px;
    }
    .page-sidebar.float-mode.expanded.page-sidebar-left .page-sidebar-toggle {
        left: calc(var(--sidebar-width) + 24px);
    }
    .page-sidebar.float-mode.expanded.page-sidebar-right .page-sidebar-toggle {
        right: calc(var(--sidebar-width) + 24px);
    }
}

/* 大屏幕 */
@media (min-width: 1400px) {
    .page-sidebar-left .page-sidebar-inner {
        margin-left: 48px;
    }
    .page-sidebar-right .page-sidebar-inner {
        margin-right: 120px;
        margin-top: 160px;
    }
    .page-sidebar.float-mode.expanded.page-sidebar-left .page-sidebar-toggle {
        left: calc(var(--sidebar-width) + 48px);
    }
    .page-sidebar.float-mode.expanded.page-sidebar-right .page-sidebar-toggle {
        right: calc(var(--sidebar-width) + 120px);
    }
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-bottom: 48px;
    animation: fadeInUp 0.6s ease-out;
}

.page-header h1 {
    font-size: 42px;
    margin-bottom: 12px;
    letter-spacing: 4px;
}

.page-header p {
    color: var(--text-sub);
    font-size: 16px;
}

/* Glass Card */
.glass-card {
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--radius-lg);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--glass-solid);
    color: var(--text-main);
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    font-family: inherit;
}

.btn:hover {
    background: rgba(212, 165, 116, 0.1);
    border-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: #fff;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
    border-color: var(--danger);
}

.btn-danger:hover {
    background: #b05555;
}

.btn-success {
    background: var(--aux);
    color: #fff;
    border-color: var(--aux);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

/* Form */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-main);
    font-weight: 500;
}

.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--glass-bg);
    color: var(--text-main);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--card-bg);
    box-shadow: 0 0 0 3px var(--accent-15);
}

.form-input[type="file"] {
    cursor: pointer;
    padding: 8px 16px;
}

.form-input[type="file"]::-webkit-file-upload-button {
    visibility: hidden;
    width: 0;
    margin-right: 8px;
}

.form-input[type="file"]::file-selector-button {
    padding: 8px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--accent);
    color: var(--text-inverse, #fff);
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    margin-right: 12px;
}

.form-input[type="file"]::file-selector-button:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-light);
}

.form-input[type="file"]::-webkit-file-upload-button {
    padding: 8px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--accent);
    color: var(--text-inverse, #fff);
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    margin-right: 12px;
    visibility: visible;
    width: auto;
}

.form-input[type="file"]::-webkit-file-upload-button:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-light);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Image Grid (Layouts) */
.layout-container {
    animation: fadeIn 0.5s ease-out;
}

/* Grid Layout */
.layout-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gallery-gap, 16px);
}

.layout-grid .photo-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--corner-radius);
    cursor: pointer;
    position: relative;
    background: var(--glass-solid);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    animation: fadeInUp 0.4s ease-out backwards;
}

.layout-grid .photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.layout-grid .photo-item:hover img {
    transform: scale(1.08);
}

.layout-grid .photo-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

/* Masonry Layout */
.layout-masonry {
    display: flex;
    flex-wrap: wrap;
    margin: -8px;
    padding: 0;
    list-style: none;
}

.layout-masonry .photo-item {
    width: calc(25% - 16px);
    margin: 8px;
    overflow: hidden;
    border-radius: var(--corner-radius);
    cursor: pointer;
    position: relative;
    background: var(--glass-solid);
    box-shadow: 0 2px 12px rgba(120, 100, 80, 0.1);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
    animation: fadeInUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.layout-masonry .photo-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.layout-masonry .photo-item:hover img {
    transform: scale(1.06);
}

.layout-masonry .photo-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(120, 100, 80, 0.18);
}

/* Carousel Layout */
.layout-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--glass-solid);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-out;
}

.carousel-item {
    flex: 0 0 100%;
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--glass-solid);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 10;
    transition: all 0.2s;
}

.carousel-nav:hover {
    background: var(--accent);
    color: #fff;
}

.carousel-prev { left: 20px; }
.carousel-next { right: 20px; }

.carousel-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.2s;
}

.carousel-dot.active {
    background: var(--accent);
    width: 28px;
    border-radius: 5px;
}

/* Split Screen Layout */
.split-wrap {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 32px;
    min-height: 600px;
    align-items: stretch;
}

.split-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    align-content: start;
}

.split-thumb {
    aspect-ratio: 1;
    border-radius: var(--corner-radius);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.4s ease-out backwards;
    background: var(--glass-solid);
    border: 2px solid transparent;
}

.split-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.split-thumb:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.split-thumb:hover img {
    transform: scale(1.08);
}

.split-thumb.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.25), var(--shadow-md);
}

.split-panel {
    position: sticky;
    top: 24px;
    align-self: start;
    min-height: 500px;
    padding: 32px;
    background: var(--glass-solid);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.split-hero {
    width: 100%;
    height: 280px;
    border-radius: var(--corner-radius);
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
    box-shadow: var(--shadow-md);
}

.split-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.split-title {
    font-family: var(--font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif);
    font-size: 26px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 12px;
    line-height: 1.4;
}

.split-desc {
    color: var(--text-sub);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
    min-height: 3em;
}

.split-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 16px 20px;
    background: rgba(212, 165, 116, 0.08);
    border-radius: var(--radius-md);
    border: 1px solid rgba(212, 165, 116, 0.2);
    margin-bottom: 16px;
}

.split-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--accent);
}

.split-hint {
    text-align: center;
    color: var(--text-sub);
    font-size: 13px;
    padding: 8px;
    opacity: 0.6;
}

/* 动画效果 - 面板内容切换 */
.split-content > * {
    animation: splitFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes splitFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* 主图切换动效 */
.split-hero img {
    animation: heroFadeIn 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: scale(1.05);
        filter: blur(6px);
    }
    to {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

/* 响应式 - 分屏布局始终保持左右结构 */
@media (max-width: 960px) {
    .split-wrap {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .split-gallery {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
    .split-panel {
        position: relative;
        top: 0;
        padding: 20px;
        min-height: 400px;
    }
    .split-hero {
        height: 200px;
    }
}

@media (max-width: 600px) {
    .split-wrap {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .split-gallery {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 8px;
    }
    .split-panel {
        padding: 16px;
        min-height: 320px;
    }
    .split-hero {
        height: 150px;
        margin-bottom: 12px;
    }
    .split-title {
        font-size: 18px;
    }
    .split-desc {
        font-size: 13px;
    }
    /* 移动端 split-meta 重新设计：统计数字 + 主按钮分离 */
    .split-meta {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 14px;
        margin-bottom: 12px;
    }
    .split-meta .split-meta-item {
        justify-content: center;
        padding: 10px 8px;
        font-size: 13px;
        background: rgba(212, 165, 116, 0.12);
        border-radius: var(--radius-md);
        border: 1px solid rgba(212, 165, 116, 0.22);
        color: var(--accent);
        font-weight: 500;
    }
    /* "查看大图"作为独立按钮，占据一整行 */
    .split-meta .split-meta-open {
        grid-column: 1 / -1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 14px;
        font-size: 14px;
        font-weight: 600;
        background: var(--accent);
        color: #fff;
        border-radius: var(--radius-md);
        border: none;
        cursor: pointer;
        margin-top: 2px;
        box-shadow: 0 6px 18px rgba(212, 165, 116, 0.35);
        transition: transform 0.2s, box-shadow 0.2s;
    }
    .split-meta .split-meta-open:active {
        transform: scale(0.97);
        box-shadow: 0 3px 10px rgba(212, 165, 116, 0.3);
    }
    .split-hint {
        font-size: 12px;
    }
}

/* Card Layout */
.layout-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gallery-gap, 24px);
}

.card-item {
    background: var(--glass-solid);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    animation: fadeInUp 0.4s ease-out backwards;
}

.card-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.card-item:hover .card-image img {
    transform: scale(1.08);
}

.card-content {
    padding: 20px;
}

.card-title {
    font-family: var(--font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif);
    font-size: 18px;
    margin-bottom: 8px;
}

.card-desc {
    color: var(--text-sub);
    font-size: 14px;
    line-height: 1.6;
}

/* Overlap Layout - 以每张卡片左侧中点为圆心绕 360° 层叠 */
.layout-overlap {
    position: relative;
    min-height: 560px;
    overflow: visible;
    transition: filter 1s ease, opacity 1s ease;
}

/* 获得焦点 0.5s 后，层叠盘模糊渐隐，背景图显现。
   保留 pointer-events: auto，让卡片仍能接收 hover */
.layout-overlap.blurred {
    filter: blur(12px);
    opacity: 0.15;
}

/* 全屏背景图覆盖层：不拦截鼠标事件，让下层卡片继续响应 hover */
.overlap-bg {
    position: fixed;
    inset: 0;
    z-index: 10;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease;
    pointer-events: none;
}

.overlap-bg.active {
    opacity: 1;
}

.overlap-item {
    position: absolute;
    left: 50%;
    top: 5%;
    width: 200px;
    aspect-ratio: 1;
    border-radius: var(--corner-radius);
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(120, 100, 80, 0.25);
    /* 旋转原点在卡片左侧、120% 向下 —— 左侧延长线下的一个点作为圆心 */
    transform-origin: 0 120%;
    /* 以圆心为轴，每张卡片旋转一个角度 */
    transform: rotate(var(--angle));
    transition:
        transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1),
        box-shadow 0.35s ease;
}

.overlap-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    border-radius: var(--corner-radius);
}

/* hover / 焦点：卡片向外浮起 + 轻微放大 —— z-index 低于灯箱（1000），避免盖在灯箱之上 */
.overlap-item:hover,
.overlap-item.focused {
    transform: rotate(var(--angle)) translate(var(--base-out), 0) scale(1.1);
    box-shadow: 0 28px 60px rgba(120, 100, 80, 0.55);
    z-index: 900 !important;
}

/* 灯箱打开时，禁用层叠卡片的 hover/focus 上浮、阴影和 meta 信息 */
body[data-lightbox-active="true"] .layout-overlap .overlap-item:hover,
body[data-lightbox-active="true"] .layout-overlap .overlap-item.focused {
    transform: rotate(var(--angle));
    box-shadow: 0 8px 32px rgba(120, 100, 80, 0.25);
    z-index: auto;
}

body[data-lightbox-active="true"] .layout-overlap .overlap-meta {
    opacity: 0;
    transform: translateY(20px);
}

/* 层叠布局 photo-meta */
.overlap-meta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px 16px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    border-radius: 0 0 var(--corner-radius) var(--corner-radius);
}

.overlap-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.overlap-stats {
    font-size: 12px;
    display: flex;
    gap: 10px;
    color: rgba(255, 255, 255, 0.85);
}

.overlap-item:hover .overlap-meta,
.overlap-item.focused .overlap-meta {
    opacity: 1;
    transform: translateY(0);
}

/* Photo Meta */
.photo-meta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.photo-item:hover .photo-meta,
.split-image:hover .photo-meta {
    opacity: 1;
}

/* 移动端 focus 态 - 第一次点击获得焦点时显示 meta 并高亮边框 */
@media (max-width: 767px) {
    .layout-grid .photo-item.focused,
    .layout-masonry .photo-item.focused,
    .card-item.focused,
    .carousel-item-inner.focused {
        outline: 3px solid var(--accent);
        outline-offset: 2px;
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 12px 32px rgba(120, 100, 80, 0.35);
    }

    .layout-grid .photo-item.focused .photo-meta,
    .layout-masonry .photo-item.focused .photo-meta,
    .carousel-item-inner.focused > div {
        opacity: 1 !important;
    }

    .card-item.focused {
        transform: translateY(-4px);
        box-shadow: 0 12px 28px rgba(120, 100, 80, 0.3);
        border-color: var(--accent);
    }
}

.photo-title {
    font-size: 14px;
    font-weight: 500;
}

.photo-likes {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
}

/* Floating Friend Links */
.floating-friends {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
    transition: opacity 0.3s, transform 0.3s;
}

.floating-friends.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

.friends-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.friends-toggle:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 8px 24px var(--accent-40, rgba(212, 165, 116, 0.4));
}

.friends-list {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 12px;
    background: var(--glass-solid);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-lg);
    min-width: 290px;
    max-width: 320px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.95);
    pointer-events: none;
    transition: all 0.2s;
}

.friends-list.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.friends-list h4 {
    font-size: 14px;
    color: var(--accent);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.friend-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-main);
    transition: background 0.2s;
    font-size: 14px;
}

.friend-link:hover {
    background: var(--accent-15, rgba(212, 165, 116, 0.15));
}

.friend-link img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.friends-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.friends-header h4 {
    margin: 0;
    font-size: 15px;
    color: var(--accent);
}

.apply-friend-btn {
    padding: 4px 10px;
    font-size: 12px;
    background: var(--accent-15);
    color: var(--accent);
    border: 1px solid var(--accent-30);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.apply-friend-btn:hover {
    background: var(--accent-25);
    border-color: var(--accent);
}

.friends-list-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.friends-list-items a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 14px;
    transition: background 0.2s;
}

.friends-list-items a:hover {
    background: var(--accent-15);
}

.friends-list-items a img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.friends-list-items a .friend-name {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
}

.friends-list-items a .friend-desc {
    font-size: 12px;
    color: var(--text-sub);
    line-height: 1.3;
}

.apply-form {
    display: none;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.apply-success {
    display: none;
    padding: 16px 12px;
    color: var(--aux);
    font-size: 13px;
    text-align: center;
}

.apply-friend-form input,
.apply-friend-form textarea {
    width: 100%;
    padding: 8px 10px;
    margin-bottom: 8px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 13px;
    background: var(--glass-bg);
    color: var(--text-main);
}

.apply-friend-form input::placeholder,
.apply-friend-form textarea::placeholder {
    color: var(--text-sub);
    opacity: 0.7;
}

.apply-friend-form textarea {
    resize: vertical;
}

.apply-friend-form button[type="submit"] {
    width: 100%;
    padding: 8px 12px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s;
}

.apply-friend-form button[type="submit"]:hover {
    background: var(--accent-hover);
}

.friends-empty {
    padding: 16px 12px;
    color: var(--text-sub);
    font-size: 13px;
    text-align: center;
}

/* Workbox (工作箱) */
.workbox-header {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.workbox-header h4 {
    font-size: 15px;
    color: var(--accent);
    margin: 0;
}

.workbox-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.workbox-tab {
    flex: 1;
    padding: 8px 12px;
    font-size: 13px;
    background: var(--accent-15);
    color: var(--text-sub);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.workbox-tab:hover {
    background: var(--accent-20);
}

.workbox-tab.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.layout-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.layout-option {
    padding: 8px 14px;
    font-size: 13px;
    background: var(--accent-15);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.layout-option:hover {
    background: var(--accent-25);
    border-color: var(--accent-30);
}

.layout-option.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.workbox-section {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--border-color);
}

.workbox-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 8px;
}

.workbox-section-title {
    font-size: 12px;
    color: var(--text-sub);
    margin-bottom: 8px;
    font-weight: 500;
}

.slider-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.range-slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: var(--accent-15);
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent);
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.15s;
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.range-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.15s;
}

.range-slider::-moz-range-thumb:hover {
    transform: scale(1.15);
}

.range-slider::-moz-range-track {
    height: 6px;
    border-radius: 3px;
    background: var(--accent-15);
    border: none;
}

.range-value {
    font-size: 13px;
    color: var(--accent);
    font-weight: 500;
    min-width: 40px;
    text-align: right;
}

.workbox-reset-row {
    margin-top: 4px;
    text-align: center;
}

.workbox-reset-btn {
    padding: 6px 14px;
    font-size: 12px;
    background: transparent;
    color: var(--text-sub);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.workbox-reset-btn:hover {
    background: var(--accent-15);
    color: var(--accent);
    border-color: var(--accent-30);
}

.layout-hint {
    margin-top: 12px;
    font-size: 11px;
    color: var(--text-sub);
    text-align: center;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: var(--lightbox-bg, rgba(30, 25, 20, 0.92));
    backdrop-filter: blur(20px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
    animation: lightboxFade 0.35s ease-out;
}

@keyframes lightboxFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content {
    position: relative;
    width: 100%;
    max-width: 1200px;
    max-height: calc(100vh - 80px);
    display: flex;
    gap: 28px;
    align-items: stretch;
    animation: lightboxUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes lightboxUp {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.lightbox-image-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.lightbox-image {
    display: block;
}

.lightbox-thumb {
    position: relative;
    z-index: 2;
    max-width: 100%;
    max-height: calc(100vh - 80px);
    object-fit: contain;
    cursor: zoom-in;
    filter: blur(0);
    opacity: 1;
    transition:
        filter 0.9s ease,
        opacity 0.9s ease;
    will-change: filter, opacity;
}

.lightbox-original {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    max-width: 100%;
    max-height: calc(100vh - 80px);
    object-fit: contain;
    cursor: zoom-in;
    opacity: 0;
    filter: blur(22px);
    transition:
        opacity 1.1s cubic-bezier(0.2, 0.8, 0.2, 1),
        filter 1.1s cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: none;
    will-change: filter, opacity;
}

/* 点击"查看原图"时：缩略图先加重磨砂，然后原图逐渐变清晰 */
.lightbox-image-wrap.loading-original .lightbox-thumb {
    filter: blur(14px);
    opacity: 1;
}

.lightbox-image-wrap.loading-original .lightbox-original {
    opacity: 0;
}

/* 原图加载完成：缩略图淡出，原图从磨砂渐清晰 */
.lightbox-image-wrap.original-loaded .lightbox-thumb {
    opacity: 0;
    filter: blur(14px);
}

.lightbox-image-wrap.original-loaded .lightbox-original {
    opacity: 1;
    filter: blur(0);
    pointer-events: auto;
}

.lightbox-thumb.zoomed,
.lightbox-original.zoomed {
    cursor: zoom-out;
    transform: translate(-50%, -50%) scale(1.8);
}

/* 全屏模式：使用 JS 控制缩放，不需要 zoomed 类 */

/* 全屏模式样式 - 放大到当前浏览器内容窗口大小 */
.lightbox.fullscreen-mode {
    padding: 0;
    align-items: stretch;
}

.lightbox.fullscreen-mode .lightbox-content {
    max-width: none !important;
    max-height: none !important;
    width: 100% !important;
    height: 100% !important;
    gap: 0 !important;
    margin: 0 !important;
    align-items: stretch !important;
}

.lightbox-image-wrap.fullscreen-mode {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    border-radius: 0 !important;
    background: rgba(30, 25, 20, 0.95) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
    border: none !important;
    flex: 1 !important;
}

.lightbox-image-wrap.fullscreen-mode .lightbox-thumb,
.lightbox-image-wrap.fullscreen-mode .lightbox-original {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    z-index: auto !important;
    opacity: 1 !important;
    filter: none !important;
    pointer-events: auto !important;
    cursor: zoom-in !important;
}

.lightbox-image-wrap.fullscreen-mode .lightbox-thumb {
    display: none !important;
}

.lightbox.fullscreen-mode .lightbox-sidebar {
    display: none !important;
}

.lightbox-image-wrap.fullscreen-mode .lightbox-close {
    z-index: 1200 !important;
}

/* 查看原图按钮 - 左下角 */
.lightbox-view-original {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 12;
    padding: 10px 18px;
    border-radius: 100px;
    background: rgba(30, 25, 20, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    font-family: var(--font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    letter-spacing: 0.5px;
}

.lightbox-view-original i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.lightbox-view-original:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 10px 28px var(--accent-45, rgba(212, 165, 116, 0.45));
}

.lightbox-view-original:hover i {
    transform: scale(1.15);
}

.lightbox-view-original.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
}

/* 右下角操作按钮容器 */
.lightbox-bottom-actions {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 12;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lightbox-action-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(30, 25, 20, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.lightbox-action-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px var(--accent-45, rgba(212, 165, 116, 0.45));
}

.lightbox-action-btn:hover i {
    transform: scale(1.15);
}

.lightbox-action-btn i {
    transition: transform 0.3s ease;
}

/* 点赞按钮样式 */
.lightbox-action-btn.like-btn .fa-heart {
    font-family: 'Font Awesome 6 Free';
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.25s ease;
}

.lightbox-action-btn.like-btn:hover .fa-heart {
    color: #fff;
    font-weight: 900;
}

.lightbox-action-btn.like-btn.liked {
    background: linear-gradient(135deg, #ff4757 0%, #e8384f 100%);
    border-color: #ff4757;
    color: #fff;
    box-shadow: 0 8px 22px rgba(255, 71, 87, 0.45);
}

.lightbox-action-btn.like-btn.liked .fa-heart {
    font-weight: 900;
    color: #fff;
    animation: heartBeat 0.4s ease;
}

/* 工作箱主题设置 */
.toolbox-section {
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.toolbox-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.toolbox-section-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.toolbox-section-title i {
    color: var(--accent);
}

.toolbox-dark-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.toolbox-dark-btn {
    flex: 1;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--accent-10);
    border: 1px solid var(--border-color);
    color: var(--text-sub);
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.toolbox-dark-btn:hover {
    background: var(--accent-15);
    border-color: var(--accent);
    color: var(--accent);
}

.toolbox-dark-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.toolbox-preset-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.toolbox-preset-item {
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.toolbox-preset-item:hover {
    transform: scale(1.08);
    border-color: var(--accent-40);
}

.toolbox-preset-item.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-20);
}

.toolbox-preset-item.active::after {
    content: "\2713";
    position: absolute;
    top: 3px; right: 3px;
    width: 16px; height: 16px;
    line-height: 16px;
    text-align: center;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    font-size: 9px;
    font-weight: 700;
}

.toolbox-preset-preview {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.toolbox-preset-preview .tp-top {
    flex: 1;
    display: flex;
}

.toolbox-preset-preview .tp-accent { width: 50%; }
.toolbox-preset-preview .tp-aux { width: 50%; }
.toolbox-preset-preview .tp-bg {
    height: 40%;
}

/* 加载中提示 */
.lightbox-loading {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 11;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: rgba(30, 25, 20, 0.55);
    backdrop-filter: blur(12px);
    border-radius: 100px;
    color: #fff;
    font-size: 12px;
    font-family: var(--font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.lightbox-loading-ring {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: lightboxLoading 0.9s linear infinite;
}

@keyframes lightboxLoading {
    to { transform: rotate(360deg); }
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    font-size: 22px;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.lightbox-close:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: rotate(90deg) scale(1.05);
    box-shadow: 0 8px 24px var(--accent-35, rgba(212, 165, 116, 0.35));
}

.lightbox-sidebar {
    width: 400px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 28px;
    color: #fff;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
}

.lightbox-sidebar::-webkit-scrollbar {
    width: 6px;
}

.lightbox-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 3px;
}

.lightbox-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-title {
    font-family: var(--font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.lightbox-info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lightbox-info span {
    background: var(--accent-12, rgba(212, 165, 116, 0.12));
    border: 1px solid var(--accent-25, rgba(212, 165, 116, 0.25));
    color: var(--accent-light, rgba(255, 220, 180, 0.95));
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 12px;
    letter-spacing: 0.3px;
}

.lightbox-info span.exif-core-highlight {
    background: var(--accent-12, rgba(212, 165, 116, 0.12));
    border-color: var(--accent-25, rgba(212, 165, 116, 0.25));
    color: var(--accent-light, rgba(255, 220, 180, 0.95));
}

.lightbox-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.action-btn {
    flex: 1;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    color: #fff;
    font-family: var(--font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif);
}

.action-btn i {
    font-size: 14px;
    transition: transform 0.2s ease;
}

.action-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px var(--accent-30, rgba(212, 165, 116, 0.3));
}

.action-btn:hover i {
    transform: scale(1.2);
}

.action-btn.like-btn .fa-heart {
    font-family: 'Font Awesome 6 Free';
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.25s ease;
}

.action-btn.like-btn:hover .fa-heart {
    color: #fff;
    font-weight: 900;
}

.action-btn.like-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.action-btn.like-btn:hover {
    background: rgba(255, 60, 80, 0.15);
    border-color: rgba(255, 90, 110, 0.35);
    box-shadow: 0 8px 20px rgba(255, 60, 80, 0.15);
    transform: translateY(-1px);
}

.action-btn.like-btn.liked {
    background: linear-gradient(135deg, #ff4757 0%, #e8384f 100%);
    border-color: #ff4757;
    color: #fff;
    box-shadow: 0 8px 22px rgba(255, 71, 87, 0.45);
}

.action-btn.like-btn.liked .fa-heart {
    font-weight: 900;
    color: #fff;
    animation: heartBeat 0.4s ease;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.4); }
}

/* Comments */
.comments-section h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif);
    letter-spacing: 0.3px;
}

.comment-form {
    margin-bottom: 20px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 8px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-family: var(--font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif);
    resize: vertical;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.comment-form input::placeholder,
.comment-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.15);
}

.comment-form-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 4px;
}

.comment-form-buttons .comment-submit-btn {
    flex: 1;
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 500;
}

.comment-form-buttons .comment-submit-btn:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.comment-form-buttons .emoji-toggle {
    flex: 0 0 auto;
    padding: 12px 16px;
}

.comments-list,
.comment-list {
    max-height: 280px;
    overflow-y: auto;
    padding-right: 4px;
}

.comments-list::-webkit-scrollbar,
.comment-list::-webkit-scrollbar {
    width: 4px;
}

.comments-list::-webkit-scrollbar-thumb,
.comment-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.comment-item {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-item.comment-reply {
    padding: 0 0 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    margin-left: -10px;
    border-left: 2px solid var(--accent-20, rgba(212, 165, 116, 0.2));
}

/* 待审核评论：整体灰色显示，透明度降低 */
.comment-item.comment-pending {
    opacity: 0.55;
    filter: grayscale(0.35);
}
.comment-item.comment-pending img {
    opacity: 0.75;
}
.comment-item.comment-pending .comment-pending-hint {
    font-style: italic;
}

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.comment-body {
    flex: 1;
    min-width: 0;
}

.comment-delete-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 4px;
}
.comment-delete-btn:hover {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

.comment-meta {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-name {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    margin-right: 0;
}

.comment-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    word-break: break-word;
}

.comment-text img {
    max-width: 28px;
    vertical-align: middle;
    margin: 0 2px;
}

/* 回复按钮样式 */
.reply-btn {
    background: none !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.35) !important;
    cursor: pointer;
    font-size: 12px;
    padding: 4px 8px !important;
    border-radius: 6px;
    transition: all 0.25s ease !important;
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0.6;
}

.reply-btn:hover {
    opacity: 1;
    background: var(--accent-15, rgba(212, 165, 116, 0.15)) !important;
    color: var(--accent) !important;
    transform: scale(1.05);
}

.reply-btn:focus {
    outline: none;
    opacity: 1;
    background: var(--accent-20, rgba(212, 165, 116, 0.2)) !important;
    color: var(--accent) !important;
    box-shadow: 0 0 0 2px var(--accent-30, rgba(212, 165, 116, 0.3));
    transform: scale(1.08);
    border-radius: 8px;
}

.reply-btn:active {
    transform: scale(0.95);
}

/* 回复指示器 */
.reply-indicator {
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 取消回复按钮 */
.cancel-reply-btn:hover {
    color: #c46464 !important;
}

/* Emoji Picker */
.emoji-picker {
    margin-top: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    max-height: 220px;
    overflow-y: auto;
    display: none;
    animation: slideDown 0.25s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.emoji-picker.show {
    display: block;
}

.emoji-categories {
    display: flex;
    gap: 6px;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    overflow-x: auto;
    scrollbar-width: none;
}

.emoji-categories::-webkit-scrollbar {
    display: none;
}

.emoji-category-tab {
    flex: 0 0 auto;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.emoji-category-tab:hover {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
}

.emoji-category-tab.active {
    background: var(--accent-30, rgba(212, 165, 116, 0.3));
    border-color: var(--accent-50, rgba(212, 165, 116, 0.5));
    color: var(--accent);
}

.emoji-category-tab i {
    font-size: 11px;
}

.emoji-count {
    font-size: 10px;
    background: rgba(255, 255, 255, 0.15);
    padding: 1px 5px;
    border-radius: 10px;
}

.emoji-category-tab.active .emoji-count {
    background: var(--accent-30, rgba(212, 165, 116, 0.3));
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
}

.emoji-item {
    aspect-ratio: 1;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.emoji-item img {
    max-width: 70%;
    max-height: 70%;
    transition: transform 0.15s ease;
}

.emoji-item:hover {
    background: var(--accent-15, rgba(212, 165, 116, 0.15));
    border-color: var(--accent);
    transform: scale(1.08);
}

.emoji-item:hover img {
    transform: scale(1.1);
}

/* Lightbox Responsive */
@media (max-width: 960px) {
    .lightbox {
        overflow-y: auto;
        align-items: flex-start;
    }

    .lightbox-content {
        flex-direction: column;
        max-height: none;
        gap: 16px;
        margin: 30px 0;
    }

    .lightbox-image-wrap {
        flex: 0 0 auto;
        height: auto;
        overflow: visible;
    }

    .lightbox-thumb,
    .lightbox-original {
        width: 100%;
        height: auto;
        max-height: none;
    }

    .lightbox-sidebar {
        width: 100%;
        max-height: none;
        box-sizing: border-box;
        padding: 16px 12px;
    }

    .lightbox-close {
        top: 12px;
        right: 12px;
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    /* 评论区域手机端优化 - 增加左右边距 */
    .comments-section {
        padding: 0 4px;
    }
    .comments-section h4 {
        font-size: 14px;
        margin-bottom: 12px;
    }
    .comments-list,
    .comment-list {
        max-height: none;
        overflow-y: visible;
        padding-right: 0;
    }
    .comment-item {
        gap: 10px;
        padding: 14px 8px;
    }
    .comment-avatar {
        width: 32px;
        height: 32px;
    }
    .comment-body {
        min-width: 0;
        padding: 0 4px;
    }
    .comment-replies {
        margin-top: 10px;
        padding-left: 6px;
    }
    .comment-item.comment-reply {
        padding: 0 0 12px 0;
        margin-left: -8px;
    }
    .inline-reply-form {
        padding: 12px !important;
    }
    .comment-form {
        margin-bottom: 16px;
    }
    .comment-form input,
    .comment-form textarea {
        padding: 10px 12px;
        font-size: 14px;
    }
    .comment-form-buttons {
        flex-direction: column;
    }
    .comment-form-buttons .action-btn {
        width: 100%;
        justify-content: center;
    }
    .reply-indicator {
        font-size: 11px;
        padding: 6px 10px;
    }
}

/* Footer */
.footer {
    margin-top: 40px;
    background: var(--glass-solid);
    backdrop-filter: var(--glass-blur);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.footer-left,
.footer-right {
    flex: 1;
}

.footer-right {
    text-align: right;
}

.footer-text {
    color: var(--text-sub);
    font-size: 13px;
}

.footer-link {
    color: var(--text-sub);
    text-decoration: none;
}

.footer-link:hover {
    color: var(--accent);
    text-decoration: underline;
}

.footer-icon {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.footer-police-icon {
    width: 14px;
    height: 14px;
}

.footer-copyright {
    margin: 0 0 6px 0;
}

.footer-social {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.footer-social-link {
    color: var(--text-sub);
    font-size: 16px;
    text-decoration: none;
}

.footer-social-link:hover {
    color: var(--accent);
}

@media (max-width: 767px) {
    /* 强制 page-header 左右布局 */
    .page-header {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
    }
    .header-text {
        text-align: left;
    }
    .header-text h1 {
        font-size: 18px !important;
    }
    .header-text p {
        font-size: 12px !important;
    }
    .admin-info {
        padding: 10px 14px !important;
        gap: 10px !important;
    }
    .admin-avatar {
        width: 36px !important;
        height: 36px !important;
    }
    .admin-info-text div:first-child {
        font-size: 13px !important;
    }
    /* 在极小屏幕下隐藏邮箱和描述 */
    @media (max-width: 479px) {
        .admin-info-text div:not(:first-child) {
            display: none;
        }
    }
    /* 手机端 footer 样式 */
    .footer-content {
        padding: 14px 16px;
        gap: 12px;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
    }
    .footer-left,
    .footer-right {
        flex: 1;
        min-width: 0;
    }
    .footer-text,
    .footer-link {
        font-size: 11px;
    }
    .footer-copyright {
        margin: 0 0 4px 0;
        font-size: 11px;
    }
    .footer-social {
        gap: 8px;
    }
    .footer-social-link {
        font-size: 14px;
        margin-left: 0;
    }
}

/* Admin Layout */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 220px;
    background: var(--glass-solid);
    backdrop-filter: var(--glass-blur);
    border-right: 1px solid var(--border-color);
    padding: 24px 16px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.admin-logo {
    font-family: var(--font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif);
    font-size: 20px;
    color: var(--accent);
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.admin-nav {
    list-style: none;
}

.admin-nav li {
    margin-bottom: 4px;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--text-main);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: rgba(212, 165, 116, 0.15);
    color: var(--accent);
}

.admin-nav i {
    width: 18px;
    text-align: center;
}

.admin-main {
    flex: 1;
    padding: 32px 48px;
    overflow-x: auto;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.admin-header h1 {
    font-size: 28px;
}

/* Login Page */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 40px;
}

.login-card h1 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 8px;
}

.login-card .subtitle {
    text-align: center;
    color: var(--text-sub);
    margin-bottom: 32px;
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--glass-solid);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.data-table th,
.data-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background: rgba(212, 165, 116, 0.08);
    font-weight: 600;
    font-size: 14px;
    color: var(--accent);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td {
    background: rgba(212, 165, 116, 0.04);
}

/* Status Badge */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.badge-pending { background: rgba(212, 165, 116, 0.2); color: var(--accent); }
.badge-approved { background: rgba(125, 155, 118, 0.2); color: var(--aux); }
.badge-rejected { background: rgba(196, 100, 100, 0.2); color: var(--danger); }

/* Alert */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background: rgba(125, 155, 118, 0.15);
    border: 1px solid rgba(125, 155, 118, 0.3);
    color: var(--aux);
}

.alert-error {
    background: rgba(196, 100, 100, 0.15);
    border: 1px solid rgba(196, 100, 100, 0.3);
    color: var(--danger);
}

.alert-info {
    background: rgba(212, 165, 116, 0.15);
    border: 1px solid rgba(212, 165, 116, 0.3);
    color: var(--accent);
}

/* Install Wizard */
.wizard-steps {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}

.wizard-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.3);
    font-size: 14px;
    color: var(--text-sub);
}

.wizard-step.active {
    background: var(--accent);
    color: #fff;
}

.wizard-step.done {
    background: var(--aux);
    color: #fff;
}

.step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.wizard-step.active .step-num,
.wizard-step.done .step-num {
    background: rgba(255,255,255,0.25);
}

.credentials-box {
    background: rgba(212, 165, 116, 0.08);
    border: 2px dashed var(--accent);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin: 24px 0;
    text-align: center;
}

.credentials-box .label {
    font-size: 13px;
    color: var(--text-sub);
    margin-bottom: 6px;
}

.credentials-box .value {
    font-family: 'Courier New', monospace;
    font-size: 20px;
    font-weight: 600;
    color: var(--accent);
    padding: 8px 0;
}

/* Settings Cards */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.option-card {
    padding: 20px;
    border-radius: var(--radius-lg);
    background: var(--glass-solid);
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.option-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.option-card.selected {
    border-color: var(--accent);
    background: rgba(212, 165, 116, 0.1);
}

.option-card .option-icon {
    font-size: 32px;
    margin-bottom: 12px;
    color: var(--accent);
}

.option-card .option-name {
    font-family: var(--font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif);
    font-size: 16px;
    margin-bottom: 4px;
}

.option-card .option-desc {
    font-size: 12px;
    color: var(--text-sub);
}

/* Range Slider */
.range-slider {
    width: 100%;
    margin: 16px 0;
}

.range-slider input[type="range"] {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    background: var(--border-color);
    border-radius: 3px;
    outline: none;
}

.range-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: var(--shadow-sm);
}

.range-value {
    text-align: center;
    font-size: 14px;
    color: var(--accent);
    font-weight: 600;
    margin-top: 8px;
}

/* Upload Area */
.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 24px;
}

.upload-area:hover,
.upload-area.drag {
    border-color: var(--accent);
    background: rgba(212, 165, 116, 0.05);
}

.upload-area i {
    font-size: 48px;
    color: var(--accent);
    margin-bottom: 16px;
}

.upload-area p {
    color: var(--text-main);
    margin-bottom: 4px;
}

.upload-area small {
    color: var(--text-sub);
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.4); }
}

.photo-item:nth-child(1) { animation-delay: 0.05s; }
.photo-item:nth-child(2) { animation-delay: 0.1s; }
.photo-item:nth-child(3) { animation-delay: 0.15s; }
.photo-item:nth-child(4) { animation-delay: 0.2s; }
.photo-item:nth-child(5) { animation-delay: 0.25s; }
.photo-item:nth-child(6) { animation-delay: 0.3s; }
.photo-item:nth-child(7) { animation-delay: 0.35s; }
.photo-item:nth-child(8) { animation-delay: 0.4s; }

/* Responsive */
@media (max-width: 1199px) {
    .layout-grid { grid-template-columns: repeat(3, 1fr); }
    .layout-masonry { columns: 3; }
    .layout-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
    .nav-bar { padding: 12px 20px; }
    .nav-menu { gap: 16px; }
    .nav-menu a { font-size: 13px; padding: 6px 8px; }
    .container { padding: 24px 16px; }
    .page-header h1 { font-size: 32px; }
    .layout-grid { grid-template-columns: repeat(2, 1fr); }
    .layout-masonry { columns: 2; }
    .layout-cards { grid-template-columns: 1fr; }
    .layout-split { grid-template-columns: 1fr; }
    .lightbox-content { flex-direction: column; max-width: 95vw; }
    .lightbox-image-wrap { max-width: 100%; border-radius: 16px; }
    .lightbox-thumb,
    .lightbox-original { border-radius: 16px; }
    .lightbox-sidebar { width: 100%; max-height: 70vh; padding: 20px; }
    .admin-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; height: auto; position: relative; }
    .admin-main { padding: 24px 16px; }

    /* 评论区域手机端优化 */
    .comments-section h4 { font-size: 14px; margin-bottom: 12px; }
    .comments-list,
    .comment-list { max-height: none; overflow-y: visible; padding-right: 0; }
    .comment-item { gap: 10px; padding: 16px 0; }
    .comment-avatar { width: 32px; height: 32px; }
    .comment-replies { margin-top: 10px; padding-left: 2px; }
    .comment-item.comment-reply { padding: 0px 0 12px 0px; margin-left: -10px; }
    .inline-reply-form { padding: 12px !important; }
    .comment-form { margin-bottom: 16px; }
    .comment-form input,
    .comment-form textarea { padding: 10px 12px; font-size: 16px; }
    .comment-form-buttons { flex-direction: column; }
    .comment-form-buttons .action-btn { width: 100%; justify-content: center; }
    .reply-indicator { font-size: 11px; padding: 6px 10px; }

    .layout-overlap {
        min-height: 420px;
    }
    .overlap-item {
        width: 130px;
        box-shadow: 0 4px 16px rgba(120, 100, 80, 0.2);
    }
    /* 手机端焦点：向外浮起 —— z-index 低于灯箱 */
    .overlap-item.focused,
    .overlap-item:hover {
        transform: rotate(var(--angle)) translate(var(--base-out), 0) scale(1.12);
        box-shadow: 0 20px 48px rgba(120, 100, 80, 0.5);
        z-index: 900;
    }

    /* 灯箱打开时禁用层叠卡片的浮起状态 */
    body[data-lightbox-active="true"] .layout-overlap .overlap-item:hover,
    body[data-lightbox-active="true"] .layout-overlap .overlap-item.focused {
        transform: rotate(var(--angle));
        box-shadow: 0 4px 16px rgba(120, 100, 80, 0.2);
        z-index: auto;
    }

    body[data-lightbox-active="true"] .layout-overlap .overlap-meta {
        opacity: 0;
        transform: translateY(20px);
    }

    /* 手机端 meta */
    .overlap-meta {
        padding: 6px 8px;
    }
    .overlap-title {
        font-size: 10px;
    }
    .overlap-stats {
        font-size: 9px;
    }

    /* iOS Safari 输入框 font-size >= 16px 防止自动放大 */
    .apply-friend-form input,
    .apply-friend-form textarea {
        font-size: 16px;
    }

    @media (max-width: 360px) {
        .overlap-item { width: 95px; }
    }
}

@media (max-width: 479px) {
    .layout-grid { grid-template-columns: 1fr; }
    .layout-masonry { columns: 2; }
    .page-header h1 { font-size: 26px; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(180, 160, 140, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 24px;
    color: var(--text-sub);
}

.empty-state i {
    font-size: 64px;
    color: var(--accent);
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    font-family: var(--font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif);
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text-main);
}

/* Misc */
.row-actions {
    display: flex;
    gap: 8px;
}

.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-12 { gap: 12px; }
.w-full { width: 100%; }

.hint {
    font-size: 12px;
    color: var(--text-sub);
    margin-top: 4px;
}

.preview-box {
    display: inline-block;
    padding: 4px;
    background: var(--glass-solid);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.preview-box img {
    display: block;
    max-width: 80px;
    max-height: 80px;
    border-radius: 4px;
}
