/* 全局样式 */
body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: #ffffff;
    color: #1a1a1a;
    min-height: 100vh;
}

/* 主容器样式 */
.main-container {
    width: 100%;
    max-width: 800px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: center;
    margin: 50px auto 0px;
}

/* 标题样式 */
.title {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 24px;
}

/* 输入框样式 */
.input-field {
    width: calc(100% - 32px);
    padding: 16px;
    font-size: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 24px;
    outline: none;
    transition: border-color 0.2s ease;
}

.input-field:focus {
    border-color: #0070f3;
}

/* 按钮样式 */
.query-button {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: #1a1a1a;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.query-button:hover {
    background: #333333;
}

.query-button.loading {
    pointer-events: none;
    position: relative;
}

.query-button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    margin-left: -10px;
    border-radius: 50%;
    border: 2px solid #fff;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 结果区域样式 */
.result-container {
    margin-top: 32px;
}

.result-title {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.result-content {
    background: #f5f5f5;
    padding: 24px;
    border-radius: 8px;
    text-align: left;
}

.balance-text {
    font-size: 16px;
    color: #666;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    height: 32px;
}

.balance-amount {
    color: #0070f3;
    font-weight: 600;
}

.records-title {
    font-size: 16px;
    font-weight: 600;
    color: #666;
    margin-top: 16px;
    margin-bottom: 8px;
}

.records-container {
    max-height: 300px;
    overflow-y: auto;
}

.record-item {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
}

.record-item p {
    font-size: 14px;
    color: #666;
    margin: 4px 0;
}

/* 禁止双击选择按钮文字 */
#queryButton {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.hidden {
    display: none !important;
}

.recharge {
    display: flex;
    align-items: center;
}

.recharge-btn {
    margin-left: 0px;
    color: #fff;
    background-color: #1a1a1a;
    font-size: 14px;
    padding: 0px 20px;
    border-radius: 6px;
    cursor: pointer;
    height: 32px;
    border: none;
    user-select: none;
}

.recharge-btn:hover {
    background-color: #333333;
}

.recharge-btn.loading {
    pointer-events: none;
    position: relative;
}

.recharge-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    margin-left: -10px;
    border-radius: 50%;
    border: 2px solid #fff;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

.recharge-inp {
    width: 200px;
    font-size: 14px;
    padding: 0px 10px;
    height: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2sease;
    margin-left: 20px;
    margin-right: 6px;
}

.no-amount {
    font-size: 10px;
    color: #000;
    margin-left: 20px;
    font-weight: bold;
    text-decoration: underline;
    cursor: pointer;
}

.text-green {
    color: green !important;
}

.text-red {
    color: red !important;
}
