* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "SimSun", "STSong", "宋体", sans-serif;
}

body {
    background-image: url('../game/assets/background/roombg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-wrapper {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

/* 顶部标题区域 */
.page-header {
    text-align: center;
    margin-bottom: 20px;
}

.main-title {
    font-size: 64px;
    font-weight: bold;
    color: #D4AF37;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 4px;
    margin-bottom: 10px;
}

.sub-title {
    font-size: 28px;
    font-weight: normal;
    color: #D4AF37;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
}

/* 主卡片 */
.main-card {
    background-color: #1a1a3e;
    border: 2px solid #D4AF37;
    border-radius: 12px;
    padding: 40px 35px;
    width: 100%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* 用户图标 */
.user-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.user-icon svg {
    width: 50px;
    height: 50px;
}

/* 分隔线 */
.divider-line {
    width: 100%;
    height: 1px;
    background-color: #D4AF37;
    margin-bottom: 25px;
}

/* 输入组 */
.input-group {
    margin-bottom: 25px;
}

.input-group.hidden {
    display: none;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: normal;
    color: #D4AF37;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    background-color: #1a1a3e;
    border: 1px solid #D4AF37;
    border-radius: 6px;
    font-size: 16px;
    color: #D4AF37;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.input-group input::placeholder {
    color: #D4AF37;
    opacity: 0.7;
}

.input-group input:focus {
    border-color: #FFD700;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

/* 按钮组 */
.btn-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
    margin-bottom: 20px;
}

/* 创建房间按钮 */
.btn-create {
    width: 100%;
    padding: 14px 20px;
    background-color: #D4AF37;
    color: #1a1a3e;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-create:hover {
    background-color: #FFD700;
    transform: translateY(-2px);
}

.btn-create:active {
    transform: translateY(0);
}

/* 加入房间按钮 */
.btn-join {
    width: 100%;
    padding: 14px 20px;
    background-color: #1a1a3e;
    color: #D4AF37;
    border: 2px solid #D4AF37;
    border-radius: 6px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-join:hover {
    background-color: rgba(212, 175, 55, 0.1);
    border-color: #FFD700;
    color: #FFD700;
    transform: translateY(-2px);
}

.btn-join:active {
    transform: translateY(0);
}

/* 按钮图标 */
.btn-icon {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
}

.btn-create .btn-icon {
    color: #1a1a3e;
}

.btn-join .btn-icon {
    color: #D4AF37;
    transform: rotate(-45deg);
    display: inline-block;
}

.btn-join:hover .btn-icon {
    color: #FFD700;
}

/* 按钮文字 */
.btn-text {
    font-size: 18px;
}

/* 底部装饰钻石 */
.decorative-diamonds {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    padding-top: 15px;
}

.diamond {
    color: #D4AF37;
    font-size: 16px;
    line-height: 1;
}

/* 房间ID显示 */
.room-id-display {
    font-size: 18px;
    text-align: center;
    padding: 15px 25px;
    background-color: rgba(26, 26, 62, 0.9);
    border: 2px solid #D4AF37;
    border-radius: 8px;
    font-weight: bold;
    color: #D4AF37;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.room-id-display span {
    color: #FFD700;
    font-size: 20px;
    letter-spacing: 2px;
}

/* 游戏介绍按钮 */
.btn-rules {
    background: none;
    border: none;
    color: #D4AF37;
    font-size: 16px;
    font-family: "SimSun", "STSong", "宋体", sans-serif;
    cursor: pointer;
    padding: 10px;
    text-decoration: underline;
    transition: color 0.3s;
}

.btn-rules:hover {
    color: #FFD700;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-title {
        font-size: 48px;
    }

    .sub-title {
        font-size: 24px;
    }

    .main-card {
        padding: 30px 25px;
    }

    .btn-group {
        gap: 12px;
    }

    .btn-create,
    .btn-join {
        padding: 12px 18px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 20px 15px;
    }

    .main-title {
        font-size: 36px;
        letter-spacing: 2px;
    }

    .sub-title {
        font-size: 20px;
    }

    .main-card {
        padding: 25px 20px;
    }
}
