/* CZR Recharge 前台样式：移动端优先，max-width 640px */

.czr-wrap {
    max-width: 640px;
    margin: 0 auto;
    padding: 16px;
    font-size: 15px;
    line-height: 1.6;
    color: #1f2937;
}

.czr-wrap * { box-sizing: border-box; }

/* 信任条 */
.czr-trust {
    text-align: center;
    padding: 10px 16px;
    margin-bottom: 16px;
    border-radius: 999px;
    background: linear-gradient(90deg, #4F46E5, #7C3AED);
    color: #fff;
    font-weight: 600;
    letter-spacing: .5px;
}

/* 卡片 */
.czr-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(31, 41, 55, .08);
    padding: 20px;
    margin-bottom: 16px;
}

.czr-panel { display: none; }
.czr-panel.is-active { display: block; }

.czr-panel-title { margin: 0 0 8px; font-size: 18px; }
.czr-muted { color: #6b7280; margin: 0 0 12px; }

/* 步骤指示器：圆点 + 连线 */
.czr-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.czr-step { display: flex; flex-direction: column; align-items: center; gap: 4px; color: #9ca3af; }
.czr-step-dot {
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #e5e7eb;
    color: #6b7280;
    font-weight: 700;
}
.czr-step-label { font-size: 12px; }
.czr-step.is-active { color: #4F46E5; }
.czr-step.is-active .czr-step-dot { background: linear-gradient(135deg, #4F46E5, #7C3AED); color: #fff; }
.czr-step.is-done { color: #10B981; }
.czr-step.is-done .czr-step-dot { background: #10B981; color: #fff; }
.czr-step-line { flex: 1; height: 2px; background: #e5e7eb; margin: 0 8px 18px; max-width: 80px; }

/* 表单 */
.czr-input, .czr-textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 15px;
    margin-bottom: 12px;
    font-family: inherit;
}
.czr-input:focus, .czr-textarea:focus {
    outline: none;
    border-color: #4F46E5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .15);
}

.czr-btn {
    border: none;
    border-radius: 999px;
    padding: 10px 22px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(90deg, #4F46E5, #7C3AED);
    cursor: pointer;
    transition: opacity .15s;
}
.czr-btn:hover { opacity: .9; }
.czr-btn:disabled { opacity: .45; cursor: not-allowed; }
.czr-btn-block { width: 100%; }
.czr-btn-ghost { background: #e5e7eb; color: #374151; }
.czr-btn-danger { background: linear-gradient(90deg, #EF4444, #f87171); }

/* 消息 */
.czr-msg { margin-top: 10px; min-height: 1em; }
.czr-msg.is-ok { color: #10B981; }
.czr-msg.is-err { color: #EF4444; }

/* 指引 */
.czr-guide {
    background: #f5f3ff;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 12px;
    font-size: 14px;
}
.czr-guide p { margin: 4px 0; }
.czr-guide code { background: #ede9fe; padding: 1px 6px; border-radius: 4px; }
.czr-video-link { color: #4F46E5; }

/* 账号预览卡 */
.czr-account-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    margin-top: 12px;
}
.czr-account-card h3 { margin: 0 0 8px; font-size: 16px; }
.czr-account-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed #f3f4f6; }
.czr-account-row:last-of-type { border-bottom: none; }
.czr-account-row span { color: #6b7280; }
.czr-account-card .czr-btn { margin-top: 12px; }

/* 进度 */
.czr-progress-stages { display: flex; justify-content: space-between; margin-bottom: 12px; }
.czr-stage { font-size: 13px; color: #9ca3af; }
.czr-stage.is-active { color: #4F46E5; font-weight: 600; }
.czr-stage.is-done { color: #10B981; }
.czr-progress { height: 10px; background: #e5e7eb; border-radius: 999px; overflow: hidden; }
.czr-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4F46E5, #7C3AED);
    border-radius: 999px;
    transition: width .4s ease;
}
.czr-progress-pct { text-align: center; font-weight: 700; margin: 8px 0 2px; }
.czr-progress-text { text-align: center; color: #4b5563; }
.czr-queue-pos { text-align: center; color: #7C3AED; font-weight: 600; margin-top: 6px; }

/* 弹窗 */
.czr-modal {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, .55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 16px;
}
.czr-modal[hidden] { display: none; }
.czr-modal-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .2);
    padding: 24px;
    width: 100%;
    max-width: 420px;
}
.czr-modal-box h3 { margin: 0 0 12px; }
.czr-modal-email {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    color: #4F46E5;
    word-break: break-all;
    margin: 8px 0 16px;
}
.czr-warn-text { color: #EF4444; }
.czr-check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; margin-bottom: 16px; }
.czr-check input { margin-top: 3px; }
.czr-modal-actions { display: flex; gap: 10px; flex-direction: column; }
.czr-modal-actions .czr-btn { width: 100%; }

/* FAQ 手风琴 */
.czr-faq-item { border-bottom: 1px solid #f3f4f6; }
.czr-faq-item:last-child { border-bottom: none; }
.czr-faq-item summary {
    cursor: pointer;
    padding: 12px 0;
    font-weight: 600;
    list-style: none;
}
.czr-faq-item summary::before { content: '＋'; color: #4F46E5; margin-right: 8px; }
.czr-faq-item[open] summary::before { content: '－'; }
.czr-faq-a { padding: 0 0 12px 20px; color: #4b5563; font-size: 14px; }

/* ===== 购买页 [czr_shop] ===== */
.czr-shop { max-width: 960px; }
.czr-shop-hero { text-align: center; margin: 24px 0; }
.czr-shop-hero h1 {
    font-size: 30px;
    margin: 0 0 8px;
    background: linear-gradient(90deg, #4F46E5, #7C3AED);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.czr-shop-hero p { color: #6b7280; margin: 0; }
.czr-price-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-bottom: 24px;
}
.czr-price-card {
    flex: 1 1 240px;
    max-width: 300px;
    text-align: center;
    position: relative;
    padding: 28px 20px 20px;
    border: 2px solid transparent;
}
.czr-price-card.is-hot {
    border-color: #7C3AED;
    box-shadow: 0 8px 24px rgba(124, 58, 237, .18);
    transform: translateY(-4px);
}
.czr-price-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #4F46E5, #7C3AED);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 999px;
    padding: 4px 16px;
    white-space: nowrap;
}
.czr-price-name { margin: 0 0 12px; font-size: 17px; }
.czr-price-amount { font-size: 40px; font-weight: 800; color: #111827; margin-bottom: 14px; }
.czr-price-cny { font-size: 20px; font-weight: 600; margin-right: 2px; }
.czr-price-orig { font-size: 15px; font-weight: 400; color: #9ca3af; margin-left: 6px; }
.czr-feature-list {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    color: #4b5563;
    font-size: 14px;
    text-align: left;
}
.czr-feature-list li { padding: 6px 0; border-bottom: 1px dashed #f3f4f6; }
.czr-feature-list li::before { content: '✓'; color: #10B981; font-weight: 700; margin-right: 8px; }
.czr-feature-list li:last-child { border-bottom: none; }
.czr-btn-disabled {
    background: #d1d5db !important;
    cursor: not-allowed;
}
.czr-shop-guide p { margin: 6px 0; color: #4b5563; }
.czr-shop-guide .czr-btn { margin-top: 8px; }
@media (max-width: 720px) {
    .czr-price-card.is-hot { transform: none; }
}
