:root {
    --tenant-primary: #2563eb;
    --brand: #2563eb;
    --brand-dark: #1d4ed8;
    --brand-soft: #eff6ff;
    --ink: #102033;
    --text: #2f4057;
    --muted: #667085;
    --subtle: #8a98aa;
    --line: #d8e0ea;
    --line-soft: #e8edf3;
    --bg: #f7f8fa;
    --surface: #ffffff;
    --surface-2: #f8fbff;
    --danger: #b42318;
    --success: #087443;
    --warning: #8a5a00;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, .05);
    --shadow: 0 12px 30px rgba(37, 99, 235, .065);
    --shadow-hover: 0 16px 38px rgba(37, 99, 235, .12);
    --shadow-strong: 0 18px 42px rgba(15, 23, 42, .12);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

html, body {
    margin: 0;
    padding: 0;
    background-color: var(--bg);
    background-image: linear-gradient(180deg, #fbfcfd 0, var(--bg) 240px);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body { overflow-x: clip; }
main { display: block; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 850; line-height: 1.22; }
button, a { touch-action: manipulation; }

:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

/* ---------- 顶部品牌栏 ---------- */
.skip-link {
    position: fixed;
    left: 12px; top: -64px;
    z-index: 80;
    padding: 9px 12px;
    border-radius: 12px;
    background: var(--ink);
    color: #fff;
    font-size: 14px;
    transition: top .18s ease;
}
.skip-link:focus { top: 12px; }

.front-header {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 64px;
    padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px));
    background: rgba(250, 252, 255, .88);
    border-bottom: 1px solid rgba(216, 224, 234, .82);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: var(--ink);
    font-size: 17px;
    font-weight: 880;
    letter-spacing: 0;
}
.brand > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.brand-mark {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 36px; height: 36px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #1d4ed8, #38bdf8);
    box-shadow: 0 12px 26px rgba(37, 99, 235, .18);
}
.brand-mark svg { width: 19px; height: 19px; }
.header-action {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 44px; height: 44px;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    color: #1d4ed8;
    background: #fff;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.header-action svg { width: 21px; height: 21px; }
.header-action:active { transform: scale(.97); }

/* ---------- 页面容器 ---------- */
.page {
    width: min(100%, 780px);
    margin: 0 auto;
    padding: 16px 14px calc(100px + env(safe-area-inset-bottom, 0px));
    overflow-x: clip;
}
body.no-tabbar .page { padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }

.wrap { margin: 0; }

/* ---------- 首页主视觉 ---------- */
.home-hero {
    position: relative;
    overflow: hidden;
    margin: 0 0 16px;
    padding: 24px 18px 18px;
    border: 1px solid rgba(191, 219, 254, .96);
    border-radius: 26px;
    background:
        radial-gradient(circle at 86% 8%, rgba(56, 189, 248, .18), transparent 30%),
        linear-gradient(135deg, #eff6ff 0%, #ffffff 54%, #eaf5ff 100%);
    box-shadow: 0 18px 44px rgba(37, 99, 235, .12);
}
.home-hero::after {
    content: "";
    position: absolute;
    right: 18px; top: 18px;
    width: 72px; height: 72px;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(37, 99, 235, .12), rgba(56, 189, 248, .15));
    transform: rotate(8deg);
    pointer-events: none;
}
.home-hero > * { position: relative; z-index: 1; }
.home-hero h1 {
    max-width: 320px;
    margin: 14px 0 8px;
    color: var(--ink);
    font-size: 36px;
    line-height: 1.06;
    font-weight: 920;
    letter-spacing: 0;
}
.home-hero p {
    max-width: 360px;
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 15px;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    color: #1d4ed8;
    background: #eff6ff;
    font-size: 12px;
    font-weight: 880;
}
.home-hero .tel {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 13px;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    color: #1d4ed8;
    background: #fff;
    font-size: 13px;
    font-weight: 820;
}
.home-service-notice {
    display: block;
    overflow-wrap: anywhere;
    margin: 12px 0 0;
    padding: 10px 12px;
    border: 1px solid rgba(183, 121, 31, .28);
    border-radius: 14px;
    color: #7a4b00;
    background: #fff8e7;
    font-size: 13px;
    font-weight: 780;
    line-height: 1.45;
}

/* ---------- 内页页头 ---------- */
.page-head {
    margin: 0 0 10px;
    padding: 10px 2px 12px;
}
.page-head h1 {
    margin: 0 0 6px;
    color: var(--ink);
    font-size: 31px;
    line-height: 1.16;
    font-weight: 920;
}
.page-head p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.5;
}

/* ---------- 通用横幅（详情/表单页） ---------- */
.hero {
    position: relative;
    overflow: hidden;
    margin: 0 0 14px;
    padding: 22px;
    border-radius: 26px;
    color: #fff;
    background:
        radial-gradient(circle at 88% 0%, rgba(56, 189, 248, .3), transparent 34%),
        linear-gradient(135deg, #0b3a82 0%, #1d4ed8 62%, #38bdf8 132%);
    box-shadow: 0 18px 44px rgba(37, 99, 235, .16);
}
.hero::after {
    content: "";
    position: absolute;
    right: -34px; top: -34px;
    width: 150px; height: 150px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero h1 {
    color: #fff;
    font-size: 28px;
    line-height: 1.16;
    font-weight: 920;
}
.hero p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, .9);
    font-size: 14px;
}
.hero .tel {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    margin-top: 12px;
    padding: 0 13px;
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, .14);
    font-size: 13px;
    font-weight: 800;
}
.hero-tag {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 3px 10px;
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}
.hero-tag + h1 { margin-top: 10px; }
.detail-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    color: #fff;
    font-size: 34px;
    font-weight: 920;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.detail-price small {
    color: rgba(255, 255, 255, .82);
    font-size: 13px;
    font-weight: 700;
}
.detail-price .tag {
    border-color: rgba(255, 255, 255, .3);
    background: rgba(255, 255, 255, .16);
    color: #fff;
}
.hero-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}
.hero-actions .btn { flex: 1; min-width: 0; }
.hero-actions .btn-primary {
    color: #1d4ed8;
    background: #fff;
    box-shadow: 0 12px 26px rgba(8, 26, 64, .22);
}
.hero-actions .btn-primary:active { background: #eff6ff; }
.hero-actions .btn-outline {
    color: #fff;
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .34);
}
.hero-actions .btn-outline:active { background: rgba(255, 255, 255, .22); }

/* ---------- 区块标题 ---------- */
.section { margin-top: 16px; }
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 2px 12px;
}
.section-head h2 {
    color: var(--ink);
    font-size: 17px;
    line-height: 1.22;
    font-weight: 900;
}
.section-head .more {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    color: var(--brand);
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

/* ---------- 卡片 ---------- */
.card {
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    border: 1px solid rgba(191, 219, 254, .82);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow);
}
a.card { display: block; color: inherit; }
a.card:active { opacity: .92; }
a.card.service-item,
a.card.case-item { display: flex; }

/* ---------- 首页分类横滑 ---------- */
.cat-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin: 0 -14px 14px;
    padding: 0 14px 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.cat-strip::-webkit-scrollbar { display: none; }
.cat-strip a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 6px 13px 6px 6px;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: #1e3a8a;
    font-size: 14px;
    font-weight: 800;
    box-shadow: var(--shadow-xs);
    white-space: nowrap;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}
.cat-strip a:active { transform: scale(.98); }
.cat-strip .dot {
    display: grid;
    place-items: center;
    width: 26px; height: 26px;
    border-radius: 999px;
    background: linear-gradient(135deg, #1d4ed8, #38bdf8);
    color: #fff;
    font-size: 12px;
    font-weight: 880;
}

/* ---------- 三宫格 / 统计 ---------- */
.grid-cats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.grid-cats a {
    display: grid;
    place-items: center;
    gap: 6px;
    min-height: 82px;
    padding: 12px 8px;
    border: 1px solid #dbeafe;
    border-radius: 20px;
    background: linear-gradient(180deg, #fff, #fbfcfd);
    color: var(--ink);
    font-size: 13px;
    font-weight: 820;
    text-align: center;
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.grid-cats a:active { transform: scale(.98); }
.grid-cats .dot {
    display: block;
    color: #1d4ed8;
    font-size: 20px;
    line-height: 1.1;
    font-weight: 920;
    font-variant-numeric: tabular-nums;
}

/* ---------- 服务列表 ---------- */
.service-list,
.order-list { display: grid; gap: 10px; }
.service-item {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 12px;
    min-height: 116px;
    padding: 16px;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.service-item::before {
    content: "";
    position: absolute;
    inset: 14px auto 14px 0;
    width: 3px;
    border-radius: 0 999px 999px 0;
    background: linear-gradient(180deg, #1d4ed8, #38bdf8);
    opacity: .72;
}
.service-item .cover {
    position: relative;
    flex: 0 0 84px;
    width: 84px; height: 84px;
    align-self: center;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
}
.service-item .cover img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}
.service-item .body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.service-item h3 {
    margin: 0 0 4px;
    color: var(--ink);
    font-size: 17px;
    line-height: 1.25;
    font-weight: 900;
}
.service-item .summary {
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.service-item .meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
}
.price {
    color: #1d4ed8;
    font-weight: 900;
    font-size: 18px;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.price small {
    margin-left: 2px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 650;
}
.tag {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 9px;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    color: #1d4ed8;
    background: #eff6ff;
    font-size: 12px;
    font-weight: 860;
    white-space: nowrap;
}

/* ---------- 案例 ---------- */
.case-item {
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.case-item .thumb {
    flex: 0 0 88px;
    width: 88px; height: 68px;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
}
.case-item .thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}
.case-item .body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.case-item .title {
    color: var(--ink);
    font-size: 16px;
    font-weight: 900;
    line-height: 1.3;
}
.case-item .note { font-size: 12px; color: var(--muted); }
.case-item .chev {
    flex: 0 0 auto;
    color: #b6c4d8;
    font-size: 22px;
    line-height: 1;
}

.detail-cover {
    margin: 0 0 14px;
    border: 1px solid rgba(191, 219, 254, .82);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    box-shadow: var(--shadow);
}
.detail-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* ---------- 筛选药丸 ---------- */
.chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin: 0 -14px 14px;
    padding: 2px 14px 12px;
    background: transparent;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar { display: none; }
.chips a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: #1e3a8a;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: var(--shadow-xs);
    transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.chips a:active { transform: scale(.98); }
.chips a.active {
    color: #fff;
    background: var(--brand);
    border-color: var(--brand);
}

/* ---------- 搜索卡 ---------- */
.search-card {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 12px;
}
.search-card input[type="search"] {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px 12px;
    background: #fff;
    color: var(--ink);
    font-size: 16px;
    font-family: inherit;
}
.search-card input[type="search"]:focus {
    border-color: rgba(29, 78, 216, .72);
    box-shadow: 0 0 0 4px rgba(29, 78, 216, .12);
    outline: none;
}
.search-card .btn {
    width: auto;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 12px;
    font-size: 14px;
}

/* ---------- 按钮 ---------- */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 12px 16px;
    border: 0;
    border-radius: 14px;
    background: #eef1f6;
    color: var(--ink);
    font-family: inherit;
    font-size: 16px;
    font-weight: 860;
    line-height: 1.3;
    text-align: center;
    cursor: pointer;
    transition: background .15s ease, transform .1s ease, opacity .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    box-shadow: 0 14px 30px rgba(37, 99, 235, .24);
}
.btn-primary:active { background: linear-gradient(135deg, #1e40af, #1d4ed8); }
.btn-outline {
    color: var(--brand);
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}
.btn-outline:active { background: #dbeafe; }
.btn-ghost {
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}
.btn-danger {
    color: var(--danger);
    background: #fff;
    border: 1px solid #f3c2c4;
}
.btn-danger:active { background: #fdecec; }
.btn-sm {
    width: auto;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 12px;
    font-size: 13px;
    white-space: nowrap;
}
.btn[disabled] { opacity: .48; cursor: not-allowed; box-shadow: none; }
.btn[disabled]:active { transform: none; }
.btn-row { display: flex; gap: 10px; margin-top: 12px; }
.btn-row .btn { flex: 1; }

/* ---------- 浮动底部导航 ---------- */
.tabbar {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: 68px;
    padding: 7px 8px max(7px, env(safe-area-inset-bottom, 0px));
    border: 1px solid rgba(191, 219, 254, .94);
    border-radius: 24px;
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 46px rgba(37, 99, 235, .16);
}
.tabbar a {
    display: grid;
    place-items: center;
    gap: 2px;
    min-height: 52px;
    border-radius: 18px;
    color: #52657f;
    font-size: 12px;
    font-weight: 850;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}
.tabbar a .ico {
    display: grid;
    place-items: center;
    width: auto; height: auto;
    margin: 0;
    border-radius: 0;
    background: none;
}
.tabbar a .ico svg {
    width: 21px; height: 21px;
    display: inline-block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.tabbar a.active {
    color: #1d4ed8;
    background: #eff6ff;
}
.tabbar a.active .ico svg { stroke-width: 2.1; }

/* ---------- 表单 ---------- */
.field { margin-bottom: 14px; }
.field label,
.field .field-label {
    display: block;
    margin-bottom: 6px;
    color: #344054;
    font-size: 14px;
    font-weight: 700;
}
.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
    background: #fff;
    color: var(--ink);
    font-family: inherit;
    font-size: 16px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: rgba(29, 78, 216, .72);
    box-shadow: 0 0 0 4px rgba(29, 78, 216, .12);
    outline: none;
}
.field textarea { min-height: 88px; resize: vertical; }
.field .hint { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.field-row { display: flex; gap: 8px; }
.field-row input { flex: 1; min-width: 0; }
.radio-group { display: flex; gap: 10px; }
.radio-group label {
    position: relative;
    flex: 1;
    margin: 0;
    padding: 11px 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--ink);
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.radio-group input {
    position: absolute;
    width: 1px; height: 1px;
    margin: 0; padding: 0;
    opacity: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}
.radio-group input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
.radio-group input:checked + span { color: #1d4ed8; font-weight: 700; }
.radio-group label.on { border-color: var(--brand); background: var(--brand-soft); }
.radio-group input:disabled + span { color: var(--muted); opacity: .55; }

/* ---------- 信息行 ---------- */
.kv {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 15px;
}
.kv:last-child { border-bottom: 0; }
.kv .k { flex: 0 0 auto; color: var(--muted); }
.kv .v { text-align: right; color: var(--ink); font-weight: 700; word-break: break-all; }
a.kv:active { opacity: .7; }

/* ---------- 订单 ---------- */
.order-item { margin-bottom: 0; }
.order-item .top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}
.order-item .no { color: var(--muted); font-size: 12px; word-break: break-all; }
.order-item .title {
    display: block;
    margin-bottom: 4px;
    color: var(--ink);
    font-size: 17px;
    font-weight: 900;
    line-height: 1.3;
}
.order-item .foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--line-soft);
}
.order-item .foot .acts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}
.order-item .foot .acts a {
    padding: 6px 12px;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    color: #1d4ed8;
    background: #fff;
    font-size: 13px;
    font-weight: 800;
}
.order-item .foot .acts a:active { background: var(--brand-soft); }

.status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 9px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}
.status.done { background: #e9f8f0; color: var(--success); }
.status.cancel { background: #f2f4f7; color: var(--muted); }
.status.danger { background: #feeceb; color: var(--danger); }

/* ---------- 标签页 ---------- */
.tabs {
    position: sticky;
    top: 64px;
    z-index: 30;
    display: flex;
    overflow-x: auto;
    margin: 14px 0 0;
    border: 1px solid rgba(191, 219, 254, .82);
    border-radius: 18px 18px 0 0;
    background: rgba(255, 255, 255, .96);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
    flex: 1 0 auto;
    padding: 12px 10px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    transition: color .15s ease;
}
.tabs a.active { color: #1d4ed8; box-shadow: inset 0 -2px 0 #2563eb; }
.tabs a:focus-visible { outline-offset: -3px; }
.tab-panel {
    margin-top: 0;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    border-top: 0;
}

/* ---------- 富文本 ---------- */
.rich {
    color: var(--text);
    font-size: 15px;
    line-height: 1.78;
    word-break: break-word;
}
.rich img { border-radius: 14px; margin: 10px 0; }
.rich p { margin: 8px 0; }
.rich a { color: var(--brand); }
.rich table {
    width: 100%;
    margin: 10px 0;
    border-collapse: collapse;
    display: block;
    overflow-x: auto;
}
.rich th, .rich td {
    padding: 9px 10px;
    border: 1px solid var(--line-soft);
    text-align: left;
}
.rich pre {
    overflow-x: auto;
    padding: 12px;
    border-radius: 14px;
    background: #f4f7fb;
}

/* ---------- 进度时间线 ---------- */
.timeline { margin-top: 4px; }
.timeline li {
    position: relative;
    padding: 0 0 16px 20px;
    border-left: 1px solid #bfdbfe;
}
.timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline li::before {
    content: "";
    position: absolute;
    left: -5px; top: 5px;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #2563eb;
    box-shadow: 0 0 0 4px #dbeafe;
}
.timeline li:first-child::before {
    border-color: #38bdf8;
    box-shadow: 0 0 0 4px #e0f2fe;
}
.timeline .t { color: var(--muted); font-size: 12px; }
.timeline .c { color: var(--ink); font-size: 14px; }

/* ---------- 其他 ---------- */
.qr-box { text-align: center; }
.qr-box img {
    width: 220px;
    max-width: 72vw;
    margin: 0 auto 10px;
    border: 8px solid #fff;
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .1);
}
.note { color: var(--muted); font-size: 12px; line-height: 1.5; }

.empty,
.empty-state {
    padding: 30px 16px;
    border: 1px dashed var(--line);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}
.empty-state h2 {
    margin: 0 0 6px;
    color: var(--ink);
    font-size: 19px;
    font-weight: 920;
}
.empty-state p { margin: 0 0 16px; }
.empty-state .btn { width: auto; min-width: 140px; margin: 0 auto; }

.footer-links {
    padding: 22px 0 8px;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}
.footer-links a { margin: 0 6px; }

.faq details {
    margin-bottom: 8px;
    padding: 14px 16px;
    border: 1px solid rgba(191, 219, 254, .82);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    box-shadow: var(--shadow);
}
.faq details:last-child { margin-bottom: 0; }
.faq summary {
    position: relative;
    padding-right: 26px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "";
    position: absolute;
    right: 4px; top: 50%;
    width: 7px; height: 7px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: translateY(-70%) rotate(45deg);
    transition: transform .18s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.65; }

/* ---------- 客服中心 ---------- */
.service-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}
.service-contact-grid > div {
    padding: 14px;
    border: 1px solid rgba(191, 219, 254, .82);
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    box-shadow: var(--shadow);
}
.service-contact-grid strong {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}
.service-contact-grid a,
.service-contact-grid span {
    color: var(--ink);
    font-size: 15px;
    font-weight: 800;
    word-break: break-all;
}
.faq-list { margin-top: 2px; }
.faq-item {
    padding: 12px 0;
    border-bottom: 1px dashed rgba(191, 219, 254, .9);
}
.faq-item:last-child { padding-bottom: 0; border-bottom: 0; }
.faq-item strong {
    display: block;
    margin-bottom: 6px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 800;
}
.faq-item p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
@media (min-width: 760px) {
    .service-contact-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.toast {
    position: fixed;
    left: 50%; top: 50%;
    z-index: 99;
    max-width: 78%;
    padding: 10px 16px;
    border-radius: 12px;
    background: rgba(16, 32, 51, .9);
    color: #fff;
    font-size: 13px;
    text-align: center;
    word-break: break-word;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity .2s;
    pointer-events: none;
}
.toast.show { opacity: 1; }

.auth-tip { padding: 60px 24px; text-align: center; }
.auth-tip .box {
    padding: 26px 18px;
    border: 1px solid rgba(191, 219, 254, .82);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    box-shadow: var(--shadow);
}
.auth-tip h1 { margin-bottom: 10px; font-size: 19px; }
.auth-tip p { color: var(--muted); font-size: 14px; }
.uploading { margin-top: 6px; color: var(--muted); font-size: 12px; }
.img-preview { margin-top: 10px; border-radius: 14px; overflow: hidden; }
.img-preview img { width: 100%; }

/* ---------- 分页 ---------- */
.pager { margin: 16px 0 4px; text-align: center; }
.pager .pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    padding: 0;
    margin: 0;
    list-style: none;
}
.pager .pagination li { display: inline-block; }
.pager .pagination li a,
.pager .pagination li span {
    display: inline-block;
    min-width: 38px;
    padding: 8px 10px;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    background: #fff;
    color: var(--muted);
    font-size: 13px;
}
.pager .pagination li.active span {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
}
.pager .pagination li.disabled span { opacity: .5; }

/* ---------- 头像与「我的」 ---------- */
.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1d4ed8, #38bdf8);
    color: #fff;
    font-size: 17px;
    font-weight: 800;
}
.avatar-lg { width: 56px; height: 56px; font-size: 22px; }
.hero-user { display: flex; align-items: center; gap: 12px; }
.hero-user .avatar { background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .5); }
.hero-user-info { flex: 1; min-width: 0; }
.hero-user-info h1 {
    overflow: hidden;
    color: #fff;
    font-size: 19px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hero-user-info p { margin-top: 2px; }
.hero-user-more { flex: 0 0 auto; color: rgba(255, 255, 255, .88); font-size: 13px; }

.profile-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 18px;
}
.profile-head .avatar {
    width: 56px; height: 56px;
    font-size: 22px;
}
.profile-main { min-width: 0; }
.profile-main h1 {
    overflow: hidden;
    color: var(--ink);
    font-size: 19px;
    font-weight: 920;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.profile-main p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.stat-card { padding: 12px; }
.menu-list { padding: 4px 16px; }
.menu-list .kv { padding: 14px 0; font-size: 15px; }
.menu-list .kv:last-child { border-bottom: 0; }
.menu-list .k { color: var(--ink); font-weight: 760; }
.menu-list .v { color: var(--muted); font-size: 13px; font-weight: 500; }

/* ---------- 登录页 ---------- */
.login-hero {
    margin: 0 0 14px;
    padding: 34px 18px 30px;
    border-radius: 26px;
    background:
        radial-gradient(circle at 88% 0%, rgba(56, 189, 248, .3), transparent 34%),
        linear-gradient(135deg, #0b3a82 0%, #1d4ed8 62%, #38bdf8 132%);
    color: #fff;
    text-align: center;
    box-shadow: 0 18px 44px rgba(37, 99, 235, .16);
}
.login-logo {
    width: 64px; height: 64px;
    font-size: 26px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .45);
}
.login-hero h1 { margin-top: 12px; color: #fff; font-size: 22px; font-weight: 920; }
.login-hero p { margin: 4px 0 0; color: rgba(255, 255, 255, .86); font-size: 13px; }
.login-wrap { margin-top: 0; }
.login-title { margin-bottom: 8px; color: var(--ink); font-size: 17px; font-weight: 900; }
.link-box {
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px dashed var(--line);
    border-radius: 14px;
    background: #f9fbfd;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
    word-break: break-all;
}
.login-tip { margin: 14px 6px 0; text-align: center; }

/* ---------- 桌面 / 小屏 ---------- */
@media (min-width: 760px) {
    .page { padding-inline: 20px; }
    .home-hero { padding: 34px 30px 26px; }
    .home-hero h1 { font-size: 44px; }
    .service-list,
    .order-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 420px) {
    .page {
        padding-inline: 12px;
        padding-bottom: calc(98px + env(safe-area-inset-bottom, 0px));
    }
    .home-hero {
        padding: 22px 16px 16px;
        border-radius: 24px;
    }
    .home-hero h1 { font-size: 34px; }
    .card { border-radius: 20px; }
    .hero { border-radius: 24px; padding: 20px; }
    .cat-strip,
    .chips {
        margin-inline: -12px;
        padding-inline: 12px;
    }
    .tabs { top: 64px; }
}

@media (hover: hover) {
    .cat-strip a:hover { background: #2563eb; color: #fff; border-color: #2563eb; }
    .chips a:hover { color: #1d4ed8; border-color: #bfdbfe; }
    .chips a.active:hover { color: #fff; }
    .grid-cats a:hover { border-color: rgba(37, 99, 235, .35); box-shadow: 0 14px 28px rgba(37, 99, 235, .1); }
    a.card:hover { border-color: rgba(37, 99, 235, .3); box-shadow: var(--shadow-hover); }
    .service-item:hover,
    .case-item:hover { transform: translateY(-1px); }
    .service-item:hover .cover img,
    .case-item:hover .thumb img { transform: scale(1.04); }
    .btn-primary:hover { background: linear-gradient(135deg, #1e40af, #1d4ed8); }
    .btn-outline:hover { background: #dbeafe; }
    .btn-ghost:hover { background: #dbeafe; }
    .btn-danger:hover { background: #fdecec; }
    .tabbar a:hover { color: #1d4ed8; }
    .pager .pagination li a:hover { border-color: var(--brand); color: var(--brand); }
    .header-action:hover { border-color: #bfdbfe; box-shadow: 0 10px 24px rgba(37, 99, 235, .12); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ---------- 企业查询 ---------- */
.enterprise-lookup-card {
    margin: 0 0 12px;
    padding: 12px;
    border: 1px solid rgba(191, 219, 254, .9);
    border-radius: 18px;
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--shadow-xs);
}
.enterprise-search-panel {
    margin: 0 0 14px;
    padding: 14px;
    border: 1px solid rgba(191, 219, 254, .82);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    box-shadow: var(--shadow);
}
.enterprise-lookup-card > label,
.enterprise-search-panel > label {
    display: block;
    margin: 0 0 8px;
    color: #344054;
    font-size: 13px;
    font-weight: 800;
}
.enterprise-lookup-card .search-row,
.enterprise-search-panel .search-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 6px 0 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.enterprise-lookup-card .search-row:focus-within,
.enterprise-search-panel .search-row:focus-within {
    border-color: rgba(29, 78, 216, .72);
    box-shadow: 0 0 0 4px rgba(29, 78, 216, .12);
}
.enterprise-lookup-card .search-row .icon,
.enterprise-search-panel .search-row .icon {
    flex: 0 0 auto;
    width: 19px;
    height: 19px;
    color: var(--subtle);
}
.enterprise-lookup-card .search-row input,
.enterprise-search-panel .search-row input {
    flex: 1;
    min-width: 0;
    width: 100%;
    padding: 12px 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.3;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}
.enterprise-lookup-card .search-row input::-webkit-search-cancel-button,
.enterprise-search-panel .search-row input::-webkit-search-cancel-button { -webkit-appearance: none; }
.enterprise-lookup-card .search-row input::placeholder,
.enterprise-search-panel .search-row input::placeholder { color: var(--subtle); }
.enterprise-lookup-card .search-row button,
.enterprise-search-panel .search-row button {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 16px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 860;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(37, 99, 235, .22);
    transition: transform .1s ease, box-shadow .15s ease, background .15s ease;
}
.enterprise-lookup-card .search-row button:active,
.enterprise-search-panel .search-row button:active { transform: translateY(1px); }
.enterprise-lookup-card small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.enterprise-result-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 2px 10px;
}
.enterprise-result-title h2 {
    color: var(--ink);
    font-size: 17px;
    font-weight: 900;
}
.enterprise-result-title span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}
.enterprise-result-list { display: grid; gap: 10px; }
.company-result-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}
.company-result-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    color: #1d4ed8;
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
}
.company-result-icon svg { width: 21px; height: 21px; }
.company-result-main { min-width: 0; }
.company-result-main h2 {
    margin: 0 0 4px;
    color: var(--ink);
    font-size: 16px;
    font-weight: 900;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
.company-result-meta .kv {
    padding: 6px 0;
    border-bottom: 1px dashed var(--line-soft);
    font-size: 13px;
    line-height: 1.45;
}
.company-result-meta .kv:last-child { border-bottom: 0; }
.company-result-meta .k { color: var(--muted); font-weight: 600; }
.company-result-meta .v { color: var(--ink); font-weight: 700; word-break: break-all; }
.company-result-empty {
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

@media (max-width: 420px) {
    .enterprise-lookup-card { padding: 10px; }
    .enterprise-search-panel { padding: 12px; }
    .enterprise-lookup-card .search-row,
    .enterprise-search-panel .search-row { padding-left: 10px; }
    .enterprise-lookup-card .search-row button,
    .enterprise-search-panel .search-row button { padding: 0 13px; }
    .company-result-icon { width: 38px; height: 38px; border-radius: 12px; }
}

@media (hover: hover) {
    .enterprise-lookup-card .search-row button:hover,
    .enterprise-search-panel .search-row button:hover {
        background: linear-gradient(135deg, #1e40af, #1d4ed8);
        box-shadow: 0 10px 22px rgba(37, 99, 235, .28);
    }
}
