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

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans SC', 'Ma Shan Zheng', serif;
    min-height: 100vh;
    color: #e8dcc4;
    position: relative;
    overflow-x: hidden;
    background-color: #1a1218;
    line-height: 1.7;
    letter-spacing: 0.02em;
}

.page-container {
    position: relative;
    min-height: 100vh;
    width: 100%;
}

.watercolor-texture {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1000 1000' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='watercolor'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.02' numOctaves='4' stitchTiles='stitch'/%3E%3CfeDiffuseLighting in='noise' lighting-color='%23d4a5a5' surfaceScale='1.5'%3E%3CfeDistantLight azimuth='135' elevation='45'/%3E%3C/feDiffuseLighting%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23watercolor)'/%3E%3C/svg%3E");
    opacity: 0.04;
    z-index: 1000;
    pointer-events: none;
}

.game-scene-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    z-index: -10;
    overflow: hidden;
}

.yunmeng-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    min-height: 100vh;
    background: 
        radial-gradient(ellipse 60% 80% at 20% 20%, rgba(255, 182, 193, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 40% 60% at 80% 70%, rgba(186, 85, 211, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, #2d1a36 0%, #1e1020 40%, #120a15 100%);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.shaolin-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    min-height: 100vh;
    background: 
        radial-gradient(ellipse 60% 80% at 80% 20%, rgba(255, 215, 0, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 40% 60% at 20% 70%, rgba(218, 165, 32, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, #3d2a1f 0%, #251a10 40%, #15100a 100%);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.light-orbs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.light-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: floatOrb 12s ease-in-out infinite;
}

.light-orb.yunmeng-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 150, 180, 0.4) 0%, transparent 70%);
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.light-orb.yunmeng-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(200, 150, 255, 0.3) 0%, transparent 70%);
    top: 60%;
    left: 15%;
    animation-delay: 4s;
}

.light-orb.shaolin-1 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255, 200, 150, 0.4) 0%, transparent 70%);
    top: 15%;
    right: 8%;
    animation-delay: 2s;
}

.light-orb.shaolin-2 {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
    top: 55%;
    right: 12%;
    animation-delay: 6s;
}

@keyframes floatOrb {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
    50% { transform: translateY(-30px) scale(1.1); opacity: 0.45; }
}

.scene-divider {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100%;
    min-height: 100vh;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(255, 183, 197, 0.15) 20%,
        rgba(255, 215, 0, 0.1) 50%,
        rgba(255, 183, 197, 0.15) 80%,
        transparent 100%);
    z-index: -8;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 6%;
    background: rgba(26, 18, 24, 0.7);
    border-bottom: 1px solid rgba(255, 183, 197, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.3rem;
    font-family: 'Ma Shan Zheng', cursive;
    background: linear-gradient(90deg, #c9a227, #d4a5a5, #c9a227);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 6px;
    animation: shimmerText 6s ease-in-out infinite;
}

@keyframes shimmerText {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.nav {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    color: rgba(232, 220, 196, 0.7);
    text-decoration: none;
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    border: 1px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 0.95rem;
    letter-spacing: 3px;
}

.nav-link:hover,
.nav-link.active {
    color: #e8dcc4;
    border-color: rgba(255, 183, 197, 0.2);
    background: rgba(255, 183, 197, 0.05);
}

.bg-actions {
    display: flex;
    gap: 0.8rem;
}

.bg-btn {
    background: rgba(26, 18, 24, 0.55);
    border: 1px solid rgba(255, 183, 197, 0.18);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-btn:first-child {
    border-color: rgba(255, 183, 197, 0.3);
}

.bg-btn:last-child {
    border-color: rgba(255, 215, 0, 0.3);
}

.bg-btn:hover {
    background: rgba(255, 183, 197, 0.1);
    transform: scale(1.1);
}

.bg-btn:first-child:hover {
    border-color: rgba(255, 183, 197, 0.5);
}

.bg-btn:last-child:hover {
    border-color: rgba(255, 215, 0, 0.5);
}

.home-section {
    position: relative;
    padding: 8rem 6% 12rem;
    text-align: center;
    min-height: 80vh;
}

.hero-content {
    margin-bottom: 0;
    position: relative;
    z-index: 15;
}

.hero-title {
    font-size: 3rem;
    font-family: 'Ma Shan Zheng', cursive;
    margin-bottom: 2.5rem;
    background: linear-gradient(90deg,
        rgba(232, 220, 196, 0.95) 0%,
        rgba(255, 183, 197, 0.8) 30%,
        rgba(255, 215, 0, 0.7) 50%,
        rgba(255, 183, 197, 0.8) 70%,
        rgba(232, 220, 196, 0.95) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 8px;
    line-height: 1.4;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(232, 220, 196, 0.6);
    font-family: 'Noto Sans SC', serif;
    letter-spacing: 10px;
    font-weight: 300;
}

.danmaku-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 10;
}

.danmaku-track {
    position: absolute;
    width: 100%;
    height: 100%;
}

.danmaku-item {
    position: absolute;
    white-space: nowrap;
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1.4rem;
    padding: 0.5rem 1.2rem;
    background: rgba(26, 18, 24, 0.6);
    border-radius: 25px;
    border: 1px solid rgba(255, 183, 197, 0.2);
    text-shadow: 0 0 10px rgba(255, 183, 197, 0.5);
    animation: danmakuFloat linear forwards;
    letter-spacing: 2px;
}

@keyframes danmakuFloat {
    0% {
        transform: translateX(100vw);
        opacity: 1;
    }
    100% {
        transform: translateX(-100%);
        opacity: 0.3;
    }
}

.danmaku-input-wrapper {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
    z-index: 20;
    pointer-events: auto;
    padding: 0.6rem;
    background: rgba(26, 18, 24, 0.2);
    border-radius: 40px;
    border: 1px solid rgba(255, 183, 197, 0.05);
    backdrop-filter: blur(4px);
}

.danmaku-input {
    width: 260px;
    padding: 0.8rem 1.2rem;
    background: rgba(45, 26, 54, 0.6);
    border: 1px solid rgba(212, 165, 165, 0.2);
    border-radius: 25px;
    color: #e8dcc4;
    font-family: 'Noto Sans SC', serif;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 2px;
}

.danmaku-input::placeholder {
    color: rgba(212, 165, 165, 0.5);
    font-style: italic;
}

.danmaku-input:focus {
    border-color: rgba(212, 165, 165, 0.5);
    background: rgba(45, 26, 54, 0.8);
    box-shadow:
        0 0 15px rgba(212, 165, 165, 0.1),
        inset 0 0 10px rgba(212, 165, 165, 0.05);
}

.danmaku-send-btn {
    padding: 0.8rem 1.6rem;
    background: linear-gradient(135deg, rgba(212, 165, 165, 0.3) 0%, rgba(201, 162, 39, 0.2) 100%);
    border: 1px solid rgba(212, 165, 165, 0.3);
    border-radius: 25px;
    color: #e8dcc4;
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 3px;
}

.danmaku-send-btn:hover {
    background: linear-gradient(135deg, rgba(212, 165, 165, 0.45) 0%, rgba(201, 162, 39, 0.35) 100%);
    border-color: rgba(212, 165, 165, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 165, 165, 0.2);
}

.danmaku-send-btn:active {
    transform: translateY(0);
}

.upload-input {
    display: none;
}

.album-section {
    padding: 6rem 6%;
}

.album-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.album-title {
    font-size: 2.2rem;
    font-family: 'Ma Shan Zheng', cursive;
    background: linear-gradient(90deg, #c9a227, #d4a5a5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 6px;
}

.upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.1rem 2.2rem;
    background: rgba(26, 18, 24, 0.55);
    border: 1px solid rgba(255, 183, 197, 0.18);
    border-radius: 35px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    font-family: 'Noto Sans SC', serif;
    letter-spacing: 3px;
    color: #e8dcc4;
}

.upload-btn:hover {
    background: rgba(255, 183, 197, 0.1);
    border-color: rgba(255, 183, 197, 0.35);
    transform: translateY(-2px);
}

.upload-btn.primary {
    background: rgba(139, 69, 19, 0.15);
    border-color: rgba(255, 215, 0, 0.25);
}

.upload-btn.primary:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.4);
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 8rem 4rem;
    color: rgba(232, 220, 196, 0.35);
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: 2.5rem;
    opacity: 0.4;
}

.album-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 183, 197, 0.1);
    background: rgba(26, 18, 24, 0.4);
}

.album-item:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 183, 197, 0.2);
}

.album-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
    transition: filter 0.4s ease;
}

.album-item:hover img {
    filter: brightness(1);
}

.album-item .delete-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    background: rgba(139, 69, 19, 0.65);
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.album-item:hover .delete-btn {
    opacity: 1;
}

.delete-btn:hover {
    background: rgba(139, 69, 19, 0.85);
    border-color: rgba(255, 215, 0, 0.4);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 18, 24, 0.94);
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: 6% auto;
    text-align: center;
}

.close-btn {
    position: absolute;
    top: -55px;
    right: 0;
    font-size: 2rem;
    color: rgba(255, 183, 197, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-btn:hover {
    color: #d4a5a5;
}

#modalImage {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 14px;
    border: 1px solid rgba(255, 183, 197, 0.15);
}

.modal-actions {
    margin-top: 2.5rem;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.1rem 2.8rem;
    background: rgba(139, 69, 19, 0.25);
    border: 1px solid rgba(255, 215, 0, 0.28);
    border-radius: 35px;
    color: #e8dcc4;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Noto Sans SC', serif;
    letter-spacing: 2px;
}

.download-btn:hover {
    background: rgba(139, 69, 19, 0.4);
    border-color: rgba(255, 215, 0, 0.45);
}

.footer {
    text-align: center;
    padding: 5rem 6%;
    background: rgba(26, 18, 24, 0.5);
    color: rgba(232, 220, 196, 0.4);
    margin-top: 8rem;
    border-top: 1px solid rgba(255, 183, 197, 0.06);
    font-family: 'Ma Shan Zheng', cursive;
    letter-spacing: 4px;
    position: relative;
}

.footer-signature {
    position: absolute;
    bottom: 2.5rem;
    right: 6%;
    font-size: 0.85rem;
    color: rgba(255, 183, 197, 0.25);
    font-family: 'Ma Shan Zheng', cursive;
    letter-spacing: 6px;
}

.footer-decoration {
    margin-bottom: 2rem;
}

.footer-decoration span {
    font-size: 1.4rem;
    margin: 0 1rem;
    opacity: 0.35;
    animation: twinkle 5s ease-in-out infinite;
}

.footer-decoration span:nth-child(2) { animation-delay: 0.8s; }
.footer-decoration span:nth-child(3) { animation-delay: 1.6s; }
.footer-decoration span:nth-child(4) { animation-delay: 2.4s; }
.footer-decoration span:nth-child(5) { animation-delay: 3.2s; }

@keyframes twinkle {
    0%, 100% { opacity: 0.25; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.05); }
}

@media (max-width: 768px) {
    .header {
        padding: 1.2rem 4%;
    }

    .logo {
        font-size: 1.1rem;
        letter-spacing: 4px;
    }

    .nav {
        gap: 1.5rem;
    }

    .nav-link {
        padding: 0.4rem 0.9rem;
        font-size: 0.85rem;
    }

    .bg-btn {
        width: 36px;
        height: 36px;
    }

    .home-section {
        padding: 5rem 4% 14rem;
    }

    .hero-title {
        font-size: 2.2rem;
        letter-spacing: 5px;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        letter-spacing: 6px;
    }

    .danmaku-item {
        font-size: 1.1rem;
    }

    .danmaku-input-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        bottom: 10%;
        padding: 0.5rem;
    }

    .danmaku-input {
        width: 220px;
        padding: 0.7rem 1rem;
    }

    .danmaku-send-btn {
        width: 220px;
        padding: 0.7rem 1rem;
    }

    .album-grid {
        gap: 1.8rem;
    }

    .footer-signature {
        display: none;
    }
}
