/* 纯黑色背景 */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: #000000;
    font-family: 'Arial', sans-serif;
    overflow: hidden;
}

/* 欢迎文本容器 - 居中显示 */
.welcome-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
    flex-direction: column;
}

/* 彩色欢迎文本 */
.welcome-text {
    font-size: 3rem;
    font-weight: bold;
    /* 从左到右的渐变效果 */
    background: linear-gradient(to right, #ff0000, #ff8000, #ffff00, #80ff00, #00ff00, #00ff80, #00ffff, #0080ff, #0000ff, #8000ff, #ff00ff, #ff0080);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 300% 300%;
    animation: gradientAnimation 4s ease-in-out infinite;
    text-align: center;
    margin: 0;
    padding: 0;
    /* 更流畅的动画 */
    will-change: transform, opacity;
}

/* 加载旋转圈 */
.loader {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-bottom: 2rem;
    position: relative;
    animation: spin 1.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
}

/* 从左到右的渐变加载圈 */
.loader::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    /* 从左到右的渐变边框 */
    background: conic-gradient(
        #ff0000, #ff8000, #ffff00, #80ff00, 
        #00ff00, #00ff80, #00ffff, #0080ff, 
        #0000ff, #8000ff, #ff00ff, #ff0080, #ff0000
    );
    mask: radial-gradient(transparent 40%, #000 45%, #000 55%, transparent 60%);
    -webkit-mask: radial-gradient(transparent 40%, #000 45%, #000 55%, transparent 60%);
}

/* 主内容区域 */
.main-content {
    animation: fadeIn 1s ease forwards;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 隐藏类 */
.hidden {
    display: none;
}

/* 渐变动画 */
@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 旋转动画 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 欢迎容器动画 - 更流畅的放大缩小效果 */
@keyframes welcomeAnimation {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    30% {
        transform: scale(1.3);
        opacity: 1;
    }
    70% {
        transform: scale(1.3);
        opacity: 1;
    }
    100% {
        transform: scale(0.3);
        opacity: 0;
    }
}

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

/* 主页样式 */
header {
    background-color: #111;
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #333;
}

header h1 {
    color: #ffffff;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.logo {
    height: 40px;
    width: auto;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 1rem 0 0;
}

nav ul li {
    display: inline;
    margin: 0 1rem;
}

nav ul li a {
    color: #bbbbbb;
    text-decoration: none;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #ffffff;
}

main {
    max-width: 1200px;
    margin: 0 auto 0 1rem;
    padding: 2rem;
    flex: 1;
}

.hero {
    text-align: left;
    padding: 1rem 0 1rem 0;
    background-color: transparent;
    border: none;
    margin-bottom: 1rem;
    margin-left: 1rem;
    margin-right: auto;
    max-width: fit-content;
}

.hero h2 {
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.hero p {
    color: #bbbbbb;
    font-size: 1rem;
    margin: 0;
}

.forum-button {
    display: inline-block;
    margin-top: 1rem;
    padding: 12px 30px;
    background: linear-gradient(45deg, #8000ff, #4b0082, #8000ff);
    background-size: 200% 200%;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
    animation: gradientShift 3s ease infinite;
    transition: transform 0.3s ease;
}

.forum-button:hover {
    transform: scale(1.05);
}

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

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

/* 跳转页面样式 */
.redirect-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #000000;
}

.redirect-box {
    display: flex;
    width: 80%;
    max-width: 800px;
    background-color: #111;
    border-radius: 10px;
    border: 1px solid #333;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.redirect-content {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.redirect-content h2 {
    color: #ffffff;
    margin-top: 0;
}

.redirect-content p {
    color: #bbbbbb;
    font-size: 1.1rem;
}

.redirect-text {
    color: #dddddd;
    font-size: 1rem;
    line-height: 1.6;
    margin: 1rem 0;
}

.redirect-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #0a0a0a;
    overflow: hidden;
    position: relative;
}

.redirect-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background-color: #333;
    border-radius: 5px;
    margin: 1.5rem 0;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #ff0080, #ff8c00);
    width: 0%;
    transition: width 1s linear;
}

.redirect-button {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(45deg, #8000ff, #4b0082);
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
}

.redirect-button:hover {
    transform: scale(1.05);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .redirect-box {
        flex-direction: column;
    }
    
    .redirect-image {
        min-height: 200px;
    }
}

.content {
    background-color: #111;
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid #333;
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: #111;
    color: #aaaaaa;
    border-top: 1px solid #333;
    margin-top: auto;
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: #111;
    color: #aaaaaa;
    border-top: 1px solid #333;
    margin-top: auto;
    flex-shrink: 0;
}

footer img {
    height: 20px;
    vertical-align: middle;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .welcome-text {
        font-size: 2rem;
    }
    
    nav ul li {
        display: block;
        margin: 0.5rem 0;
    }
    
    main {
        padding: 1rem;
    }
    
    .hero {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .welcome-text {
        font-size: 1.5rem;
    }
}