/* ===== 基础样式重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== 全局样式 ===== */
body {
    font-family: 'Arial', sans-serif;
    background-color: #0a0a1a;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('./images/bj.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
}

/* ===== 主容器样式 ===== */
.container {
    width: 100%;
    max-width: 800px;
    padding: 2rem;
    background-color: rgba(10, 10, 26, 0.8);
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(100, 65, 255, 0.3);
    margin: 2rem;
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ===== 服务器名称样式 ===== */
.server-name {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: #fff;
    text-shadow: 0 0 10px rgba(100, 65, 255, 0.7);
    letter-spacing: 2px;
    font-weight: 700;
    width: 100%;
    text-align: center;
}

/* ===== 主内容区域 ===== */
main {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ===== 改进后的按钮样式 ===== */
.join-button {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #6e45e2 0%, #88d3ce 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    outline: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(110, 69, 226, 0.4);
}

.join-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(110, 69, 226, 0.6);
}

.join-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(110, 69, 226, 0.6);
}

.join-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.join-button:hover::before {
    opacity: 1;
}

.join-button span {
    position: relative;
    z-index: 2;
}

.join-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.join-button:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}