:root {
    --primary: #6a9bd8;
    --primary-light: #9ac6ff;
    --primary-dark: #4a7bb8;
    --accent: #ff9d6b;
    --accent-light: #ffc299;
    --text: #f5fbff;
    --text-light: #d8ecf7;
    --text-lighter: rgba(216, 236, 247, 0.7);
    --bg-dark: #1a2332;
    --bg-darker: #121826;
    --bg-card: rgba(40, 50, 70, 0.15);
    --bg-glass: rgba(255, 255, 255, 0.08);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(154, 198, 255, 0.4);
    --glass-blur: blur(25px);
    --glass-border: 1px solid rgba(255, 255, 255, 0.15);
    --glass-highlight: 1px solid rgba(255, 255, 255, 0.25);
    --card-radius: 20px;
    --card-padding: 30px;
    --scrollbar-width: 6px;
    --scrollbar-track: rgba(255, 255, 255, 0.05);
    --scrollbar-thumb: linear-gradient(135deg, var(--primary), var(--accent));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

::-webkit-scrollbar {
    width: var(--scrollbar-width);
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 3px;
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--scrollbar-track);
}

body {
    font-family: 'Open Sans', sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    line-height: 1.6;
}

.universe-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(106, 155, 216, 0.35) 0%, transparent 40%),
        radial-gradient(ellipse at 80% 80%, rgba(255, 157, 107, 0.25) 0%, transparent 40%),
        radial-gradient(ellipse at 40% 60%, rgba(154, 198, 255, 0.3) 0%, transparent 40%),
        linear-gradient(135deg, #1a2332 0%, #2a3445 100%);
}

.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.star {
    position: absolute;
    color: white;
    font-size: var(--star-size, 16px);
    animation: 
        twinkle var(--twinkle-duration, 5s) infinite ease-in-out,
        starGlow 3s infinite ease-in-out;
    opacity: var(--star-opacity, 0.7);
    text-shadow: 0 0 5px currentColor;
}

@keyframes twinkle {
    0%, 100% { opacity: var(--star-opacity, 0.7); }
    50% { opacity: calc(var(--star-opacity, 0.7) * 0.3); }
}

@keyframes starGlow {
    0%, 100% { 
        filter: brightness(1) drop-shadow(0 0 3px currentColor);
    }
    50% { 
        filter: brightness(1.5) drop-shadow(0 0 8px currentColor);
    }
}

/* ================ 年份标识样式 ================ */
.year-badge-container {
    position: absolute;
    top: -20px;
    right: -20px;
    z-index: 100;
    perspective: 1000px;
}

.year-badge {
    position: relative;
    width: 180px;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
    animation: badgeFloat 6s ease-in-out infinite;
}

.year-digit {
    position: absolute;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 4.5rem;
    color: white;
    text-shadow: 
        0 0 20px rgba(154, 198, 255, 0.8),
        0 0 40px rgba(154, 198, 255, 0.6),
        0 0 60px rgba(154, 198, 255, 0.4);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.year-thousands {
    transform: translateX(-45px) rotateY(-15deg);
    color: #9ac6ff;
    animation: digitPulse1 4s ease-in-out infinite;
}

.year-hundreds {
    transform: translateX(-15px) rotateY(-5deg);
    color: #6a9bd8;
    animation: digitPulse2 4s ease-in-out infinite 0.5s;
}

.year-tens {
    transform: translateX(15px) rotateY(5deg);
    color: #ff9d6b;
    animation: digitPulse3 4s ease-in-out infinite 1s;
}

.year-ones {
    transform: translateX(45px) rotateY(15deg);
    color: #ffc299;
    animation: digitPulse4 4s ease-in-out infinite 1.5s;
}

.year-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(
        circle at center,
        rgba(154, 198, 255, 0.15) 0%,
        rgba(154, 198, 255, 0.08) 40%,
        transparent 70%
    );
    filter: blur(15px);
    z-index: -1;
    animation: glowPulse 4s ease-in-out infinite;
}

/* 悬浮效果 */
.year-badge:hover .year-thousands {
    transform: translateX(-45px) translateY(-10px) rotateY(-25deg);
    color: #ffffff;
    text-shadow: 
        0 0 30px rgba(154, 198, 255, 1),
        0 0 60px rgba(154, 198, 255, 0.8),
        0 0 90px rgba(154, 198, 255, 0.6);
}

.year-badge:hover .year-hundreds {
    transform: translateX(-15px) translateY(-10px) rotateY(-10deg);
    color: #9ac6ff;
    text-shadow: 
        0 0 30px rgba(154, 198, 255, 1),
        0 0 60px rgba(154, 198, 255, 0.8),
        0 0 90px rgba(154, 198, 255, 0.6);
}

.year-badge:hover .year-tens {
    transform: translateX(15px) translateY(-10px) rotateY(10deg);
    color: #ff9d6b;
    text-shadow: 
        0 0 30px rgba(255, 157, 107, 1),
        0 0 60px rgba(255, 157, 107, 0.8),
        0 0 90px rgba(255, 157, 107, 0.6);
}

.year-badge:hover .year-ones {
    transform: translateX(45px) translateY(-10px) rotateY(25deg);
    color: #ffc299;
    text-shadow: 
        0 0 30px rgba(255, 194, 153, 1),
        0 0 60px rgba(255, 194, 153, 0.8),
        0 0 90px rgba(255, 194, 153, 0.6);
}

.year-badge:hover .year-glow {
    background: radial-gradient(
        circle at center,
        rgba(154, 198, 255, 0.25) 0%,
        rgba(154, 198, 255, 0.15) 40%,
        transparent 70%
    );
    filter: blur(20px);
    animation: glowPulseFast 2s ease-in-out infinite;
}

/* 动画定义 */
@keyframes badgeFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-10px) rotate(2deg);
    }
    66% {
        transform: translateY(-5px) rotate(-2deg);
    }
}

@keyframes digitPulse1 {
    0%, 100% {
        opacity: 1;
        filter: brightness(1) drop-shadow(0 0 10px rgba(154, 198, 255, 0.5));
    }
    50% {
        opacity: 0.9;
        filter: brightness(1.2) drop-shadow(0 0 20px rgba(154, 198, 255, 0.8));
    }
}

@keyframes digitPulse2 {
    0%, 100% {
        opacity: 1;
        filter: brightness(1) drop-shadow(0 0 10px rgba(154, 198, 255, 0.5));
    }
    50% {
        opacity: 0.9;
        filter: brightness(1.2) drop-shadow(0 0 20px rgba(154, 198, 255, 0.8));
    }
}

@keyframes digitPulse3 {
    0%, 100% {
        opacity: 1;
        filter: brightness(1) drop-shadow(0 0 10px rgba(255, 157, 107, 0.5));
    }
    50% {
        opacity: 0.9;
        filter: brightness(1.2) drop-shadow(0 0 20px rgba(255, 157, 107, 0.8));
    }
}

@keyframes digitPulse4 {
    0%, 100% {
        opacity: 1;
        filter: brightness(1) drop-shadow(0 0 10px rgba(255, 194, 153, 0.5));
    }
    50% {
        opacity: 0.9;
        filter: brightness(1.2) drop-shadow(0 0 20px rgba(255, 194, 153, 0.8));
    }
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

@keyframes glowPulseFast {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* 数字变化动画 */
.year-digit.digit-changing {
    animation: digitChange 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes digitChange {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateY(-30px) scale(1.2);
        opacity: 0.5;
    }
    51% {
        transform: translateY(30px) scale(1.2);
        opacity: 0.5;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .year-badge {
        width: 160px;
        height: 160px;
    }
    
    .year-digit {
        font-size: 4rem;
    }
    
    .year-thousands {
        transform: translateX(-40px) rotateY(-15deg);
    }
    
    .year-hundreds {
        transform: translateX(-13px) rotateY(-5deg);
    }
    
    .year-tens {
        transform: translateX(13px) rotateY(5deg);
    }
    
    .year-ones {
        transform: translateX(40px) rotateY(15deg);
    }
}

@media (max-width: 992px) {
    .year-badge-container {
        top: -15px;
        right: -15px;
    }
    
    .year-badge {
        width: 140px;
        height: 140px;
    }
    
    .year-digit {
        font-size: 3.5rem;
    }
    
    .year-thousands {
        transform: translateX(-35px) rotateY(-15deg);
    }
    
    .year-hundreds {
        transform: translateX(-12px) rotateY(-5deg);
    }
    
    .year-tens {
        transform: translateX(12px) rotateY(5deg);
    }
    
    .year-ones {
        transform: translateX(35px) rotateY(15deg);
    }
}

@media (max-width: 768px) {
    .logo-wrapper {
        position: relative;
    }
    
    .year-badge-container {
        position: absolute;
        top: 10px;
        right: 10px;
        width: 120px;
        height: 120px;
    }
    
    .year-badge {
        width: 120px;
        height: 120px;
        transform: scale(0.8);
    }
    
    .year-digit {
        font-size: 2.8rem;
    }
    
    .year-thousands {
        transform: translateX(-30px) rotateY(-15deg);
    }
    
    .year-hundreds {
        transform: translateX(-10px) rotateY(-5deg);
    }
    
    .year-tens {
        transform: translateX(10px) rotateY(5deg);
    }
    
    .year-ones {
        transform: translateX(30px) rotateY(15deg);
    }
}

@media (max-width: 576px) {
    .year-badge-container {
        top: 5px;
        right: 5px;
        width: 100px;
        height: 100px;
    }
    
    .year-badge {
        width: 100px;
        height: 100px;
        transform: scale(0.7);
    }
    
    .year-digit {
        font-size: 2.2rem;
    }
    
    .year-thousands {
        transform: translateX(-25px) rotateY(-15deg);
    }
    
    .year-hundreds {
        transform: translateX(-8px) rotateY(-5deg);
    }
    
    .year-tens {
        transform: translateX(8px) rotateY(5deg);
    }
    
    .year-ones {
        transform: translateX(25px) rotateY(15deg);
    }
}

.audio-context-restore-btn {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9998;
    animation: pulse 2s infinite;
    display: none;
}

.audio-context-restore-btn button {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 25px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.audio-context-restore-btn button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

@keyframes pulse {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.05); }
}

@media (max-width: 768px) {
    .audio-context-restore-btn {
        bottom: 80px;
    }
    
    .audio-context-restore-btn button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

.waveform-section-wrapper {
    width: 100%;
    margin: 40px 0;
    position: relative;
}

.waveform-container {
    width: 100%;
    height: 120px;
    background: rgba(30, 40, 60, 0.12);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: 
        var(--shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    border: var(--glass-border);
    transition: var(--transition);
    position: relative;
}

.waveform-container:hover {
    transform: translateY(-8px);
    box-shadow: 
        var(--shadow), 
        var(--shadow-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    border: var(--glass-highlight);
}

.waveform-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

@media (max-width: 768px) {
    .waveform-container {
        height: 100px;
        margin: 30px 0;
    }
}

@media (max-width: 480px) {
    .waveform-container {
        height: 90px;
        margin: 25px 0;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
}

header {
    display: flex;
    flex-direction: column;
    padding: 35px 0 15px;
    position: relative;
    margin-bottom: 0;
    z-index: 10;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(154, 198, 255, 0.3) 25%, 
        rgba(255, 157, 107, 0.5) 50%, 
        rgba(154, 198, 255, 0.3) 75%, 
        transparent 100%);
}

@media (max-width: 768px) {
    header {
        padding: 20px 0 10px;
    }
}

.logo-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 25px;
    gap: 30px;
}

@media (max-width: 768px) {
    .logo-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
}

.logo-main-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    padding: 0 5px;
    flex: 1;
}

@media (max-width: 768px) {
    .logo-main-container {
        align-items: center;
    }
}

.logo-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 5px;
    color: var(--primary-light);
    text-transform: uppercase;
    position: relative;
    padding-left: 20px;
    opacity: 0.9;
}

.logo-subtitle::before {
    content: '✦';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: var(--accent);
    animation: starTwinkle 2s infinite;
}

@media (max-width: 768px) {
    .logo-subtitle {
        font-size: 0.8rem;
        padding-left: 18px;
    }
    
    .logo-subtitle::before {
        font-size: 0.7rem;
    }
}

.logo-main {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 2.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    position: relative;
    line-height: 1;
    padding: 5px 0;
    margin-bottom: 8px;
}

.logo-main,
.section-header h2,
.modal-title,
.player-header h3 {
    background: linear-gradient(135deg, 
        #9ac6ff 0%, 
        #ffffff 30%, 
        #ff9d6b 70%, 
        #9ac6ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 25px rgba(154, 198, 255, 0.4);
    animation: titleGlow 4s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { text-shadow: 0 0 25px rgba(154, 198, 255, 0.4); }
    100% { text-shadow: 0 0 35px rgba(154, 198, 255, 0.7), 0 0 45px rgba(255, 157, 107, 0.5); }
}

@media (max-width: 768px) {
    .logo-main {
        font-size: 2.4rem;
    }
}

.logo-tagline {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 3px;
    font-weight: 500;
    letter-spacing: 0.5px;
    opacity: 0.8;
    padding-left: 20px;
    position: relative;
}

.logo-tagline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 1px;
    background: rgba(154, 198, 255, 0.6);
}

.nav-container {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 15px 0;
    background: rgba(30, 40, 60, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px;
    border: var(--glass-border);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .nav-container {
        padding: 12px 0;
    }
}

.nav-links {
    display: flex;
    gap: 10px;
    position: relative;
}

@media (max-width: 768px) {
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        padding: 0 10px;
    }
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 14px 40px;
    position: relative;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
    min-width: 120px;
    text-align: center;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border-radius: 8px;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(154, 198, 255, 0.05);
    border-radius: 8px;
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-light), var(--accent));
    border-radius: 2px;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: white;
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link.active {
    color: white;
    text-shadow: 0 0 10px rgba(154, 198, 255, 0.5);
}

@media (max-width: 768px) {
    .nav-link {
        padding: 12px 20px;
        min-width: 90px;
        font-size: 0.95rem;
    }
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-bottom: 80px;
}

.section-wrapper {
    background: rgba(30, 40, 60, 0.12);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--card-radius);
    padding: var(--card-padding);
    box-shadow: 
        var(--shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    border: var(--glass-border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.section-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(154, 198, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 157, 107, 0.05) 0%, transparent 40%),
        linear-gradient(135deg, transparent 0%, rgba(40, 50, 70, 0.1) 100%);
    z-index: -1;
}

.section-wrapper:hover {
    transform: translateY(-8px);
    box-shadow: 
        var(--shadow), 
        var(--shadow-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    border: var(--glass-highlight);
}

@media (max-width: 768px) {
    .section-wrapper {
        padding: 20px;
    }
}

.section-header {
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.section-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 2.8rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    padding: 0 20px;
}

.section-header h2::before,
.section-header h2::after {
    content: '✦';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
    color: var(--primary-light);
    opacity: 0.7;
    animation: starFloat 3s infinite ease-in-out;
}

.section-header h2::before {
    left: -15px;
}

.section-header h2::after {
    right: -15px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
}

.gallery-container {
    position: relative;
    border-radius: calc(var(--card-radius) - 5px);
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    margin-bottom: 30px;
    height: 540px;
    background: rgba(26, 35, 50, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: var(--glass-border);
}

@media (max-width: 768px) {
    .gallery-container {
        height: 350px;
    }
}

.photo-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-photo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.gallery-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: calc(var(--card-radius) - 10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    transition: var(--transition);
}

.gallery-photo:hover img {
    transform: scale(1.02);
}

.photo-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
    padding: 25px;
    color: white;
    opacity: 0;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: var(--glass-border);
}

.gallery-photo:hover .photo-info {
    opacity: 1;
}

.photo-info h3 {
    font-size: 1.6rem;
    margin-bottom: 8px;
    font-weight: 700;
    color: white;
}

@media (max-width: 768px) {
    .photo-info {
        padding: 15px;
    }
    
    .photo-info h3 {
        font-size: 1.3rem;
    }
}

.interaction-buttons {
    display: flex;
    gap: 15px;
}

@media (max-width: 768px) {
    .interaction-buttons {
        gap: 10px;
        flex-wrap: wrap;
    }
}

.interaction-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 10px 20px;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.interaction-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.interaction-btn.active {
    background: rgba(154, 198, 255, 0.2);
    border-color: var(--primary-light);
    color: white;
}

.interaction-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.gallery-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
}

.auto-rotate-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 8px 15px;
    border: var(--glass-border);
}

.primary-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    border-radius: 50px;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.5px;
    min-width: 220px;
    text-decoration: none;
}

.primary-action-button:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(154, 198, 255, 0.5);
}

@media (max-width: 768px) {
    .primary-action-button {
        padding: 14px 30px;
        font-size: 1rem;
        min-width: 180px;
    }
}

@media (max-width: 480px) {
    .primary-action-button {
        padding: 12px 25px;
        min-width: 160px;
        font-size: 0.95rem;
    }
}

.photo-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 35, 50, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.photo-loading-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.photo-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(154, 198, 255, 0.3);
    border-top: 4px solid var(--primary-light);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.photo-loading-text {
    color: var(--text-light);
    font-size: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.game-content {
    max-width: 900px;
    margin: 0 auto;
}

.game-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 35px;
    text-align: center;
}

.game-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .game-features {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: calc(var(--card-radius) - 5px);
    padding: 25px;
    transition: var(--transition);
    border: var(--glass-border);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 50% 50%, rgba(154, 198, 255, 0.08) 0%, transparent 70%);
    z-index: -1;
}

.feature-card:hover {
    transform: translateY(-8px);
    background: rgba(154, 198, 255, 0.1);
    box-shadow: 
        0 12px 25px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border: var(--glass-highlight);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 5px rgba(154, 198, 255, 0.5));
}

.feature-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: white;
    width: 100%;
}

.feature-desc {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
    width: 100%;
}

.game-controls {
    display: flex;
    justify-content: center;
}

.time-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

@media (max-width: 1024px) {
    .time-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .time-stats-grid {
        grid-template-columns: 1fr;
    }
}

.time-stat-card {
    background: rgba(30, 40, 60, 0.12);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: calc(var(--card-radius) - 5px);
    padding: 25px;
    box-shadow: 
        var(--shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    border: var(--glass-border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    min-height: 200px;
}

.time-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(154, 198, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 157, 107, 0.05) 0%, transparent 50%);
    z-index: -1;
}

.time-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        var(--shadow), 
        var(--shadow-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    border: var(--glass-highlight);
}

.time-stat-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.time-stat-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: var(--glass-border);
    color: var(--primary-light);
}

.time-stat-title {
    font-weight: 600;
    color: var(--text-light);
    font-size: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.time-stat-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.time-stat-value {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: white;
    text-shadow: 0 0 8px rgba(154, 198, 255, 0.5);
    line-height: 1.2;
}

.time-stat-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    margin-bottom: 10px;
}

.time-stat-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 4px;
    transition: width 1s ease;
    box-shadow: 0 0 8px rgba(154, 198, 255, 0.6);
}

.time-stat-desc {
    font-size: 0.9rem;
    color: var(--text-lighter);
    opacity: 0.9;
    line-height: 1.4;
    min-height: 40px;
    display: flex;
    align-items: flex-end;
}

@keyframes pulseGlow {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

@keyframes starFloat {
    0%, 100% { transform: translateY(-50%) rotate(0deg); opacity: 0.7; }
    50% { transform: translateY(-50%) rotate(180deg); opacity: 1; }
}

@keyframes starTwinkle {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.footer {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid rgba(154, 198, 255, 0.2);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 600;
    text-shadow: 0 0 10px rgba(154, 198, 255, 0.5);
}

.footer a:hover {
    color: white;
    text-decoration: underline;
}

.footer p {
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 35, 50, 0.95);
    z-index: 1000;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: auto;
    max-height: 90vh;
    background: linear-gradient(145deg, 
        rgba(18, 24, 38, 0.98) 0%,
        rgba(26, 35, 50, 0.95) 50%,
        rgba(18, 24, 38, 0.98) 100%);
    backdrop-filter: blur(50px) saturate(180%);
    -webkit-backdrop-filter: blur(50px) saturate(180%);
    border-radius: var(--card-radius);
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    border: 1px solid rgba(154, 198, 255, 0.15);
    animation: modalSlideIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: rgba(40, 50, 70, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(154, 198, 255, 0.2);
    flex-shrink: 0;
}

.modal-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: white;
}

.close-btn {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 1.8rem;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.close-btn:hover {
    background: rgba(255, 157, 107, 0.2);
    transform: rotate(90deg);
}

.game-modal-content {
    max-height: 90vh;
    height: auto;
}

.game-frame {
    width: 100%;
    flex: 1;
    border: none;
    background: var(--bg-darker);
    min-height: 80vh;
    height: 80vh;
    overflow: hidden;
}

.message-detail-modal-content {
    max-width: 900px;
    max-height: 85vh;
}

.about-content {
    padding: 30px;
    height: calc(100% - 70px);
    overflow-y: auto;
    color: var(--text);
    position: relative;
}

.about-section {
    margin-bottom: 40px;
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: calc(var(--card-radius) - 5px);
    padding: 25px;
    border: var(--glass-border);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.about-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: var(--primary-light);
    text-shadow: 0 0 10px rgba(154, 198, 255, 0.4);
    position: relative;
    padding-bottom: 12px;
}

.about-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(154, 198, 255, 0.3), transparent);
}

.about-text p {
    margin-bottom: 15px;
    line-height: 1.7;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    padding-left: 20px;
}

.about-text p::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--primary-light);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-light);
    animation: pulse 2s infinite;
}

.intro-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 30px;
}

.intro-text {
    flex: 1;
}

.intro-photo {
    flex-shrink: 0;
    width: 200px;
}

.intro-photo-frame {
    width: 100%;
    border-radius: calc(var(--card-radius) - 5px);
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border: var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: var(--transition);
    position: relative;
}

.intro-photo-frame::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary), var(--accent), var(--primary-light));
    border-radius: calc(var(--card-radius) - 3px);
    z-index: -1;
    opacity: 0.5;
}

.intro-photo-frame:hover {
    transform: translateY(-8px) rotate(2deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(154, 198, 255, 0.4);
}

.intro-photo-frame img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.intro-photo-frame:hover img {
    transform: scale(1.05);
}

.skills-grid {
    display: grid;
    gap: 20px;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.skill-name {
    width: 90px;
    font-weight: 600;
    color: var(--text-light);
    font-size: 1rem;
}

.skill-bar {
    flex: 1;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.skill-level {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 5px;
    transition: width 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 15px rgba(154, 198, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.skill-level::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.interests-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.interest-tag {
    background: rgba(154, 198, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: var(--glass-border);
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-light);
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.interest-tag:hover {
    background: rgba(154, 198, 255, 0.25);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 15px rgba(154, 198, 255, 0.3);
    color: white;
}

.highlight-text {
    background: linear-gradient(90deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(154, 198, 255, 0.3);
    padding: 0 3px;
    position: relative;
}

.quote-text {
    font-style: italic;
    color: var(--text-light);
    padding: 15px;
    margin: 15px 0;
    position: relative;
    background: rgba(154, 198, 255, 0.08);
    border-radius: 12px;
    border-left: 3px solid var(--accent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.quote-text::before {
    content: '"';
    position: absolute;
    left: 8px;
    top: 5px;
    font-size: 2.5rem;
    color: var(--primary-light);
    opacity: 0.3;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--primary), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 25px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 5px;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
}

.timeline-year {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-light);
    margin-bottom: 5px;
}

.timeline-text {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

.message-detail-content {
    padding: 0;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
}

.message-detail-header {
    padding: 35px 40px 20px;
    background: linear-gradient(135deg, 
        rgba(40, 50, 80, 0.4) 0%,
        rgba(30, 40, 60, 0.3) 100%);
    border-bottom: 1px solid rgba(154, 198, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.detail-author-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.detail-author-avatar {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 3px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.detail-author-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--primary-light);
    text-shadow: 0 0 15px rgba(154, 198, 255, 0.5);
}

.detail-type {
    display: inline-block;
    background: linear-gradient(135deg, rgba(154, 198, 255, 0.25), rgba(154, 198, 255, 0.15));
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    color: white;
    border: 1px solid rgba(154, 198, 255, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    font-weight: 700;
    letter-spacing: 0.8px;
    margin-top: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.detail-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(154, 198, 255, 0.1);
}

.detail-date {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-lighter);
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 18px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.message-detail-body {
    padding: 40px;
    position: relative;
    background: 
        radial-gradient(circle at 10% 20%, rgba(18, 24, 38, 0.8) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(26, 35, 50, 0.6) 0%, transparent 40%);
    min-height: 300px;
    display: flex;
    align-items: center;
}

.detail-content {
    font-size: 1.3rem;
    line-height: 1.9;
    color: var(--text-light);
    padding: 40px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 25px;
    border: 1px solid rgba(154, 198, 255, 0.1);
    position: relative;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 15px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    width: 100%;
    font-style: italic;
}

.message-detail-footer {
    padding: 30px 40px;
    background: rgba(30, 40, 60, 0.2);
    border-top: 1px solid rgba(154, 198, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0 0 20px 20px;
}

.detail-stats {
    display: flex;
    gap: 30px;
}

.detail-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.detail-stat-icon {
    font-size: 1.6rem;
    opacity: 0.9;
    filter: drop-shadow(0 0 5px rgba(154, 198, 255, 0.5));
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-lighter);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.stat-value {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    color: white;
    text-shadow: 0 0 12px rgba(154, 198, 255, 0.5);
}

.detail-like-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, 
        rgba(154, 198, 255, 0.2), 
        rgba(154, 198, 255, 0.1));
    border: 2px solid rgba(154, 198, 255, 0.4);
    border-radius: 50px;
    padding: 15px 35px;
    color: var(--primary-light);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 700;
    font-size: 1.1rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.detail-like-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, 
        rgba(154, 198, 255, 0.3), 
        rgba(154, 198, 255, 0.2));
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(154, 198, 255, 0.4);
    color: white;
}

.detail-like-btn.liked {
    background: linear-gradient(135deg, 
        rgba(255, 107, 107, 0.3), 
        rgba(255, 107, 107, 0.2));
    color: #ff6b6b;
    border-color: rgba(255, 107, 107, 0.5);
}

.detail-like-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.detail-back-btn {
    text-align: center;
    padding: 30px 40px 40px;
    background: linear-gradient(to bottom, transparent, rgba(18, 24, 38, 0.5));
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(154, 198, 255, 0.15);
    border: 2px solid rgba(154, 198, 255, 0.4);
    border-radius: 50px;
    padding: 14px 35px;
    color: var(--primary-light);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.back-btn:hover {
    background: rgba(154, 198, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    color: white;
}

.star-messages-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 30px;
    margin-top: -20px;
    position: relative;
    z-index: 2;
}

@media (max-width: 1024px) {
    .star-messages-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .star-messages-container {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: -15px;
    }
}

.star-message-card {
    background: linear-gradient(145deg, 
        rgba(30, 40, 60, 0.4) 0%, 
        rgba(40, 50, 80, 0.3) 50%, 
        rgba(30, 40, 60, 0.4) 100%);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(154, 198, 255, 0.15);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(154, 198, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    animation: cardEntrance 0.6s ease-out;
    animation-fill-mode: backwards;
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.star-message-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 30px rgba(154, 198, 255, 0.2);
    border: 1px solid rgba(154, 198, 255, 0.3);
}

.star-message-content {
    flex: 1;
    position: relative;
    padding: 20px 0;
    margin: 20px 0;
    border-top: 1px solid rgba(154, 198, 255, 0.1);
    border-bottom: 1px solid rgba(154, 198, 255, 0.1);
}

.star-message-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-light);
    font-style: italic;
    margin: 0;
    padding-left: 25px;
    position: relative;
}

.star-message-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(154, 198, 255, 0.2);
    position: relative;
}

.star-message-author {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--primary-light);
    font-size: 0.9rem;
    text-shadow: 0 0 8px rgba(154, 198, 255, 0.5);
}

.star-message-date {
    font-size: 0.85rem;
    color: var(--text-lighter);
    background: linear-gradient(135deg, rgba(154, 198, 255, 0.1), rgba(255, 157, 107, 0.1));
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.star-message-type {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, rgba(154, 198, 255, 0.25), rgba(255, 157, 107, 0.25));
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: white;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(154, 198, 255, 0.4);
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.star-message-interactions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 15px;
    justify-content: flex-end;
}

.star-message-like-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.4rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
}

.star-message-like-btn:hover {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.4);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 107, 107, 0.4);
}

.star-message-like-btn.liked {
    background: rgba(255, 107, 107, 0.25);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.5);
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.4), inset 0 0 8px rgba(255, 255, 255, 0.2);
    animation: heartbeat 0.5s ease;
}

.star-message-like-count {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    color: white;
    background: linear-gradient(135deg, rgba(154, 198, 255, 0.25), rgba(255, 157, 107, 0.25));
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: 0 0 8px rgba(154, 198, 255, 0.5);
}

.star-messages-controls {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.star-messages-controls .primary-action-button {
    min-width: 220px;
}

.loading-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-light);
    grid-column: 1 / -1;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(154, 198, 255, 0.2);
    border-top: 4px solid var(--primary-light);
    border-radius: 50%;
    animation: spin 1.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
    margin: 0 auto 25px;
    box-shadow: 0 0 20px rgba(154, 198, 255, 0.3);
}

.loading-text {
    font-size: 1.1rem;
    letter-spacing: 1.2px;
    color: var(--primary-light);
    text-shadow: 0 0 10px rgba(154, 198, 255, 0.5);
    font-weight: 600;
}

.no-messages {
    text-align: center;
    padding: 100px 20px;
    color: var(--text-light);
    background: 
        radial-gradient(circle at 50% 30%, rgba(154, 198, 255, 0.1) 0%, transparent 70%);
    border-radius: 20px;
    border: var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.no-messages-icon {
    font-size: 5rem;
    margin-bottom: 30px;
    opacity: 0.7;
    animation: float 4s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(154, 198, 255, 0.5));
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-15px) rotate(5deg); }
    66% { transform: translateY(-10px) rotate(-5deg); }
}

.mini-player {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 50%;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.4), 
        0 0 25px rgba(154, 198, 255, 0.6),
        0 0 15px rgba(255, 157, 107, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
    z-index: 100;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    overflow: hidden;
}

.mini-player:hover {
    transform: scale(1.12) rotate(5deg);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.5), 
        0 0 30px rgba(154, 198, 255, 0.8),
        0 0 20px rgba(255, 157, 107, 0.6);
}

.mini-player-icon {
    font-size: 2rem;
    color: white;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
    animation: pulse 2s infinite alternate;
}

.music-player-expanded {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 300px;
    background: linear-gradient(145deg, 
        rgba(40, 50, 80, 0.95) 0%, 
        rgba(30, 40, 60, 0.9) 50%, 
        rgba(40, 50, 80, 0.95) 100%);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: calc(var(--card-radius) - 5px);
    padding: 20px;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.6), 
        0 0 30px rgba(154, 198, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(154, 198, 255, 0.3);
    z-index: 101;
    transition: var(--transition);
    overflow: hidden;
    display: none;
}

.music-player-expanded.active {
    display: block;
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.player-header h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: white;
    text-shadow: 0 0 10px rgba(154, 198, 255, 0.5);
    margin: 0;
}

.close-player-btn {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 1.4rem;
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.close-player-btn:hover {
    background: rgba(255, 157, 107, 0.2);
    transform: rotate(90deg);
}

.player-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.player-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--text-light);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: relative;
    z-index: 2;
}

.player-btn:hover {
    background: rgba(154, 198, 255, 0.3);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(154, 198, 255, 0.4);
}

.player-main-btn {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.player-main-btn:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
}

.song-info {
    text-align: center;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.song-title {
    font-weight: 700;
    color: white;
    font-size: 1rem;
    text-shadow: 0 0 10px rgba(154, 198, 255, 0.5);
    margin-bottom: 10px;
}

.audio-visualizer-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.progress-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    margin: 15px 0;
    cursor: pointer;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 15px rgba(154, 198, 255, 0.6);
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.volume-slider {
    flex: 1;
    -webkit-appearance: none;
    height: 5px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    outline: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary-light);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(154, 198, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.playlist-toggle {
    text-align: center;
    margin-top: 10px;
    cursor: pointer;
    color: var(--primary-light);
    font-weight: 600;
    transition: var(--transition);
    padding: 7px 12px;
    border-radius: 20px;
    background: rgba(154, 198, 255, 0.15);
    font-size: 0.85rem;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(154, 198, 255, 0.25);
    position: relative;
    z-index: 2;
}

.playlist-toggle:hover {
    background: rgba(154, 198, 255, 0.25);
    color: white;
    border: 1px solid rgba(154, 198, 255, 0.4);
}

.playlist-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    position: relative;
    z-index: 2;
}

.playlist-container.show {
    max-height: 180px;
    margin-top: 12px;
}

.playlist {
    list-style: none;
    max-height: 160px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 8px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(154, 198, 255, 0.2);
}

.playlist-item {
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 4px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.85rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.playlist-item:hover {
    background: rgba(154, 198, 255, 0.2);
    color: white;
    border: 1px solid rgba(154, 198, 255, 0.3);
}

.playlist-item.playing {
    background: rgba(154, 198, 255, 0.3);
    color: white;
    font-weight: 600;
    border: 1px solid rgba(154, 198, 255, 0.4);
    box-shadow: 0 0 10px rgba(154, 198, 255, 0.3);
}

.custom-alert {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 35, 50, 0.85);
    z-index: 5000;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.custom-alert.active {
    display: flex;
}

.alert-content {
    background: rgba(30, 40, 60, 0.9);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: calc(var(--card-radius) - 5px);
    padding: 35px;
    max-width: 450px;
    width: 90%;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: var(--glass-border);
    text-align: center;
    position: relative;
    animation: alertPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes alertPop {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.alert-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 15px rgba(154, 198, 255, 0.6));
}

.alert-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 12px;
    color: white;
    text-shadow: 0 0 10px rgba(154, 198, 255, 0.5);
}

.alert-message {
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.6;
    font-size: 1rem;
}

.alert-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.alert-button {
    padding: 10px 25px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
    min-width: 110px;
}

.alert-button.confirm {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
}

.alert-button.confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

audio {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

.star-message-card:nth-child(1) { animation-delay: 0.1s; }
.star-message-card:nth-child(2) { animation-delay: 0.2s; }
.star-message-card:nth-child(3) { animation-delay: 0.3s; }

@media (prefers-color-scheme: dark) {
    .universe-background {
        background: 
            radial-gradient(ellipse at 20% 20%, rgba(106, 155, 216, 0.2) 0%, transparent 40%),
            radial-gradient(ellipse at 80% 80%, rgba(255, 157, 107, 0.15) 0%, transparent 40%),
            radial-gradient(ellipse at 40% 60%, rgba(154, 198, 255, 0.2) 0%, transparent 40%),
            linear-gradient(135deg, #121826 0%, #1a2332 100%);
    }
    
    .waveform-container {
        background: rgba(30, 40, 60, 0.12);
    }
}

/* 修复关于页面、星空心语详情页的宽度 */
#aboutModalContainer .modal-content,
.message-detail-modal .modal-content {
    width: 90%;
    max-width: 1200px;
}

/* 关于页面的特定样式 */
#aboutModal {
    display: none;
}

#aboutModal.active {
    display: flex;
}

#aboutModal .modal-content {
    max-height: 85vh;
}

/* ================ 简洁美观的年份标识样式 ================ */
.year-badge-modern {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 140px;
    background: rgba(20, 30, 48, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 25px;
    border: 1px solid rgba(154, 198, 255, 0.3);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    z-index: 100;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: badgeEntrance 0.8s ease-out;
}

.year-badge-modern:hover {
    transform: translateY(-5px) rotate(2deg);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(154, 198, 255, 0.5),
        0 0 25px rgba(154, 198, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(154, 198, 255, 0.5);
    background: rgba(26, 40, 60, 0.8);
}

.year-badge-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(154, 198, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 157, 107, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.year-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    color: rgba(154, 198, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
    text-shadow: 0 0 10px rgba(154, 198, 255, 0.4);
    transition: all 0.3s ease;
}

.year-badge-modern:hover .year-text {
    color: rgba(154, 198, 255, 1);
    text-shadow: 0 0 15px rgba(154, 198, 255, 0.7);
    letter-spacing: 2.5px;
}

.year-number {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 3.2rem;
    color: white;
    line-height: 1;
    position: relative;
    z-index: 2;
    text-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(154, 198, 255, 0.4);
    transition: all 0.3s ease;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(154, 198, 255, 0.9) 50%, 
        rgba(255, 157, 107, 0.9) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding: 0 5px;
}

.year-badge-modern:hover .year-number {
    text-shadow: 
        0 2px 15px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(154, 198, 255, 0.6);
    transform: scale(1.05);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(154, 198, 255, 0.95) 50%, 
        rgba(255, 157, 107, 0.95) 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.year-glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    background: radial-gradient(
        circle at center,
        rgba(154, 198, 255, 0.2) 0%,
        rgba(154, 198, 255, 0.1) 30%,
        transparent 70%
    );
    border-radius: 50%;
    filter: blur(10px);
    z-index: 1;
    opacity: 0.7;
    animation: glowPulse 4s ease-in-out infinite;
    transition: all 0.3s ease;
}

.year-badge-modern:hover .year-glow-effect {
    opacity: 1;
    filter: blur(15px);
    background: radial-gradient(
        circle at center,
        rgba(154, 198, 255, 0.3) 0%,
        rgba(154, 198, 255, 0.15) 40%,
        transparent 70%
    );
    animation: glowPulseFast 2s ease-in-out infinite;
}

/* 年份数字变化动画 */
.year-number.changing {
    animation: yearChangeEffect 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 动画定义 */
@keyframes badgeEntrance {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

@keyframes glowPulseFast {
    0%, 100% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes yearChangeEffect {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .year-badge-modern {
        width: 130px;
        height: 130px;
        top: 12px;
        right: 12px;
    }
    
    .year-number {
        font-size: 2.9rem;
    }
}

@media (max-width: 992px) {
    .year-badge-modern {
        width: 120px;
        height: 120px;
        top: 10px;
        right: 10px;
        border-radius: 20px;
    }
    
    .year-text {
        font-size: 0.75rem;
        margin-bottom: 6px;
        letter-spacing: 1.8px;
    }
    
    .year-number {
        font-size: 2.6rem;
    }
}

@media (max-width: 768px) {
    .logo-main-container {
        align-items: center;
        text-align: center;
        position: relative;
        padding-top: 80px; /* 为年份标识留出空间 */
    }
    
    .year-badge-modern {
        position: absolute;
        top: -60px; /* 移动到logo上方 */
        right: 50%;
        transform: translateX(50%);
        width: 110px;
        height: 110px;
        border-radius: 20px;
    }
    
    .year-badge-modern:hover {
        transform: translateX(50%) translateY(-5px) rotate(2deg);
    }
    
    .year-text {
        font-size: 0.7rem;
        letter-spacing: 1.5px;
    }
    
    .year-number {
        font-size: 2.3rem;
    }
    
    @keyframes badgeEntrance {
        0% {
            opacity: 0;
            transform: translateX(50%) translateY(-30px) scale(0.9);
        }
        100% {
            opacity: 1;
            transform: translateX(50%) translateY(0) scale(1);
        }
    }
    
    @keyframes glowPulse {
        0%, 100% {
            opacity: 0.7;
            transform: translate(-50%, -50%) scale(1);
        }
        50% {
            opacity: 0.9;
            transform: translate(-50%, -50%) scale(1.05);
        }
    }
}

@media (max-width: 576px) {
    .year-badge-modern {
        width: 100px;
        height: 100px;
        top: -50px;
        border-radius: 18px;
    }
    
    .year-text {
        font-size: 0.65rem;
        letter-spacing: 1.2px;
        margin-bottom: 5px;
    }
    
    .year-number {
        font-size: 2rem;
    }
    
    .year-glow-effect {
        width: 120px;
        height: 120px;
    }
}

/* 为小屏幕设备优化触摸体验 */
@media (max-width: 768px) and (hover: none) {
    .year-badge-modern:hover {
        transform: translateX(50%) scale(1.02);
    }
    
    .year-badge-modern:active {
        transform: translateX(50%) scale(0.98);
        transition: transform 0.1s ease;
    }
}

/* 深色模式优化 */
@media (prefers-color-scheme: dark) {
    .year-badge-modern {
        background: rgba(15, 25, 40, 0.8);
        border: 1px solid rgba(154, 198, 255, 0.25);
    }
    
    .year-badge-modern:hover {
        background: rgba(20, 35, 55, 0.9);
        border: 1px solid rgba(154, 198, 255, 0.4);
    }
    
    .year-number {
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 1) 0%, 
            rgba(154, 198, 255, 0.95) 50%, 
            rgba(255, 157, 107, 0.95) 100%);
        -webkit-background-clip: text;
        background-clip: text;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .year-badge-modern {
        border: 2px solid var(--primary);
        background: rgba(20, 30, 48, 0.95);
    }
    
    .year-text {
        color: var(--primary);
    }
    
    .year-number {
        color: white;
        background: none;
        -webkit-background-clip: initial;
        background-clip: initial;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
    .year-badge-modern,
    .year-badge-modern:hover,
    .year-number,
    .year-glow-effect,
    .year-text {
        animation: none !important;
        transition: none !important;
    }
    
    .year-badge-modern {
        animation: none;
    }
    
    .year-glow-effect {
        animation: none;
        opacity: 0.5;
    }
}

/* 粒子动画样式（用于年份变化特效） */
@keyframes particleFloat {
    0% {
        opacity: 1;
        transform: translate(var(--start-x), var(--start-y)) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--end-x), var(--end-y)) scale(0.5);
    }
}

.year-particle {
    position: fixed;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    animation: particleFloat 1.2s ease-out forwards;
}