/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #f7f8fa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    position: relative;
}

/* 顶部装饰条 */
.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
}

.card-padding {
    padding: 40px 30px;
}

/* 隐藏类 */
.xiaoshi {
    display: none !important;
}

/* SVIP 徽章 */
.svip-badge {
    background: #FFF9E6;
    color: #B27419;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin: 0 auto 30px;
    border: 1px solid #FFE6A8;
}

/* 安全盾牌 */
.security-icon {
    width: 80px;
    height: 80px;
    background: #EBF5FF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

/* 文字区域 */
h2 {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
}

.sub-text {
    text-align: center;
    color: #888;
    line-height: 1.6;
    font-size: 15px;
    margin-bottom: 40px;
}

/* 底部页脚 */
.footer-note {
    background: #fafafb;
    padding: 15px;
    text-align: center;
    font-size: 12px;
    color: #aaa;
    border-top: 1px solid #f0f0f0;
}

/* 黑色获取按钮 */
.btn-primary {
    width: 100%;
    height: 56px;
    background: #0e0e0e;
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 17px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}

.btn-primary:active {
    transform: scale(0.98);
    opacity: 0.9;
}

/* 状态 2: 详情页 */
.section-label {
    font-size: 14px;
    font-weight: 600;
    color: #999;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copy-text-btn {
    color: #1E9FFF;
    font-size: 12px;
    line-height: 1;
    background: #EBF5FF;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    border: none;
}

.input-box {
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 18px 20px;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.input-box svg {
    width: 24px;
    height: 24px;
    color: #ccc;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: 10px;
}

/* 验证码等待框 */
.code-wait-box {
    border: 2px dashed #eee;
    border-radius: 16px;
    height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    padding: 20px;
    text-align: center;
}

.spinner {
    width: 28px;
    height: 28px;
    border: 3px solid #EBF5FF;
    border-top: 3px solid #1E9FFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.waiting-text {
    color: #999;
    font-size: 14px;
}

/* 操作指南 */
.guide-box {
    background: #f9f9f9;
    border-radius: 16px;
    padding: 20px;
}

.guide-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.guide-step {
    font-size: 13px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 12px;
}

/* 富文本图片自适应 */
#huashuDetail img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 10px 0;
    border-radius: 8px;
}

/* 错误提示 */
.error-tip {
    background: #fff1f0;
    color: #f5222d;
    padding: 12px;
    border-top: 1px solid #ffa39e;
    font-size: 14px;
    text-align: center;
}

.high-light-code {
    font-size: 24px;
    color: #ff5500;
    font-weight: 800;
}

/* 日志按钮样式 (内联版) */
.log-btn {
    background: #f0f0f0;
    border: none;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 11px;
    color: #999;
    cursor: pointer;
    margin-right: 10px;
    transition: background 0.2s;
}

.log-btn:hover {
    background: #e5e5e5;
    color: #666;
}

/* 模态框样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: #fff;
    width: 90%;
    max-width: 500px;
    height: 80vh; /* 固定高度 */
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.close-modal {
    font-size: 24px;
    color: #999;
    cursor: pointer;
}

.modal-body {
    padding: 0;
    overflow-y: auto;
    flex: 1;
    background: #f8f9fa;
}

.log-item {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    font-family: inherit;
    word-break: break-all;
}

.log-time {
    color: #1E9FFF;
    font-weight: 600;
    margin-bottom: 4px;
}