* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial Black', 'SimHei', sans-serif;
}

body {
    background: linear-gradient(135deg, #f0f2f5 0%, #e6e9ed 100%);
    color: #333;
    min-height: 100vh;
}

/* 登录页面样式 */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.glass-container {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(3px);
    border-radius: 15px;
    padding: 2.5rem;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.header {
    text-align: center;
    margin-bottom: 2rem;
}

.title {
    font-size: 2.5rem;
    color: #d32f2f;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 2px;
}

.divider {
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #d32f2f 50%, transparent 100%);
    margin: 1rem 0;
}

.subtitle {
    color: #666;
    font-size: 1.1rem;
}

/* 表单样式 */
.form-container {
    margin: 2rem 0;
}

.input-group {
    position: relative;
    margin: 1.5rem 0;
}

.input-group input {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #333;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    background: #fff;
    border-color: #1976d2;
    box-shadow: 0 0 8px rgba(25, 118, 210, 0.3);
}

.input-group label {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
    transition: all 0.3s ease;
}

.input-group input:focus ~ label,
.input-group input:valid ~ label {
    top: -10px;
    left: 5px;
    font-size: 0.8rem;
    color: #1976d2;
}

.captcha-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

#captchaImage {
    height: 40px;
    border-radius: 4px;
    border: 1px solid #ddd;
    transition: transform 0.3s ease;
}

#captchaImage:hover {
    transform: scale(1.05);
}

.button-group {
    display: flex;
    gap: 15px;
    margin-top: 2rem;
}

.btn-primary,
.btn-secondary {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #d32f2f;
    color: #fff;
}

.btn-primary:hover {
    background: #b71c1c;
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.4);
}

.btn-secondary {
    background: #1976d2;
    color: #fff;
}

.btn-secondary:hover {
    background: #1565c0;
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.4);
}

/* 游戏大厅样式 */
.game-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    opacity: 0.9; 
}

.game-header {
    margin-bottom: 2rem;
}

.user-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.welcome-text {
    color: #1976d2;
    font-size: 1.4rem;
}

.btn-logout {
    background: #fff;
    color: #d32f2f;
    border: 1px solid #d32f2f;
    padding: 8px 20px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: #d32f2f;
    color: #fff;
}

.strategic-panel {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.faction-selector {
    text-align: center;
}

.selector-title {
    color: #1976d2;
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
}

.faction-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.faction-btn {
    background: #fff;
    border: 2px solid #eee;
    border-radius: 8px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faction-btn:hover {
    border-color: #1976d2;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(25, 118, 210, 0.1);
}

.faction-name {
    color: #1976d2;
    font-size: 1.2rem;
}

.faction-desc {
    color: #666;
    font-size: 0.9rem;
}

.action-panel {
    margin-top: 2rem;
}

.status-display {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}

.faction-status {
    color: #d32f2f;
    font-size: 1.1rem;
    background: rgba(211, 47, 47, 0.1);
    padding: 8px 15px;
    border-radius: 4px;
}

.btn-start {
    background: #4caf50;
    color: #fff;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-start:hover {
    background: #388e3c;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .faction-buttons {
        grid-template-columns: 1fr;
    }

  .glass-container {
        padding: 1.5rem;
        width: 95%;
    }
}

/* 轮播背景 */
#background-slideshow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden; /* 添加此行 */
}

.background-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.background-slide.active {
    opacity: 1;
}

/* 提示文字样式 */
.captcha-hint {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #777; /* 灰色字体，显得柔和 */
    line-height: 1.4; /* 增加行高，提升可读性 */
    text-align: center; /* 居中对齐 */
}
.captcha-hint p {
    margin: 0.2rem 0; /* 调整段落间距 */
}