/* 导入通用样式 */
@import 'common.css';

/* 定义颜色变量 */
:root {
    --primary-color: #6C5CE7;
    --secondary-color: #48D1CC;
    --accent-color: #9C27B0;
    --text-color: #2d3436;
    --light-text: #636e72;
    --background-color: #0a0a0a;
    --white: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

body {
    background: var(--background-color);
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* 赛博渐变文字特效 */
.cyber-text {
    background: linear-gradient(45deg, var(--primary-color) 30%, var(--secondary-color) 70%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(156, 39, 176, 0.5);
    animation: cyberGlow 2s ease-in-out infinite;
}

@keyframes cyberGlow {
    0%, 100% { text-shadow: 0 0 10px rgba(156, 39, 176, 0.5); }
    50% { text-shadow: 0 0 20px rgba(156, 39, 176, 0.8); }
}

/* 欢迎页面特定样式 */
.welcome-container {
    max-width: 800px;
    margin: 50px auto;
    text-align: center;
    padding: 50px 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.8s ease-out;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.welcome-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    animation: gradient 3s ease infinite;
}

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

.welcome-title {
    font-size: 2.8em;
    margin-bottom: 20px;
}

.welcome-text {
    font-size: 1.3em;
    color: var(--white);
    margin-bottom: 40px;
    animation: textFadeIn 1s ease-out 0.3s both;
}

.auth-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 30px;
}

.auth-button {
    padding: 16px 45px;
    font-size: 1.2em;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    font-weight: 600;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-button {
    color: var(--primary-color);
}

.register-button {
    color: var(--secondary-color);
}

.medal-card:hover {
    transform: translateY(-15px) rotateX(10deg);
    filter: drop-shadow(0 0 12px rgba(155, 255, 0, 0.6));
    background: rgba(255, 255, 255, 0.2);
}

.mascot {
    font-size: 5em;
    margin-bottom: 20px;
    animation: bounce 2s infinite, rotate 10s linear infinite;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

/* 页脚样式 */
footer {
    margin-top: auto;
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.copyright {
    color: var(--white);
    margin-bottom: 10px;
}

.footer-beian {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-beian a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-beian a:hover {
    color: var(--secondary-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .welcome-container {
        margin: 30px 15px;
        padding: 40px 20px;
    }

    .welcome-title {
        font-size: 2.2em;
    }

    .welcome-text {
        font-size: 1.1em;
    }

    .auth-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .auth-button {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        padding: 14px 30px;
    }

    .mascot {
        font-size: 4em;
    }
}

/* 登陆仓风格按钮 */
.auth-button {
    background: rgba(30, 32, 40, 0.8);
    color: #fff;
    border: 2px solid #48D1CC;
    border-radius: 16px;
    box-shadow: 0 0 20px #6C5CE7, 0 0 40px #48D1CC inset;
    font-size: 1.15em;
    font-family: 'Consolas', 'Fira Mono', 'monospace', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    letter-spacing: 2px;
    margin: 0 10px;
    padding: 18px 38px;
    transition: all 0.25s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    position: relative;
    overflow: hidden;
}

.auth-button:hover {
    background: linear-gradient(90deg, #6C5CE7 60%, #48D1CC 100%);
    color: #fff;
    border-color: #fff;
    box-shadow: 0 0 30px #48D1CC, 0 0 60px #6C5CE7 inset;
    transform: scale(1.05) translateY(-3px);
}

.auth-button:active {
    background: #222;
    color: #48D1CC;
    border-color: #6C5CE7;
    transform: scale(0.98);
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
header {
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #fff;
    text-align: center;
    font-size: 2.8em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    font-weight: 700;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin-top: 20px;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.3em;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 700;
}

nav ul li a:hover {
