* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    color: #333;
    background: #f4f6fa;
    min-height: 100vh;
}

/* 模拟手机容器 */
.phone-frame {
    max-width: 420px;
    margin: 0 auto;
    background: #f4f6fa;
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 30px rgba(0,0,0,0.1);
    padding-bottom: 40px;
}



/* 头部背景 */
.header {
    background: linear-gradient(135deg, #5a9fe8 0%, #3a7bd5 100%);
    padding: 12px 20px 40px;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}

.header::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: 30px;
    width: 250px;
    height: 250px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.header-top {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

.header-title-small {
    color: #fff;
    font-size: 15px;
    font-weight: 500;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
    position: relative;
    z-index: 2;
}

.header-text h1 {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.header-text p {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    letter-spacing: 1px;
}

.header-icon {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

/* 文档图标 - SVG模拟 */
.doc-icon {
    width: 80px;
    height: 90px;
    position: relative;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    padding: 12px 10px;
    transform: rotate(-5deg);
}
.doc-icon::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 18px;
    height: 18px;
    background: linear-gradient(225deg, #4a8de0 50%, transparent 50%);
    border-radius: 0 8px 0 0;
}
.doc-icon .line {
    height: 6px;
    background: #3a7bd5;
    border-radius: 3px;
    margin-bottom: 8px;
}
.doc-icon .line:nth-child(1) { width: 70%; }
.doc-icon .line:nth-child(2) { width: 90%; }
.doc-icon .line:nth-child(3) { width: 60%; }
.doc-icon .line:nth-child(4) { width: 80%; }

/* 主体卡片 */
.card {
    background: #fff;
    margin: 16px 16px;
    border-radius: 12px;
    padding: 20px 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    position: relative;
    z-index: 3;
}
.first-card{
    margin-top:-20px;
}
.card-title {
    font-size: 16px;
    font-weight: 500;
    color: #222;
    margin-bottom: 16px;
}
.card-title .req {
    color: #f56c6c;
    margin-left: 2px;
}

/* 用户信息 */
.info-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}
.info-item img{
    width: 20px;
}

.info-item .icon {
    width: 18px;
    height: 18px;
    color: #3a7bd5;
    flex-shrink: 0;
}

.info-item .label {
    color: #666;
    min-width: 70px;
}

.info-item .value {
    color: #222;
    flex: 1;
    text-align: right;
}

.info-item .info-input {
    flex: 1;
    min-width: 0;
    height: 36px;
    padding: 0 10px;
    font-size: 14px;
    text-align: left;
    background: #fafbfc;
}
.info-item .info-input:focus {
    background: #fff;
}
.info-item .info-input:invalid {
    border-color: #f56c6c;
}

.divider {
    height: 1px;
    background: #f0f0f0;
    margin: 0;
}

/* 表单 */
.form-group {
    margin-bottom: 20px;
}
.form-group:last-child { margin-bottom: 0; }

.form-label {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: #222;
    margin-bottom: 10px;
}
.form-label .req {
    color: #f56c6c;
    margin-left: 2px;
}

.form-input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #e0e6ed;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: border-color 0.2s;
    background: #fafbfc;
}
.form-input::placeholder {
    color: #b0b8c1;
}
.form-input:focus {
    border-color: #3a7bd5;
    background: #fff;
}

/* 单选框组（反馈范围） */
.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
}

.checkbox-item input {
    display: none;
}

.checkbox-box {
    width: 16px;
    height: 16px;
    border: 1.5px solid #d0d6dd;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    background: #fff;
    transition: all 0.2s;
}

.checkbox-item input:checked + .checkbox-box {
    background: #4995fe;
    border-color: #4995fe;
}

.checkbox-item input:checked + .checkbox-box::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    transform: translate(-50%, -50%);
}

.checkbox-item input:checked ~ .checkbox-text {
    color: #4995fe;
}

/* 日期选择 */
.date-input-wrapper {
    position: relative;
}

.date-input-wrapper input {
    padding-right: 40px;
}

.date-input-wrapper::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23999' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
}

/* 图片预览 */
.upload-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.upload-preview .preview-item {
    position: relative;
    width: 72px;
    height: 72px;
}
.upload-preview img {
    width: 72px;
    height: 72px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #eee;
}
.upload-preview .remove-btn {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 13px;
    line-height: 18px;
    text-align: center;
    cursor: pointer;
    user-select: none;
    z-index: 1;
}
.upload-preview .remove-btn:active {
    background: rgba(0,0,0,0.85);
}

/* Toast提示 */
#toast {
    position: fixed;
    left: 50%;
    bottom: 130px;
    transform: translateX(-50%) translateY(20px);
    background: rgba(0,0,0,0.78);
    color: #fff;
    font-size: 14px;
    padding: 10px 18px;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
    max-width: 85%;
    text-align: center;
    line-height: 1.5;
    pointer-events: none;
}
#toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* 文本域 */
.textarea-wrapper {
    position: relative;
}

textarea.form-input {
    height: 110px;
    padding: 12px 14px;
    resize: none;
    font-family: inherit;
}

.char-count {
    position: absolute;
    right: 12px;
    bottom: 10px;
    font-size: 12px;
    color: #b0b8c1;
}
.char-count .current {
    color: #f0a937;
}

/* 图片上传 */
.upload-area {
    border: 1.5px dashed #d8e0e8;
    border-radius: 6px;
    padding: 22px 16px;
    text-align: center;
    cursor: pointer;
    background: #fafbfc;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.upload-icon {
    width: 32px;
    height: 32px;
    color: #b0b8c1;
}

.upload-text {
    font-size: 14px;
    color: #777;
}

.upload-tip {
    font-size: 12px;
    color: #999;
    background: #f4f6fa;
    padding: 6px 10px;
    border-radius: 4px;
    margin-top: 12px;
}

/* 提交按钮 */
.submit-btn {
    display: block;
    width: calc(100% - 32px);
    margin: 24px 16px 0;
    height: 48px;
    background: linear-gradient(135deg, #4a8de0 0%, #3a7bd5 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(58,123,213,0.3);
    letter-spacing: 4px;
    transition: opacity 0.2s;
}
.submit-btn:active {
    opacity: 0.85;
}
.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* SVG图标颜色调整 */
.icon-svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #3a7bd5;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* 表单标题小图标 */
.info-icon-user {
    stroke: #3a7bd5;
}

/* 验证码 */
.captcha-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.captcha-row .form-input {
    flex: 1;
    min-width: 0;
}
.captcha-img {
    width: 120px;
    height: 44px;
    border-radius: 6px;
    border: 1px solid #e0e6ed;
    cursor: pointer;
    flex-shrink: 0;
}

/* 查询入口 */
.query-entry {
    text-align: center;
    margin: 16px 0 8px;
    color: #3a7bd5;
    font-size: 14px;
    cursor: pointer;
    letter-spacing: 1px;
}
.query-entry:active { opacity: 0.7; }

/* 弹窗遮罩 */
.modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.modal-mask.show { display: flex; }

.modal {
    width: 100%;
    max-width: 340px;
    background: #fff;
    border-radius: 14px;
    padding: 24px 20px;
    text-align: center;
}

.modal-title {
    font-size: 17px;
    font-weight: 600;
    color: #222;
    margin-bottom: 16px;
}

.success-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #52c41a;
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-msg {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
    line-height: 1.6;
}

.feedback-id-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    /* justify-content: center; */
    background: #f4f6fa;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
}
.feedback-id-label { font-size: 13px; color: #999; }
.feedback-id-value { font-size: 18px; font-weight: 700; color: #3a7bd5; letter-spacing: 1px; }
.copy-btn {
    border: 1px solid #3a7bd5;
    color: #3a7bd5;
    background: #fff;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 12px;
    cursor: pointer;
}
.copy-btn:active { background: #eef4fc; }

.modal-actions { display: flex; gap: 12px; }

.modal-btn {
    /* flex: 1; */
    height: 42px;
    border: none;
    border-radius: 21px;
    font-size: 15px;
    cursor: pointer;
    background: linear-gradient(135deg, #4a8de0 0%, #3a7bd5 100%);
    color: #fff;
}
.success-btn{
    white-space:nowrap;
    padding: 0 15px;
}
.modal-btn:disabled { opacity: 0.6; }
.modal-btn.outline {border-radius:0 ;width: 100%;border-radius: 21px; background: #fff; border: 1px solid #d0d6dd; color: #666; }

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.query-result {
    display: none;
    text-align: left;
    background: #f8fafc;
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.8;
}
.query-result.show { display: block; }
.query-result .qr-title { font-size: 15px; font-weight: 600; color: #222; margin-bottom: 8px; }
.query-result .qr-item { display: flex; }
.query-result .qr-label { color: #999; min-width: 64px; flex-shrink: 0; }
.query-result .qr-value { color: #333; word-break: break-all; }
.query-result .qr-images { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.query-result .qr-images img { width: 72px; height: 72px; border-radius: 6px; object-fit: cover; }
.query-result .no-result { color: #999; text-align: center; padding: 10px 0; }
/* ===== 处理进度展示 ===== */
.query-result .qr-progress { margin-top: 12px; background: #fff; border: 1px solid #e5e9f0; border-radius: 8px; padding: 12px; }
.query-result .qr-progress-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.query-result .qr-progress-title { font-size: 13px; font-weight: 600; color: #444; }
.qr-status-badge { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 12px; line-height: 18px; }
.qr-status-badge.pending { background: #f1f2f4; color: #666; }
.qr-status-badge.processing { background: #e7f1ff; color: #2b6ee0; }
.qr-status-badge.done { background: #e4f7ee; color: #17a35b; }
.qr-status-badge.rejected { background: #ffeceb; color: #e0483e; }
.query-result .qr-steps { display: flex; align-items: center; }
.query-result .qr-step { display: flex; flex-direction: column; align-items: center; flex: 1; position: relative; color: #b0b6c0; }
.query-result .qr-step .qr-step-dot { width: 12px; height: 12px; border-radius: 50%; background: #d5d9e0; margin-bottom: 6px; }
.query-result .qr-step .qr-step-label { font-size: 12px; }
.query-result .qr-step::before { content: ''; position: absolute; top: 5px; right: 50%; width: 100%; height: 2px; background: #e5e9f0; z-index: 0; }
.query-result .qr-step:first-child::before { display: none; }
.query-result .qr-step .qr-step-dot, .query-result .qr-step .qr-step-label { position: relative; z-index: 1; }
.query-result .qr-step-active { color: #2b6ee0; }
.query-result .qr-step-active .qr-step-dot { background: #2b6ee0; }
.query-result .qr-step-active::before { background: #2b6ee0; }
.query-result .qr-rejected-tip { margin-top: 10px; font-size: 12px; color: #e0483e; background: #fff3f2; border-radius: 6px; padding: 8px 10px; }
.query-result .qr-reply .qr-value { color: #2b6ee0; font-weight: 500; }
