* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #ffb8cc;
    overflow-x: hidden;
}

/* 默认隐藏页面，避免关闭接号时出现闪烁 */
body {
    visibility: hidden;
}
body.page-ready {
    visibility: visible;
}

.page-container {
    position: relative;
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
}

/* 顶部动态抢单提示跑马灯 */
.marquee-bar {
    position: absolute;
    top: 28px;
    left: 0;
    width: 100%;
    z-index: 15;
    overflow: hidden;
    pointer-events: none;
}

.marquee-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: marqueeScroll 20s linear infinite;
}

.marquee-item {
    flex-shrink: 0;
    padding: 6px 16px;
    background: rgba(0, 0, 0, 0.65);
    border-radius: 20px;
    color: #fff;
    font-size: 13px;
    white-space: nowrap;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* 主视觉图 完整不裁切 */
.main-banner {
    width: 100%;
    display: block;
    height: auto;
}

/* 登录卡片 */
.login-card {
    position: absolute;
    left: 50%;
    top: 48%;
    transform: translate(-50%, -50%);
    width: 82%;
    background: rgba(255, 255, 255, 0.93);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 24px 20px 20px;
    box-shadow: 0 8px 30px rgba(255, 105, 180, 0.25);
    z-index: 10;
}

/* 顶部动图提示：第1步输入手机号 */
.step-tip {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 25;
    animation: floatTip 2s ease-in-out infinite, breathe 2s ease-in-out infinite;
}

.step-tip img {
    width: 260px;
    height: auto;
    display: block;
}

@keyframes floatTip {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes breathe {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.85;
    }
}

/* 表单通用样式 */
.form-item {
    background: #fff0f5;
    border-radius: 24px;
    padding: 0 18px;
    margin-bottom: 14px;
    height: 46px;
    display: flex;
    align-items: center;
    border: 1px solid #ffd6e7;
}

.input-box {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    color: #333;
}

.input-box::placeholder {
    color: #f0a5c5;
}

.code-item {
    justify-content: space-between;
}

.code-input {
    flex: 1;
}

.send-code-btn {
    border: none;
    background: transparent;
    color: #ff3b8c;
    font-size: 13px;
    padding-left: 12px;
    border-left: 1px solid #ffd6e7;
    cursor: pointer;
    white-space: nowrap;
}

.send-code-btn:disabled {
    color: #f0a5c5;
    cursor: not-allowed;
}

/* 立即领取 动态按钮 */
.submit-btn {
    width: 100%;
    margin-top: 6px;
    cursor: pointer;
    transition: transform 0.1s ease;
    line-height: 0;
    position: relative;
    animation: pulseBtn 2s ease-in-out infinite;
    border-radius: 999px;
    overflow: hidden;
}

.submit-btn img {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
}

/* 按钮呼吸放大效果 */
@keyframes pulseBtn {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(255, 59, 140, 0);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 0 12px rgba(255, 59, 140, 0.5);
    }
}

/* 按钮高光扫过效果 */
.submit-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: shineBtn 3s ease-in-out infinite;
}

@keyframes shineBtn {
    0% {
        left: -100%;
    }
    50% {
        left: -100%;
    }
    70% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

.submit-btn:active {
    transform: scale(0.98);
}

.submit-btn.disabled {
    animation: none;
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.protocol-tip {
    font-size: 11px;
    color: #999;
    text-align: center;
    margin-top: 12px;
}

.protocol-tip a {
    color: #ff3b8c;
    text-decoration: none;
    margin: 0 2px;
}

/* 底部规则图 */
.rule-img {
    width: 100%;
    display: block;
    height: auto;
}

/* 普通轻提示 */
.toast {
    position: fixed;
    z-index: 9999;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.75);
    border-radius: 8px;
    padding: 10px 20px;
    color: #fff;
    font-size: 14px;
    display: none;
    max-width: 80%;
    text-align: center;
    pointer-events: none;
}

/* ========== 优化后：结果弹窗（更明显+加载动画） ========== */
.result-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    pointer-events: none;
}

.modal-content {
    background: rgba(255, 105, 180, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 20px;
    padding: 30px 48px;
    min-width: 260px;
    box-shadow: 0 8px 30px rgba(255, 46, 122, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: modalPop 0.3s ease-out;
    text-align: center;
}

.modal-text {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    white-space: nowrap;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    margin-top: 12px;
}

/* 转圈加载动画 */
.modal-loading {
    width: 36px;
    height: 36px;
    margin: 0 auto;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

@keyframes modalPop {
    0% {
        opacity: 0;
        transform: scale(0.92) translateY(10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}