/* =========================================================
   扫码挪车落地页样式
   目标：移动端优先、无框架依赖、首屏快
   ========================================================= */

:root {
    --c-primary: #0f6fff;
    --c-primary-dark: #0a54c8;
    --c-text: #1a1d24;
    --c-text-2: #5b6270;
    --c-text-3: #8d95a3;
    --c-bg: #f4f6fa;
    --c-card: #ffffff;
    --c-line: #e8ecf3;
    --c-danger: #e54545;
    --c-success: #12a75a;
    --radius: 14px;
    --shadow: 0 2px 12px rgba(20, 40, 80, 0.06);
}

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

html, body {
    margin: 0;
    padding: 0;
    background: var(--c-bg);
    color: var(--c-text);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue",
                 "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.page { min-height: 100vh; padding-bottom: env(safe-area-inset-bottom); }

/* ---------------- 顶部插画区 ---------------- */
.hero {
    position: relative;
    padding: 28px 20px 64px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0f6fff 0%, #2f8bff 55%, #55a8ff 100%);
    border-radius: 0 0 26px 26px;
}

.hero-bg::after {
    content: "";
    position: absolute;
    right: -50px;
    top: -40px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.hero-inner { position: relative; color: #fff; }

.badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(4px);
}

.hero h1 {
    margin: 12px 0 4px;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.hero-sub { margin: 0; font-size: 13px; opacity: 0.88; }

/* ---------------- 主体 ---------------- */
.main {
    position: relative;
    margin-top: -46px;
    padding: 0 14px 30px;
}

.card {
    background: var(--c-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px;
    margin-bottom: 14px;
}

.card-title {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--c-text);
}

/* ---------------- 车牌卡 ---------------- */
.vehicle-card { text-align: center; padding-top: 20px; }

.plate {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 168px;
    padding: 8px 22px 6px;
    border: 2px solid var(--c-primary);
    border-radius: 8px;
    background: linear-gradient(180deg, #f7fbff, #eaf3ff);
}

.plate-no {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #0b3d91;
    font-family: "DIN Alternate", "Helvetica Neue", monospace;
}

.plate-tip { font-size: 11px; color: var(--c-text-3); letter-spacing: 1px; }

.vehicle-meta {
    display: flex;
    justify-content: center;
    gap: 26px;
    margin: 14px 0 0;
    padding: 0;
}

.vehicle-meta > div { text-align: center; }

.vehicle-meta dt { font-size: 12px; color: var(--c-text-3); }

.vehicle-meta dd { margin: 2px 0 0; font-size: 14px; color: var(--c-text-2); }

/* ---------------- 原因选择 ---------------- */
.reasons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.reason {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 4px;
    font-size: 12px;
    color: var(--c-text-2);
    background: #f7f9fc;
    border: 1.5px solid transparent;
    border-radius: 10px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s ease;
}

.reason-icon { font-size: 19px; line-height: 1; }

.reason.active {
    color: var(--c-primary);
    background: #eef5ff;
    border-color: var(--c-primary);
    font-weight: 600;
}

/* ---------------- 表单 ---------------- */
.field { margin-top: 14px; }

.field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--c-text-2);
}

.field input,
.field textarea {
    width: 100%;
    padding: 10px 12px;
    font-size: 15px;
    font-family: inherit;
    color: var(--c-text);
    background: #f7f9fc;
    border: 1.5px solid transparent;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.15s ease, background 0.15s ease;
    resize: none;
}

.field input:focus,
.field textarea:focus {
    background: #fff;
    border-color: var(--c-primary);
}

.field-hint { margin: 6px 0 0; font-size: 12px; color: var(--c-text-3); }

/* ---------------- 通知方式 ---------------- */
.channels { display: grid; gap: 10px; }

.channel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 12px 14px;
    text-align: left;
    font-family: inherit;
    background: #f7f9fc;
    border: 1.5px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.channel-name { font-size: 14px; font-weight: 600; color: var(--c-text); }

.channel-desc { font-size: 12px; color: var(--c-text-3); }

.channel.active {
    background: #eef5ff;
    border-color: var(--c-primary);
}

.channel.active .channel-name { color: var(--c-primary); }

/* ---------------- 按钮 ---------------- */
.actions { margin-top: 6px; }

.btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: var(--c-primary);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.1s ease;
}

.btn:active { transform: scale(0.985); opacity: 0.9; }

.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-primary {
    background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
    box-shadow: 0 6px 18px rgba(15, 111, 255, 0.28);
}

.privacy-note {
    display: flex;
    gap: 6px;
    margin: 12px 4px 0;
    font-size: 12px;
    line-height: 1.55;
    color: var(--c-text-3);
}

.lock { flex: none; }

/* ---------------- 异常态 ---------------- */
.empty-card { text-align: center; padding: 34px 20px; }

.empty-icon { font-size: 42px; line-height: 1; }

.empty-card h2 { margin: 14px 0 8px; font-size: 17px; }

.empty-card p { margin: 0; font-size: 13px; color: var(--c-text-3); }

/* ---------------- 页脚 ---------------- */
.foot { margin-top: 22px; text-align: center; }

.foot p { margin: 2px 0; font-size: 12px; color: var(--c-text-3); }

.foot-dim { opacity: 0.7; font-size: 11px; }

/* ---------------- 轻提示 ---------------- */
.toast {
    position: fixed;
    left: 50%;
    bottom: 58px;
    z-index: 99;
    max-width: 78vw;
    padding: 10px 18px;
    font-size: 14px;
    color: #fff;
    background: rgba(26, 29, 36, 0.92);
    border-radius: 999px;
    transform: translate(-50%, 12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

.toast.error { background: rgba(229, 69, 69, 0.95); }

.toast.success { background: rgba(18, 167, 90, 0.95); }

/* ---------------- 结果弹层 ---------------- */
.result-mask {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(16, 22, 34, 0.5);
    animation: fade-in 0.2s ease;
}

.result-box {
    width: 100%;
    max-width: 320px;
    padding: 26px 22px 20px;
    text-align: center;
    background: #fff;
    border-radius: 18px;
    animation: pop-in 0.24s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.result-icon { font-size: 40px; line-height: 1; }

.result-title { margin: 12px 0 6px; font-size: 17px; font-weight: 600; }

.result-desc { margin: 0 0 18px; font-size: 13px; color: var(--c-text-3); line-height: 1.6; }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

@keyframes pop-in {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1); }
}
