/* 扫码落地页系统 H5 样式 — 手机端优先 */
* { box-sizing: border-box; }
html, body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    color: #333;
    -webkit-text-size-adjust: 100%;
}
body { min-height: 100vh; }

/* 居中容器（桌面也居中模拟手机） */
.scan-wrap {
    max-width: 750px;
    margin: 0 auto;
    padding: 20px 16px 40px;
    min-height: 100vh;
}

/* 首页 */
.scan-logo {
    text-align: center;
    margin: 10px 0 16px;
}
.scan-logo img {
    max-width: 60%;
    max-height: 80px;
    display: inline-block;
}
.scan-title {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    margin: 12px 0 8px;
    word-break: break-word;
}
.scan-intro {
    font-size: 13px;
    color: #666;
    text-align: center;
    margin: 0 0 18px;
    padding: 0 10px;
}

.scan-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.scan-nav-item {
    margin: 0 0 10px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,.06);
}
.scan-nav-item a {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    color: #fff;
    text-decoration: none;
    min-height: 44px;
}
.nav-icon {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    margin-right: 12px;
    overflow: hidden;
    border-radius: 4px;
}
.nav-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.nav-label {
    flex: 1;
    font-size: 16px;
    font-weight: 500;
    word-break: break-word;
}
.nav-arrow {
    flex: 0 0 16px;
    text-align: right;
    font-size: 22px;
    opacity: .8;
}

/* 内页 */
.scan-banner {
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    margin-bottom: 18px;
}
.banner-track {
    display: flex;
    transition: transform .5s ease;
}
.banner-slide {
    min-width: 100%;
    height: 180px;
}
.banner-slide a, .banner-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.banner-dots {
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    text-align: center;
    pointer-events: none;
}
.banner-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    margin: 0 3px;
}
.banner-dot.active {
    background: #fff;
}

.scan-buttons { margin-top: 12px; }
.scan-btn {
    display: block;
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 14px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    min-height: 44px;
    line-height: 1.4;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.scan-btn i { margin-right: 6px; }

/* 表单 */
.form-field {
    margin-bottom: 18px;
    background: #fff;
    padding: 12px 14px;
    border-radius: 6px;
}
.field-label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 6px;
    font-weight: 500;
}
.field-input {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    outline: none;
    -webkit-appearance: none;
}
.field-input:focus { border-color: #5d4e37; }
textarea.field-input { resize: vertical; min-height: 60px; }
.field-options { padding-top: 4px; }
.opt-inline {
    display: inline-block;
    margin: 6px 14px 6px 0;
    font-size: 14px;
}
.field-help {
    font-size: 12px;
    color: #999;
    margin: 6px 0 0;
}
.field-file { padding-top: 4px; }
.field-file-input {
    font-size: 13px;
    width: 100%;
}
.field-file-tip {
    font-size: 12px;
    color: #999;
    margin: 6px 0 0;
}

.form-captcha { margin: 18px 0; background:#fff; padding:12px 14px; border-radius:6px; }
.captcha-row { display: flex; gap: 10px; align-items: center; }
.captcha-input { flex: 1; }
#captchaImg {
    height: 42px;
    width: 110px;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid #ddd;
}

.scan-submit {
    display: block;
    width: 100%;
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 20px;
    cursor: pointer;
}

/* 弹窗 */
.scan-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.scan-modal-box {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    min-width: 260px;
    max-width: 80%;
}
.scan-modal-box p {
    margin: 0 0 16px;
    font-size: 15px;
    color: #333;
    white-space: pre-line;
}
.scan-modal-box button {
    background: #5d4e37;
    color: #fff;
    border: none;
    padding: 8px 24px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}
