:root {
    --bg-main: #F5F0EB;
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-solid: rgba(255, 255, 255, 0.65);
    --border-color: rgba(180, 160, 140, 0.3);
    --accent: #D4A574;
    --accent-hover: #c49464;
    --aux: #7D9B76;
    --text-main: #3D3D3D;
    --text-sub: #7A7A7A;
    --danger: #c46464;
    --radius-lg: var(--corner-radius, 16px);
    --radius-md: calc(var(--corner-radius, 12px) * 0.75);
    --radius-sm: calc(var(--corner-radius, 8px) * 0.5);
    --shadow-sm: 0 2px 8px rgba(120, 100, 80, 0.1);
    --shadow-md: 0 8px 24px rgba(120, 100, 80, 0.15);
    --shadow-lg: 0 16px 48px rgba(120, 100, 80, 0.25);
    --corner-radius: 12px;
    --glass-blur: blur(20px);
    --glass-bg-color: rgba(255, 255, 255, 0.65);
}

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: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    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: 'Noto Serif SC', serif;
    font-weight: 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: 'Noto Serif SC', serif;
    font-size: 24px;
    font-weight: 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;
}

.page-header {
    text-align: center;
    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 {
    background: var(--glass-solid);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
}

/* 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: rgba(255, 255, 255, 0.5);
    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: #fff;
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.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: #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-sm);
}

.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: #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-sm);
}

.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: 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 {
    columns: 4;
    column-gap: 16px;
}

.layout-masonry .photo-item {
    break-inside: avoid;
    margin-bottom: 16px;
    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-masonry .photo-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s;
}

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

.layout-masonry .photo-item:hover {
    box-shadow: var(--shadow-md);
}

/* 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(3, 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: 'Noto Serif SC', 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;
    }
    .split-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    .split-panel {
        position: relative;
        top: 0;
    }
}

/* Card Layout */
.layout-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    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: 'Noto Serif SC', serif;
    font-size: 18px;
    margin-bottom: 8px;
}

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

/* Overlap Layout (Desktop) */
.layout-overlap {
    position: relative;
    height: 70vh;
    min-height: 520px;
    padding: 16px;
}

.overlap-item {
    position: absolute;
    border-radius: var(--corner-radius);
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(120, 100, 80, 0.25);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s ease,
                outline-color 0.2s ease;
    outline: 3px solid transparent;
    outline-offset: 4px;
}

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

/* 6 张图片的层叠位置（宽屏） */
.overlap-item:nth-child(1) { top: 4%;  left: 5%;  width: 28%; z-index: 3; }
.overlap-item:nth-child(2) { top: 10%; left: 28%; width: 32%; z-index: 5; }
.overlap-item:nth-child(3) { top: 6%;  left: 58%; width: 26%; z-index: 4; }
.overlap-item:nth-child(4) { top: 48%; left: 8%;  width: 25%; z-index: 2; }
.overlap-item:nth-child(5) { top: 50%; left: 36%; width: 28%; z-index: 6; }
.overlap-item:nth-child(6) { top: 44%; left: 62%; width: 24%; z-index: 3; }

/* 超过 6 张时继续循环排布 */
.overlap-item:nth-child(n+7) {
    top: 10%;
    left: 75%;
    width: 20%;
    z-index: 2;
}

.overlap-item:hover,
.overlap-item.focused {
    z-index: 100 !important;
    transform: scale(1.06) translateY(-8px);
    box-shadow: 0 16px 48px rgba(120, 100, 80, 0.38);
}

.overlap-item.focused {
    outline-color: var(--accent);
}

/* 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;
}

.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 rgba(212, 165, 116, 0.4);
}

.friends-list {
    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: 240px;
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    pointer-events: none;
    transition: all 0.2s;
}

.friends-list.show {
    opacity: 1;
    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: rgba(212, 165, 116, 0.15);
}

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

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: 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 {
    max-width: 100%;
    max-height: calc(100vh - 80px);
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
}

.lightbox-image.zoomed {
    cursor: zoom-out;
    transform: scale(1.8);
}

.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 rgba(212, 165, 116, 0.35);
}

.lightbox-sidebar {
    width: 360px;
    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: 'Noto Serif SC', 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: rgba(212, 165, 116, 0.12);
    border: 1px solid rgba(212, 165, 116, 0.25);
    color: rgba(255, 220, 180, 0.95);
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 12px;
    letter-spacing: 0.3px;
}

.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: 'Noto Sans SC', 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 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: 'Noto Serif SC', 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: 'Noto Sans SC', 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-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-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;
}

/* Emoji Picker */
.emoji-picker {
    margin-top: 12px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    max-height: 180px;
    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-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: 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-content {
        flex-direction: column;
        max-height: calc(100vh - 60px);
        gap: 16px;
    }

    .lightbox-image-wrap {
        max-height: 50vh;
    }

    .lightbox-image {
        max-height: 50vh;
    }

    .lightbox-sidebar {
        width: 100%;
        max-height: calc(50vh - 20px);
        box-sizing: border-box;
    }

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

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

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

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

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

.footer-link:hover {
    text-decoration: underline;
}

/* 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: 'Noto Serif SC', 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: 'Noto Serif SC', 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(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@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%; }
    .lightbox-sidebar { width: 100%; max-height: 40vh; }
    .admin-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; height: auto; position: relative; }
    .admin-main { padding: 24px 16px; }
    .layout-overlap { height: auto; min-height: 0; padding: 8px; display: flex; flex-direction: column; gap: 12px; }
    .overlap-item {
        position: relative !important;
        width: 100% !important;
        top: auto !important;
        left: auto !important;
        margin-bottom: 0;
        z-index: 1 !important;
        transform: none !important;
    }
}

@media (max-width: 479px) {
    .layout-grid { grid-template-columns: 1fr; }
    .layout-masonry { columns: 1; }
    .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: 'Noto Serif SC', 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;
}
