/* ===== 碰一碰落地页 · 移动优先 ===== */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
    margin: 0;
    padding: 0;
    background: #f4f5f7;
    color: #1b1e23;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
    -webkit-text-size-adjust: 100%;
}

.page {
    max-width: 560px;
    margin: 0 auto;
    padding: 20px 16px calc(32px + env(safe-area-inset-bottom));
    padding-left: calc(16px + env(safe-area-inset-left));
    padding-right: calc(16px + env(safe-area-inset-right));
}

.page-center {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- 门店头 ---------- */
.shop {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.shop-logo {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--brand, #333);
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-meta h1 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.shop-meta p {
    margin: 3px 0 0;
    font-size: 12px;
    color: #8a919c;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

/* ---------- 文案卡片 ---------- */
.card {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 1px 2px rgba(20, 24, 32, .04), 0 8px 24px rgba(20, 24, 32, .05);
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.card-title {
    font-size: 13px;
    font-weight: 600;
    color: #5b6270;
}

.state {
    font-size: 12px;
    padding: 3px 9px;
    border-radius: 999px;
    white-space: nowrap;
    flex: 0 0 auto;
}

.state-wait { background: #f0f2f5; color: #8a919c; }
.state-ok   { background: #e8f7ee; color: #0f9d58; }
.state-warn { background: #fff4e5; color: #d97706; }

.review {
    display: block;
    width: 100%;
    min-height: 132px;
    padding: 14px;
    border: 1px solid #ebedf0;
    border-radius: 12px;
    background: #fafbfc;
    color: #23262d;
    font-size: 15px;
    line-height: 1.75;
    font-family: inherit;
    resize: none;
    outline: none;
    overflow-y: hidden;
    overflow-wrap: anywhere;
}

.review:focus { border-color: #d7dae0; background: #fff; }

.card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
}

.hint { font-size: 12px; color: #9aa1ac; }

.text-btn {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0 10px;
    border: 0;
    background: none;
    color: var(--brand, #333);
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
}

.text-btn:active { opacity: .55; }

/* ---------- 主按钮 ---------- */
.btn-main {
    display: block;
    width: 100%;
    min-height: 52px;
    margin: 18px 0 0;
    padding: 14px 20px;
    border: 0;
    border-radius: 14px;
    background: var(--brand, #333);
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    font-family: inherit;
    letter-spacing: .3px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(20, 24, 32, .16);
    transition: transform .12s ease;
}

.btn-main:active { transform: scale(.985); }

.tip {
    margin: 10px 2px 0;
    font-size: 12px;
    line-height: 1.6;
    color: #8a919c;
    text-align: center;
}

/* ---------- 步骤 ---------- */
.steps {
    margin-top: 20px;
    background: #fff;
    border-radius: 16px;
    padding: 16px 16px 14px;
}

.steps-title {
    font-size: 13px;
    font-weight: 600;
    color: #5b6270;
    margin-bottom: 8px;
}

.steps ol {
    margin: 0;
    padding-left: 20px;
    color: #444a55;
    font-size: 13.5px;
    line-height: 2;
}

.steps b { color: #1b1e23; }

/* ---------- 兜底 ---------- */
.fallback {
    margin-top: 14px;
    padding: 14px;
    border: 1px dashed #dfe3e8;
    border-radius: 14px;
    background: #fbfcfd;
}

.fallback p { margin: 0 0 10px; font-size: 13px; color: #6b7280; }

.ghost-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-top: 8px;
    padding: 0 14px;
    border: 1px solid #e3e6ea;
    border-radius: 12px;
    background: #fff;
    color: #33383f;
    font-size: 14px;
    text-decoration: none;
}

.ghost-btn:active { background: #f4f5f7; }

.warn {
    margin: 14px 2px 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff8ea;
    color: #9a6b00;
    font-size: 12px;
    line-height: 1.6;
}

/* ---------- 页脚 ---------- */
.foot {
    margin-top: 24px;
    text-align: center;
    font-size: 12px;
    color: #a6acb6;
}

.foot p { margin: 0; }

/* ---------- 微信遮罩 ---------- */
.wx-mask {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 99;
    background: rgba(16, 18, 22, .74);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 84px 20px 20px;
    overflow-y: auto;
}

.wx-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 18px;
    padding: 24px 20px 20px;
    text-align: center;
}

.wx-arrow {
    position: absolute;
    top: 14px;
    right: 16px;
    text-align: center;
    color: #fff;
    font-size: 30px;
    line-height: 1.1;
    text-shadow: 0 2px 6px rgba(0, 0, 0, .4);
}

.wx-arrow span {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    opacity: .85;
    letter-spacing: .5px;
}

.wx-card h2 {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 600;
}

.wx-card p {
    margin: 0 0 16px;
    font-size: 13.5px;
    line-height: 1.75;
    color: #5b6270;
}

.wx-card b { color: #1b1e23; }

/* ---------- 错误页 ---------- */
.empty {
    max-width: 380px;
    text-align: center;
    padding: 24px;
}

.empty-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #fff2f0;
    color: #e04a3a;
    font-size: 26px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty h1 {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.6;
}

.empty-code {
    margin: 0 0 8px;
    font-size: 12px;
    color: #a6acb6;
    font-family: ui-monospace, Menlo, Consolas, monospace;
}

.empty-help {
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
    color: #8a919c;
}
