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

/* CSS 变量定义 - 照搬 yimomolove2 */
:root {
    --login-primary: #FFD4E5;
    --login-secondary: #B8D4E8;
    --login-accent: #F4D4A0;
    --login-pink: #FFC9D9;
    --login-blue: #D4E8F5;
    --login-gold: #E8C89C;
    --login-bg-gradient: linear-gradient(135deg, #8B9DC3 0%, #A8B5D1 50%, #C8D5E8 100%);
    --login-glass-bg: rgba(255, 255, 255, 0.15);
    --login-glass-border: rgba(255, 255, 255, 0.25);
    --login-text-primary: #fff;
    --login-text-secondary: rgba(255, 255, 255, 0.85);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--login-bg-gradient) !important;
    background-attachment: fixed !important;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
    color: var(--login-text-primary);
}

/* 音乐控制按钮 */
.music-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--login-text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.music-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.music-toggle:active {
    transform: scale(0.95);
}

.music-toggle.muted {
    opacity: 0.6;
}

/* 流星雨装饰 */
.meteor-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.meteor {
    position: absolute;
    font-size: 2rem;
    top: -10%;
    animation: meteor-fall 4s linear infinite, rotate-star 6s infinite;
    filter: drop-shadow(0 0 10px #fff) drop-shadow(0 0 20px rgba(255, 212, 229, 0.8));
}

.meteor-1 {
    left: 10%;
    animation-delay: 0s;
}

.meteor-2 {
    left: 30%;
    font-size: 2.5rem;
    animation-delay: 1.2s;
    filter: drop-shadow(0 0 10px #fff) drop-shadow(0 0 20px rgba(244, 212, 160, 0.8));
}

.meteor-3 {
    left: 50%;
    font-size: 3rem;
    animation-delay: 2.5s;
    filter: drop-shadow(0 0 10px #fff) drop-shadow(0 0 20px rgba(184, 212, 232, 0.8));
}

.meteor-4 {
    left: 70%;
    font-size: 2.8rem;
    animation-delay: 1.8s;
}

.meteor-5 {
    left: 85%;
    font-size: 3.2rem;
    animation-delay: 3.5s;
    filter: drop-shadow(0 0 10px #fff) drop-shadow(0 0 20px rgba(244, 212, 160, 0.8));
}

@keyframes meteor-fall {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(120vh) translateX(-30vw);
        opacity: 0;
    }
}

@keyframes rotate-star {
    to {
        transform: rotate(360deg);
    }
}

/* 主容器 */
.container {
    position: relative;
    z-index: 10;
    width: 90%;
    max-width: 450px;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* 吉祥物 */
.mascot-container {
    text-align: center;
    animation: fadeInDown 0.8s ease-out;
}

.mascot-image {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 20px;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
    animation: bounce 3s ease-in-out infinite;
    transition: transform 0.3s ease;
    display: inline-block;
}

.mascot-image:hover {
    transform: scale(1.05) rotate(5deg);
}

.mascot-emoji {
    font-size: 8rem;
    animation: bounce 3s ease-in-out infinite;
    transition: transform 0.3s ease;
    display: inline-block;
}

.mascot-emoji:hover {
    transform: scale(1.05) rotate(5deg);
}

@keyframes bounce {
    0%, 100% { 
        transform: translateY(0); 
    }
    50% { 
        transform: translateY(-15px); 
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 欢迎标题 */
.welcome-title {
    background: linear-gradient(45deg, #FFD4E5, #B8D4E8, #F4D4A0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 0.5rem;
    animation: fadeIn 1s ease-out 0.3s both;
}

.welcome-subtitle {
    text-align: center;
    background: linear-gradient(90deg, #FFC9D9, #E8C89C, #D4E8F5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 0.9rem;
    font-weight: 600;
    animation: fadeIn 1s ease-out 0.5s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 液态玻璃效果 - 照搬 hello2026 */
.glass {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: liquid-shine 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes liquid-shine {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

.glass:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 60px rgba(255, 212, 229, 0.3);
    transform: translateY(-2px);
}

.glass > * {
    position: relative;
    z-index: 10;
}

/* 倒计时卡片 */
.countdown-card {
    padding: 2rem;
    text-align: center;
    animation: fadeIn 0.6s ease-out 0.6s both;
}

/* 直播状态卡片 */
.livestream-card {
    padding: 2rem;
    text-align: center;
    animation: fadeIn 0.6s ease-out 0.7s both;
}

.live-info {
    margin-bottom: 1.5rem;
}

.live-hint {
    font-size: 0.95rem;
    color: var(--login-text-secondary);
}

.btn-live {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.4);
}

.btn-live::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: btn-shine 3s infinite;
}

.btn-live:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 30px rgba(255, 107, 107, 0.6);
}

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

.card-title {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--login-text-primary);
    font-weight: 600;
}

/* 发光高亮文字 - 与欢迎标题相同样式 */
.highlight-text {
    background: linear-gradient(45deg, #FFD4E5, #B8D4E8, #F4D4A0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    font-size: 1.4rem;
    display: inline-block;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(255, 212, 229, 0.6));
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(255, 212, 229, 0.9));
    }
}

/* 倒计时显示 - 照搬 hello2026 - 防止换行 */
.countdown-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    flex-wrap: nowrap; /* 防止换行 */
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-value {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    transition: transform 0.3s;
    color: var(--login-text-primary);
}

.countdown-value:hover {
    transform: scale(1.1);
}

.countdown-label {
    font-size: 0.85rem;
    color: var(--login-text-secondary);
}

.countdown-sep {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--login-accent);
}

.target-date {
    color: var(--login-text-secondary);
    font-size: 0.95rem;
}

/* 登录面板 - 照搬 yimomolove2 */
.login-block {
    padding: 2.5rem 2rem;
    animation: fadeIn 0.6s ease-out 0.9s both;
}

.login-title {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--login-text-primary);
    font-weight: 700;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--login-text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-control {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid var(--login-glass-border);
    border-radius: 10px;
    color: var(--login-text-primary);
    padding: 0.8rem 1rem;
    font-size: 1rem;
    transition: all 0.3s;
    cursor: not-allowed;
}

.form-control:disabled {
    opacity: 0.7;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-control:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--login-accent);
    box-shadow: 0 0 0 3px rgba(244, 212, 160, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #FFD4E5, #B8D4E8);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 700;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s;
    box-shadow: 0 0 20px rgba(255, 212, 229, 0.4);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: btn-shine 3s infinite;
}

@keyframes btn-shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 30px rgba(255, 212, 229, 0.6);
}

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

/* 提示信息 */
.notice-box {
    margin-top: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 234, 167, 0.3), rgba(253, 203, 110, 0.3));
    border-radius: 10px;
    border: 2px solid rgba(243, 156, 18, 0.4);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.notice-box.show {
    opacity: 1;
    transform: translateY(0);
}

.notice-text {
    color: var(--login-text-primary);
    font-size: 1rem;
    line-height: 1.8;
    text-align: center;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* 页脚 */
.footer {
    text-align: center;
    animation: fadeIn 1s ease-out 1s both;
}

.footer p {
    color: var(--login-text-secondary);
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 600px) {
    .welcome-title {
        font-size: 2rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .highlight-text {
        font-size: 1.2rem;
    }
    
    .countdown-display {
        gap: 0.5rem; /* 减小间距防止换行 */
    }
    
    .countdown-value {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .countdown-label {
        font-size: 0.7rem;
    }
    
    .countdown-sep {
        font-size: 1.2rem;
    }
    
    .countdown-card,
    .login-block {
        padding: 1.5rem;
    }
    
    .mascot-image {
        width: 140px;
        height: 140px;
    }
    
    .mascot-emoji {
        font-size: 6rem;
    }
}

/* 超小屏幕进一步优化 */
@media (max-width: 400px) {
    .countdown-display {
        gap: 0.3rem;
    }
    
    .countdown-value {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .countdown-label {
        font-size: 0.65rem;
    }
    
    .countdown-sep {
        font-size: 1.1rem;
    }
}
