/* 动画定义 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes glow {
    0% { text-shadow: 0 0 5px rgba(255, 215, 0, 0.2), 0 0 10px rgba(255, 215, 0, 0); }
    50% { text-shadow: 0 0 5px rgba(255, 215, 0, 0.3), 0 0 10px rgba(255, 215, 0, 0.2); }
    100% { text-shadow: 0 0 5px rgba(255, 215, 0, 0.2), 0 0 10px rgba(255, 215, 0, 0); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0px); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes shine {
    0% { left: -150%; }
    100% { left: 150%; }
}

@keyframes ripple {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #1a1a2e;
    background-image: url('../../images/bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    position: relative;
    overflow-x: hidden;
}

/* 背景渐变覆盖层 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.7) 100%);
    pointer-events: none;
    z-index: 0;
    animation: gradient 15s ease infinite;
    background-size: 200% 200%;
}

.container {
    background-color: transparent;
    padding: 30px;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    opacity: 0;
    transform: translateY(20px);
    position: relative;
    z-index: 10;
}

body.loaded .container {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1s ease, transform 1s ease;
}

.container > * {
    opacity: 0;
    animation: fadeIn 0.8s forwards;
}

.container > *:nth-child(1) { animation-delay: 0.2s; }
.container > *:nth-child(2) { animation-delay: 0.4s; }
.container > *:nth-child(3) { animation-delay: 0.6s; }
.container > *:nth-child(4) { animation-delay: 0.8s; }
.container > *:nth-child(5) { animation-delay: 1.0s; }
.container > *:nth-child(6) { animation-delay: 1.2s; }
.container > *:nth-child(7) { animation-delay: 1.4s; }
.container > *:nth-child(8) { animation-delay: 1.6s; }

.logo-placeholder {
    width: 150px;
    height: 150px;
    background-color: transparent;
    border-radius: 50%;
    margin: 0 auto 20px auto;
    border: 3px solid #FFD700;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    animation: float 4s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    opacity: 1 !important;
}

.logo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.logo-placeholder::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,215,0,0.15) 0%, rgba(255,215,0,0) 60%);
    animation: rotate 10s linear infinite;
    pointer-events: none;
    z-index: 2;
}

h1 {
    color: #FFD700;
    font-size: 2.5em;
    margin-bottom: 15px;
    font-weight: bold;
    animation: glow 2s ease-in-out infinite;
}

.subtitle {
    font-size: 1em;
    line-height: 1.6;
    color: #f0f0f0;
    margin-bottom: 15px;
}

.subtitle strong {
    color: #FFA500;
    animation: pulse 2s infinite;
    display: inline-block;
}

.note {
    font-size: 0.9em;
    color: #f5f5f5;
    margin-bottom: 25px;
    opacity: 0.9;
}

.note1 {
    font-size: 0.9em;
    color: #f5f5f5;
    margin-bottom: 25px;
    opacity: 0.9;
}

.note2 {
    font-size: 0.9em;
    background: linear-gradient(90deg, #ff6b6b, #ffd93d, #6bcf7f, #4d9de0, #bb6bd9);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient 3s linear infinite;
    margin-bottom: 25px;
    opacity: 1;
    font-style: italic;
    font-weight: bold;
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.button {
    padding: 14px 20px;
    border-radius: 25px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 1em;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 1;
}

.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.7s ease;
    z-index: -1;
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.button:hover::before {
    left: 100%;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple 0.8s linear;
    pointer-events: none;
}

.button.primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    box-shadow: 0 2px 15px rgba(102, 126, 234, 0.4);
}

.button.primary:hover {
    background: linear-gradient(45deg, #7a8ff0, #8a5bb8);
}

.button.secondary {
    background: linear-gradient(45deg, #f093fb, #f5576c);
    box-shadow: 0 2px 15px rgba(240, 147, 251, 0.4);
}

.button.secondary:hover {
    background: linear-gradient(45deg, #f5a3ff, #ff6b7f);
}

.button.success {
    background: linear-gradient(45deg, #1e7e34, #28a745);
    box-shadow: 0 2px 15px rgba(40, 167, 69, 0.4);
}

.button.success:hover {
    background: linear-gradient(45deg, #218838, #2ec551);
}

.button.warning {
    background: linear-gradient(45deg, #e5c100, #FFD700);
    color: #333;
    box-shadow: 0 2px 15px rgba(255, 215, 0, 0.4);
}

.button.warning:hover {
    background: linear-gradient(45deg, #efc900, #ffe44d);
}

.tg-channel-info {
    margin: 15px 0 25px 0;
    padding: 12px 20px;
    background: rgba(102, 126, 234, 0.1);
    border: 2px solid rgba(102, 126, 234, 0.5);
    border-radius: 10px;
    font-size: 0.95em;
    transition: all 0.3s ease;
}

.tg-channel-info:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.tg-channel-info p {
    margin: 0;
    color: #f0f0f0;
}

.channel-name {
    color: #667eea;
    font-weight: bold;
    font-size: 1.1em;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: inline-block;
}

.tg-channel-info:hover .channel-name {
    color: #7a8ff0;
    transform: scale(1.05);
}

.permanent-address {
    margin: 25px 0;
    padding: 15px;
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid #FFD700;
    border-radius: 10px;
    font-size: 0.95em;
}

.permanent-address a {
    color: #FFD700;
    font-weight: bold;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

.permanent-address a:hover {
    text-shadow: 0 0 8px #FFD700;
}

.permanent-address a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -3px;
    left: 0;
    background-color: #FFD700;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.permanent-address a:hover::after {
    transform: scaleX(1);
}

.important-note {
    background-color: rgba(255, 0, 0, 0.15);
    border: 2px solid #FFA500;
    padding: 15px;
    margin-top: 20px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.important-note::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 150%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,165,0,0.2), transparent);
    animation: shine 3s infinite;
}

.important-note p {
    margin: 0;
    font-weight: bold;
    position: relative;
    z-index: 1;
    font-size: 0.95em;
}

footer {
    margin-top: 30px;
    font-size: 0.9em;
    color: #ccc;
}

footer p {
    margin: 8px 0;
    transition: all 0.3s ease;
}

footer p:hover {
    color: #fff;
    transform: scale(1.05);
}

footer a {
    color: #FFD700;
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    text-shadow: 0 0 8px #FFD700;
}

/* 响应式设计 */
@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }
    
    .button-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 20px;
    }
}
