/**
 * 全局样式文件
 * 包含动画、特效、响应式布局等
 */

/* ========== 基础样式 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========== 动画定义 ========== */

/* 淡入动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* 爱心飘落动画 */
@keyframes heartFall {
    0% {
        transform: translateY(-10vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.heart-falling {
    position: fixed;
    top: -10px;
    font-size: 20px;
    animation: heartFall linear forwards;
    pointer-events: none;
    z-index: 9999;
}

/* 点击爱心特效 */
@keyframes heartBurst {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.8;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.heart-burst {
    position: fixed;
    pointer-events: none;
    font-size: 24px;
    animation: heartBurst 0.8s ease-out forwards;
    z-index: 9999;
}

/* 通用飘落动画 */
@keyframes particleFall {
    0% {
        transform: translateY(-10vh) rotate(0deg) scale(1);
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh) rotate(360deg) scale(0.5);
        opacity: 0;
    }
}

.particle-falling {
    position: fixed;
    top: -10px;
    font-size: 18px;
    animation: particleFall linear forwards;
    pointer-events: none;
    z-index: 9999;
}

/* 点击爆发特效 */
@keyframes particleBurst {
    0% {
        transform: scale(0) translateY(0);
        opacity: 1;
    }
    50% {
        transform: scale(1.2) translateY(-20px);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.5) translateY(-40px);
        opacity: 0;
    }
}

.particle-burst {
    position: fixed;
    pointer-events: none;
    font-size: 20px;
    animation: particleBurst 1s ease-out forwards;
    z-index: 9999;
}

/* 悬浮效果 */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 182, 193, 0.3);
}

/* 按钮按压效果 */
.btn-press {
    transition: transform 0.1s ease;
}

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

/* 加载动画 */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #FFB6C1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 脉冲动画 */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.animate-pulse-slow {
    animation: pulse 2s ease-in-out infinite;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #FFB6C1, #E6E6FA);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #FF91A4, #D4A5F5);
}

/* ========== 模态弹窗样式 ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    border-radius: 24px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.4s ease;
}

/* ========== 卡片样式 ========== */
.card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 30px rgba(255, 182, 193, 0.2);
}

/* ========== 进度条样式 ========== */
.progress-bar {
    height: 12px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

/* ========== 响应式布局 ========== */

/* 平板端适配 (768px - 1024px) */
@media (max-width: 1024px) {
    .modal-content {
        padding: 24px;
        margin: 16px;
        max-width: 90%;
    }

    .card {
        padding: 20px;
    }
}

/* 手机端适配 (最大768px) */
@media (max-width: 768px) {
    /* 基础设置 */
    html {
        font-size: 14px;
    }

    /* 导航栏 */
    nav {
        padding: 0 8px;
    }

    nav h1 {
        font-size: 1.25rem;
    }

    /* 主内容区 */
    main {
        padding: 16px 8px !important;
    }

    /* 模态弹窗 */
    .modal-overlay {
        padding: 16px;
        align-items: flex-end;
    }

    .modal-content {
        padding: 20px 16px;
        margin: 0;
        border-radius: 24px 24px 0 0;
        max-width: 100%;
        width: 100%;
        max-height: 85vh;
        overflow-y: auto;
    }

    /* 卡片样式 */
    .card {
        padding: 16px;
        border-radius: 16px;
    }

    /* 字体大小调整 */
    .text-xl {
        font-size: 1.25rem;
    }

    .text-lg {
        font-size: 1.125rem;
    }

    .text-sm {
        font-size: 0.875rem;
    }

    /* 按钮样式 */
    button {
        font-size: 0.875rem;
        padding: 10px 16px;
    }

    /* 头像大小 */
    .w-20, .h-20 {
        width: 4.5rem;
        height: 4.5rem;
    }

    .w-24, .h-24 {
        width: 5.5rem;
        height: 5.5rem;
    }

    /* 宠物游戏界面 */
    .max-w-2xl {
        max-width: 100%;
    }

    /* 照片网格 */
    .grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid-cols-6 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    /* 移动端触摸优化 */
    .hover-lift:hover {
        transform: translateY(-2px);
    }

    /* 调整间距 */
    .gap-6 {
        gap: 1rem;
    }

    .gap-4 {
        gap: 0.75rem;
    }

    .gap-3 {
        gap: 0.5rem;
    }

    /* 宠物属性条 */
    .p-3 {
        padding: 0.625rem;
    }

    .py-3 {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .py-4 {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    /* 音乐播放器 */
    .fixed.bottom-20.right-4 {
        bottom: 1rem;
        right: 1rem;
    }

    /* 页脚 */
    footer {
        padding: 1rem 0;
    }

    /* 爱心连接图标 */
    .text-3xl {
        font-size: 1.5rem;
    }

    /* 宠物选择卡片 */
    .text-5xl {
        font-size: 2.5rem;
    }

    /* 探险选项按钮 */
    .py-4 {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }
}

/* 小屏幕手机适配 (最大480px) */
@media (max-width: 480px) {
    /* 更紧凑的布局 */
    .modal-content {
        padding: 16px 12px;
    }

    .card {
        padding: 12px;
    }

    /* 头像更小 */
    .w-20, .h-20 {
        width: 3.5rem;
        height: 3.5rem;
    }

    .w-24, .h-24 {
        width: 4.5rem;
        height: 4.5rem;
    }

    /* 宠物图标 */
    .text-5xl {
        font-size: 2rem;
    }

    .text-6xl {
        font-size: 2.5rem;
    }

    /* 按钮更紧凑 */
    .py-3 {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .px-6 {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    /* 导航栏按钮 */
    nav .p-2 {
        padding: 0.375rem;
    }

    /* 宠物属性条高度 */
    .h-2 {
        height: 0.375rem;
    }

    /* 照片网格 */
    .grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid-cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* 竖屏优化 */
@media (max-height: 600px) and (orientation: portrait) {
    .modal-content {
        max-height: 90vh;
    }

    .max-h-\[90vh\] {
        max-height: 85vh;
    }
}

/* ========== 主题系统 ========== */

/* 主题1：甜蜜粉紫（默认） */
.theme-pink {
    --primary: #FFB6C1;
    --primary-light: #FFD1DC;
    --primary-dark: #FF91A4;
    --secondary: #E6E6FA;
    --accent: #DDA0DD;
    --bg-gradient: linear-gradient(135deg, #FFF0F5 0%, #FFE4EC 50%, #E6E6FA 100%);
    --card-bg: rgba(255, 255, 255, 0.95);
    --card-shadow: 0 4px 20px rgba(255, 182, 193, 0.2);
    --text-primary: #4A4A4A;
    --text-secondary: #7A7A7A;
    --glow-color: rgba(255, 182, 193, 0.5);
}

.theme-pink body,
body.theme-pink {
    background: var(--bg-gradient);
}

.theme-pink .card,
body.theme-pink .card {
    background: var(--card-bg);
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(255, 182, 193, 0.2);
}

.theme-pink .modal-content,
body.theme-pink .modal-content {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
}

.theme-pink .btn-press,
body.theme-pink .btn-press {
    background: linear-gradient(135deg, #FFB6C1, #E6E6FA);
}

.theme-pink .btn-press:hover,
body.theme-pink .btn-press:hover {
    box-shadow: 0 4px 20px var(--glow-color);
}

.theme-pink select option,
body.theme-pink select option,
.theme-cloud select option,
body.theme-cloud select option {
    background: white;
    color: #4A4A4A;
}

/* 主题2：极简液态霓虹 */
.theme-neon {
    --primary: #00D9FF;
    --primary-light: #7AFFFF;
    --primary-dark: #00B4D8;
    --secondary: #C77DFF;
    --accent: #FF6B9D;
    --bg-gradient: linear-gradient(135deg, #0F0F23 0%, #1A1A3E 30%, #2D1B4E 60%, #1A1A3E 100%);
    --card-bg: rgba(255, 255, 255, 0.08);
    --card-shadow: 0 8px 32px rgba(0, 217, 255, 0.15);
    --text-primary: #FFFFFF;
    --text-secondary: #B8B8D1;
    --glow-color: rgba(0, 217, 255, 0.6);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
}

.theme-neon body,
body.theme-neon {
    background: var(--bg-gradient);
    background-size: 400% 400%;
    animation: gradientFlow 15s ease infinite;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.theme-neon .card,
body.theme-neon .card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: var(--glass-border);
    box-shadow: var(--card-shadow);
}

.theme-neon .card:hover,
body.theme-neon .card:hover {
    box-shadow: 0 0 30px var(--glow-color), 0 8px 32px rgba(0, 217, 255, 0.2);
    border-color: rgba(0, 217, 255, 0.3);
}

.theme-neon .modal-content,
body.theme-neon .modal-content {
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(30px);
    border: var(--glass-border);
    box-shadow: 0 0 50px rgba(0, 217, 255, 0.2);
}

.theme-neon .btn-press,
body.theme-neon .btn-press {
    background: linear-gradient(135deg, #00D9FF, #C77DFF, #FF6B9D);
    background-size: 200% 200%;
    animation: neonGradient 3s ease infinite;
    border: 1px solid rgba(0, 217, 255, 0.3);
}

@keyframes neonGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.theme-neon .btn-press:hover,
body.theme-neon .btn-press:hover {
    box-shadow: 0 0 30px var(--glow-color), 0 0 60px rgba(0, 217, 255, 0.3);
    transform: translateY(-2px);
}

.theme-neon input,
.theme-neon select,
.theme-neon textarea,
body.theme-neon input,
body.theme-neon select,
body.theme-neon textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.theme-neon select option,
body.theme-neon select option {
    background: #1A1A3E;
    color: white;
}

.theme-neon input:focus,
.theme-neon select:focus,
.theme-neon textarea:focus,
body.theme-neon input:focus,
body.theme-neon select:focus,
body.theme-neon textarea:focus {
    border-color: #00D9FF;
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.3);
    outline: none;
}

.theme-neon label,
body.theme-neon label {
    color: var(--text-secondary);
}

.theme-neon .text-gray-600,
.theme-neon .text-gray-500,
.theme-neon .text-gray-700,
body.theme-neon .text-gray-600,
body.theme-neon .text-gray-500,
body.theme-neon .text-gray-700 {
    color: var(--text-secondary) !important;
}

.theme-neon .text-gray-800,
body.theme-neon .text-gray-800 {
    color: var(--text-primary) !important;
}

/* 主题3：云端治愈渐变 */
.theme-cloud {
    --primary: #87CEEB;
    --primary-light: #E0F4FF;
    --primary-dark: #5BA3C6;
    --secondary: #FFB7C5;
    --accent: #DDA0DD;
    --bg-gradient: linear-gradient(180deg, #F0F8FF 0%, #E6F3FF 30%, #FFF0F5 70%, #FFE4EC 100%);
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-shadow: 0 10px 40px rgba(135, 206, 235, 0.15);
    --text-primary: #4A4A4A;
    --text-secondary: #8A8A8A;
    --glow-color: rgba(135, 206, 235, 0.4);
}

.theme-cloud body,
body.theme-cloud {
    background: var(--bg-gradient);
    position: relative;
    overflow-x: hidden;
}

.theme-cloud body::before,
body.theme-cloud::before {
    content: '';
    position: fixed;
    top: -10%;
    left: -10%;
    width: 40%;
    height: 40%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
    animation: floatCloud 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.theme-cloud body::after,
body.theme-cloud::after {
    content: '';
    position: fixed;
    bottom: -15%;
    right: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(255, 182, 193, 0.3) 0%, transparent 70%);
    animation: floatCloud 25s ease-in-out infinite reverse;
    pointer-events: none;
    z-index: 0;
}

@keyframes floatCloud {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -20px) rotate(5deg); }
    50% { transform: translate(0, -40px) rotate(0deg); }
    75% { transform: translate(-20px, -20px) rotate(-5deg); }
}

.theme-cloud main,
.theme-cloud footer,
.theme-cloud nav,
body.theme-cloud main,
body.theme-cloud footer,
body.theme-cloud nav {
    position: relative;
    z-index: 1;
}

.theme-cloud .card,
body.theme-cloud .card {
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    border-radius: 32px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(135, 206, 235, 0.2);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-cloud .card:hover,
body.theme-cloud .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(135, 206, 235, 0.25);
}

.theme-cloud .modal-content,
body.theme-cloud .modal-content {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(25px);
    border-radius: 32px;
    box-shadow: 0 20px 60px rgba(135, 206, 235, 0.2);
}

.theme-cloud .btn-press,
body.theme-cloud .btn-press {
    background: linear-gradient(135deg, #87CEEB, #FFB7C5);
    border-radius: 20px;
}

.theme-cloud .btn-press:hover,
body.theme-cloud .btn-press:hover {
    box-shadow: 0 8px 30px var(--glow-color);
    transform: translateY(-3px) scale(1.02);
}

.theme-cloud .progress-bar,
body.theme-cloud .progress-bar {
    border-radius: 15px;
    background: rgba(135, 206, 235, 0.2);
}

/* 主题4：宇宙银河浪漫 */
.theme-galaxy {
    --primary: #9D4EDD;
    --primary-light: #E0AAFF;
    --primary-dark: #7B2CBF;
    --secondary: #FF6B6B;
    --accent: #FFD93D;
    --bg-gradient: linear-gradient(180deg, #0D0221 0%, #1A0533 30%, #2D1B69 60%, #1A0533 100%);
    --card-bg: rgba(25, 10, 50, 0.7);
    --card-shadow: 0 8px 32px rgba(157, 78, 221, 0.3);
    --text-primary: #FFFFFF;
    --text-secondary: #C8B8DB;
    --glow-color: rgba(157, 78, 221, 0.6);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
}

.theme-galaxy body,
body.theme-galaxy {
    background: var(--bg-gradient);
    position: relative;
    overflow-x: hidden;
}

.theme-galaxy body::before,
body.theme-galaxy::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 40% 70%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 90% 40%, white, transparent),
        radial-gradient(2px 2px at 60% 80%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 30% 20%, white, transparent),
        radial-gradient(2px 2px at 70% 60%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 10% 90%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent);
    animation: twinkle 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.theme-galaxy body::after,
body.theme-galaxy::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 20% 80%, rgba(157, 78, 221, 0.3) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 20%, rgba(255, 107, 107, 0.2) 0%, transparent 50%),
                radial-gradient(ellipse at 50% 50%, rgba(255, 217, 61, 0.1) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
    animation: nebulaDrift 30s ease-in-out infinite;
}

@keyframes nebulaDrift {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.8; }
    50% { transform: scale(1.1) rotate(5deg); opacity: 1; }
}

.theme-galaxy main,
.theme-galaxy footer,
.theme-galaxy nav,
body.theme-galaxy main,
body.theme-galaxy footer,
body.theme-galaxy nav {
    position: relative;
    z-index: 1;
}

.theme-galaxy .card,
body.theme-galaxy .card {
    background: var(--card-bg);
    backdrop-filter: blur(25px);
    border: var(--glass-border);
    box-shadow: var(--card-shadow), 0 0 50px rgba(157, 78, 221, 0.1);
}

.theme-galaxy .card:hover,
body.theme-galaxy .card:hover {
    box-shadow: 0 0 40px var(--glow-color), 0 8px 32px rgba(157, 78, 221, 0.4);
    border-color: rgba(157, 78, 221, 0.3);
}

.theme-galaxy .modal-content,
body.theme-galaxy .modal-content {
    background: rgba(25, 10, 50, 0.9);
    backdrop-filter: blur(30px);
    border: var(--glass-border);
    box-shadow: 0 0 60px rgba(157, 78, 221, 0.3);
}

.theme-galaxy .btn-press,
body.theme-galaxy .btn-press {
    background: linear-gradient(135deg, #9D4EDD, #FF6B6B, #FFD93D);
    background-size: 200% 200%;
    animation: galaxyGradient 4s ease infinite;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

@keyframes galaxyGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.theme-galaxy .btn-press:hover,
body.theme-galaxy .btn-press:hover {
    box-shadow: 0 0 30px var(--glow-color), 0 0 60px rgba(157, 78, 221, 0.4);
    transform: translateY(-2px);
}

.theme-galaxy input,
.theme-galaxy select,
.theme-galaxy textarea,
body.theme-galaxy input,
body.theme-galaxy select,
body.theme-galaxy textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.theme-galaxy select option,
body.theme-galaxy select option {
    background: #1A0533;
    color: white;
}

.theme-galaxy input:focus,
.theme-galaxy select:focus,
.theme-galaxy textarea:focus,
body.theme-galaxy input:focus,
body.theme-galaxy select:focus,
body.theme-galaxy textarea:focus {
    border-color: #9D4EDD;
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.4);
    outline: none;
}

.theme-galaxy label,
body.theme-galaxy label {
    color: var(--text-secondary);
}

.theme-galaxy .text-gray-600,
.theme-galaxy .text-gray-500,
.theme-galaxy .text-gray-700,
body.theme-galaxy .text-gray-600,
body.theme-galaxy .text-gray-500,
body.theme-galaxy .text-gray-700 {
    color: var(--text-secondary) !important;
}

.theme-galaxy .text-gray-800,
body.theme-galaxy .text-gray-800 {
    color: var(--text-primary) !important;
}

.theme-galaxy nav,
body.theme-galaxy nav {
    background: rgba(25, 10, 50, 0.8) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(157, 78, 221, 0.2);
}

.theme-galaxy footer,
body.theme-galaxy footer {
    background: rgba(25, 10, 50, 0.8) !important;
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(157, 78, 221, 0.2);
}

/* 星星闪烁特效 */
.star-particle {
    position: fixed;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    animation: starShine 2s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes starShine {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.5); opacity: 1; box-shadow: 0 0 10px white; }
}

/* 流星效果 */
.shooting-star {
    position: fixed;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, white, transparent);
    animation: shoot 1s ease-out forwards;
    pointer-events: none;
    z-index: 0;
}

@keyframes shoot {
    0% { transform: translateX(0) translateY(0); opacity: 1; }
    100% { transform: translateX(300px) translateY(300px); opacity: 0; }
}
