* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
    margin: 0;
    padding: 0;
    background: #e9ebef;
    color: #333;
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

button, input, textarea { font-family: inherit; }

[hidden] { display: none !important; }

.page {
    max-width: 480px;
    min-height: 100vh;
    margin: 0 auto;
    background: #f8f9fb;
    padding-bottom: 120px;
}

.main { padding: 0 15px; }

.tip {
    margin: 0;
    padding: 6px 0 0;
    font-size: 22px;
    font-weight: bold;
    color: #2979ff;
    text-align: center;
    text-decoration: underline;
    cursor: pointer;
}

.warn {
    margin: 0;
    font-size: 12px;
    color: #bbbbbb;
    line-height: 1.6;
    text-align: center;
}

.upload-block { padding: 10px 0; }

.zheng-title {
    margin: 0;
    font-size: 13px;
    color: #333;
    text-align: center;
}

.zheng-title + .zheng-title { padding-bottom: 8px; }

.upload-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 70px;
    cursor: pointer;
}

.zheng-img { width: 100px; display: block; }
.dz-img { width: 39px; display: block; }

.preview-wrap {
    position: relative;
    width: 100px;
    height: 70px;
}

.preview-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.preview-del {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 18px;
    height: 18px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: 14px;
    line-height: 18px;
    padding: 0;
    cursor: pointer;
}

.form-wrapper {
    position: relative;
    margin-top: 10px;
    padding-top: 16px;
}

.plate-hint {
    position: absolute;
    top: 0;
    right: 8px;
    z-index: 10;
    font-size: 12px;
    color: #2979ff;
    pointer-events: none;
    min-height: 16px;
}

.field-line {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 13px 0;
    border-bottom: 1px solid #ededed;
}

.field-label {
    display: flex;
    align-items: center;
    min-width: 22%;
    font-size: 13px;
    color: #000;
    letter-spacing: 0.5px;
    flex: none;
}

.field-label.pad { padding-left: 17px; }

.req { color: red; padding: 0 5px 0 0; }

.field-right {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.field-input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    text-align: right;
    font-size: 14px;
    color: #333;
    padding: 0 6px;
}

.field-input::placeholder { color: grey; font-size: 13px; }

.date-trigger { cursor: pointer; min-height: 22px; }

.date-text {
    flex: 1;
    text-align: right;
    font-size: 14px;
    color: #333;
    padding-right: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.date-text.placeholder { color: grey; font-size: 13px; }

.arrow {
    width: 8px;
    height: 8px;
    border-right: 2px solid #999;
    border-bottom: 2px solid #999;
    transform: rotate(45deg);
    margin: 0 8px 4px 0;
    flex: none;
}

.clear {
    flex: none;
    width: 16px;
    height: 16px;
    border: none;
    border-radius: 50%;
    background: #c0c4cc;
    color: #fff;
    font-size: 12px;
    line-height: 16px;
    padding: 0;
    cursor: pointer;
}

.field-textarea {
    width: 100%;
    border-bottom: 1px solid #ededed;
    padding-top: 10px;
    padding-bottom: 8px;
    font-size: 13px;
}

.textarea-row {
    display: flex;
    align-items: flex-start;
    padding-top: 10px;
}

.textarea-row textarea {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    resize: none;
    background: transparent;
    color: #666;
    font-size: 13px;
    padding-left: 16px;
    min-height: 50px;
    line-height: 1.5;
}

.textarea-row textarea.fixed { min-height: 0; }

.textarea-row textarea::placeholder { color: grey; }

.store-dropdown {
    position: absolute;
    left: 5px;
    right: 5px;
    z-index: 999;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .1);
    border: 1px solid #eee;
}

.dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 15px;
    border-bottom: 1px solid #f8f8f8;
    font-size: 12px;
    color: #999;
}

.dropdown-header button {
    border: none;
    background: transparent;
    color: #999;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.dropdown-scroll { max-height: 200px; overflow-y: auto; }

.dropdown-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f8f8f8;
    cursor: pointer;
}

.dropdown-item:active { background: #f7f8fa; }

.s-name { display: block; font-size: 14px; font-weight: bold; color: #333; }

.s-addr { display: block; font-size: 12px; color: #999; margin-top: 2px; }

.load-status {
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.no-more { font-size: 12px; color: #ccc; }

.fixed-btn {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 100%;
    max-width: 480px;
    z-index: 99;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: #fff;
    box-shadow: 0 -3px 12px rgba(0, 0, 0, .06);
    padding: 12px 15px calc(12px + env(safe-area-inset-bottom));
}

.btn {
    height: 52px;
    font-size: 20px;
    letter-spacing: 1px;
    border-radius: 8px;
    cursor: pointer;
}

.btn-primary {
    width: 60%;
    color: #fff;
    background: #3c9cff;
    border: 1px solid #3c9cff;
}

.btn-info {
    width: 35%;
    color: #323233;
    background: #fff;
    border: 1px solid #ebedf0;
}

.btn-theme {
    width: 84%;
    height: 52px;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 20px;
    letter-spacing: 1px;
    cursor: pointer;
    background: linear-gradient(136deg, #6DB6FF 0%, #349AFF 100%);
}

.btn:active { opacity: .85; }

.modal-mask {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, .45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.modal-title {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #303133;
    padding: 22px 16px 8px;
}

.modal-body { padding: 8px 16px 16px; }

.paste-box textarea {
    width: 100%;
    height: 120px;
    border: 1px solid #dadbde;
    border-radius: 4px;
    padding: 8px 10px;
    resize: none;
    font-size: 14px;
    color: #333;
    outline: none;
}

.paste-count {
    text-align: right;
    color: #909193;
    font-size: 12px;
    margin-top: 4px;
}

.modal-actions { display: flex; border-top: 1px solid #ebedf0; }

.modal-actions button {
    flex: 1;
    height: 48px;
    border: none;
    background: #fff;
    font-size: 16px;
    cursor: pointer;
}

.modal-actions .cancel { color: #606266; border-right: 1px solid #ebedf0; }
.modal-actions .ok { color: #3c9cff; }
.modal-actions .ok.wechat { color: #576b95; }

.date-panel {
    width: min(325px, 100%);
    background: #f7f6f2;
    border-radius: 15px;
    padding: 20px 10px 18px;
}

.picker-header {
    display: flex;
    margin-bottom: 8px;
}

.picker-header span {
    flex: 1;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.picker-body {
    position: relative;
    height: 250px;
    display: flex;
}

.picker-highlight {
    position: absolute;
    left: 8px;
    right: 8px;
    top: 100px;
    height: 50px;
    background: #2b3a55;
    border-radius: 10px;
    z-index: 0;
    pointer-events: none;
}

.wheel {
    position: relative;
    z-index: 1;
    flex: 1;
    height: 250px;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
}

.wheel::-webkit-scrollbar { width: 0; height: 0; }

.wheel-pad { height: 100px; flex: none; }

.wheel-item {
    height: 50px;
    line-height: 50px;
    text-align: center;
    font-size: 19px;
    font-weight: 500;
    color: #999;
    scroll-snap-align: center;
}

.wheel-item.active { color: #fff; }

.date-ok {
    display: block;
    width: 90%;
    height: 45px;
    margin: 22px auto 0;
    border: none;
    border-radius: 23px;
    background: #1a73e8;
    color: #fff;
    font-size: 17px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(26, 115, 232, .3);
    cursor: pointer;
}

.loading-mask {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.loading-box {
    min-width: 110px;
    max-width: 70%;
    padding: 16px 14px;
    border-radius: 8px;
    background: rgba(17, 17, 17, .72);
    color: #fff;
    text-align: center;
    font-size: 14px;
}

.spinner, .mini-spin {
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

.spinner {
    width: 28px;
    height: 28px;
    margin: 0 auto 8px;
    border: 3px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
}

.mini-spin {
    width: 14px;
    height: 14px;
    border: 2px solid #e5e5e5;
    border-top-color: #3c9cff;
}

.toast {
    position: fixed;
    left: 50%;
    top: 45%;
    transform: translate(-50%, -50%);
    z-index: 1200;
    max-width: 70%;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(17, 17, 17, .75);
    color: #fff;
    font-size: 14px;
    text-align: center;
    pointer-events: none;
}

.success-top {
    margin-top: 40px;
    text-align: center;
}

.success-icon {
    font-size: 50px;
    color: green;
    line-height: 1;
}

.success-top p {
    margin: 4px 0;
    font-size: 18px;
    font-weight: bold;
    color: #303133;
}

.success-copy { margin-top: 12px; }

.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-top: 48px;
    padding: 0 18px;
}

.step { width: 72px; text-align: center; color: #969799; }

.step-icon {
    width: 28px;
    height: 28px;
    margin: 0 auto 8px;
    border-radius: 50%;
    border: 2px solid #c8c9cc;
    color: #c8c9cc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background: #fff;
}

.step.done .step-icon,
.step.current .step-icon {
    border-color: blue;
    color: blue;
}

.step.done,
.step.current { color: blue; }

.step-title { font-size: 13px; line-height: 1.3; }

.step-line {
    flex: 1;
    height: 2px;
    background: #c8c9cc;
    margin-top: 14px;
}

.step-line.done { background: blue; }

@keyframes spin { to { transform: rotate(360deg); } }
