/* 全局样式 */
:root {
    --primary-color: #ff3366;
    --secondary-color: #ff5555;
    --text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
    --card-bg: linear-gradient(135deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.15));
    --card-hover-bg: linear-gradient(135deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.2));
}

body, html {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Noto Sans KR', Arial, sans-serif;
    color: #ffffff;
    line-height: 1.6;
}

/* 背景图片容器 */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
}

.background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transition: opacity 0.5s ease;
}

/* 内容区域 */
.content {
    position: relative;
    z-index: 1;
    padding: 20px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 卡片样式 */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 30px;
    width: 100%;
    max-width: 600px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-5px);
    background: var(--card-hover-bg);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.card h2 {
    font-size: 2.2em;
    margin-bottom: 25px;
    text-align: center;
    color: #ffffff;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

.card p {
    font-size: 1.2em;
    line-height: 1.8;
    margin: 15px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6);
    font-weight: 500;
    letter-spacing: 0.8px;
}

.card:first-of-type h2 {
    font-size: 3em;
    font-family: 'Georgia', serif;
    font-weight: 800;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    margin-bottom: 25px;
    color: #ffffff;
    background: none;
}

@keyframes glow {
    from {
        text-shadow: 0 0 5px #f3ec78, 0 0 10px #e09c24, 0 0 15px #af4261;
    }
    to {
        text-shadow: 0 0 10px #f3ec78, 0 0 15px #e09c24, 0 0 20px #af4261;
    }
}

.card:first-of-type p {
    font-size: 1.3em;
    color: #ffffff;
    font-family: 'Arial', sans-serif;
    line-height: 1.8;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    margin: 10px 0;
    font-weight: 500;
}

/* 按钮容器 */
.middle-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

/* 按钮样式 */
.middle-buttons a {
    flex: 1;
    max-width: 250px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #ffffff;
    text-decoration: none;
    border-radius: 35px;
    font-size: 1.25em;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    box-shadow: 0 6px 24px rgba(255, 51, 102, 0.3);
}

.middle-buttons a:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(255, 51, 102, 0.4);
}

.button-icon {
    width: 30px;
    height: 30px;
    margin-right: 15px;
    transition: transform 0.3s ease;
}

.middle-buttons a:hover .button-icon {
    transform: scale(1.1);
}

/* 邀请码框样式 */
.code-text {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 25px;
    text-align: center;
    margin: 20px auto;
    width: fit-content;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    font-size: 1.3em;
    font-weight: 700;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    color: #ffffff;
}

.code-text:hover {
    background: var(--card-hover-bg);
    transform: translateY(-2px);
}

.code-text span {
    display: inline-block;
    font-size: 2.5em;
    font-weight: 900;
    color: var(--primary-color);
    margin-left: 12px;
    text-shadow: 2px 2px 4px rgba(255, 51, 102, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.code-text span:hover {
    transform: scale(1.08);
    color: var(--secondary-color);
}

/* Toast提示框样式 */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1.1em;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* 移动端样式 */
@media screen and (max-width: 767px) {
    .content {
        position: relative;
        z-index: 1;
        padding: 15px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .middle-buttons {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 15px;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        padding: 15px;
        transform: translateX(-20px);
    }

    .middle-buttons a {
        flex: 1;
        max-width: 160px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        color: #ffffff;
        text-decoration: none;
        border-radius: 25px;
        font-size: 1em;
        font-weight: 600;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 4px 15px rgba(255, 51, 102, 0.3);
    }

    .button-icon {
        width: 20px;
        height: 20px;
        margin-right: 5px;
    }
}

/* PC端样式 */
@media screen and (min-width: 768px) {
    .content {
        padding: 30px;
        margin: 0 auto;
        max-width: 1200px;
    }

    .card {
        width: 70%;
        margin: 20px auto;
        padding: 25px;
        text-align: center;
    }

    .card h2 {
        font-size: 2.2em;
    }

    .card p {
        font-size: 1.2em;
    }

    .middle-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 30px;
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
        padding: 20px;
    }

    .middle-buttons a {
        flex: 1;
        max-width: 250px;
        height: 65px;
        font-size: 1.25em;
    }

    .button-icon {
        width: 32px;
        height: 32px;
        margin-right: 10px;
    }
}

/* 平板端样式 */
@media screen and (min-width: 768px) and (max-width: 1023px) {
    .content {
        padding: 25px;
    }

    .card {
        width: 80%;
    }

    .card h2 {
        font-size: 2em;
    }

    .middle-buttons {
        gap: 20px;
    }

    .middle-buttons a {
        height: 60px;
        font-size: 1.2em;
    }
}

/* 动画效果 */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.animate-pulse {
    animation: pulse 2s infinite;
}
