* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
}
body {
    background-color: #f4f6f9;
    color: #333;
    overflow-x: hidden;
}
a {
    text-decoration: none;
    color: inherit;
}
.app-container {
    max-width: 500px;
    margin: 0 auto;
    background: #f4f6f9;
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
}
.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}
.back-btn {
    color: #333;
    font-size: 22px;
    text-decoration: none;
    padding-right: 20px;
    cursor: pointer;
}
.page-title {
    font-size: 17px;
    font-weight: bold;
    color: #000;
    flex: 1;
    text-align: center;
}
.header-spacer {
    width: 30px;
}
#page-search {
    padding: 30px 20px;
    flex: 0 0 auto;
    background: #fff;
    border-radius: 0 0 12px 12px;
}
.search-box {
    display: flex;
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 8px;
    padding: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    margin-bottom: 25px;
}
.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 15px;
    font-size: 14px;
    color: #333;
    background: transparent;
    min-width: 0;
}
.search-btn {
    background: #3b6fff;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
}
.history-section {
    margin-bottom: 30px;
}
.history-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}
.history-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.tag-item {
    border: 0;
    font-family: inherit;
    max-width: 100%;
    overflow-wrap: anywhere;
    text-align: left;
    background: #f0f2f5;
    color: #333;
    font-size: 13px;
    padding: 6px 15px;
    border-radius: 4px;
    cursor: pointer;
}
.tag-clear {
    background: #fff;
    border: 1px solid #eee;
    color: #999;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
#page-list {
    padding: 15px;
    flex: 1;
}
.order-list-item {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    cursor: pointer;
    display: block;
}
.ol-name {
    font-size: 15px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ol-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
    gap: 10px;
}
.ol-status {
    color: #2ecc71;
    font-weight: bold;
    background: #e8f8f0;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}
.ol-status.wait {
    color: #e6a23c;
    background: #fff7e8;
}
.ol-status.doing {
    color: #3b6fff;
    background: #eef3ff;
}
.ol-status.bad,
.ol-status.back {
    color: #f56c6c;
    background: #fff0f0;
}
.ol-price {
    color: #ff5000;
    font-size: 15px;
    font-weight: bold;
    white-space: nowrap;
}
#page-detail {
    padding: 15px;
    flex: 1;
}
.info-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}
.card-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    border-bottom: 1px solid #f9f9f9;
    padding-bottom: 15px;
}
.card-title i {
    color: #3b6fff;
    font-size: 18px;
}
.info-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 14px;
}
.info-row:last-child {
    margin-bottom: 0;
}
.info-label {
    color: #666;
    flex-shrink: 0;
    width: 80px;
}
.info-value {
    color: #222;
    text-align: right;
    word-break: break-all;
    font-weight: 500;
}
.badge-green {
    background: #4caf50;
    color: #fff;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}
.kmi-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}
.kmi-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f9f9f9;
    gap: 10px;
}
.kmi-title {
    font-size: 15px;
    font-weight: bold;
    color: #333;
    line-height: 1.5;
}
.kmi-title i {
    color: #3b6fff;
    margin-right: 5px;
}
.kmi-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
.btn-outline {
    border: 1px solid #3b6fff;
    color: #3b6fff;
    background: transparent;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    font-weight: bold;
}
.kmi-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    position: relative;
    border-left: 3px solid #3b6fff;
}
.kmi-item:last-child {
    margin-bottom: 0;
}
.kmi-item-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 10px;
}
.kmi-index {
    font-size: 14px;
    font-weight: bold;
    color: #222;
}
.kmi-copy {
    color: #3b6fff;
    font-size: 13px;
    cursor: pointer;
    font-weight: bold;
    background: transparent;
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
    border: 0;
}
.kmi-text {
    font-size: 14px;
    color: #444;
    line-height: 1.8;
    word-break: break-all;
    white-space: pre-wrap;
    font-family: monospace;
    overflow-wrap: anywhere;
}
.empty-tips {
    text-align: center;
    color: #999;
    font-size: 14px;
    padding: 30px 0;
    line-height: 1.6;
}
.query-pager {
    text-align: center;
    margin-top: 10px;
}
.query-pager a {
    display: inline-block;
    background: #fff;
    border-radius: 8px;
    padding: 8px 14px;
    margin: 0 5px;
    color: #3b6fff;
}
.query-captcha-mask {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.65);
}
.query-captcha-mask.show {
    display: flex;
}
.query-captcha-card {
    width: 100%;
    max-width: 340px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    border-radius: 18px;
    background: #fff;
}
.query-captcha-title {
    padding: 28px 20px 20px;
    text-align: center;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}
.query-captcha-image-button {
    display: flex;
    width: 100%;
    min-height: 70px;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.query-captcha-img {
    display: block;
    width: 220px;
    max-width: 100%;
    height: auto;
    min-height: 70px;
    object-fit: contain;
    background: #f4fbfd;
}
.query-captcha-img:not([src]) {
    visibility: hidden;
}
.query-captcha-input {
    display: block;
    width: calc(100% - 52px);
    height: 38px;
    margin: 18px 26px 10px;
    padding: 0 12px;
    border: 1px solid #eee;
    border-radius: 8px;
    outline: none;
    color: #333;
    font-size: 16px;
    letter-spacing: 2px;
}
.query-captcha-input:focus {
    border-color: #86adf8;
}
.query-captcha-input::placeholder {
    color: #bbb;
    letter-spacing: 0;
}
.query-captcha-error {
    margin: 0 26px 10px;
    color: #c83a3a;
    font-size: 12px;
    line-height: 1.5;
}
.query-captcha-error:empty {
    display: none;
}
.query-captcha-actions {
    display: flex;
    margin-top: 10px;
    border-top: 1px solid #f0f0f0;
}
.query-captcha-actions button {
    flex: 1;
    min-width: 0;
    min-height: 50px;
    border: 0;
    background: #fff;
    color: #333;
    font-size: 17px;
    cursor: pointer;
}
.query-captcha-actions button + button {
    border-left: 1px solid #f0f0f0;
    color: #2f7dea;
}
.query-captcha-actions button:disabled {
    color: #a5b3c7;
    cursor: default;
}
.query-captcha-actions button:active {
    background: #f7f8fa;
}
@media (min-width: 768px) {
    body {
        background: #eef2f7;
    }
    .app-container {
        max-width: 620px;
        box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
    }
    .header-nav {
        padding: 18px 26px;
    }
    .page-title {
        font-size: 20px;
    }
    #page-search {
        padding: 48px 42px 70px;
    }
    .hero-title {
        font-size: 28px;
    }
    .hero-sub {
        font-size: 15px;
    }
    .search-input {
        font-size: 16px;
        padding: 14px 18px;
    }
    .search-btn {
        font-size: 16px;
        padding: 0 28px;
    }
    #page-list,
    #page-detail {
        padding: 24px;
    }
    .order-list-item {
        padding: 22px 24px;
        border-radius: 18px;
    }
    .ol-name {
        font-size: 20px;
    }
    .ol-row {
        font-size: 15px;
    }
    .ol-price {
        font-size: 20px;
    }
    .ol-status {
        font-size: 15px;
        padding: 4px 10px;
    }
    .info-card,
    .kmi-card {
        border-radius: 18px;
        padding: 28px;
    }
    .card-title {
        font-size: 24px;
    }
    .info-row {
        font-size: 18px;
    }
    .info-label {
        width: 110px;
    }
    .info-value {
        max-width: 70%;
    }
    .kmi-title {
        font-size: 21px;
    }
    .btn-outline {
        font-size: 16px;
        padding: 8px 18px;
    }
    .kmi-item {
        border-radius: 14px;
        padding: 20px;
    }
    .kmi-index {
        font-size: 18px;
    }
    .kmi-copy {
        font-size: 16px;
    }
    .kmi-text {
        font-size: 17px;
    }
}
@media (max-width: 360px) {
    .search-btn {
        padding: 0 12px;
    }
    .hero-title {
        font-size: 20px;
    }
    .info-card,
    .kmi-card {
        padding: 16px;
    }
    .info-label {
        width: 72px;
    }
    .info-row {
        font-size: 13px;
    }
    .kmi-header {
        flex-direction: column;
    }
    .btn-outline {
        width: 100%;
    }
}
/* 订单评价弹窗 */
.review-open-btn {
    display: block;
    width: 100%;
    cursor: pointer;
    height: 46px;
    margin-top: 14px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #598fff, #2563eb);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.2);
}
.review-modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.review-modal-mask.show {
    display: flex;
}
.review-modal-card {
    width: 100%;
    max-width: 390px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.25);
}
.review-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid #f1f5f9;
}
.review-modal-title {
    font-size: 18px;
    font-weight: 900;
    color: #1f2937;
}
.review-close {
    border: 0;
    background: #f3f4f6;
    color: #6b7280;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 30px;
}
.review-modal-body {
    padding: 18px 20px;
}
.review-stars {
    display: flex;
    gap: 7px;
    margin-bottom: 14px;
}
.review-star {
    font-size: 24px;
    color: #f59e0b;
    cursor: pointer;
    line-height: 1;
    border: 0;
    background: transparent;
}
.review-textarea {
    width: 100%;
    height: 110px;
    border: 1.5px solid #edf0f5;
    border-radius: 12px;
    outline: none;
    padding: 12px;
    font-size: 14px;
    line-height: 1.6;
    resize: none;
}
.review-textarea:focus {
    border-color: #3b6fff;
    box-shadow: 0 0 0 3px rgba(59, 111, 255, 0.1);
}
.review-upload-tip {
    font-size: 12px;
    color: #8b95a1;
    margin: 12px 0 8px;
}
.review-file {
    width: 100%;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 12px;
    font-size: 13px;
    color: #64748b;
}
.review-preview-grid {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.review-preview-item {
    position: relative;
    width: 58px;
    height: 58px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #edf0f5;
    background: #f8fafc;
    flex: 0 0 58px;
}
.review-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.review-preview-remove {
    position: absolute;
    right: 3px;
    top: 3px;
    width: 18px;
    height: 18px;
    border: 0;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    font-size: 14px;
    line-height: 18px;
    padding: 0;
}
.review-submit {
    width: 100%;
    height: 44px;
    margin-top: 15px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(135deg, #598fff, #2563eb);
    color: #fff;
    font-size: 15px;
    font-weight: 900;
}
.header-service {
    color: #3b6fff;
    font-size: 13px;
}
button:focus-visible,
a:focus-visible {
    outline: 2px solid #90aff3;
    outline-offset: 2px;
}
