/* ==========================================================================
   欢迎页专用样式文件
   ========================================================================== */

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Poppins', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #fff;
    background: #000;
}

/* ==========================================================================
   主页面容器
   ========================================================================== */

.welcome-page {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    overflow: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ==========================================================================
   背景动效
   ========================================================================== */

.bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.3;
}

.floating-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: floatShapes 15s infinite ease-in-out;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
    animation-duration: 18s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
    animation-duration: 14s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    top: 10%;
    right: 25%;
    animation-delay: 6s;
    animation-duration: 16s;
}

.shape-5 {
    width: 140px;
    height: 140px;
    bottom: 20%;
    right: 30%;
    animation-delay: 8s;
    animation-duration: 20s;
}

@keyframes floatShapes {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-20px) translateX(10px) rotate(90deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-10px) translateX(-15px) rotate(180deg);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-30px) translateX(5px) rotate(270deg);
        opacity: 0.7;
    }
}

/* ==========================================================================
   粒子效果
   ========================================================================== */

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: particleFloat 8s infinite ease-in-out;
}

.particle:nth-child(1) {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
    animation-duration: 6s;
}

.particle:nth-child(2) {
    top: 20%;
    left: 80%;
    animation-delay: 1s;
    animation-duration: 8s;
}

.particle:nth-child(3) {
    top: 80%;
    left: 30%;
    animation-delay: 2s;
    animation-duration: 7s;
}

.particle:nth-child(4) {
    top: 70%;
    left: 70%;
    animation-delay: 3s;
    animation-duration: 9s;
}

.particle:nth-child(5) {
    top: 30%;
    left: 50%;
    animation-delay: 4s;
    animation-duration: 5s;
}

.particle:nth-child(6) {
    top: 90%;
    left: 10%;
    animation-delay: 5s;
    animation-duration: 10s;
}

.particle:nth-child(7) {
    top: 50%;
    left: 90%;
    animation-delay: 6s;
    animation-duration: 6s;
}

.particle:nth-child(8) {
    top: 15%;
    left: 60%;
    animation-delay: 7s;
    animation-duration: 8s;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-50px) scale(1.2);
        opacity: 0.3;
    }
}

/* ==========================================================================
   主容器
   ========================================================================== */

.welcome-container {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    width: 100%;
    padding: 0 20px;
}

/* ==========================================================================
   LOGO区域
   ========================================================================== */

.logo-section {
    margin-bottom: 3rem;
}

.logo-wrapper {
    display: inline-block;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

.logo-img {
    width: 150px;
    height: 150px;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
    border-radius: 50%;
    object-fit: cover;
}

.logo-img:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.4));
}

/* ==========================================================================
   欢迎文字
   ========================================================================== */

.welcome-text {
    margin-bottom: 2rem;
}

.welcome-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -1px;
}

.title-line {
    display: block;
    background: linear-gradient(45deg, rgba(255,255,255,0.9), rgba(255,255,255,1));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleGlow 2s ease-in-out infinite alternate;
}

.title-highlight {
    display: block;
    background: linear-gradient(45deg, #fff, #f0f0f0, #fff);
    background-size: 200% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleShine 3s ease-in-out infinite;
    margin-top: 0.5rem;
}

@keyframes titleGlow {
    0% { opacity: 0.8; }
    100% { opacity: 1; }
}

@keyframes titleShine {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.welcome-subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.subtitle-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 1.5rem 0;
}

.decoration-line {
    width: 50px;
    height: 2px;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.6), transparent);
    border-radius: 1px;
}

.decoration-icon {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
}

/* ==========================================================================
   描述区域
   ========================================================================== */

.welcome-description {
    margin-bottom: 3rem;
}

.description-text {
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.85;
    line-height: 1.6;
    letter-spacing: 0.3px;
}

/* ==========================================================================
   进入按钮
   ========================================================================== */

.button-section {
    margin-bottom: 2rem;
}

.enter-button {
    position: relative;
    display: inline-block;
    padding: 18px 45px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a52, #ff6b6b);
    background-size: 200% 100%;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 30px rgba(255, 107, 107, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.enter-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.enter-button:hover::before {
    left: 100%;
}

.enter-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 45px rgba(255, 107, 107, 0.6);
    background-position: 100% 0;
}

.enter-button:active {
    transform: translateY(-1px) scale(1.02);
}

.btn-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-icon {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.enter-button:hover .btn-icon {
    transform: translateX(5px);
}

/* 按钮波浪效果 */
.btn-waves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    border-radius: 50px;
}

.wave {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.enter-button:hover .wave {
    width: 300px;
    height: 300px;
}

.wave-1 { transition-delay: 0s; }
.wave-2 { transition-delay: 0.1s; }
.wave-3 { transition-delay: 0.2s; }

/* ==========================================================================
   底部装饰
   ========================================================================== */

.bottom-decoration {
    margin-top: 2rem;
}

.decoration-dots {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.dot {
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,0.6);
    border-radius: 50%;
    animation: dotPulse 1.5s ease-in-out infinite;
}

.dot:nth-child(1) { animation-delay: 0s; }
.dot:nth-child(2) { animation-delay: 0.5s; }
.dot:nth-child(3) { animation-delay: 1s; }

@keyframes dotPulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.3);
    }
}

/* ==========================================================================
   欢迎页底部信息
   ========================================================================== */

.welcome-footer {
    margin-top: 1.5rem;
    text-align: center;
}

.welcome-footer .footer-text {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    animation: footerFade 2s ease-in-out infinite alternate;
}

@keyframes footerFade {
    0% {
        opacity: 0.6;
    }
    100% {
        opacity: 1;
    }
}

/* ==========================================================================
   响应式设计
   ========================================================================== */

@media (max-width: 768px) {
    .welcome-container {
        padding: 0 15px;
    }
    
    .logo-svg {
        width: 120px;
        height: 120px;
    }
    
    .welcome-title {
        font-size: 2.5rem;
    }
    
    .welcome-subtitle {
        font-size: 1.2rem;
    }
    
    .description-text {
        font-size: 1rem;
    }
    
    .enter-button {
        padding: 15px 35px;
        font-size: 1.1rem;
    }
    
    .subtitle-decoration {
        gap: 10px;
    }
    
    .decoration-line {
        width: 30px;
    }
}

@media (max-width: 480px) {
    .welcome-title {
        font-size: 2rem;
    }
    
    .welcome-subtitle {
        font-size: 1rem;
    }
    
    .description-text {
        font-size: 0.9rem;
    }
    
    .enter-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .logo-svg {
        width: 100px;
        height: 100px;
    }
}

/* ==========================================================================
   加载动画
   ========================================================================== */

.welcome-page {
    animation: pageLoad 1s ease-out;
}

@keyframes pageLoad {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==========================================================================
   高级动效
   ========================================================================== */

.welcome-container > * {
    animation-fill-mode: both;
}

/* LOGO呼吸效果 */
.logo-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: logoBreath 4s ease-in-out infinite;
    z-index: -1;
}

@keyframes logoBreath {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* 文字打字机效果增强 */
.welcome-title {
    overflow: hidden;
    border-right: 2px solid rgba(255,255,255,0.75);
    white-space: nowrap;
    animation: typing 3s steps(20, end), blink-caret 0.75s step-end infinite;
    animation-delay: 1s;
    animation-fill-mode: both;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: rgba(255,255,255,0.75); }
} 