@import url('https://cdn.jsdelivr.net/npm/@callmebill/lxgw-wenkai-web@latest/style.css');

:root {
    --sky: #E8F4FD;
    --cloud: #FFFFFF;
    --bubble: #B8E4F8;
    --ocean: #5BB5E0;
    --deep: #3A8DB5;
    --ink: #456B82;
    --candy: #FFD166;
    --cherry: #FF9EB5;
    --mint: #7DDEB8;
}

.site-logo {
    image-rendering: auto;
}

body {
    background-color: var(--sky);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(184, 228, 248, 0.6) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 209, 102, 0.15) 0%, transparent 35%);
    background-size: auto;
    background-position: center;
    background-attachment: scroll;
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    font-family: 'LXGW WenKai', 'STKaiti', 'KaiTi', '楷体', serif;
    font-size: 16px;
    line-height: 1.7;
}

html[data-bg="beijing1"] body {
    background-image:
        linear-gradient(rgba(232, 244, 253, 0.55), rgba(232, 244, 253, 0.55)),
        url('/beijing1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

html[data-bg="beijing2"] body {
    background-image:
        linear-gradient(rgba(232, 244, 253, 0.55), rgba(232, 244, 253, 0.55)),
        url('/beijing2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.bg-switcher {
    position: relative;
}

.bg-switcher__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    border: 2px solid var(--bubble);
    background: rgba(255, 255, 255, 0.85);
    color: var(--deep);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.bg-switcher__toggle:hover {
    border-color: var(--ocean);
    background: var(--cloud);
    transform: scale(1.05);
}

.bg-switcher__toggle svg {
    width: 1.125rem;
    height: 1.125rem;
}

.bg-switcher__menu {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    min-width: 10rem;
    padding: 0.5rem;
    border-radius: 1rem;
    border: 3px solid var(--bubble);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 0 rgba(58, 141, 181, 0.12), 0 8px 24px rgba(91, 181, 224, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    z-index: 60;
}

.bg-switcher.is-open .bg-switcher__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.bg-switcher__label {
    padding: 0.25rem 0.5rem 0.375rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--ink);
    opacity: 0.6;
}

.bg-switcher__option {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.5rem;
    border: 2px solid transparent;
    border-radius: 0.75rem;
    background: transparent;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
    text-align: left;
    transition: background 0.15s, border-color 0.15s;
}

.bg-switcher__option:hover {
    background: rgba(184, 228, 248, 0.35);
}

.bg-switcher__option.is-active {
    border-color: var(--ocean);
    background: rgba(184, 228, 248, 0.45);
}

.bg-switcher__preview {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    border: 2px solid var(--bubble);
    background-size: cover;
    background-position: center;
}

.bg-switcher__preview--default {
    background:
        radial-gradient(circle at 30% 30%, rgba(184, 228, 248, 0.9) 0%, transparent 60%),
        linear-gradient(180deg, #C5E8FA 0%, #E8F4FD 100%);
}

.font-display,
.font-heading {
    font-family: 'LXGW WenKai', 'STKaiti', 'KaiTi', '楷体', serif;
    font-weight: 700;
}

.font-mono {
    font-family: 'LXGW WenKai', 'STKaiti', 'KaiTi', '楷体', serif;
    font-size: 0.85em;
    opacity: 0.75;
}

@keyframes float-up {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes cloud-drift {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(12px); }
}

@keyframes bounce-soft {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.animate-fade-up {
    animation: float-up 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.cloud-deco {
    animation: cloud-drift 6s ease-in-out infinite;
}

.cartoon-card {
    border-radius: 1.25rem;
    background: var(--cloud);
    border: 3px solid var(--bubble);
    box-shadow: 0 4px 0 rgba(58, 141, 181, 0.15), 0 8px 24px rgba(91, 181, 224, 0.12);
}

.photo-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    background: var(--cloud);
    border: 3px solid var(--bubble);
    box-shadow: 0 4px 0 rgba(58, 141, 181, 0.12), 0 6px 20px rgba(91, 181, 224, 0.1);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s;
}

.photo-card:hover {
    transform: translateY(-6px) rotate(-0.5deg);
    box-shadow: 0 8px 0 rgba(58, 141, 181, 0.18), 0 16px 32px rgba(91, 181, 224, 0.2);
    border-color: var(--ocean);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: linear-gradient(180deg, #72C8ED 0%, var(--ocean) 100%);
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    border: 3px solid #3A9FD0;
    box-shadow: 0 4px 0 #2E8AB8, 0 6px 16px rgba(91, 181, 224, 0.35);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #2E8AB8, 0 10px 24px rgba(91, 181, 224, 0.4);
}

.btn-primary:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #2E8AB8;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    border: 3px solid var(--bubble);
    background: var(--cloud);
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--deep);
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 3px 0 rgba(58, 141, 181, 0.1);
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-secondary:hover {
    border-color: var(--ocean);
    color: var(--ocean);
    transform: translateY(-1px);
    box-shadow: 0 4px 0 rgba(58, 141, 181, 0.15);
}

.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: linear-gradient(180deg, #FF8A8A 0%, #EF4444 100%);
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #fff;
    border: 3px solid #DC2626;
    box-shadow: 0 4px 0 #B91C1C;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-danger:hover {
    transform: translateY(-1px);
}

.btn-success {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: linear-gradient(180deg, #9EEBC8 0%, var(--mint) 100%);
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #fff;
    border: 3px solid #5BC99A;
    box-shadow: 0 4px 0 #45B888, 0 6px 16px rgba(125, 222, 184, 0.35);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #45B888, 0 10px 24px rgba(125, 222, 184, 0.4);
}

.input-field {
    display: block;
    width: 100%;
    border-radius: 1rem;
    border: 3px solid var(--bubble);
    background: var(--cloud);
    color: var(--ink);
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-field:focus {
    outline: none;
    border-color: var(--ocean);
    box-shadow: 0 0 0 4px rgba(91, 181, 224, 0.25);
}

.input-field::placeholder {
    color: rgba(69, 107, 130, 0.45);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: 0.25rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 700;
    border: 2px solid transparent;
}

.status-pending {
    background: rgba(255, 209, 102, 0.25);
    color: #C4920A;
    border-color: rgba(255, 209, 102, 0.5);
}

.status-approved {
    background: rgba(125, 222, 184, 0.3);
    color: #2A9D6A;
    border-color: rgba(125, 222, 184, 0.6);
}

.status-rejected {
    background: rgba(255, 158, 181, 0.25);
    color: #D64565;
    border-color: rgba(255, 158, 181, 0.5);
}

.category-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: 0.2rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(91, 181, 224, 0.2);
    color: var(--deep);
    border: 2px solid rgba(91, 181, 224, 0.35);
}

.hero-sky {
    background: linear-gradient(180deg, #C5E8FA 0%, #E8F4FD 60%, var(--sky) 100%);
    position: relative;
    overflow: hidden;
}

.hero-sky::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 25%, rgba(255, 255, 255, 0.8) 0%, transparent 8%),
        radial-gradient(circle at 25% 30%, rgba(255, 255, 255, 0.6) 0%, transparent 12%),
        radial-gradient(circle at 75% 20%, rgba(255, 255, 255, 0.7) 0%, transparent 10%),
        radial-gradient(circle at 85% 35%, rgba(255, 255, 255, 0.5) 0%, transparent 8%);
    pointer-events: none;
}

html[data-bg="beijing1"] .hero-sky,
html[data-bg="beijing2"] .hero-sky {
    background: transparent;
}

html[data-bg="beijing1"] .hero-sky::before,
html[data-bg="beijing2"] .hero-sky::before {
    display: none;
}

.nav-cartoon {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 3px solid var(--bubble);
    box-shadow: 0 4px 16px rgba(91, 181, 224, 0.1);
}

.footer-cartoon {
    background: linear-gradient(180deg, var(--bubble) 0%, #A8D8F0 100%);
    border-top: 3px solid rgba(255, 255, 255, 0.6);
}

.flash-bar {
    background: rgba(125, 222, 184, 0.3);
    border-bottom: 2px solid rgba(125, 222, 184, 0.5);
    color: #2A9D6A;
}

.page-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--deep);
    letter-spacing: 0.02em;
}

.empty-state-icon {
    font-size: 4rem;
    line-height: 1;
    animation: bounce-soft 2s ease-in-out infinite;
}

.review-preview {
    flex-shrink: 0;
    width: 100%;
    max-width: 22rem;
}

.review-image-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    border: 2px solid var(--bubble);
    background: #1a2332;
    line-height: 0;
}

.review-image {
    display: block;
    width: 100%;
    max-height: 18rem;
    object-fit: contain;
    background: #0f1419;
}

.review-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.review-overlay-thirds {
    background-image:
        linear-gradient(to right, transparent calc(33.333% - 0.5px), rgba(255, 255, 255, 0.85) calc(33.333% - 0.5px), rgba(255, 255, 255, 0.85) calc(33.333% + 0.5px), transparent calc(33.333% + 0.5px)),
        linear-gradient(to right, transparent calc(66.666% - 0.5px), rgba(255, 255, 255, 0.85) calc(66.666% - 0.5px), rgba(255, 255, 255, 0.85) calc(66.666% + 0.5px), transparent calc(66.666% + 0.5px)),
        linear-gradient(to bottom, transparent calc(33.333% - 0.5px), rgba(255, 255, 255, 0.85) calc(33.333% - 0.5px), rgba(255, 255, 255, 0.85) calc(33.333% + 0.5px), transparent calc(33.333% + 0.5px)),
        linear-gradient(to bottom, transparent calc(66.666% - 0.5px), rgba(255, 255, 255, 0.85) calc(66.666% - 0.5px), rgba(255, 255, 255, 0.85) calc(66.666% + 0.5px), transparent calc(66.666% + 0.5px));
}

.review-overlay-grid {
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.35) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.35) 1px, transparent 1px);
    background-size: calc(100% / 9) calc(100% / 9);
}

.review-tools {
    margin-top: 0.75rem;
}

.review-toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ink);
}

.review-toggles label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
}

.review-histogram {
    margin-top: 0.5rem;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 2px solid var(--bubble);
}

.review-histogram-canvas {
    display: block;
    width: 100%;
    height: 4.5rem;
}

.review-histogram--error::after {
    content: '直方图加载失败';
    display: block;
    padding: 0.5rem;
    font-size: 0.75rem;
    color: var(--ink);
    text-align: center;
}

.review-exif {
    border-radius: 0.75rem;
    border: 2px solid var(--bubble);
    background: rgba(255, 255, 255, 0.6);
    padding: 0.75rem 1rem;
}

.review-exif-summary {
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--deep);
    list-style: none;
}

.review-exif-summary::-webkit-details-marker {
    display: none;
}

.review-exif-summary::before {
    content: '▸ ';
    color: var(--beacon);
}

.review-exif[open] .review-exif-summary::before {
    content: '▾ ';
}

.review-exif-grid {
    display: grid;
    gap: 0.5rem 1rem;
    margin-top: 0.75rem;
    font-size: 0.75rem;
}

@media (min-width: 640px) {
    .review-exif-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.review-exif-item dt {
    color: rgba(26, 35, 50, 0.45);
    font-weight: 700;
}

.review-exif-item dd {
    margin-top: 0.125rem;
    color: rgba(26, 35, 50, 0.75);
    word-break: break-word;
}

.review-exif-warning {
    margin-top: 0.75rem;
    border-radius: 0.5rem;
    background: rgba(239, 68, 68, 0.1);
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #b91c1c;
}

.review-exif-note,
.review-exif-empty {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: rgba(26, 35, 50, 0.55);
}

.featured-section {
    position: relative;
}

.featured-marquee {
    position: relative;
    overflow: hidden;
    margin: 0 -0.5rem;
    padding: 0.5rem 0.5rem 1rem;
}

.featured-marquee::before,
.featured-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2rem;
    z-index: 2;
    pointer-events: none;
}

.featured-marquee::before {
    left: 0;
    background: linear-gradient(to right, var(--sky), transparent);
}

.featured-marquee::after {
    right: 0;
    background: linear-gradient(to left, var(--sky), transparent);
}

.featured-track {
    display: flex;
    width: max-content;
    animation: featured-marquee var(--marquee-duration, 40s) linear infinite;
    will-change: transform;
}

.featured-marquee:hover .featured-track {
    animation-play-state: paused;
}

.featured-set {
    display: flex;
    gap: 1.25rem;
    padding-right: 1.25rem;
}

@keyframes featured-marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.featured-card {
    flex: 0 0 auto;
    width: min(320px, 78vw);
    border-radius: 1.25rem;
    background: var(--cloud);
    border: 3px solid var(--bubble);
    box-shadow: 0 4px 0 rgba(58, 141, 181, 0.12), 0 6px 20px rgba(91, 181, 224, 0.1);
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s, border-color 0.35s;
}

.featured-card:hover {
    transform: translateY(-4px);
    border-color: var(--candy);
    box-shadow: 0 8px 0 rgba(255, 209, 102, 0.25), 0 16px 32px rgba(91, 181, 224, 0.2);
}

.featured-card-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: rgba(184, 228, 248, 0.3);
}

.featured-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.featured-card:hover .featured-card-image img {
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    border-radius: 9999px;
    background: rgba(255, 209, 102, 0.95);
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #8B6914;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.featured-card-body {
    padding: 1rem 1.25rem 1.25rem;
}

.featured-card-active {
    border-color: var(--candy);
    box-shadow: 0 4px 0 rgba(255, 209, 102, 0.3), 0 8px 24px rgba(255, 209, 102, 0.15);
}

@media (prefers-reduced-motion: reduce) {
    .animate-fade-up,
    .cloud-deco,
    .photo-card,
    .btn-primary,
    .btn-secondary,
    .empty-state-icon,
    .featured-track {
        animation: none !important;
        transition: none !important;
    }
}
