* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 500px;
    margin: 0 auto;
    padding: 0 20px 0 20px;
    background-color: #fff;
    min-height: 100vh;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

.app-header {
    display: flex;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.app-icon {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    margin-right: 12px;
    background-color: #1677ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.app-info {
    flex: 1;
}

.app-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 2px;
}

.app-desc {
    font-size: 12px;
    color: #999;
}

.page-header {
    margin: 20px 0;
}

.page-title {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.page-subtitle {
    font-size: 14px;
    color: #999;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.option {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px 5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background-color: #fff;
}

.option:hover {
    border-color: #1677ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(22, 119, 255, 0.1);
}

.option.selected {
    border-color: #1677ff;
    background-color: #f0f7ff;
    position: relative;
    box-shadow: 0 4px 12px rgba(22, 119, 255, 0.15);
}

.option.selected::after {
    content: "✓";
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #1677ff;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.option-amount {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 4px;
    color: #333;
}

.option-bonus {
    font-size: 14px;
    color: #1677ff;
    font-weight: 600;
}
.payment-methods {
    margin-bottom: 30px;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 12px;
}

.method {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    position: relative;
}

.method.selected {
    border: 1px solid #1677ff;
    background-color: #f0f7ff;
}

.method.selected::after {
    content: "✓";
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #1677ff;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.method-icon {
    width: 36px;
    height: 36px;
    margin-right: 15px;
    object-fit: contain;
}

.method-info {
    flex: 1;
}

.method-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 3px;
    color: #333;
}

.method-desc {
    font-size: 12px;
    color: #999;
}
.recharge-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #1677ff, #4096ff);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(22, 119, 255, 0.3);
}

.recharge-btn:hover {
    background: linear-gradient(135deg, #1261d1, #1677ff);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(22, 119, 255, 0.4);
}

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

.recharge-btn:disabled {
    background: #ccc;
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

.introBox {
    margin-top: 30px;
    text-align: center;
}

a {
    color: #1E1E1E;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #007BFF;
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

a:hover {
    color: #0056b3;
}

a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* 登录框样式 */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 1000;
    display: none;
}

/* 充值区域样式 */
.recharge-section {
    display: none; /* 默认隐藏 */
}

.login-box {
    background-color: #fff;
    width: 90%;
    max-width: 400px;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.login-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

.login-input-group {
    margin-bottom: 15px;
}

.login-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
}

.login-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

.login-input:focus {
    border-color: #1677ff;
    outline: none;
}

.login-btn {
    width: 100%;
    padding: 14px;
    background-color: #1677ff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 10px;
    cursor: pointer;
}

.login-btn:hover {
    background-color: #1261d1;
}

/* 用户信息样式 */
.user-info {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 12px;
    margin-bottom: 20px;

}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
    border: 2px solid #1677ff;
}

.user-details {
    flex: 1;
}

.user-nickname {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 3px;
}

.user-id {
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

.user-balance {
    font-size: 14px;
    font-weight: 500;
    color: #1677ff;
}

/*加载动画*/
.loader {
    top: 0;
    left: 0;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
    gap: 8px;
    background-color: #FFFFFF;
}

.dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #4a6bff;
    animation: wave 1.2s ease-in-out infinite;
}

.dot:nth-child(1) { animation-delay: 0s; }
.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes wave {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-15px); }
}
