/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* 主容器 */
.anime-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* 浮动背景元素 */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-element {
    position: absolute;
    font-size: 2rem;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.floating-element:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.floating-element:nth-child(2) { top: 20%; right: 15%; animation-delay: 1s; }
.floating-element:nth-child(3) { top: 60%; left: 5%; animation-delay: 2s; }
.floating-element:nth-child(4) { top: 40%; right: 10%; animation-delay: 3s; }
.floating-element:nth-child(5) { top: 80%; left: 20%; animation-delay: 4s; }
.floating-element:nth-child(6) { top: 30%; right: 5%; animation-delay: 5s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* 主要内容 */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    padding: 20px;
}

.welcome-section {
    text-align: center;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

/* 标题动画 */
.anime-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: white;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.title-char {
    display: inline-block;
    animation: titleCharFloat 3s ease-in-out infinite;
    transform-origin: center;
}

.title-char:nth-child(1) { animation-delay: 0s; }
.title-char:nth-child(2) { animation-delay: 0.1s; }
.title-char:nth-child(3) { animation-delay: 0.2s; }
.title-char:nth-child(4) { animation-delay: 0.3s; }
.title-char:nth-child(5) { animation-delay: 0.4s; }
.title-char:nth-child(6) { animation-delay: 0.5s; }
.title-char:nth-child(7) { animation-delay: 0.6s; }

@keyframes titleCharFloat {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-10px) scale(1.1); }
}

/* 副标题 */
.subtitle-container {
    margin-bottom: 3rem;
}

.anime-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    animation: subtitleGlow 2s ease-in-out infinite alternate;
}

@keyframes subtitleGlow {
    from { text-shadow: 0 0 10px rgba(255, 255, 255, 0.3); }
    to { text-shadow: 0 0 20px rgba(255, 255, 255, 0.6); }
}

/* 按钮样式 */
.cta-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.anime-btn {
    position: relative;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: white;
}

.primary-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.secondary-btn {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.4);
}

.anime-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.anime-btn:active {
    transform: translateY(-2px) scale(1.02);
}

.btn-sparkle {
    font-size: 1rem;
    animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(180deg); }
}

/* 装饰元素 */
.decorative-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.mascot-container {
    position: absolute;
    top: 20%;
    right: 10%;
    animation: mascotBounce 4s ease-in-out infinite;
}

.mascot {
    font-size: 4rem;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
}

@keyframes mascotBounce {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

.magic-circle {
    position: absolute;
    bottom: 20%;
    left: 10%;
    width: 100px;
    height: 100px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: magicRotate 10s linear infinite;
}

.magic-circle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: magicRotate 8s linear infinite reverse;
}

@keyframes magicRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 备案信息 - 最小化样式 */
.beian-footer {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.beian-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.beian-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: all 0.3s ease;
}

.beian-link:hover {
    color: white;
    transform: translateY(-2px);
}

.beian-icon {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .anime-title {
        font-size: 2.5rem;
        gap: 0.3rem;
    }
    
    .anime-subtitle {
        font-size: 1.2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .anime-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .mascot {
        font-size: 3rem;
    }
    
    .mascot-container {
        top: 10%;
        right: 5%;
    }
    
    .magic-circle {
        bottom: 15%;
        left: 5%;
        width: 80px;
        height: 80px;
    }
    
    .magic-circle::before {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .anime-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.2rem;
    }
    
    .title-char {
        animation: titleCharFloat 2s ease-in-out infinite;
    }
    
    .anime-subtitle {
        font-size: 1rem;
    }
    
    .mascot {
        font-size: 2.5rem;
    }
    
    .beian-container {
        padding: 6px 12px;
    }
    
    .beian-link {
        font-size: 0.8rem;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}
