/* 订单查询页 · 现代卡片皮肤 */
html, body {
    height: auto !important;
    min-height: 100% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    background: #f4f6fb !important;
    background-image: none !important;
}
body {
    background: #f4f6fb !important;
    background-image: none !important;
    min-height: 100vh;
    max-width: 650px;
    margin: 0 auto !important;
    padding-bottom: 102px !important;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif !important;
    color: #1f2937;
}
.q-header {
    position: sticky;
    top: 0;
    z-index: 60;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    color: #fff;
    background: linear-gradient(135deg, #2f8ff0, #5b6ef5);
    box-shadow: 0 2px 10px rgba(40, 90, 160, .14);
}
.q-header a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 22px;
}
.q-header a:active { background: rgba(255, 255, 255, .16); }
.q-header h1 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .4px;
}
.fui-page-group,
.fui-page {
    position: static !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
}
.layui-card {
    background: transparent !important;
    box-shadow: none !important;
    margin: 0 !important;
}
.layui-card .layui-card-body {
    padding: 0 !important;
}
/* 搜索卡片 */
.fui-searchbar.bar {
    background: #fff !important;
    margin: 12px !important;
    padding: 10px !important;
    border-radius: 17px !important;
    box-shadow: 0 6px 18px rgba(30, 50, 90, .06);
}
.fui-searchbar .searchbar {
    display: flex !important;
    flex-direction: row-reverse !important;
    align-items: center;
    gap: 8px;
    padding: 0 !important;
    background: transparent !important;
}
.fui-searchbar .searchbar-cancel.searchbtn {
    position: static !important;
    width: auto !important;
    height: 42px !important;
    line-height: 42px !important;
    padding: 0 17px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #ff8a4c, #ff5a36) !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 600;
    box-shadow: 0 5px 12px rgba(255, 90, 54, .2);
}
.fui-searchbar .search-input {
    flex: 1;
    display: flex !important;
    align-items: center;
    height: 42px;
    margin: 0 !important;
    padding: 0 11px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: #f5f7fb !important;
}
.fui-searchbar .search-input .icon {
    color: #9aa3b2;
    font-size: 15px;
    margin-right: 7px;
}
.fui-searchbar .search-input input.search {
    flex: 1;
    height: 40px;
    border: 0 !important;
    background: transparent !important;
    color: #1f2937;
    font-size: 13px;
    outline: none;
}
.fui-searchbar .search-input input.search::placeholder { color: #aeb6c4; }
/* 状态 tabs */
#tab.fui-tab {
    display: flex !important;
    align-items: center;
    margin: 0 12px 10px !important;
    padding: 4px !important;
    background: #fff !important;
    border-radius: 14px !important;
    box-shadow: 0 5px 16px rgba(30, 50, 90, .05);
    overflow: hidden;
}
#tab.fui-tab a {
    flex: 1;
    padding: 8px 0 !important;
    text-align: center;
    border: 0 !important;
    border-radius: 10px;
    color: #8b95a7 !important;
    font-size: 12px !important;
    line-height: 1.5;
}
#tab.fui-tab a.active {
    color: #ff6b35 !important;
    background: #fff4ec;
    font-weight: 600;
    border: 0 !important;
}
/* 订单列表 */
.layui-card-body[style*="80vh"] {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 0 12px 10px !important;
}
.qt-card {
    margin-bottom: 10px !important;
    background: #fff !important;
    border-radius: 17px !important;
    box-shadow: 0 6px 18px rgba(30, 50, 90, .06) !important;
    overflow: hidden;
    border: 0 !important;
}
.qt-card .layui-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    height: auto !important;
    padding: 11px 13px !important;
    border-bottom: 1px solid #f1f4f9 !important;
    background: #fff !important;
}
.qt-card .layui-card-header p {
    flex: 1;
    min-width: 0;
    margin: 0 !important;
    color: #1f2937;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.qt-card .layui-card-header .layui-layout-right {
    width: auto !important;
    flex: none;
    margin: 0 !important;
    font-size: 11px;
}
.qt-card .layui-card-body {
    padding: 10px 13px 12px !important;
}
.qt-card .layui-col-xs4 {
    width: 28% !important;
    padding-right: 10px !important;
    box-sizing: border-box;
}
.qt-card .layui-col-xs4 img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    background: #f5f7fb;
}
.qt-card .layui-col-xs8 {
    width: 72% !important;
    color: #7c8799 !important;
    font-size: 11px !important;
    line-height: 1.9 !important;
    font-family: inherit !important;
}
.qt-card .showorders {
    width: 100%;
    text-align: right;
    margin-top: 6px;
}
.qt-btn {
    height: 30px !important;
    line-height: 30px !important;
    padding: 0 12px !important;
    border: 0 !important;
    border-radius: 10px !important;
    font-size: 11px !important;
    font-weight: 500;
}
.qt-btn.layui-btn-primary { background: #eef5ff !important; color: #2f6fb0 !important; }
.qt-btn.layui-btn-danger { background: #fff0f0 !important; color: #e5484d !important; }
.layui-btn-normal { background: #eaf2ff !important; color: #2f6fb0 !important; border-radius: 10px !important; }
.layui-btn-sm { height: 32px; line-height: 32px; }
/* 空状态 */
.order-list .fui-content-inner { min-height: 0 !important; }
.content-empty {
    margin: 12px !important;
    padding: 32px 20px 34px !important;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 6px 18px rgba(30, 50, 90, .05);
    text-align: center;
}
.q-empty-icon {
    width: 84px;
    height: 84px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #f2f5fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    color: #c3cad6;
}
.content-empty p {
    color: #9aa3b2 !important;
    font-size: 12px !important;
    line-height: 1.9;
    margin: 0 0 3px !important;
}
.content-empty .btn-primary-o {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    height: 38px !important;
    line-height: 38px !important;
    padding: 0 22px !important;
    border: 1px solid #2f8ff0 !important;
    border-radius: 20px !important;
    color: #2f8ff0 !important;
    background: #fff !important;
    font-size: 12px !important;
}
.elevator_item { display: none !important; }
/* 旧分页/版权 */
#order_all > hr { display: none !important; }
.layui-elip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 订单卡片细节修正 */
.qt-card .layui-card-header { position: relative; }
.qt-card .layui-card-header p {
    width: auto !important;
    max-width: calc(100% - 58px);
    flex: 1 1 auto;
}
.qt-card .layui-card-header .layui-layout-right {
    position: static !important;
    top: auto !important;
    right: auto !important;
    margin-left: 8px !important;
    flex: 0 0 auto;
    white-space: nowrap;
}
.qt-card .zhuli-btn {
    float: none !important;
    display: inline-block !important;
    height: 30px !important;
    line-height: 30px !important;
    margin: 0 0 0 6px !important;
    padding: 0 10px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: #eef5ff !important;
    color: #2f6fb0 !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    box-shadow: none !important;
}
.qt-card .showorders { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 6px; }
.qt-card .showorders .qt-btn { margin: 0 !important; }