* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    line-height: 1.5;
    padding: 0;
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
}


/* 主容器 */
.container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px 16px;
}

/* 提示文本 */
.tip-text {
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    color: #E6E6E6;
    padding-left: 20%;
}

/* 表单样式 */
.form-section {
    margin-bottom: 20px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #F2F2F2;
}

/* 输入框容器 */
.input-group {
    margin-bottom: 20px;
}

/* 输入框样式 */
.input-field {
    width: 100%;
    padding: 16px;
    background-color: #1e1e1e;
    border: 1px solid #333;
    border-radius: 8px;
    color: #ffffff;
    font-size: 15px;
    transition: border-color 0.3s;
}

.input-field:focus {
    outline: none;
    border-color: #107C10;
}

.input-field::placeholder {
    color: #666;
}

/* 验证码容器 */
.code-container {
    display: flex;
    gap: 12px;
}

.code-input {
    flex: 1;
}

/* 获取验证码按钮 */
.get-code-btn {
    padding: 0 16px;
    background-color: #333;
    color: #9BF00B;
    border: 1px solid #444;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.3s;
    min-width: 120px;
}

.get-code-btn:not(.disabled):hover,
.get-code-btn:not(.disabled):active {
    background-color: #444;
}

.get-code-btn.disabled {
    background-color: #222;
    color: #888;
    cursor: not-allowed;
}

/* 获取焦点且有内容时的样式 */
.activation-has-content {
    letter-spacing: 5px;
    font-weight: 500;
}
/* 激活按钮 */
.activate-btn {
    width: 100%;
    padding: 18px;
    background-color: #9BF00B;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    margin-top: 10px;
    margin-bottom: 24px;
}
.activate-btn:active {
    transform: scale(0.98);
}
/* 简单实线分割线 */
.divider {
    width: 100%;
    height: 1px;
    background-color: #F2F2F226;
    margin: 20px 0;
}
/* 温馨提示区域 */
.warm-tips {
    border-radius: 8px;
    margin-bottom: 24px;
}

.tips-title {
    font-size: 16px;
    font-weight: 600;
    color: #9BF00B;
    margin-bottom: 12px;
    margin-left: 0px;
}

.tips-list {
    padding-left: 11px;
}

.tips-list li {
    margin-bottom: 10px;
    font-size: 14px;
    color: #999;
    line-height: 1.6;
}

.tips-list li:last-child {
    margin-bottom: 0;
}

.tips-sub-item {
    display: block;
    margin-top: 6px;
    padding-left: 12px;
    color: #999;
    line-height: 1.6;
}

.gray-text {
    color: #F2F2F2;
}

/* 历史记录区域 */
.history-section {
    display: none; /* 默认隐藏，有数据时才显示 */
    background-color: #1a1a1a;
    border-radius: 8px;
    padding: 16px;
    margin-top: 20px;
}

.history-title {
    font-size: 16px;
    font-weight: 600;
    color: #F2F2F2;
    margin-bottom: 16px;
}


.history-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.history-row:last-child {
    margin-bottom: 0;
}

.history-value {
    font-size: 14px;
    color: #ffffff;
    font-weight: 500;
}

.masked-code {
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    margin-top: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 15px;
}

.masked-code:hover {
    background-color: #333;
}

.masked-code .lock-icon {
    margin-right: 8px;
}

/* Toast提示样式 */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 15px;
    z-index: 1000;
    opacity: 0;
    transition: transform 0.4s, opacity 0.4s;
    max-width: 80%;
    text-align: center;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 弹窗遮罩 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 弹窗内容 */
.modal {
    background-color: #1e1e1e;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

/* 弹窗头部 */
.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #E6E6E6;
}

.modal-close {
    background: transparent;
    border: none;
    color: #888;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #ffffff;
}

/* 弹窗内容区域 */
.modal-body {
    padding: 24px;
}

.modal-message {
    font-size: 15px;
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* 兑换码高亮显示 */
.redemption-code {
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: #9BF00B;
    letter-spacing: 1px;
    margin: 20px 0;
    word-break: break-all;
    font-family: 'Courier New', monospace;
}

/* 安全验证弹窗样式 */
.security-modal .modal-body {
    padding-bottom: 20px;
}

.security-phone {
    font-size: 16px;
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 500;
}

/* 联系信息行 */
.contact-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #333;
}

.contact-row:last-child {
    border-bottom: none;
}

.contact-label {
    font-size: 15px;
    color: #b0b0b0;
}

.contact-value {
    font-size: 15px;
    color: #E6E6E6;
    font-weight: 500;
}

.contact-copy {
    background-color: #333;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.contact-copy:hover {
    background-color: #444;
}

/* 弹窗按钮容器 */
.modal-buttons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.modal-button {
    flex: 1;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    border: none;
}

.modal-button.primary {
    background-color: #9BF00B;
    color: #ffffff;
}


.modal-button.secondary {
    background-color: #333;
    color: #ffffff;
}

.modal-button.secondary:hover {
    background-color: #444;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .container {
        padding: 16px 14px;
    }

    .input-field {
        padding: 14px;
    }

    .activate-btn {
        padding: 16px;
    }

    .modal {
        max-width: 90%;
    }

    .redemption-code {
        font-size: 18px;
        padding: 14px;
    }

    .tips-list li {
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    .code-container {
        flex-direction: column;
        gap: 10px;
    }

    .get-code-btn {
        padding: 14px;
        width: 100%;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-buttons {
        flex-direction: column;
    }
}
li::marker {
    color: #9BF00B; /* 设置颜色为绿色 */
}
/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 隐藏spin按钮 */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* 底部安全区域适配 */
.safe-area {
    padding-bottom: env(safe-area-inset-bottom);
}


.error-message {
    color: #e53935;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.error-message.show {
    display: block;
}
.history-item {
    margin-bottom: 10px;
    border-bottom: 1px solid #333;
}
