/* 用户中心额外样式表 - 简化版 */

/* 简单的背景色 */
body {
    background-color: #f5f5f5;
}

/* 统计卡片样式 - 保留基本功能 */
.statistics-cards {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.statistics-card {
    width: calc(25% - 20px);
    margin: 10px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
    text-align: center;
}

.statistics-card-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.statistics-card-value {
    font-size: 24px;
    color: #ff0200;
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .statistics-card {
        width: calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .statistics-card {
        width: 100%;
        margin: 5px 0;
    }
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    position: relative;
    background: linear-gradient(to bottom, #ffffff, #f9f9f9);
    margin: 5% auto;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 400px;
    animation: slideInUp 0.35s ease-out;
    overflow: hidden;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    color: #888;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    color: #333;
    background-color: rgba(0, 0, 0, 0.05);
    transform: rotate(90deg);
}

#recharge-modal h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

#recharge-modal p {
    margin-bottom: 20px;
    color: #666;
}

#recharge-modal #recharge-game-name {
    font-weight: bold;
    color: #3f51b5;
    font-size: 18px;
    padding: 10px 15px;
    background-color: #f5f7ff;
    border-radius: 8px;
    margin-bottom: 10px;
}

#recharge-modal .form-group {
    margin-bottom: 15px;
}

#recharge-modal label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #333;
    font-size: 15px;
}

#recharge-modal .form-hint {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
    font-style: italic;
}

#recharge-modal input[type="text"],
#recharge-modal input[type="number"] {
    width: 100%;
    height: 40px;
    padding: 10px 12px 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background-color: #ffffff;
    font-size: 15px;
    color: #333;
    transition: all 0.3s ease;
}

#recharge-modal input[type="text"]:focus,
#recharge-modal input[type="number"]:focus {
    border-color: #4169e1;
    box-shadow: 0 0 0 3px rgba(65, 105, 225, 0.15), inset 0 1px 5px rgba(0, 0, 0, 0.02);
    background-color: #ffffff;
}

#recharge-modal input::placeholder {
    color: #aaa;
}

/* 提交按钮样式 */
.submit-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #4f6ef7, #3b5fe9);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
    box-shadow: 0 4px 10px rgba(59, 95, 233, 0.3);
}

.submit-btn:hover {
    background: linear-gradient(135deg, #3b5fe9, #2a4cd8);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(59, 95, 233, 0.4);
}

.submit-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(59, 95, 233, 0.4);
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* 响应式调整 */
@media (max-width: 576px) {
    .modal-content {
        margin: 10% auto;
        padding: 20px;
        width: 95%;
    }
}

#recharge-modal .result-message {
    margin: 20px 0 10px;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 15px;
    display: block;
    transition: all 0.3s;
    text-align: center;
}

#recharge-modal .result-message.success {
    background-color: rgba(46, 204, 113, 0.1);
    border: 1px solid #2ecc71;
    color: #27ae60;
}

#recharge-modal .result-message.error {
    background-color: rgba(231, 76, 60, 0.1);
    border: 1px solid #e74c3c;
    color: #c0392b;
}

/* 游戏钱包卡片样式 - 美化版 */
.game-wallets {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.game-wallet-card {
    width: calc(33.33% - 14px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    transition: all 0.3s;
    position: relative;
}

.game-wallet-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.game-wallet-header {
    padding: 20px;
    background: linear-gradient(135deg, #4f6ef7, #3b5fe9);
    color: white;
    text-align: center;
}

.game-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 10px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.game-wallet-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

.game-wallet-header p {
    margin: 5px 0 0;
    font-size: 14px;
    opacity: 0.9;
}

.game-wallet-body {
    padding: 25px 20px;
    text-align: center;
    position: relative;
}

.game-wallet-balance {
    font-size: 36px;
    font-weight: bold;
    color: #ff3b30;
    margin-bottom: 20px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.game-wallet-button {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #ff3b30, #ff5c41);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(255, 59, 48, 0.3);
    border: none;
    cursor: pointer;
}

.game-wallet-button:hover {
    background: linear-gradient(135deg, #ff5c41, #ff3b30);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 59, 48, 0.4);
}

.game-wallet-button.recharge-btn {
    background: linear-gradient(135deg, #ff3b30, #ff5c41);
}

/* 响应式调整 */
@media (max-width: 992px) {
    .game-wallet-card {
        width: calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .game-wallet-card {
        width: 100%;
    }
}

/* 添加游戏余额显示样式 */
.current-game-balance {
    padding: 10px 15px;
    background-color: #f5f7ff;
    border-radius: 8px;
    margin-bottom: 15px;
    color: #3f51b5;
    font-size: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.current-game-balance .balance-value {
    font-weight: bold;
    color: #ff3b30;
    font-size: 18px;
}

#recharge-modal .close-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #f2f2f2;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

#recharge-modal .close-btn:hover {
    background-color: #e6e6e6;
    color: #333;
}

/* 确保结果消息为空时占位 */
#recharge-modal .result-message:empty {
    display: none;
}

/* 设置充值模态框输入框的尺寸 */
#recharge-modal #recharge-server {
    width: 100%;
    height: 40px;
    padding: 8px 12px;
    box-sizing: border-box;
}

#recharge-modal #recharge-amount {
    width: 100%;
    height: 40px;
    padding: 8px 12px;
    box-sizing: border-box;
}

/* 统一模态框中所有输入框的样式 */
#recharge-modal .form-input {
    height: 40px;
    padding: 8px 12px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
}

/* 简化版模态框样式 */
.modal-content {
    max-width: 400px;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    background-color: #fff;
    border: none;
}

#recharge-modal .modal-header {
    background: linear-gradient(to right, #4169e1, #3a5fcc);
    margin: -25px -25px 20px -25px;
    padding: 20px 25px;
    border-bottom: none;
    position: relative;
}

#recharge-modal .modal-header h3 {
    color: white;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

#recharge-modal .simple-form-group {
    margin-bottom: 18px;
}

#recharge-modal .form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

#recharge-modal .form-static-text {
    padding: 10px 12px 10px 15px;
    background-color: #ffffff;
    border-radius: 6px;
    height: 40px;
    line-height: 20px;
    font-weight: 500;
    color: #333;
    box-shadow: none;
    border: 1px solid #e0e0e0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

#recharge-modal .value-display {
    padding: 10px 12px 10px 15px;
    background-color: #ffffff;
    border-radius: 6px;
    height: 40px;
    line-height: 20px;
    box-shadow: none;
    border: 1px solid #e0e0e0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

#recharge-modal .value-display .balance-value {
    font-weight: 600;
    color: #4169e1;
}

#recharge-modal .button-group {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

#recharge-modal .submit-btn {
    flex: 1;
    height: 44px;
    margin: 0;
    padding: 0;
    background: linear-gradient(to right, #4169e1, #3a5fcc);
    color: white;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(65, 105, 225, 0.3);
    transition: all 0.3s;
    border: none;
    letter-spacing: 0.5px;
}

#recharge-modal .submit-btn:hover {
    background: linear-gradient(to right, #3a5fcc, #2a4cd8);
    box-shadow: 0 6px 12px rgba(65, 105, 225, 0.35);
}

#recharge-modal .submit-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(65, 105, 225, 0.2);
}

#recharge-modal .cancel-btn {
    flex: 1;
    height: 44px;
    margin: 0;
    padding: 0;
    background: #f8f9fa;
    color: #555;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.5px;
}

#recharge-modal .cancel-btn:hover {
    background-color: #f0f0f0;
    color: #333;
}

#recharge-modal .result-message {
    text-align: center;
    padding: 15px;
    margin: 15px 0 5px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

#recharge-modal .result-message.success {
    background: linear-gradient(to right, #e8f5e9, #edf7ed);
    border: 1px solid #c8e6c9;
    color: #2e7d32;
    border-left: 4px solid #2e7d32;
}

#recharge-modal .result-message.error {
    background: linear-gradient(to right, #ffebee, #feecef);
    border: 1px solid #ffcdd2;
    color: #c62828;
    border-left: 4px solid #c62828;
}

/* 将区服和货币输入框放置在同一行 */
#recharge-modal .form-group.inline-form-group {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 15px;
}

#recharge-modal .inline-form-group label {
    min-width: 70px;
    margin-bottom: 0;
    font-size: 14px;
}

#recharge-modal .inline-form-group .form-input-container {
    display: flex;
    flex-direction: column;
    margin-right: 15px;
}

#recharge-modal .inline-form-group .form-hint {
    margin-top: 5px;
    font-size: 12px;
    white-space: nowrap;
}

/* 响应式调整 - 小屏幕下回到垂直布局 */
@media (max-width: 480px) {
    #recharge-modal .form-group.inline-form-group {
        flex-direction: column;
        gap: 10px;
    }
    
    #recharge-modal .inline-form-group .form-input-container {
        margin-right: 0;
        width: 100%;
    }
    
    #recharge-modal #recharge-server,
    #recharge-modal #recharge-amount {
        width: 100%;
    }

    #recharge-modal .button-group {
        flex-direction: row;
        gap: 10px;
    }
}

#recharge-modal .modal-content {
    position: relative;
    padding-top: 60px; /* 增加顶部空间用于放置logo */
}

#recharge-modal .game-logo-container {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 10;
    border: none;
    overflow: hidden;
}

#recharge-modal .game-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    background: linear-gradient(135deg, #4169e1, #3a5fcc);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
} 