/* 注册 / 下载落地页 */
.reg-wrap {
    min-height: 70vh;
    padding: 60px 0 80px;
    background: linear-gradient(180deg, var(--light-bg) 0%, #eef2f4 100%);
}
.reg-container {
    max-width: 560px;
    margin: 0 auto;
    padding: 0 18px;
}
.reg-head {
    text-align: center;
    margin-bottom: 28px;
}
.reg-head h1 {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 8px;
}
.reg-head p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}

/* 步骤条：进度1 表单 - 进度2 下载APP */
.reg-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 30px;
}
.reg-step {
    display: flex;
    align-items: center;
    gap: 10px;
}
.reg-step .dot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 2px solid var(--border);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 15px;
    transition: all .3s;
}
.reg-step .label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
}
.reg-step.active .dot {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--white);
}
.reg-step.active .label {
    color: var(--primary);
}
.reg-step.done .dot {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}
.reg-step-line {
    width: 60px;
    height: 2px;
    background: var(--border);
    margin: 0 14px;
}
.reg-step-line.done {
    background: var(--gold);
}

/* 卡片 */
.reg-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 34px 30px 30px;
}
.reg-substeps {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 22px;
}
.reg-substeps span {
    width: 26px;
    height: 5px;
    border-radius: 4px;
    background: var(--border);
    transition: all .3s;
}
.reg-substeps span.on {
    background: var(--gold);
    width: 40px;
}

.reg-field {
    margin-bottom: 18px;
}
.reg-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 7px;
}
.reg-input {
    width: 100%;
    height: 48px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 0 15px;
    font-size: 15px;
    color: var(--text);
    background: #fbfcfd;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
}
.reg-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(0, 149, 128, .12);
    background: var(--white);
}
.reg-input[readonly] {
    background: #f1f3f5;
    color: var(--text-muted);
}
.reg-code-row {
    display: flex;
    gap: 10px;
}
.reg-code-row .reg-input {
    flex: 1;
}
.reg-btn-code {
    flex: 0 0 auto;
    height: 48px;
    padding: 0 16px;
    border: none;
    border-radius: var(--radius);
    background: var(--primary);
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity .2s;
}
.reg-btn-code:disabled {
    opacity: .55;
    cursor: not-allowed;
}
.reg-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.5;
}
.reg-hint.err {
    color: #e0402b;
}

.reg-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}
.reg-btn {
    flex: 1;
    height: 50px;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .12s, box-shadow .2s, opacity .2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.reg-btn-primary {
    background: var(--gold);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(0, 149, 128, .28);
}
.reg-btn-primary:hover {
    transform: translateY(-1px);
}
.reg-btn-primary:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}
.reg-btn-ghost {
    background: var(--light-bg);
    color: var(--primary);
    flex: 0 0 34%;
}

.reg-panel {
    display: none;
}
.reg-panel.active {
    display: block;
    animation: regFade .35s ease;
}
@keyframes regFade {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* 下载步骤 */
.reg-done-icon {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: rgba(0, 149, 128, .12);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 16px;
}
.reg-done-title {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}
.reg-done-tip {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 8px;
}
.reg-done-email {
    text-align: center;
    font-size: 14px;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 24px;
    word-break: break-all;
}
.reg-downloads {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.reg-dl {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 18px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    transition: border-color .2s, background .2s, transform .12s;
}
.reg-dl:hover {
    border-color: var(--gold);
    background: rgba(0, 149, 128, .05);
    transform: translateY(-1px);
}
.reg-dl i {
    font-size: 24px;
    color: var(--gold);
    width: 28px;
    text-align: center;
}
.reg-dl .dl-arrow {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 14px;
}
.reg-empty {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    padding: 20px 0;
}

/* 验证码弹窗 */
.reg-modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(10, 21, 36, .55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}
.reg-modal-mask.show {
    display: flex;
}
.reg-modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 360px;
    padding: 26px 24px;
    box-shadow: var(--shadow-deep);
    animation: regFade .25s ease;
}
.reg-modal h3 {
    margin: 0 0 4px;
    font-size: 18px;
    color: var(--primary);
    text-align: center;
}
.reg-modal p {
    margin: 0 0 18px;
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}
.reg-captcha-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
}
.reg-captcha-row .reg-input {
    flex: 1;
}
.reg-captcha-img {
    height: 48px;
    width: 130px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    object-fit: cover;
    background: #fff;
}
.reg-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

@media (max-width: 520px) {
    .reg-card { padding: 26px 18px 22px; }
    .reg-step .label { display: none; }
    .reg-step-line { width: 40px; margin: 0 8px; }
}

/* ===== 下载页（深色） ===== */
.dl-page { background: var(--dark); color: var(--white); }
.dl-container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.dl-hero { padding: 80px 0 70px; background: radial-gradient(circle at 80% 20%, rgba(38,254,220,.14), transparent 55%), linear-gradient(180deg, var(--dark-2), var(--dark)); }
.dl-hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: center; }
.dl-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 2px; padding: 6px 16px; border-radius: 20px; background: rgba(38,254,220,.12); color: var(--gold-light); margin-bottom: 18px; }
.dl-hero-text h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 700; margin: 0 0 14px; color: var(--white); }
.dl-hero-text p { font-size: 16px; color: rgba(255,255,255,.7); line-height: 1.8; margin: 0 0 32px; }
.dl-btns { display: flex; flex-direction: column; gap: 14px; max-width: 380px; }
.dl-btn { display: flex; align-items: center; gap: 16px; padding: 16px 22px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); color: var(--white); text-decoration: none; transition: all .25s; }
.dl-btn:hover { border-color: var(--gold-light); background: rgba(38,254,220,.1); transform: translateY(-3px); color: var(--white); }
.dl-btn i { font-size: 34px; color: var(--gold-light); }
.dl-btn strong { display: block; font-size: 16px; }
.dl-btn em { display: block; font-style: normal; font-size: 12px; color: rgba(255,255,255,.55); margin-top: 2px; }
.dl-btn.disabled { opacity: .5; cursor: not-allowed; }
.dl-btn.disabled:hover { transform: none; border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.06); }
.dl-phone-wrap { display: flex; justify-content: center; }
.dl-phone { width: 260px; aspect-ratio: 9 / 19; border-radius: 38px; border: 8px solid #0b0f17; background: var(--dark-2); box-shadow: 0 0 0 2px rgba(255,255,255,.12), 0 30px 80px rgba(0,0,0,.6), 0 0 60px rgba(38,254,220,.15); overflow: hidden; }
.dl-phone img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dl-phone-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: rgba(255,255,255,.4); font-weight: 700; }
.dl-phone-empty i { font-size: 52px; color: var(--gold-light); opacity: .6; }
.dl-section { padding: 70px 0; }
.dl-title { text-align: center; margin-bottom: 48px; }
.dl-title h2 { font-size: clamp(24px, 4vw, 34px); margin: 0 0 10px; color: var(--white); }
.dl-title p { color: rgba(255,255,255,.6); margin: 0; }
.dl-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; position: relative; }
.dl-step { text-align: center; padding: 26px 16px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.dl-step-icon { position: relative; width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 50%; background: rgba(38,254,220,.12); color: var(--gold-light); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.dl-step-icon b { position: absolute; top: -4px; right: -4px; width: 22px; height: 22px; border-radius: 50%; background: var(--gold-light); color: var(--dark); font-size: 12px; display: flex; align-items: center; justify-content: center; }
.dl-step h4 { font-size: 16px; margin: 0 0 8px; color: var(--white); }
.dl-step p { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,.6); margin: 0; }
.dl-section-tip { padding-top: 0; padding-bottom: 90px; }
.dl-tip { display: flex; gap: 22px; align-items: flex-start; padding: 28px 30px; border-radius: 20px; background: linear-gradient(135deg, rgba(38,254,220,.1), rgba(255,255,255,.03)); border: 1px solid rgba(38,254,220,.3); }
.dl-tip-icon { flex-shrink: 0; width: 52px; height: 52px; border-radius: 14px; background: rgba(38,254,220,.15); color: var(--gold-light); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.dl-tip h3 { margin: 0 0 8px; font-size: 18px; color: var(--white); }
.dl-tip p { margin: 0; font-size: 14px; line-height: 1.9; color: rgba(255,255,255,.72); }
@media (max-width: 860px) {
    .dl-hero { padding: 50px 0; }
    .dl-hero-grid { grid-template-columns: 1fr; text-align: center; }
    .dl-btns { margin: 0 auto; text-align: left; }
    .dl-steps { grid-template-columns: 1fr 1fr; }
    .dl-tip { flex-direction: column; }
}
@media (max-width: 480px) {
    .dl-steps { grid-template-columns: 1fr; }
    .dl-phone { width: 220px; }
}
