/* ==========================================================================
   IEE杭州全域电商生态博览会 渠道对接会报名系统 - 前台样式
   主题色：绿色 #1A9E4B
   ========================================================================== */

:root {
    --green: #1A9E4B;
    --green-dark: #14803D;
    --green-light: #2FBF6B;
    --green-pale: #F2FAF5;
    --text: #26302B;
    --text-sub: #6B7A72;
    --border: #E4EAE6;
    --bg: #F4F7F5;
    --danger: #E14B4B;
    --radius: 12px;
    --shadow: 0 2px 14px rgba(26, 158, 75, .07);
    --shadow-lg: 0 10px 34px rgba(20, 60, 38, .12);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--green);
    text-decoration: none;
}

img {
    max-width: 100%;
}

/* ------------------------------ 顶部横幅 ------------------------------ */
.site-header {
    background: linear-gradient(135deg, #14803D 0%, #1A9E4B 45%, #2FBF6B 100%);
    color: #fff;
    padding: 34px 20px 30px;
    position: relative;
    overflow: hidden;
}

.site-header::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
}

.site-header::before {
    content: "";
    position: absolute;
    left: -50px;
    bottom: -120px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
}

.site-header-inner {
    max-width: 980px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.site-badge {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 2px;
    padding: 3px 12px;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 20px;
    margin-bottom: 12px;
}

.site-title {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: .5px;
}

.site-subtitle {
    margin: 8px 0 0;
    font-size: 14px;
    opacity: .92;
}

/* ------------------------------ 布局 ------------------------------ */
.page {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 20px 70px;
}

.page-narrow {
    max-width: 720px;
}

.card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 26px 28px;
    margin-top: 22px;
}

.card-title {
    display: flex;
    align-items: center;
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.card-title .idx {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-right: 10px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    flex: none;
}

.card-title .tip {
    margin-left: auto;
    font-size: 12px;
    font-weight: 400;
    color: var(--text-sub);
}

/* ------------------------------ 表单 ------------------------------ */
.form-row {
    margin-bottom: 18px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 0 20px;
}

.form-label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 7px;
    color: #38463E;
}

.form-label .req {
    color: var(--danger);
    margin-left: 2px;
}

.form-label .hint {
    font-weight: 400;
    color: var(--text-sub);
    font-size: 12px;
    margin-left: 6px;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
    transition: border-color .18s, box-shadow .18s;
}

.form-control:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(26, 158, 75, .12);
}

textarea.form-control {
    resize: vertical;
    min-height: 92px;
    line-height: 1.7;
}

.form-control::placeholder {
    color: #A9B5AE;
}

.form-control[readonly] {
    background: #F7F9F8;
    color: var(--text-sub);
}

.input-group {
    display: flex;
    gap: 10px;
}

.input-group .form-control {
    flex: 1;
    min-width: 0;
}

.input-group .btn {
    flex: none;
}

/* ------------------------------ 按钮 ------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-family: inherit;
    font-weight: 600;
    line-height: 1.4;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: all .18s;
    background: #fff;
    color: var(--text);
}

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

.btn-primary {
    background: var(--green);
    color: #fff;
}

.btn-primary:hover:not(:disabled) {
    background: var(--green-dark);
}

.btn-outline {
    border-color: var(--border);
    color: var(--text);
}

.btn-outline:hover:not(:disabled) {
    border-color: var(--green);
    color: var(--green);
}

.btn-plain {
    background: var(--green-pale);
    color: var(--green-dark);
    border-color: #D5EEDF;
}

.btn-plain:hover:not(:disabled) {
    background: #E4F6EC;
}

.btn-lg {
    padding: 14px 26px;
    font-size: 16px;
    border-radius: 10px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12.5px;
    border-radius: 6px;
}

.btn-block {
    width: 100%;
}

.btn-danger {
    background: #fff;
    color: var(--danger);
    border-color: #F5D3D3;
}

.btn-danger:hover:not(:disabled) {
    background: #FDF2F2;
}

/* ------------------------------ LOGO 上传 ------------------------------ */
.logo-upload {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.logo-drop {
    flex: none;
    width: 150px;
    height: 150px;
    border: 1.5px dashed #C9D9CE;
    border-radius: var(--radius);
    background: #FAFCFB;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    color: var(--text-sub);
    font-size: 12.5px;
    padding: 10px;
    transition: all .18s;
    position: relative;
    overflow: hidden;
}

.logo-drop:hover,
.logo-drop.is-drag {
    border-color: var(--green);
    background: var(--green-pale);
    color: var(--green-dark);
}

.logo-drop.is-done {
    border-style: solid;
    border-color: var(--green);
    padding: 0;
}

.logo-drop img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.logo-drop .plus {
    font-size: 26px;
    line-height: 1;
    margin-bottom: 6px;
    color: #9FC7B0;
}

.logo-drop .file-preview {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    word-break: break-all;
    font-size: 12px;
}

.logo-info {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    color: var(--text-sub);
}

.logo-info .file-name {
    font-weight: 600;
    color: var(--text);
    word-break: break-all;
}

.progress {
    height: 7px;
    border-radius: 6px;
    background: #EDF2EF;
    overflow: hidden;
    margin-top: 10px;
}

.progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--green), var(--green-light));
    border-radius: 6px;
    transition: width .2s;
}

/* ------------------------------ 参会人 ------------------------------ */
.count-picker {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.count-btn {
    width: 52px;
    height: 44px;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-sub);
    cursor: pointer;
    transition: all .16s;
}

.count-btn:hover {
    border-color: var(--green);
    color: var(--green);
}

.count-btn.is-active {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
    box-shadow: 0 3px 10px rgba(26, 158, 75, .28);
}

.attendee-list {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.attendee-item {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 18px 4px;
    background: #FCFEFD;
}

.attendee-head {
    display: flex;
    align-items: center;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: 12px;
}

.attendee-head .no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--green-pale);
    color: var(--green-dark);
    font-size: 12px;
    margin-right: 8px;
}

/* ------------------------------ 单选卡片 ------------------------------ */
.radio-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.radio-card {
    flex: 0 0 auto;
    min-width: 140px;
    position: relative;
}

.radio-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.radio-card span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text);
    background: #fff;
    transition: all .16s;
}

.radio-card input:checked+span {
    border-color: var(--green);
    background: var(--green-pale);
    color: var(--green-dark);
    font-weight: 600;
    box-shadow: 0 0 0 3px rgba(26, 158, 75, .1);
}

.radio-card span::before {
    content: "";
    width: 15px;
    height: 15px;
    border: 1.5px solid #C4D2C9;
    border-radius: 50%;
    flex: none;
}

.radio-card input:checked+span::before {
    border: 4.5px solid var(--green);
}

/* ------------------------------ 提交区 ------------------------------ */
.submit-area {
    margin-top: 26px;
    text-align: center;
}

.agree-row {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: var(--text-sub);
    margin-bottom: 18px;
    text-align: left;
    cursor: pointer;
}

.agree-row input {
    margin-top: 4px;
    accent-color: var(--green);
}

/* ------------------------------ 提示条 ------------------------------ */
.alert {
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.alert-info {
    background: var(--green-pale);
    color: var(--green-dark);
    border: 1px solid #D5EEDF;
}

.alert-warn {
    background: #FFF9EC;
    color: #9A6A0B;
    border: 1px solid #F7E3B8;
}

.field-error {
    color: var(--danger);
    font-size: 12.5px;
    margin-top: 5px;
    display: none;
}

.form-row.has-error .form-control {
    border-color: var(--danger);
}

.form-row.has-error .field-error {
    display: block;
}

/* -------------------- 短信验证码输入状态反馈 -------------------- */
#smsCode.is-ok {
    border-color: var(--green);
    background: var(--green-pale);
}

#smsCode.is-error {
    border-color: var(--danger);
    background: #FFF7F7;
}

#smsCode.is-loading {
    border-color: #D9A400;
    background: #FFFCF0;
}

#smsCode:disabled {
    color: var(--text-sub);
    cursor: not-allowed;
}

.verify-msg {
    font-size: 13px;
}

.verify-msg.is-ok {
    color: var(--green);
    font-weight: 600;
}

.verify-msg.is-error {
    color: var(--danger);
    font-weight: 600;
}

.verify-msg.is-loading {
    color: #B98600;
}

.verify-msg.is-muted {
    color: var(--text-sub);
}

.verify-timer {
    margin-left: 8px;
    font-size: 12px;
    color: var(--text-sub);
}

/* ------------------------------ 成功页 ------------------------------ */
.success-hero {
    text-align: center;
    padding: 44px 20px 8px;
}

.success-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green), var(--green-light));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 26px rgba(26, 158, 75, .3);
}

.success-icon svg {
    width: 40px;
    height: 40px;
}

.success-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--green-dark);
}

.success-desc {
    color: var(--text-sub);
    font-size: 14px;
    margin: 0;
}

.code-box {
    text-align: center;
    background: var(--green-pale);
    border: 1px dashed #B9E0C8;
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 22px;
}

.code-box .label {
    font-size: 13px;
    color: var(--text-sub);
}

.code-box .code {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--green-dark);
    margin: 6px 0 10px;
    font-family: "SFMono-Regular", Consolas, monospace;
}

.qr-wrap {
    text-align: center;
}

.qr-wrap img {
    width: 240px;
    height: 240px;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.qr-actions {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ------------------------------ 现场入场次数 ------------------------------ */
.checkin-card {
    border-top: 4px solid var(--green);
}

.checkin-panel {
    text-align: center;
    background: linear-gradient(150deg, #F2FAF5 0%, #FFFFFF 72%);
    border: 1px solid #D5EEDF;
    border-radius: var(--radius);
    padding: 20px 16px 16px;
}

.checkin-num-wrap {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    line-height: 1;
}

.checkin-num {
    font-size: 54px;
    font-weight: 800;
    color: var(--green-dark);
    font-family: "SFMono-Regular", Consolas, monospace;
}

.checkin-unit {
    font-size: 17px;
    font-weight: 600;
    color: var(--green);
}

.checkin-label {
    margin-top: 8px;
    font-size: 13.5px;
    color: var(--text-sub);
}

.checkin-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 26px;
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-sub);
}

.checkin-meta b {
    color: var(--text);
    font-weight: 600;
}

.checkin-note {
    margin-top: 14px;
    text-align: center;
    font-size: 12.5px;
    color: #9AA9A1;
}

@media (max-width: 640px) {
    .checkin-num {
        font-size: 42px;
    }
}

.mail-panel {
    margin-top: 6px;
}

.mail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 13.5px;
}

.mail-item:last-child {
    margin-bottom: 0;
}

.mail-item .mail-to {
    flex: 1;
    min-width: 0;
    word-break: break-all;
}

.mail-state {
    flex: none;
    font-size: 12.5px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
}

.mail-state.pending {
    background: #FFF6E5;
    color: #A9760D;
}

.mail-state.sent {
    background: var(--green-pale);
    color: var(--green-dark);
}

.mail-state.failed {
    background: #FDEEEE;
    color: var(--danger);
}

.schedule {
    white-space: pre-line;
    background: var(--green-pale);
    border-left: 4px solid var(--green);
    border-radius: 8px;
    padding: 16px 18px;
    font-size: 13.5px;
    color: #3B4A42;
    line-height: 1.9;
}

.summary-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.summary-table th,
.summary-table td {
    border: 1px solid var(--border);
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

.summary-table th {
    background: #FAFCFB;
    color: var(--text-sub);
    font-weight: 600;
    white-space: nowrap;
    width: 130px;
}

.footer {
    text-align: center;
    color: #9AA9A1;
    font-size: 12.5px;
    padding: 30px 20px 40px;
}

/* ------------------------------ 提示 / 遮罩 ------------------------------ */
.app-toast-box {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    pointer-events: none;
}

.app-toast {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 180px;
    max-width: 86vw;
    padding: 11px 18px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(20, 40, 30, .16);
    font-size: 13.5px;
    color: var(--text);
    animation: toastIn .22s ease;
}

.app-toast-out {
    opacity: 0;
    transform: translateY(-8px);
    transition: all .24s;
}

.app-toast-icon {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex: none;
    background: #9AA9A1;
}

.app-toast-success .app-toast-icon {
    background: var(--green);
}

.app-toast-error .app-toast-icon {
    background: var(--danger);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.app-loading {
    position: fixed;
    inset: 0;
    background: rgba(22, 40, 30, .34);
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
}

.app-loading.is-visible {
    display: flex;
}

.app-loading-box {
    background: #fff;
    border-radius: 10px;
    padding: 22px 30px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.app-spinner {
    width: 26px;
    height: 26px;
    margin: 0 auto 12px;
    border: 3px solid #E3F1E8;
    border-top-color: var(--green);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.app-loading-text {
    font-size: 13px;
    color: var(--text-sub);
}

/* ------------------------------ 顶部幻灯片 ------------------------------ */
.hero-slider {
    max-width: 980px;
    margin: 22px auto 0;
    padding: 0 20px;
}

.hero-slider[hidden] {
    display: none;
}

.slider-viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #EEF4F0;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    /* 高度由脚本按当前图片比例计算，保证图片完整显示且不变形 */
    transition: height .35s ease;
    touch-action: pan-y;
}

.slider-track {
    display: flex;
    height: 100%;
    will-change: transform;
}

.slider-track.is-animating {
    transition: transform .45s cubic-bezier(.25, .8, .35, 1);
}

.slide {
    flex: 0 0 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #EEF4F0;
}

.slide img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    -webkit-user-drag: none;
    user-select: none;
}

/* 单张图片加载中的占位骨架 */
.slide.is-loading {
    position: relative;
}

.slide.is-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 28px;
    height: 28px;
    margin: -14px 0 0 -14px;
    border: 3px solid #DCEBE2;
    border-top-color: var(--green);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

/* 图片加载失败时的占位提示 */
.slide-img-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #93A79B;
    font-size: 13px;
}

.slide-img-error svg {
    width: 46px;
    height: 46px;
    opacity: .55;
}

/* 整块加载指示器 */
.slider-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #EEF4F0;
    color: var(--text-sub);
    font-size: 13px;
    z-index: 4;
}

.slider-loader.is-hidden {
    display: none;
}

.slider-loader .spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #DCEBE2;
    border-top-color: var(--green);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

/* 左右切换按钮 */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, .34);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, opacity .2s;
}

.slider-arrow:hover {
    background: rgba(26, 158, 75, .88);
}

.slider-arrow:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.slider-arrow[disabled] {
    opacity: .35;
    cursor: default;
}

.slider-prev {
    left: 12px;
}

.slider-next {
    right: 12px;
}

/* 指示器 / 控制条 */
.slider-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 4px 0;
    flex-wrap: wrap;
}

.slider-dots {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.slider-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #CBDDD2;
    cursor: pointer;
    transition: background .2s, width .2s, border-radius .2s;
}

.slider-dot:hover {
    background: #9CC6AD;
}

.slider-dot.is-active {
    width: 22px;
    border-radius: 5px;
    background: var(--green);
}

.slider-dot:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

.slider-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12.5px;
    color: var(--text-sub);
}

.slider-counter {
    font-variant-numeric: tabular-nums;
}

.slider-toggle {
    padding: 4px 12px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: #fff;
    color: var(--text-sub);
    font-size: 12.5px;
    cursor: pointer;
    transition: color .2s, border-color .2s;
}

.slider-toggle:hover {
    color: var(--green);
    border-color: var(--green);
}

.slider-toggle:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

/* 单张图片时隐藏切换控件（作者样式需显式覆盖 display） */
.slider-arrow[hidden],
.slider-toggle[hidden] {
    display: none;
}

/* ------------------------------ 响应式 ------------------------------ */
@media (max-width: 720px) {
    .site-header {
        padding: 26px 16px 24px;
    }

    .site-title {
        font-size: 20px;
    }

    .page {
        padding: 0 14px 50px;
    }

    .card {
        padding: 20px 16px;
        border-radius: 10px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .logo-upload {
        flex-direction: column;
        align-items: center;
    }

    .logo-drop {
        width: 100%;
        height: 130px;
    }

    .logo-info {
        width: 100%;
        text-align: center;
    }

    .code-box .code {
        font-size: 22px;
        letter-spacing: 2px;
    }

    .qr-wrap img {
        width: 200px;
        height: 200px;
    }

    .hero-slider {
        padding: 0 14px;
        margin-top: 16px;
    }

    .slider-viewport {
        border-radius: 10px;
    }

    .slider-arrow {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }

    .slider-prev {
        left: 8px;
    }

    .slider-next {
        right: 8px;
    }

    .slider-bar {
        padding-top: 10px;
    }
}

/* ------------------------------ 打印 ------------------------------ */
@media print {
    body {
        background: #fff;
    }

    .site-header,
    .hero-slider,
    .no-print,
    .footer {
        display: none !important;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
        margin-top: 0;
        page-break-inside: avoid;
    }
}

/* ==========================================================================
   已登记查询（标题栏入口 + 模态面板）
   ========================================================================== */
.title-action {
    margin-left: auto;
    flex: none;
}

.title-action svg {
    width: 15px;
    height: 15px;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 9990;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.is-open {
    display: flex;
}

.modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(22, 40, 30, .45);
    animation: modalFade .2s ease;
}

.modal-panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 40px);
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: modalUp .24s ease;
}

@keyframes modalFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-head {
    flex: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
}

.modal-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.modal-close {
    margin-left: auto;
    width: 30px;
    height: 30px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-sub);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.modal-close:hover {
    background: #F2F5F3;
    color: var(--text);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-tip {
    margin: 0 0 18px;
    font-size: 13px;
    line-height: 1.75;
    color: var(--text-sub);
}

body.modal-open {
    overflow: hidden;
}

/* 查询表单：实时校验反馈 */
.modal-panel .form-control.is-ok {
    border-color: var(--green);
    background: var(--green-pale);
}

.modal-panel .form-control.is-error {
    border-color: var(--danger);
    background: #FFF7F7;
}

.lookup-alert {
    display: none;
}

.lookup-alert.is-visible {
    display: flex;
}

.lookup-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.lookup-actions .btn {
    flex: 1;
}

/* ------------------------------ 查询结果 ------------------------------ */
.lookup-result-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    margin-bottom: 16px;
    border: 1px solid #D5EEDF;
    border-radius: 10px;
    background: var(--green-pale);
    color: var(--green-dark);
    font-weight: 700;
}

.lookup-result-head .sub {
    font-size: 12.5px;
    font-weight: 400;
    color: var(--text-sub);
}

.lookup-badge {
    flex: none;
    padding: 2px 10px;
    border-radius: 20px;
    background: var(--green);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.lookup-block {
    margin-bottom: 18px;
}

.lookup-block-title {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 9px;
    font-size: 13px;
    font-weight: 700;
    color: #38463E;
}

.lookup-block-title::before {
    content: "";
    width: 3px;
    height: 13px;
    border-radius: 2px;
    background: var(--green);
}

.lookup-qr {
    padding: 16px;
    text-align: center;
    border: 1px solid #D5EEDF;
    border-radius: var(--radius);
    background: linear-gradient(150deg, #F2FAF5 0%, #FFFFFF 72%);
}

.lookup-qr img {
    width: 220px;
    height: 220px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.lookup-qr-note {
    margin-top: 10px;
    font-size: 12.5px;
    color: #9AA9A1;
}

.lookup-error {
    padding: 4px 0;
    text-align: center;
}

.lookup-error p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.85;
    color: var(--text-sub);
}

@media (max-width: 640px) {
    .modal {
        padding: 0;
        align-items: flex-end;
    }

    .modal-panel {
        max-width: none;
        max-height: 92vh;
        border-radius: 16px 16px 0 0;
    }

    .modal-body {
        padding: 16px;
    }

    .lookup-qr img {
        width: 190px;
        height: 190px;
    }

    .lookup-actions .btn {
        padding: 10px 12px;
    }
}

@media print {
    .modal {
        display: none !important;
    }
}

