/* ============================================================
   任务分销中心 H5 · 统一设计系统
   ============================================================ */
:root {
    --primary: #4F46E5;
    --primary-2: #7C3AED;
    --primary-soft: #EEF0FF;
    --bg: #F4F5FA;
    --card: #FFFFFF;
    --text: #16182A;
    --text-2: #5A5F73;
    --text-3: #8B90A5;
    --line: #EDEFF5;
    --gold: #F5A524;
    --success: #12B76A;
    --warn: #F79009;
    --danger: #F04438;
    --radius: 16px;
    --shadow: 0 6px 20px rgba(23, 28, 64, .06);
    --max: 750px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul, ol, p, h1, h2, h3, h4 { margin: 0; }
ul, ol { list-style: none; padding: 0; }
img { display: block; max-width: 100%; border: 0; }
button, input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.clear::after { content: ''; display: table; clear: both; }

.app-page { max-width: var(--max); margin: 0 auto; min-height: 100vh; position: relative; background: var(--bg); }

/* ---------------- 通用组件 ---------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 46px; padding: 0 20px; border: 0; border-radius: 13px;
    font-size: 15px; font-weight: 600; background: #F1F2F8; color: #3A3F55;
    transition: transform .15s ease, opacity .15s ease;
}
.btn:active { transform: scale(.985); }
.btn-primary {
    background: linear-gradient(135deg, #5B5BF6 0%, #7C3AED 100%);
    color: #fff; box-shadow: 0 10px 22px rgba(91, 91, 246, .28);
}
.btn-block { display: flex; width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.btn-sm { height: 36px; padding: 0 14px; border-radius: 10px; font-size: 13px; }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }

.toast {
    position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
    max-width: 78%; padding: 11px 18px; border-radius: 12px;
    background: rgba(22, 24, 42, .9); color: #fff; font-size: 13px; text-align: center;
    z-index: 9999; opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.toast.show { opacity: 1; }

/* ---------------- 登录 / 注册 ---------------- */
.auth-page {
    position: relative; overflow: hidden; min-height: 100vh;
    display: flex; flex-direction: column; align-items: center;
    background-color: #3F35C4;
    background-image:
        linear-gradient(180deg, rgba(34, 25, 105, .62) 0%, rgba(52, 42, 158, .30) 42%, rgba(28, 22, 92, .72) 100%),
        url('../images/login-bg.jpg');
    background-size: cover, cover;
    background-position: center top, center top;
    background-repeat: no-repeat, no-repeat;
}
.auth-inner {
    position: relative; z-index: 1; width: 100%; max-width: 520px;
    margin: 0 auto; padding: 0 20px 22px; display: flex; flex-direction: column; flex: 1;
    justify-content: center;
}
.auth-hero { padding: 26px 4px 22px; color: #fff; text-align: center; }
.auth-brand { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 10px; }
.auth-brand > div { text-align: left; }
.auth-brand .logo {
    width: 52px; height: 52px; border-radius: 16px; flex: none; padding: 5px;
    display: grid; place-items: center; background: #fff;
    border: 1px solid rgba(255, 255, 255, .6);
    box-shadow: 0 6px 16px rgba(24, 18, 90, .28);
}
.auth-brand .logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.auth-hero h1 { display: inline-flex; align-items: center; gap: 6px; font-size: 20px; font-weight: 700; letter-spacing: .5px; white-space: nowrap; }
.auth-hero h1 .cert {
    font-size: 9px; font-weight: 700; letter-spacing: .3px; padding: 2px 5px; border-radius: 5px;
    color: #6B4400;
    background: linear-gradient(135deg, #FFE7A6 0%, #F8C84E 55%, #E5A11E 100%);
    border: 1px solid rgba(255, 255, 255, .6);
    box-shadow: 0 2px 6px rgba(110, 64, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .7);
    display: inline-flex; align-items: center; gap: 2px; white-space: nowrap;
}
.auth-hero h1 .cert svg { width: 7px; height: 7px; color: #8A5600; }
.auth-hero p { margin-top: 6px; font-size: 12px; opacity: .82; letter-spacing: .3px; }
.auth-tags { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; justify-content: center; }
.auth-tags span {
    font-size: 11px; padding: 5px 10px; border-radius: 999px;
    background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .26);
    display: inline-flex; align-items: center; gap: 5px;
}
.auth-tags span svg { width: 12px; height: 12px; opacity: .9; }
.auth-card {
    margin-top: 0; width: 100%; background: #fff; border-radius: 24px;
    padding: 18px 18px 22px; box-shadow: 0 24px 60px rgba(24, 18, 90, .3);
}
.auth-foot { text-align: center; font-size: 11px; color: rgba(255, 255, 255, .7); padding-top: 16px; }

.seg-tabs { display: flex; background: #F2F3FA; border-radius: 14px; padding: 4px; margin-bottom: 18px; }
.seg-tabs span {
    flex: 1; text-align: center; padding: 9px 0; border-radius: 11px;
    font-size: 15px; font-weight: 600; color: #7A7F95; cursor: pointer; transition: .22s ease;
}
.seg-tabs span.active { background: #fff; color: #4338CA; box-shadow: 0 2px 8px rgba(67, 56, 202, .14); }

.field { margin-bottom: 14px; }
.field-label { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--text-3); margin: 0 2px 6px; }
.field-box {
    display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 14px;
    background: #F6F7FB; border: 1px solid transparent; border-radius: 13px; transition: .2s ease;
}
.field-box:focus-within { background: #fff; border-color: #9B93FF; box-shadow: 0 0 0 3px rgba(99, 91, 255, .12); }
.field-box .ico { width: 18px; height: 18px; flex: none; color: #9AA0B8; }
.field-box input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 15px; }
.field-box input::placeholder { color: #B4B9CC; }
.field-box .pwd-toggle { border: 0; background: transparent; padding: 4px; display: flex; color: #9AA0B8; }
.field-box .pwd-toggle svg { width: 18px; height: 18px; }
.field-box .captcha-img { width: 112px; height: 42px; border-radius: 10px; flex: none; cursor: pointer; background: #EEF0FF; }
.field-box .send-code {
    border: 0; background: transparent; color: #5B5BF6; font-size: 12px;
    font-weight: 600; white-space: nowrap; padding: 4px 0 4px 10px; border-left: 1px solid var(--line);
}
.field-box .send-code[disabled] { color: #B4B9CC; }

.agree-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 2px 18px; font-size: 12px; color: var(--text-2); flex-wrap: wrap; }
.agree { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; line-height: 1.4; }
.agree input {
    appearance: none; -webkit-appearance: none; width: 16px; height: 16px; margin: 0; flex: none;
    border: 1.5px solid #C9CDDB; border-radius: 5px; background: #fff; position: relative;
}
.agree input:checked { background: linear-gradient(135deg, #5B5BF6, #7C3AED); border-color: transparent; }
.agree input:checked::after {
    content: ''; position: absolute; left: 5px; top: 1px; width: 4px; height: 9px;
    border: 2px solid #fff; border-top: 0; border-left: 0; transform: rotate(45deg);
}
.agree a { color: #5B5BF6; }
.auth-links { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; font-size: 12px; color: var(--text-3); }
.auth-links a { color: #5B5BF6; font-weight: 500; }
.form-tip { font-size: 12px; color: var(--text-3); margin: 2px 2px 0; }
.form-tip.err { color: var(--danger); }

/* ---------------- 底部导航 ---------------- */
.app-tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    display: flex; max-width: var(--max); margin: 0 auto;
    background: rgba(255, 255, 255, .97); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
}
.app-tabbar a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 7px 0 6px; font-size: 11px; color: #9AA0B8;
}
.app-tabbar a.active { color: var(--primary); font-weight: 600; }
.app-tabbar img { width: 22px; height: 22px; object-fit: contain; }
.app-tabbar .imgActive { display: none; }
.app-tabbar a.active .normal { display: none; }
.app-tabbar a.active .imgActive { display: block; }
.app-tabbar-spacer { height: 62px; }

/* ---------------- 顶部栏 ---------------- */
.topbar {
    position: sticky; top: 0; z-index: 60; height: 52px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.topbar .back {
    position: absolute; left: 6px; top: 0; width: 42px; height: 52px;
    display: flex; align-items: center; justify-content: center; color: var(--text);
}
.topbar .back svg { width: 20px; height: 20px; }
.topbar h1 { font-size: 16px; font-weight: 600; }
.topbar .right { position: absolute; right: 10px; top: 0; height: 52px; display: flex; align-items: center; }

/* ---------------- 首页 ---------------- */
.home-top { background: linear-gradient(150deg, #4338CA 0%, #5B4DFF 58%, #8B7CFF 100%); padding: 16px 16px 20px; color: #fff; }
.home-brand { display: flex; align-items: center; gap: 10px; }
.home-brand .logo {
    width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; padding: 3px;
    background: #fff; box-shadow: 0 2px 8px rgba(20, 14, 80, .22); flex: none;
}
.home-brand .logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.home-brand b { font-size: 17px; font-weight: 700; letter-spacing: .5px; }
.home-brand .sub { font-size: 11px; opacity: .75; margin-left: 4px; }
.home-search {
    margin-top: 14px; display: flex; align-items: center; gap: 8px; height: 42px;
    padding: 0 14px; border-radius: 12px; background: rgba(255, 255, 255, .18);
}
.home-search svg { width: 17px; height: 17px; opacity: .85; flex: none; }
.home-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: #fff; font-size: 14px; }
.home-search input::placeholder { color: rgba(255, 255, 255, .68); }

.cat-scroll {
    position: sticky; top: 0; z-index: 50;
    background: linear-gradient(180deg, #5B4DFF 0%, #5B4DFF 100%);
    padding: 8px 10px; overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.cat-scroll::-webkit-scrollbar { display: none; }
.headerNav { display: flex; gap: 8px; width: max-content; padding: 2px; }
.headerNav li a {
    display: block; padding: 7px 14px; border-radius: 999px;
    font-size: 13px; color: rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .13);
    white-space: nowrap; transition: .2s ease;
}
.headerNav li a p { display: none; }
.headerNav li.active a { background: #fff; color: var(--primary); font-weight: 700; }

.home-body { padding-bottom: 12px; }

.banner-box { margin: 14px 14px 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.banner-box .swiper-container { border-radius: var(--radius); }
.banner-box .swiper-slide img { width: 100%; height: 150px; object-fit: cover; background: #E9EAF5; }
.swiper-pagination-bullet { background: #fff; opacity: .6; }
.swiper-pagination-bullet-active { opacity: 1; width: 16px; border-radius: 4px; }

.notice-bar {
    display: flex; align-items: center; gap: 8px; margin: 12px 14px 0; height: 42px;
    padding: 0 12px; background: #fff; border-radius: 12px; box-shadow: var(--shadow); overflow: hidden;
}
.notice-bar .tag { flex: none; font-size: 11px; font-weight: 700; color: var(--warn); background: #FFF7E6; padding: 3px 8px; border-radius: 999px; }
.notice-scroll { flex: 1; height: 22px; overflow: hidden; }
.notice-scroll ul { transition: transform .45s ease; }
.notice-scroll li { height: 22px; line-height: 22px; font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notice-scroll a { color: var(--text-2); }

.quick-nav {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
    margin: 12px 14px 0; padding: 14px 6px; background: #fff;
    border-radius: var(--radius); box-shadow: var(--shadow);
}
.quick-nav li { text-align: center; }
.quick-nav a { display: block; }
.quick-nav img { width: 42px; height: 42px; border-radius: 13px; object-fit: cover; margin: 0 auto 6px; background: #F4F5FA; }
.quick-nav p { font-size: 12px; color: var(--text-2); }

.sec { margin: 18px 14px 0; }
.sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.sec-title { display: flex; align-items: center; gap: 7px; font-size: 16px; font-weight: 700; }
.sec-title::before { content: ''; width: 4px; height: 15px; border-radius: 2px; background: linear-gradient(180deg, #5B5BF6, #8B7CFF); }
.sec-more { font-size: 12px; color: var(--text-3); }

.lists { display: flex; flex-direction: column; gap: 8px; }
.lists > li { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .15s ease; }
.lists > li:active { transform: scale(.99); }
.lists > li > a { display: flex; gap: 10px; padding: 9px 12px; align-items: center; }
.lists > li > a > img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex: none; background: #F4F5FA; }
.lists .info { flex: 1; min-width: 0; }
.lists .info > p { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.3; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.lists .info .meta { display: flex; align-items: center; gap: 8px; }
.lists .info .meta > span { flex: 1; min-width: 0; font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lists .info .meta > i { flex: none; font-style: normal; font-size: 13px; font-weight: 700; color: var(--gold); }
.lists .chev { flex: none; font-size: 13px; color: #C4C8D6; font-weight: 400; }

.weui-navigator-list { display: flex; gap: 8px; padding: 0 14px; margin: 12px 0 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.weui-navigator-list::-webkit-scrollbar { display: none; }
.weui-navigator-list li { flex: none; }
.weui-navigator-list a {
    display: block; padding: 6px 13px; border-radius: 999px; background: #fff;
    border: 1px solid var(--line); font-size: 12px; color: var(--text-2); white-space: nowrap;
}
.weui-navigator-list li.active a { background: var(--primary-soft); border-color: #DCDEFF; color: var(--primary); font-weight: 600; }
.lay > .listWrap { margin-top: 10px; }
.lay .lists { margin: 0 14px; }

/* ---------------- 任务详情 ---------------- */
.detail-page { padding-bottom: 92px; }
.detail-hero { background: linear-gradient(150deg, #4338CA, #7C3AED); padding: 16px 16px 22px; color: #fff; }
.detail-hero .task-top { display: flex; gap: 12px; align-items: center; }
.detail-hero .task-top img { width: 58px; height: 58px; border-radius: 15px; object-fit: cover; background: #fff; flex: none; }
.detail-hero h2 { font-size: 17px; font-weight: 700; line-height: 1.35; }
.detail-hero .task-type { font-size: 12px; opacity: .82; margin-top: 4px; }
.detail-hero .task-price { margin-top: 6px; font-size: 15px; font-weight: 800; color: #FFD66B; }
.detail-stats { display: flex; gap: 10px; margin-top: 16px; }
.detail-stats > div { flex: 1; text-align: center; padding: 10px 6px; border-radius: 12px; background: rgba(255, 255, 255, .16); }
.detail-stats h4 { font-size: 15px; font-weight: 700; }
.detail-stats span { font-size: 11px; opacity: .8; }

.sec-card { margin: 12px 14px 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; }
.sec-card > h3 { font-size: 15px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.sec-card > h3::before { content: ''; width: 4px; height: 14px; border-radius: 2px; background: linear-gradient(180deg, #5B5BF6, #8B7CFF); }
.sec-card .hint { font-size: 11px; color: var(--text-3); font-weight: 400; }
.sec-card .remark-text { font-size: 13px; color: var(--text-2); line-height: 1.7; word-break: break-word; }

.steps { position: relative; }
.steps > li { display: flex; gap: 12px; padding-bottom: 16px; position: relative; }
.steps > li:last-child { padding-bottom: 0; }
.steps > li:not(:last-child)::before { content: ''; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line); }
.steps .num { width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #5B5BF6, #7C3AED); z-index: 1; }
.steps .right { flex: 1; min-width: 0; padding-top: 2px; }
.steps .right h3 { font-size: 14px; font-weight: 600; line-height: 1.5; margin-bottom: 8px; }
.steps .right p { display: flex; gap: 8px; flex-wrap: wrap; }
.detail-btn {
    display: inline-flex; align-items: center; justify-content: center; height: 34px; padding: 0 14px;
    border-radius: 10px; font-size: 12px; font-weight: 600;
    background: var(--primary-soft); color: var(--primary); border: 0;
}
.detail-btn.primary { background: linear-gradient(135deg, #5B5BF6, #7C3AED); color: #fff; }
.detail-btn.red { background: #FEECEB; color: var(--danger); }
.cc-input {
    width: 100%; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line);
    background: #F8F9FD; font-size: 13px; outline: none;
}
.cc-input:disabled { color: var(--text-2); }
.steps img.ewms { width: 132px; height: 132px; border-radius: 12px; object-fit: contain; background: #F4F5FA; margin: 6px 0; }
.steps .pic .remark { font-size: 11px; color: var(--text-3); margin-bottom: 6px; }
.steps .pic img.pics { width: 100%; border-radius: 12px; object-fit: cover; background: #F4F5FA; }
.cc-upbtn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%;
    height: 44px; margin-top: 10px; border: 1px dashed #C7CAE8; border-radius: 12px;
    background: #FAFAFF; color: var(--primary); font-size: 13px; font-weight: 600;
}
.more_gn { text-align: center; font-size: 11px; color: #B4B9CC; padding: 20px 0 6px; }

/* 详情页底部操作栏（兼容 detail-footer.html） */
.detail-page .footer.tabbar-fixed,
body > .footer.tabbar-fixed {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    display: flex; gap: 10px; max-width: var(--max); margin: 0 auto;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
}
.detail-page .footer.tabbar-fixed > span,
body > .footer.tabbar-fixed > span { flex: 1; display: block; }
.detail-page .footer.tabbar-fixed a,
.detail-page .footer.tabbar-fixed button,
body > .footer.tabbar-fixed a,
body > .footer.tabbar-fixed button {
    display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%;
    height: 46px; border: 0; border-radius: 12px; font-size: 15px; font-weight: 600;
    background: #F1F2F8; color: var(--primary);
}
.detail-page .footer.tabbar-fixed button,
body > .footer.tabbar-fixed button { background: linear-gradient(135deg, #5B5BF6, #7C3AED); color: #fff; box-shadow: 0 8px 18px rgba(91, 91, 246, .28); }

/* 客服联系浮层 */
#kflj {
    left: auto !important; right: 14px !important; bottom: 78px !important;
    width: 38% !important; display: none;
    padding: 4px !important; border-radius: 14px;
    border: 1px solid var(--line); background: #fff !important;
    box-shadow: 0 10px 26px rgba(23, 28, 64, .16);
}
#kflj a {
    display: block; height: 42px; line-height: 42px; text-align: center;
    font-size: 13px; color: var(--primary); border-bottom: 1px solid #F1F2F8;
}
#kflj a:last-child { border-bottom: 0; }

/* ---------------- 个人中心 ---------------- */
.profile { background: linear-gradient(150deg, #4338CA, #7C3AED); padding: 14px 16px; color: #fff; }
.profile-top { display: flex; align-items: center; justify-content: space-between; }
.profile-user { display: flex; align-items: center; gap: 11px; min-width: 0; }
.profile-user img.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255, 255, 255, .55); background: #fff; flex: none; display: block; }
.profile-name { display: flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 700; }
.profile-name .badge { font-size: 10px; font-weight: 500; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .2); }
.profile-id { display: flex; align-items: center; gap: 6px; font-size: 12px; opacity: .82; margin-top: 4px; }
.profile-id .copy-span { display: inline-flex; }
.profile-id .copy-span img { width: 15px; height: 15px; }
.profile-actions { display: flex; gap: 8px; flex: none; }
.profile-actions a { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, .16); }
.profile-actions img { width: 18px; height: 18px; }

.balance-card { margin: 16px 16px 0; background: #fff; border-radius: 18px; padding: 16px; box-shadow: 0 14px 30px rgba(24, 18, 90, .18); }
.balance-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.balance-label { font-size: 12px; color: var(--text-3); }
.balance-value { font-size: 28px; font-weight: 800; color: var(--text); line-height: 1.2; }
.balance-value small { font-size: 15px; font-weight: 700; margin-right: 2px; }
.balance-row .btn { height: 38px; padding: 0 16px; font-size: 13px; border-radius: 11px; }
.stats { display: flex; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.stats li { flex: 1; text-align: center; }
.stats strong { display: block; font-size: 16px; font-weight: 700; color: var(--text); }
.stats span { font-size: 12px; color: var(--text-3); }

.panel { margin: 14px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 8px 8px; }
.panel-title { font-size: 14px; font-weight: 700; margin: 0 6px 8px; display: flex; align-items: center; gap: 6px; }
.panel-title::before { content: ''; width: 4px; height: 13px; border-radius: 2px; background: linear-gradient(180deg, #5B5BF6, #8B7CFF); }
.grid-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.grid-links li { text-align: center; }
.grid-links a { display: block; padding: 9px 2px; border-radius: 12px; }
.grid-links a:active { background: #F7F8FD; }
.grid-links img { width: 34px; height: 34px; object-fit: contain; margin: 0 auto 6px; }
.grid-links p { font-size: 12px; color: var(--text-2); }

/* ---------------- 订单 ---------------- */
.order-tabs {
    position: sticky; top: 52px; z-index: 45;
    display: flex; gap: 6px; padding: 9px 12px; overflow-x: auto;
    background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.order-tabs::-webkit-scrollbar { display: none; }
.order-tabs a {
    flex: none; padding: 7px 15px; border-radius: 999px; background: #F4F5FA;
    font-size: 13px; color: var(--text-2); transition: .2s ease;
}
.order-tabs a.current-topnav { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.order-list { padding: 4px 14px 20px; }
.order-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin-top: 12px; overflow: hidden; }
.order-card > a { display: block; padding: 14px 14px 0; }
.order-head { display: flex; gap: 12px; align-items: center; }
.order-head img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; background: #F4F5FA; flex: none; }
.order-title { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-money { font-size: 15px; font-weight: 800; color: var(--gold); flex: none; }
.order-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding: 10px 0; border-top: 1px dashed var(--line); font-size: 12px; color: var(--text-3); }
.order-meta em { font-style: normal; }
.order-foot { display: flex; justify-content: flex-end; padding: 0 14px 14px; }
.chip { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 12px; background: #F4F5FA; color: var(--text-2); }
.chip-pass { background: #E9FBF2; color: var(--success); }
.chip-wait { background: #FFF7E6; color: var(--warn); }
.chip-fail { background: #FEECEB; color: var(--danger); }
.empty { text-align: center; padding: 70px 20px; color: var(--text-3); font-size: 13px; }
.empty img { width: 120px; margin: 0 auto 14px; opacity: .9; }

/* ---------------- 搜索 ---------------- */
.search-box {
    display: flex; align-items: center; gap: 8px; margin: 12px 14px 0; padding: 8px 12px;
    background: #fff; border-radius: 12px; box-shadow: var(--shadow);
}
.search-box svg { width: 17px; height: 17px; color: var(--text-3); flex: none; }
.search-box input { flex: 1; min-width: 0; height: 26px; border: 0; outline: none; background: transparent; font-size: 14px; color: var(--text); }
.search-box button {
    flex: none; height: 30px; padding: 0 14px; border: 0; border-radius: 9px;
    background: linear-gradient(135deg, #5B5BF6, #8B7CFF); color: #fff; font-size: 13px; font-weight: 600;
}
.search-tip { margin: 14px 16px 10px; font-size: 12px; color: var(--text-3); }
.search-tip b { color: var(--primary); font-weight: 700; }
.search-list { padding: 0 14px 20px; }

/* ---------------- 弹层 / 上传 ---------------- */
.max-img { width: 100%; display: block; }
.box_warp { position: fixed; inset: 0; z-index: 200; background: rgba(12, 14, 28, .55); display: flex; align-items: center; justify-content: center; padding: 22px; }
.box_info { width: 100%; max-width: 460px; background: #fff; border-radius: 18px; overflow: hidden; }
.box_head { padding: 16px; background: linear-gradient(135deg, #5B5BF6, #7C3AED); color: #fff; }
.box_head h3 { font-size: 16px; }
.box_content { padding: 16px; }
.box_content h4 { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 4px; }
.box_content h4 span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; color: #fff; background: linear-gradient(135deg, #5B5BF6, #7C3AED); }
.box_content p { font-size: 12px; color: var(--text-2); line-height: 1.7; margin-bottom: 12px; }
.box_content ul { display: flex; gap: 8px; margin-top: 10px; }
.box_content ul li { flex: 1; }
.ccbtn { display: flex; align-items: center; justify-content: center; height: 40px; border-radius: 11px; background: #F1F2F8; color: var(--primary); font-size: 13px; font-weight: 600; }
.ccbtn.red { background: linear-gradient(135deg, #5B5BF6, #7C3AED); color: #fff; }

/* 兼容旧图标的通用缩放 */
.sz, .xx { width: 20px; height: 20px; }

/* ---------------- 加载中 ---------------- */
.loading-mask {
    position: fixed; inset: 0; z-index: 300;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .55); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.spinner {
    width: 34px; height: 34px; border-radius: 50%;
    border: 3px solid #E2E4F3; border-top-color: #5B5BF6;
    animation: app-spin .8s linear infinite;
}
@keyframes app-spin { to { transform: rotate(360deg); } }

/* ---------------- 底部操作面板 ---------------- */
.m-actionsheet {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 210;
    max-width: var(--max); margin: 0 auto;
    background: #fff; border-radius: 20px 20px 0 0;
    padding: 6px 12px calc(14px + env(safe-area-inset-bottom));
    box-shadow: 0 -10px 30px rgba(0, 0, 0, .14);
    transform: translateY(112%); transition: transform .26s ease;
}
.m-actionsheet.open { transform: translateY(0); }
.actionsheet-item,
.actionsheet-action {
    display: block; height: 50px; line-height: 50px; text-align: center;
    font-size: 15px; color: var(--text); border-bottom: 1px solid #F1F2F8;
}
.actionsheet-item:last-of-type { border-bottom: 0; }
.actionsheet-action { color: var(--text-3); margin-top: 6px; }

/* 详情页“三步走”弹层内的勾选框 */
.box_content .choose_label { display: inline-flex; align-items: center; margin-right: 6px; }
.box_content .choose_input { width: 16px; height: 16px; accent-color: #5B5BF6; }
.box_content em { font-style: normal; font-size: 12px; color: var(--text-2); }

