:root {
    --brand: #0aa55a;
    --brand-dark: #067a43;
    --brand-soft: #e9f8ef;
    --brand-pale: #f4fbf7;
    --ink: #17231c;
    --muted: #748079;
    --line: #e4ebe6;
    --canvas: #f3f6f4;
    --card: #fff;
    --danger: #ef4f43;
    --warning: #ff9c37;
    --shadow: 0 14px 42px rgba(22, 67, 42, .08);
    --radius-xl: 26px;
    --radius-lg: 20px;
    --radius-md: 15px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--canvas);
    font: 14px/1.55 "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
    -webkit-tap-highlight-color: transparent;
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .58; }
button, a, input, textarea, select { outline-color: rgba(10, 165, 90, .3); }

.app-shell {
    width: min(1120px, 100%);
    min-height: 100vh;
    margin: 0 auto;
    padding: 0 18px 108px;
}
.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: auto minmax(180px, 560px) auto;
    align-items: center;
    gap: 14px;
    min-height: 72px;
    background: rgba(243, 246, 244, .92);
    backdrop-filter: blur(18px);
}
.location-button {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 44px;
    padding: 0;
    border: 0;
    color: var(--ink);
    background: transparent;
    font-weight: 800;
}
.location-dot {
    width: 10px;
    height: 10px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 1px rgba(10, 165, 90, .25), 0 4px 10px rgba(10, 165, 90, .25);
}
.chevron { color: var(--muted); }
.searchbox { position: relative; display: block; width: 100%; margin: auto; }
.searchbox span {
    position: absolute;
    left: 15px;
    top: 9px;
    color: var(--brand);
    font-size: 20px;
}
.searchbox input {
    width: 100%;
    height: 44px;
    padding: 0 16px 0 43px;
    border: 1px solid #dce6df;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(25, 61, 39, .04);
}
.searchbox input:focus { border-color: #8ad8af; box-shadow: 0 0 0 4px rgba(10, 165, 90, .08); }
.admin-link {
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 19px;
    color: var(--brand-dark);
    background: #fff;
    text-decoration: none;
    font-weight: 700;
}

.screen { display: none; animation: page-in .22s ease; }
.screen.active { display: block; }
@keyframes page-in { from { opacity: .35; transform: translateY(5px); } }

.hero {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    min-height: 300px;
    overflow: hidden;
    padding: 42px 46px;
    border-radius: var(--radius-xl);
    color: #fff;
    background:
        radial-gradient(circle at 82% 15%, rgba(255, 255, 255, .2), transparent 30%),
        linear-gradient(120deg, #078f4b, #1ecb71);
    box-shadow: 0 20px 55px rgba(6, 143, 75, .22);
}
.hero::before {
    position: absolute;
    right: -95px;
    bottom: -120px;
    width: 340px;
    height: 340px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 50%;
    content: "";
}
.hero-copy { position: relative; z-index: 2; align-self: center; }
.hero-kicker {
    display: inline-flex;
    padding: 5px 11px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 20px;
    background: rgba(255, 255, 255, .12);
    font-size: 12px;
}
.hero h1 {
    margin: 15px 0 10px;
    font-size: clamp(34px, 4.4vw, 52px);
    line-height: 1.12;
    letter-spacing: 1px;
}
.hero h1 strong { color: #dfffea; }
.hero p { max-width: 520px; margin: 0; color: rgba(255, 255, 255, .82); }
.hero-action {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    min-height: 46px;
    margin-top: 25px;
    padding: 0 18px;
    border: 0;
    border-radius: 13px;
    color: var(--brand-dark);
    background: #fff;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(5, 90, 45, .17);
}
.hero-visual { position: relative; display: grid; place-items: center; min-height: 210px; }
.visual-ring {
    position: absolute;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .13);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.technician-art {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 174px;
    height: 174px;
    border-radius: 40% 60% 56% 44%;
    background: rgba(255, 255, 255, .9);
    font-size: 92px;
    filter: drop-shadow(0 20px 22px rgba(0, 75, 38, .15));
}
.tool-bubble {
    position: absolute;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 22px rgba(2, 85, 42, .18);
    font-size: 22px;
}
.bubble-one { left: 7%; bottom: 12%; transform: rotate(-8deg); }
.bubble-two { right: 4%; top: 13%; transform: rotate(7deg); }

.promise-strip {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: -1px 24px 0;
    overflow: hidden;
    border-radius: 0 0 18px 18px;
    background: #fff;
    box-shadow: var(--shadow);
}
.promise-strip div { display: flex; justify-content: center; gap: 8px; padding: 14px 10px; border-right: 1px solid var(--line); }
.promise-strip div:last-child { border: 0; }
.promise-strip b { color: var(--brand-dark); }
.promise-strip span { color: var(--muted); }

.managed-homepage-blocks[hidden],
.managed-homepage-section[hidden],
.hero[hidden] {
    display: none;
}
.managed-homepage-blocks {
    display: grid;
    gap: 16px;
}
.managed-homepage-block {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--card);
    box-shadow: var(--shadow);
}
.managed-block-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.managed-block-heading h2 {
    margin: 0;
    font-size: 20px;
}
.managed-block-heading span {
    color: var(--brand);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.managed-banner-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.managed-banner-card {
    position: relative;
    display: grid;
    align-content: end;
    min-height: 170px;
    padding: 22px;
    overflow: hidden;
    border: 0;
    border-radius: 20px;
    color: #fff;
    background: linear-gradient(125deg, var(--brand-dark), var(--brand));
    background-position: center;
    background-size: cover;
    text-align: left;
}
.managed-banner-card strong {
    font-size: 22px;
    line-height: 1.2;
}
.managed-banner-card span {
    margin-top: 7px;
    color: rgba(255, 255, 255, .82);
}
.managed-banner-card i {
    position: absolute;
    right: 18px;
    bottom: 17px;
    font-size: 22px;
    font-style: normal;
}
.managed-recommendation-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.managed-recommendation-card {
    display: grid;
    gap: 7px;
    min-height: 92px;
    padding: 14px;
    border: 1px solid #d7ebe0;
    border-radius: 16px;
    color: var(--text);
    background: linear-gradient(135deg, #fff, #edfbf3);
    text-align: left;
}
.managed-recommendation-card span {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}
.managed-content-card {
    display: grid;
    grid-template-columns: minmax(0, 180px) 1fr;
    gap: 12px 18px;
    align-items: center;
}
.managed-content-card img {
    grid-row: 1 / span 2;
    width: 100%;
    min-height: 110px;
    max-height: 180px;
    border-radius: 15px;
    object-fit: cover;
}
.managed-content-card strong { font-size: 18px; }
.managed-content-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
    white-space: pre-line;
}
.managed-block-empty {
    margin: 0;
    padding: 18px;
    border-radius: 14px;
    color: var(--muted);
    background: #f5f8f6;
    text-align: center;
}
.managed-homepage-section {
    margin-top: 16px;
}
.managed-navigation-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.managed-navigation-item {
    min-height: 82px;
    padding: 12px 8px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    color: var(--text);
    display: grid;
    place-items: center;
    gap: 7px;
}
.managed-navigation-item img,
.managed-navigation-item i {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    object-fit: cover;
    display: grid;
    place-items: center;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-style: normal;
}
.managed-navigation-item span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.managed-media-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.managed-media-card {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
}
.managed-media-card strong {
    display: block;
    margin-bottom: 8px;
}
.managed-media-card video {
    display: block;
    width: 100%;
    max-height: 320px;
    border-radius: 13px;
    background: #101820;
}
.managed-target-link {
    width: 100%;
    min-height: 40px;
    margin-top: 10px;
    border: 0;
    border-radius: 12px;
    color: var(--brand-dark);
    background: var(--brand-soft);
    font-weight: 800;
}
.managed-hero-link {
    margin-left: 8px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .55);
    background: rgba(255, 255, 255, .12);
}
.managed-target-highlight {
    outline: 3px solid rgba(20, 178, 99, .45);
    box-shadow: 0 0 0 7px rgba(20, 178, 99, .12), var(--shadow);
}

.card-section {
    margin-top: 20px;
    padding: 23px;
    border-radius: var(--radius-lg);
    background: var(--card);
    box-shadow: var(--shadow);
}
.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}
.section-heading h2 { margin: 2px 0 0; font-size: 21px; line-height: 1.2; }
.eyebrow { color: var(--brand); font-size: 10px; font-weight: 900; letter-spacing: 1.6px; }
.text-button {
    min-height: 40px;
    padding: 0 10px;
    border: 0;
    color: var(--brand);
    background: transparent;
    font-weight: 700;
}
.section-note { color: var(--muted); font-size: 12px; }

.category-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px 8px; }
.category-tile {
    min-height: 96px;
    padding: 8px 4px;
    border: 0;
    border-radius: 16px;
    background: transparent;
    text-align: center;
}
.category-tile:hover, .category-tile:focus-visible { background: var(--brand-pale); }
.category-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 7px;
    border-radius: 19px;
    background: linear-gradient(145deg, #e3f9eb, #f9fffb);
    box-shadow: inset 0 0 0 1px rgba(10, 165, 90, .07);
    font-size: 27px;
}
.category-tile strong { display: block; font-size: 13px; }
.category-tile small { color: var(--muted); font-size: 10px; }

.campaign-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.campaign { position: relative; min-height: 152px; overflow: hidden; padding: 22px; border-radius: var(--radius-lg); }
.campaign > span { color: rgba(23, 35, 28, .58); font-size: 11px; }
.campaign h3 { margin: 8px 0 5px; font-size: 21px; line-height: 1.35; }
.campaign b { color: var(--danger); }
.campaign i { position: absolute; right: 24px; bottom: 10px; font-style: normal; font-size: 69px; opacity: .9; }
.campaign-green { background: linear-gradient(135deg, #e8faef, #f8fffa); }
.campaign-sand { background: linear-gradient(135deg, #fff0df, #fffaf2); }

.service-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.service-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: #fff;
    transition: .18s ease;
}
.service-card:hover { transform: translateY(-2px); border-color: #afe1c6; box-shadow: 0 10px 25px rgba(20, 71, 42, .08); }
.service-open {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    text-align: left;
}
.service-visual {
    position: relative;
    display: grid;
    place-items: center;
    height: 110px;
    background: linear-gradient(145deg, #e3f8eb, #ccefdc);
    font-size: 43px;
}
.service-visual small {
    position: absolute;
    left: 10px;
    bottom: 8px;
    padding: 3px 7px;
    border-radius: 9px;
    color: var(--brand-dark);
    background: rgba(255, 255, 255, .88);
    font-size: 9px;
    font-weight: 800;
}
.service-copy { min-width: 0; padding: 13px; }
.service-copy h3 { margin: 0; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.service-copy p { height: 36px; margin: 5px 0 10px; overflow: hidden; color: var(--muted); font-size: 11px; }
.service-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.service-footer .money, .book-pill { white-space: nowrap; flex-shrink: 0; }
.money { color: var(--danger); font-size: 19px; font-weight: 900; }
.money small { margin-right: 2px; font-size: 10px; font-weight: 500; }
.book-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    min-height: 36px;
    padding: 0 10px;
    border: 0;
    border-radius: 18px;
    color: #fff;
    background: var(--brand);
    font-size: 11px;
    font-weight: 800;
}

.page-heading { padding: 24px 3px 16px; }
.page-heading h1 { margin: 3px 0 1px; font-size: 29px; line-height: 1.2; }
.page-heading p { margin: 5px 0 0; color: var(--muted); }
.catalog-layout { display: grid; grid-template-columns: 180px 1fr; gap: 14px; align-items: start; }
.category-menu-shell {
    position: sticky;
    top: 82px;
    display: grid;
    gap: 7px;
}
.category-menu {
    display: grid;
    gap: 4px;
    padding: 8px;
    border-radius: 17px;
    background: #fff;
    box-shadow: var(--shadow);
}
.category-menu button {
    min-height: 45px;
    padding: 0 12px;
    border: 0;
    border-radius: 12px;
    color: var(--muted);
    background: transparent;
    text-align: left;
}
.category-menu button.active { color: var(--brand-dark); background: var(--brand-soft); font-weight: 900; }
.category-more {
    min-height: 38px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--brand-dark);
    background: #fff;
    font-size: 11px;
    font-weight: 800;
}
.catalog-service-column { min-width: 0; }

.filter-tabs { display: flex; gap: 8px; margin-bottom: 15px; overflow-x: auto; scrollbar-width: none; }
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tabs button {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 15px;
    border: 0;
    border-radius: 20px;
    color: var(--muted);
    background: #fff;
}
.filter-tabs button.active { color: #fff; background: var(--brand); box-shadow: 0 7px 16px rgba(10, 165, 90, .19); font-weight: 800; }
.order-list { display: grid; gap: 13px; }
.order-card {
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    color: inherit;
    background: #fff;
    box-shadow: var(--shadow);
    text-align: left;
}
.order-head, .order-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.order-head { padding: 14px 17px 11px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.status-chip { padding: 4px 9px; border-radius: 13px; color: var(--brand-dark); background: var(--brand-soft); font-weight: 800; }
.order-main { display: grid; grid-template-columns: 62px 1fr auto; gap: 12px; align-items: center; padding: 15px 17px; }
.order-icon { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 17px; background: var(--brand-soft); font-size: 29px; }
.order-copy { min-width: 0; }
.order-copy h3 { margin: 0 0 4px; font-size: 15px; }
.order-copy p { margin: 2px 0; color: var(--muted); font-size: 11px; }
.order-total { padding: 11px 17px 14px; border-top: 1px solid #f0f3f1; }
.order-total small { color: var(--muted); }
.load-more {
    display: block;
    min-width: 150px;
    min-height: 42px;
    margin: 17px auto;
    border: 1px solid var(--line);
    border-radius: 22px;
    color: var(--muted);
    background: #fff;
}

.mall-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 13px; }
.mall-grid > .mall-load-more { grid-column: 1 / -1; }
.product-card { overflow: hidden; border-radius: 17px; background: #fff; box-shadow: var(--shadow); }
.product-visual { display: grid; place-items: center; height: 125px; background: linear-gradient(145deg, #eefaf3, #d8f1e2); font-size: 45px; }
.product-copy { padding: 12px; }
.product-copy small { color: var(--muted); }
.product-copy h3 { height: 42px; margin: 5px 0; overflow: hidden; font-size: 14px; }

.profile-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    overflow: hidden;
    padding: 27px;
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(125deg, #078e4b, #22c873);
    box-shadow: 0 17px 45px rgba(10, 165, 90, .2);
}
.profile-avatar { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; color: var(--brand); background: #fff; font-size: 28px; font-weight: 900; }
.profile-main h1 { margin: 0; font-size: 22px; }
.profile-main p { margin: 4px 0 0; color: rgba(255, 255, 255, .75); }
.profile-settings { align-self: start; min-width: 44px; min-height: 44px; border: 0; color: #fff; background: transparent; font-size: 21px; }
.wallet-summary { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 5px 14px; padding-top: 15px; border-top: 1px solid rgba(255, 255, 255, .17); }
.wallet-summary strong { font-size: 27px; }
.wallet-summary small { grid-column: 1 / -1; color: rgba(255, 255, 255, .67); }
.profile-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 0 16px;
    overflow: hidden;
    border-radius: 0 0 17px 17px;
    background: #fff;
    box-shadow: var(--shadow);
}
.profile-stats button { min-height: 74px; border: 0; border-right: 1px solid var(--line); background: #fff; }
.profile-stats button:last-child { border: 0; }
.profile-stats strong, .profile-stats span { display: block; }
.profile-stats strong { font-size: 19px; }
.profile-stats span { margin-top: 4px; color: var(--muted); font-size: 11px; }
.tool-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.tool-grid button { min-height: 105px; padding: 12px 5px; border: 0; border-radius: 14px; color: inherit; background: #f7faf8; }
.tool-grid i { display: block; margin-bottom: 6px; color: var(--brand); font-style: normal; font-size: 25px; font-weight: 900; }
.tool-grid span, .tool-grid small { display: block; }
.tool-grid small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.address-card { display: flex; gap: 12px; padding: 15px; border-radius: 15px; background: #f7faf8; }
.address-icon { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border-radius: 13px; color: var(--brand); background: var(--brand-soft); font-size: 20px; }
.address-card p { margin: 4px 0; color: var(--muted); }
.address-card small { color: var(--brand-dark); }
.version-line { padding: 16px; color: #99a29d; text-align: center; font-size: 11px; }

.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    width: min(1120px, 100%);
    transform: translateX(-50%);
    padding: 7px 13px calc(7px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(16px);
}
.bottom-nav button { min-height: 54px; border: 0; color: var(--muted); background: transparent; }
.bottom-nav i, .bottom-nav span { display: block; font-style: normal; }
.bottom-nav i { font-size: 21px; line-height: 1.25; }
.bottom-nav span { font-size: 10px; }
.bottom-nav button.active { color: var(--brand); font-weight: 900; }

.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: end; justify-content: center; }
.modal.show { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(11, 31, 20, .5); backdrop-filter: blur(4px); }
.sheet {
    position: relative;
    z-index: 2;
    width: min(660px, 100%);
    max-height: min(90vh, 820px);
    overflow-y: auto;
    padding: 10px 23px calc(23px + env(safe-area-inset-bottom));
    border-radius: 25px 25px 0 0;
    background: #fff;
    box-shadow: 0 -20px 70px rgba(0, 0, 0, .2);
    animation: sheet-in .22s ease;
}
@keyframes sheet-in { from { transform: translateY(35px); opacity: .4; } }
.sheet-handle { width: 46px; height: 5px; margin: 0 auto 12px; border-radius: 4px; background: #d8dfdb; }
.sheet-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.sheet-header h2 { margin: 2px 0 0; font-size: 22px; }
.sheet-close { width: 44px; height: 44px; border: 0; border-radius: 50%; color: var(--muted); background: #f0f4f1; font-size: 25px; }
.booking-step { display: none; }
.booking-step.active { display: block; }
.selected-service { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 15px; background: var(--brand-pale); }
.selected-service .summary-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; background: #fff; font-size: 24px; }
.selected-service h3 { margin: 0; font-size: 15px; }
.selected-service p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.selected-service strong { margin-left: auto; color: var(--danger); font-size: 18px; }
.form-field { display: block; margin-top: 15px; }
.form-field > span { display: block; margin-bottom: 7px; font-weight: 900; }
.form-field input, .form-field textarea, .form-field select {
    width: 100%;
    min-height: 48px;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}
.form-field textarea { resize: vertical; }
.form-field small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.inline-load-more {
    width: 100%;
    min-height: 38px;
    margin-top: 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--brand-dark);
    background: var(--brand-pale);
    font-size: 11px;
    font-weight: 800;
}
.sheet-primary, .sheet-secondary {
    min-height: 50px;
    padding: 0 18px;
    border-radius: 13px;
    font-weight: 900;
}
.sheet-primary { width: 100%; margin-top: 18px; border: 0; color: #fff; background: var(--brand); }
.sheet-secondary { border: 1px solid var(--line); color: var(--muted); background: #fff; }
.confirmation-card { padding: 15px; border: 1px solid var(--line); border-radius: 15px; }
.confirmation-row { display: grid; grid-template-columns: 78px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.confirmation-row:last-child { border: 0; }
.confirmation-row span { color: var(--muted); }
.price-panel { margin-top: 14px; padding: 15px; border-radius: 15px; background: var(--brand-pale); }
.price-panel div { display: flex; justify-content: space-between; align-items: center; }
.price-panel strong { color: var(--danger); font-size: 23px; }
.price-panel p { margin: 7px 0 0; color: var(--muted); font-size: 11px; }
.agreement { display: flex; gap: 9px; margin-top: 14px; color: var(--muted); font-size: 11px; }
.agreement input { flex: 0 0 auto; width: 18px; height: 18px; accent-color: var(--brand); }
.sheet-actions { display: grid; grid-template-columns: .7fr 1.3fr; gap: 10px; margin-top: 17px; }
.sheet-actions .sheet-primary { margin: 0; }

.order-detail-summary { padding: 17px; border-radius: 17px; color: #fff; background: linear-gradient(125deg, #078e4b, #21c873); }
.detail-status { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.detail-status h3 { margin: 0; font-size: 20px; }
.detail-status span { padding: 5px 9px; border-radius: 13px; background: rgba(255, 255, 255, .15); font-size: 11px; }
.detail-status p { margin: 5px 0 0; color: rgba(255, 255, 255, .73); }
.detail-block { margin-top: 14px; padding: 15px; border: 1px solid var(--line); border-radius: 15px; }
.detail-block h4 { margin: 0 0 10px; }
.detail-line { display: flex; justify-content: space-between; gap: 12px; margin-top: 7px; }
.detail-line span { color: var(--muted); }
.detail-line.total { padding-top: 9px; border-top: 1px dashed var(--line); font-weight: 900; }
.timeline { display: grid; gap: 0; }
.timeline-item { position: relative; display: grid; grid-template-columns: 18px 1fr; gap: 9px; padding-bottom: 16px; }
.timeline-item::before { position: absolute; top: 14px; bottom: -2px; left: 6px; width: 1px; background: #cfe5d7; content: ""; }
.timeline-item:last-child::before { display: none; }
.timeline-dot { position: relative; z-index: 2; width: 13px; height: 13px; margin-top: 3px; border: 3px solid #fff; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 1px #9bd6b7; }
.timeline-copy b, .timeline-copy span { display: block; }
.timeline-copy span { color: var(--muted); font-size: 10px; }
.order-action-panel { position: sticky; bottom: -23px; margin: 17px -23px -23px; padding: 13px 23px calc(13px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255, 255, 255, .97); }
.action-note { margin: 0 0 9px; color: var(--muted); font-size: 10px; text-align: center; }
.action-button { width: 100%; min-height: 50px; border: 0; border-radius: 13px; color: #fff; background: var(--brand); font-weight: 900; }
.review-fields { display: grid; gap: 9px; margin-bottom: 10px; }
.review-fields select, .review-fields textarea { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }

.mall-command-bar {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 10px;
    margin-bottom: 12px;
}
.mall-command-bar button {
    display: flex;
    align-items: center;
    min-height: 62px;
    padding: 12px 15px;
    border: 1px solid #d7ebe0;
    border-radius: 16px;
    color: var(--brand-dark);
    background: linear-gradient(135deg, #fff, #edfbf3);
    text-align: left;
}
.mall-command-bar button span { font-weight: 900; }
.mall-command-bar button strong {
    display: grid;
    place-items: center;
    min-width: 28px;
    height: 28px;
    margin-left: auto;
    border-radius: 14px;
    color: var(--brand);
    background: var(--brand-soft);
}
.mall-command-bar button strong.has-items { color: #fff; background: var(--brand); }
.mall-command-bar button small { margin-left: auto; color: var(--muted); }
.product-card { cursor: pointer; }
.product-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.product-footer button {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: var(--brand);
    font-size: 22px;
    line-height: 1;
}
.mall-sheet { width: min(720px, 100%); }
.mall-loading-state { display: grid; place-items: center; min-height: 220px; color: var(--muted); }
.mall-loading-state i {
    width: 34px;
    height: 34px;
    border: 3px solid var(--brand-soft);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: mall-spin .75s linear infinite;
}
.mall-loading-state p { margin: 11px 0 0; }
@keyframes mall-spin { to { transform: rotate(360deg); } }
.mall-product-detail { display: grid; grid-template-columns: 145px 1fr; gap: 17px; align-items: center; }
.mall-product-art {
    display: grid;
    place-items: center;
    min-height: 145px;
    border-radius: 19px;
    background: linear-gradient(145deg, #e7faef, #f9f4df);
    font-size: 58px;
}
.mall-product-meta span, .mall-product-meta strong, .mall-product-meta p { display: block; }
.mall-product-meta span { color: var(--muted); }
.mall-product-meta strong { margin: 8px 0; color: var(--danger); font-size: 27px; }
.mall-product-meta p { margin: 4px 0; color: var(--muted); }
.mall-safety-note {
    margin-top: 14px;
    padding: 12px 14px;
    border-left: 3px solid var(--brand);
    border-radius: 8px;
    color: #52645a;
    background: #f1f8f4;
    font-size: 11px;
    line-height: 1.7;
}
.mall-cart-list, .mall-order-list, .mall-order-items { display: grid; gap: 10px; }
.mall-cart-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 14px;
}
.mall-cart-item h3 { margin: 3px 0; font-size: 14px; }
.mall-cart-item small, .mall-cart-item p { color: var(--muted); }
.mall-cart-item p { margin: 0; }
.mall-cart-item > strong { color: var(--danger); }
.mall-quantity { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; }
.mall-quantity button {
    min-width: 33px;
    height: 33px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
}
.mall-quantity span { min-width: 25px; text-align: center; font-weight: 900; }
.mall-quantity .mall-remove {
    width: auto;
    margin-left: auto;
    padding: 0 10px;
    color: var(--danger);
    border-color: #f0d5d2;
}
.mall-total-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
    margin-top: 13px;
    padding: 14px;
    border-radius: 14px;
    background: #f5f8f6;
}
.mall-total-card span { color: var(--muted); }
.mall-total-card b { padding-top: 9px; border-top: 1px dashed var(--line); font-size: 15px; }
.mall-checkout-stores { display: grid; gap: 8px; margin-top: 14px; }
.mall-checkout-stores div, .mall-order-items div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 11px;
}
.mall-order-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #078e4b, #21c873);
}
.mall-order-status span { color: rgba(255, 255, 255, .75); font-size: 10px; }
.mall-order-status.status-cancelled { background: #87938c; }
.mall-order-items { margin-top: 13px; }
.mall-order-items span small { display: block; color: var(--muted); }
.mall-order-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px 12px;
    align-items: center;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 11px;
}
.mall-order-item > strong { color: var(--danger); }
.mall-inline-action {
    grid-column: 1 / -1;
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid #b9dfca;
    border-radius: 10px;
    color: var(--brand-dark);
    background: var(--brand-pale);
    font-weight: 900;
}
.mall-address-summary { margin-top: 13px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; }
.mall-address-summary p { margin: 5px 0 0; color: var(--muted); }
.mall-order-list button {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 12px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 13px;
    color: inherit;
    background: #fff;
    text-align: left;
}
.mall-order-list span small, .mall-order-list span b { display: block; }
.mall-order-list span small { color: var(--muted); }
.mall-order-list strong { color: var(--danger); }
.mall-order-list i { grid-column: 1 / -1; color: var(--brand); font-style: normal; font-size: 10px; }
.mall-action-grid { display: grid; grid-template-columns: .8fr 1fr 1.15fr; gap: 8px; }
.mall-action-grid.mall-action-grid-two { grid-template-columns: 1fr 1fr; }
.mall-action-grid .action-button { padding-inline: 8px; font-size: 11px; }
.action-button.secondary { color: var(--muted); border: 1px solid var(--line); background: #fff; }
.mall-after-sale-evidence {
    margin-top: 14px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fbfdfc;
}
.mall-after-sale-evidence h3 { margin: 0 0 10px; font-size: 14px; }
.mall-after-sale-evidence dl { display: grid; gap: 8px; margin: 0; }
.mall-after-sale-evidence dl div {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 10px;
}
.mall-after-sale-evidence dt { color: var(--muted); }
.mall-after-sale-evidence dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    text-align: right;
    font-weight: 800;
}
.mall-after-sale-timeline { margin-top: 4px; }
.mall-empty { min-height: 190px; }

.account-sheet { max-width: 620px; }
.account-loading {
    display: grid;
    min-height: 220px;
    place-content: center;
    color: var(--muted);
    text-align: center;
}
.account-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
    margin-bottom: 14px;
}
.account-summary div {
    min-width: 0;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #f5f9f7;
}
.account-summary small, .account-summary span { display: block; color: var(--muted); font-size: 10px; }
.account-summary strong { display: block; margin: 5px 0 2px; font-size: 17px; overflow: hidden; text-overflow: ellipsis; }
.account-list { display: grid; gap: 9px; }
.account-card {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}
.account-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.account-card h3 { margin: 0; font-size: 14px; }
.account-card p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.account-card .tag {
    flex: 0 0 auto;
    padding: 4px 8px;
    border-radius: 12px;
    color: var(--brand);
    background: #eaf8f1;
    font-size: 9px;
}
.account-card .tag.used { color: #7c8881; background: #eef1ef; }
.account-card .money-cent { color: var(--danger); font-size: 18px; font-weight: 900; }
.account-card-actions { display: flex; justify-content: flex-end; gap: 7px; margin-top: 10px; }
.account-card-actions button, .account-inline-button {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--brand);
    background: #fff;
    font-size: 11px;
    font-weight: 800;
}
.account-card-actions .primary, .account-inline-button.primary { border-color: var(--brand); color: #fff; background: var(--brand); }
.account-form { display: grid; gap: 11px; }
.account-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.account-form label { display: grid; gap: 5px; color: var(--muted); font-size: 10px; }
.account-form input, .account-form select {
    width: 100%;
    height: 43px;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--ink);
    background: #fff;
}
.account-form .full { grid-column: 1 / -1; }
.account-form-check { display: flex !important; grid-column: 1 / -1; grid-template-columns: auto 1fr; align-items: center; }
.account-form-check input { width: 18px; height: 18px; }
.account-section-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 17px 0 9px; }
.account-section-title h3 { margin: 0; font-size: 14px; }
.account-section-title small { color: var(--muted); }
.account-ledger {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 10px;
    padding: 10px 0;
    border-bottom: 1px solid #edf2ef;
}
.account-ledger span { color: var(--muted); font-size: 10px; }
.account-ledger strong { grid-row: 1 / 3; grid-column: 2; align-self: center; color: var(--brand); }
.account-note { padding: 12px; border-radius: 12px; color: #4b6c5b; background: #eff8f3; font-size: 10px; line-height: 1.6; }

.empty-state { grid-column: 1 / -1; padding: 50px 15px; color: var(--muted); text-align: center; }
.empty-state i { display: block; margin-bottom: 9px; font-style: normal; font-size: 43px; }
.empty-state button { min-height: 44px; margin-top: 12px; padding: 0 17px; border: 0; border-radius: 22px; color: #fff; background: var(--brand); }
.toast {
    position: fixed;
    left: 50%;
    bottom: calc(82px + env(safe-area-inset-bottom));
    z-index: 160;
    max-width: calc(100% - 34px);
    padding: 11px 17px;
    border-radius: 12px;
    color: #fff;
    background: #143b27;
    box-shadow: 0 12px 35px rgba(0, 0, 0, .2);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 15px);
    transition: .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: #a43d37; }
.auth-locked { overflow: hidden; }
.auth-gate {
    position: fixed;
    inset: 0;
    z-index: 320;
    display: grid;
    place-items: center;
    padding: 22px;
    background:
        radial-gradient(circle at 20% 12%, rgba(118, 230, 168, .34), transparent 34%),
        linear-gradient(145deg, #edf9f2 0%, #f7faf8 55%, #e7f5ec 100%);
}
.auth-gate.hidden { display: none; }
.auth-browse { display: block; margin-left: auto; border: 0; background: transparent; color: #52645a; padding: 10px 0; cursor: pointer; }
#h5Logout[hidden], #h5ProfileLogin[hidden] { display: none; }
#serviceDetailBody { line-height: 1.8; }
.auth-card {
    width: min(430px, 100%);
    max-height: calc(100vh - 32px);
    overflow: auto;
    padding: 28px;
    border: 1px solid rgba(10, 165, 90, .14);
    border-radius: 26px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 28px 80px rgba(21, 91, 57, .16);
}
.auth-brand { display: flex; align-items: center; gap: 11px; }
.auth-brand > span {
    display: grid;
    place-items: center;
    width: 45px;
    height: 45px;
    border-radius: 15px;
    color: #fff;
    background: var(--brand);
    font-size: 21px;
    font-weight: 900;
}
.auth-brand div { display: grid; }
.auth-brand b { font-size: 17px; }
.auth-brand small { color: var(--muted); }
.auth-card h1 { margin: 24px 0 7px; font-size: 26px; }
.auth-card > p { margin: 0 0 20px; color: var(--muted); line-height: 1.65; }
.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin-bottom: 17px;
    padding: 4px;
    border-radius: 13px;
    background: #eef4f0;
}
.auth-tabs button {
    min-height: 40px;
    border: 0;
    border-radius: 10px;
    color: var(--muted);
    background: transparent;
    font-weight: 700;
}
.auth-tabs button.active {
    color: var(--brand-dark);
    background: #fff;
    box-shadow: 0 4px 14px rgba(28, 84, 55, .09);
}
.auth-form { display: grid; gap: 13px; }
.auth-form[hidden] { display: none; }
.auth-form label { display: grid; gap: 6px; }
.auth-form label span { color: #38473f; font-size: 12px; font-weight: 700; }
.auth-form input {
    width: 100%;
    min-height: 46px;
    padding: 0 13px;
    border: 1px solid #d8e4dc;
    border-radius: 11px;
    outline: 0;
    background: #fff;
}
.auth-form input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(10, 165, 90, .1);
}
.auth-submit {
    min-height: 48px;
    margin-top: 3px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-dark), var(--brand));
    font-weight: 800;
}
.auth-submit:disabled { opacity: .6; }
.auth-demo { color: var(--muted); text-align: center; }
.auth-wechat { display: grid; gap: 11px; margin-top: 16px; }
.auth-wechat-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 12px;
}
.auth-wechat-divider::before,
.auth-wechat-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e1e9e4;
}
.auth-wechat-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #53635b;
    font-size: 12px;
    line-height: 1.55;
}
.auth-wechat-consent input { margin-top: 3px; }
.auth-wechat-button {
    min-height: 46px;
    border: 0;
    border-radius: 13px;
    background: #07c160;
    color: #fff;
    font-weight: 800;
}
.auth-wechat-button:disabled { background: #b7c5bd; cursor: not-allowed; }
.auth-wechat small { color: var(--muted); line-height: 1.55; }
.auth-error {
    margin-top: 13px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #a43d37;
    background: #fff0ee;
    font-size: 12px;
}

.loading {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-content: center;
    color: var(--muted);
    background: rgba(246, 249, 247, .9);
    text-align: center;
    backdrop-filter: blur(3px);
}
.loading[hidden] { display: none; }
.loading-mark {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin: auto;
    border-radius: 17px;
    color: #fff;
    background: var(--brand);
    box-shadow: 0 12px 30px rgba(10, 165, 90, .23);
    font-size: 23px;
    font-weight: 900;
    animation: pulse 1.1s infinite alternate;
}
.loading p { margin: 10px 0 0; }
@keyframes pulse { to { transform: translateY(-4px); } }

@media (max-width: 900px) {
    .category-grid { grid-template-columns: repeat(4, 1fr); }
    .service-list { grid-template-columns: repeat(3, 1fr); }
    .mall-grid { grid-template-columns: repeat(3, 1fr); }
    .tool-grid { grid-template-columns: repeat(3, 1fr); }
    .managed-recommendation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .app-shell { padding: 0 12px 90px; }
    .topbar { grid-template-columns: auto 1fr; min-height: 62px; gap: 9px; }
    .location-button { font-size: 12px; }
    .searchbox input { height: 40px; padding-left: 39px; font-size: 12px; }
    .searchbox span { left: 13px; top: 7px; }
    .admin-link { display: none; }
    .hero { grid-template-columns: 1fr; min-height: 178px; padding: 20px 19px; border-radius: 21px; }
    .hero-kicker { padding: 3px 8px; font-size: 9px; }
    .hero h1 { margin: 8px 0 5px; font-size: 27px; }
    .hero p { max-width: 220px; font-size: 10px; }
    .hero-action { min-height: 40px; margin-top: 12px; padding: 0 14px; font-size: 11px; }
    .hero-visual { position: absolute; right: -3px; bottom: -6px; min-height: 0; width: 145px; height: 145px; }
    .visual-ring { width: 130px; height: 130px; }
    .technician-art { width: 105px; height: 105px; font-size: 57px; }
    .tool-bubble { width: 33px; height: 33px; border-radius: 11px; font-size: 15px; }
    .bubble-one { left: 1%; bottom: 10%; }
    .bubble-two { right: 0; top: 7%; }
    .promise-strip { margin: 0; }
    .promise-strip div { display: block; padding: 9px 3px; text-align: center; }
    .promise-strip b, .promise-strip span { display: block; font-size: 9px; }
    .promise-strip span { margin-top: 1px; }
    .managed-homepage-block { padding: 14px; border-radius: 18px; }
    .managed-block-heading h2 { font-size: 17px; }
    .managed-banner-grid, .managed-media-grid { grid-template-columns: 1fr; }
    .managed-banner-card { min-height: 145px; padding: 17px; }
    .managed-banner-card strong { font-size: 19px; }
    .managed-navigation-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .managed-content-card { grid-template-columns: 1fr; }
    .managed-content-card img { grid-row: auto; max-height: 150px; }
    .card-section { margin-top: 14px; padding: 16px 13px; border-radius: 17px; }
    .section-heading { margin-bottom: 13px; }
    .section-heading h2 { font-size: 18px; }
    .category-grid { grid-template-columns: repeat(4, 1fr); gap: 8px 1px; }
    .category-tile { min-height: 85px; padding: 6px 1px; }
    .category-icon { width: 47px; height: 47px; border-radius: 15px; font-size: 22px; }
    .category-tile strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
    .campaign-grid { gap: 9px; margin-top: 14px; }
    .campaign { min-height: 116px; padding: 14px; border-radius: 17px; }
    .campaign h3 { margin-top: 5px; font-size: 15px; }
    .campaign i { right: 7px; bottom: 5px; font-size: 45px; opacity: .75; }
    .campaign b { font-size: 11px; }
    .service-list { grid-template-columns: repeat(2, 1fr); gap: 9px; }
    .service-visual { height: 87px; font-size: 34px; }
    .service-copy { padding: 10px; }
    .service-copy p { display: none; }
    .service-footer { margin-top: 8px; }
    .money { font-size: 16px; }
    .book-pill { min-width: 48px; min-height: 38px; padding: 0 7px; }
    .page-heading { padding: 15px 2px 13px; }
    .page-heading h1 { font-size: 24px; }
    .page-heading p { font-size: 11px; }
    .catalog-layout { grid-template-columns: 72px minmax(0, 1fr); gap: 8px; }
    .catalog-services { grid-template-columns: minmax(0, 1fr); }
    .catalog-services .service-open { flex-direction: row; align-items: stretch; }
    .catalog-services .service-visual { flex: 0 0 56px; height: auto; min-height: 100px; font-size: 27px; }
    .catalog-services .service-visual small { display: none; }
    .catalog-services .service-copy { flex: 1; min-width: 0; }
    .catalog-services .service-copy h3 { white-space: normal; overflow-wrap: anywhere; }
    .category-menu-shell { top: 67px; }
    .category-menu { top: 67px; padding: 5px; border-radius: 14px; }
    .category-menu button { min-height: 44px; padding: 0 5px; font-size: 11px; text-align: center; }
    .filter-tabs { margin-right: -12px; padding-right: 12px; }
    .order-main { grid-template-columns: 52px 1fr; padding: 13px; }
    .order-icon { width: 52px; height: 52px; }
    .order-main > .money { grid-column: 2; }
    .order-head, .order-total { padding-inline: 13px; }
    .mall-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
    .product-visual { height: 105px; }
    .mall-command-bar { grid-template-columns: .9fr 1.1fr; }
    .mall-command-bar button { min-height: 55px; padding: 10px; }
    .mall-command-bar button small { display: none; }
    .mall-product-detail { grid-template-columns: 105px 1fr; gap: 12px; }
    .mall-product-art { min-height: 105px; font-size: 43px; }
    .mall-action-grid { grid-template-columns: 1fr 1fr; }
    .mall-action-grid [data-channel="wechat"] { grid-column: 1 / -1; }
    .account-summary { grid-template-columns: 1fr 1fr; }
    .account-form-grid { grid-template-columns: 1fr; }
    .account-form .full, .account-form-check { grid-column: 1; }
    .profile-card { padding: 20px 16px; }
    .profile-avatar { width: 58px; height: 58px; }
    .profile-stats { margin: 0; }
    .tool-grid { grid-template-columns: repeat(3, 1fr); }
    .tool-grid button { min-height: 96px; }
    .bottom-nav { padding-inline: 4px; }
    .sheet { max-height: 94vh; padding-inline: 16px; }
    .order-action-panel { margin-inline: -16px; padding-inline: 16px; }
}

@media (max-width: 350px) {
    .app-shell { padding-inline: 9px; }
    .location-button #currentRegion { max-width: 44px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .hero { padding-inline: 15px; }
    .hero-visual { right: -16px; }
    .category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .category-icon { width: 43px; height: 43px; }
    .service-copy { padding: 8px; }
    .book-pill { min-width: 44px; }
}

/* Repair sheets keep one scrollable body; actions never rely on negative offsets. */
.modal .repair-sheet {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - max(20px, env(safe-area-inset-top)));
    min-height: 0;
    padding: 0;
    overflow: hidden;
}
.repair-sheet > .sheet-header { flex: 0 0 auto; margin: 0; padding: 18px 16px 12px; border-bottom: 1px solid var(--line); }
.repair-sheet .sheet-header > div { min-width: 0; }
.repair-sheet .sheet-header h2 { overflow-wrap: anywhere; font-size: 20px; }
.repair-sheet .sheet-close { flex: 0 0 44px; }
.repair-sheet .repair-sheet-content { flex: 1 1 auto; min-height: 0; padding: 16px; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.repair-sheet .booking-step.active { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.repair-sheet-footer { flex: 0 0 auto; margin: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }
.repair-sheet-footer .sheet-primary { margin: 0; }
.repair-sheet .selected-service { flex-wrap: wrap; }
.repair-sheet .selected-service > span:not(.summary-icon) { flex: 1; min-width: 110px; }
.repair-sheet .selected-service strong { white-space: nowrap; }
.auth-card { max-height: calc(100dvh - 44px); }
.auth-gate { overflow-y: auto; }
@media (prefers-reduced-motion: reduce) { .sheet { animation: none; } }
.demo-environment-watermark {
    position: relative;
    padding: calc(7px + env(safe-area-inset-top)) 12px 7px;
    border-bottom: 1px solid rgba(180, 83, 9, .22);
    background: #fff7ed;
    color: #9a3412;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: .02em;
}

.support-create,
.support-history,
.support-ticket-head,
.support-messages,
.support-form {
    margin-bottom: 16px;
}

.support-create > summary,
.support-history h3 {
    color: #17352a;
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 12px;
}

.support-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
    background: #f5faf7;
    border-radius: 16px;
}

.support-form label {
    display: grid;
    gap: 6px;
    color: #52635c;
    font-size: 12px;
}

.support-form .wide {
    grid-column: 1 / -1;
}

.support-form input,
.support-form select,
.support-form textarea {
    box-sizing: border-box;
    width: 100%;
    border: 1px solid #dbe8e1;
    border-radius: 10px;
    background: #fff;
    padding: 10px;
    color: #17352a;
}

.support-ticket-list {
    display: grid;
    gap: 8px;
}

.support-ticket-list > button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    border: 1px solid #e4eee9;
    border-radius: 14px;
    background: #fff;
    padding: 13px;
    text-align: left;
}

.support-ticket-list > button span:first-child {
    display: grid;
    gap: 4px;
}

.support-ticket-list small,
.support-messages time {
    color: #87958f;
    font-size: 11px;
}

.support-status,
.support-ticket-head span {
    flex: 0 0 auto;
    border-radius: 99px;
    background: #e5f7ee;
    padding: 5px 9px;
    color: #087848;
    font-size: 12px;
}

.support-back {
    border: 0;
    background: transparent;
    color: #087848;
    padding: 0 0 12px;
}

.support-ticket-head {
    border-radius: 14px;
    background: #f5faf7;
    padding: 14px;
}

.support-ticket-head > div,
.support-messages header {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.support-ticket-head p,
.support-messages p {
    margin: 9px 0 0;
    white-space: pre-wrap;
}

.support-messages {
    display: grid;
    gap: 10px;
}

.support-messages article {
    max-width: 88%;
    border-radius: 14px;
    background: #f2f5f3;
    padding: 11px 13px;
}

.support-messages article.customer {
    justify-self: end;
    background: #def7ea;
}

.support-messages article.agent {
    justify-self: start;
}

.support-survey-result {
    border-radius: 12px;
    background: #fff4cf;
    padding: 12px;
    color: #735b0c;
}

@media (max-width: 540px) {
    .support-form {
        grid-template-columns: 1fr;
    }

    .support-form .wide {
        grid-column: auto;
    }
}

/* Product readability polish; preserve the booking sheet's dedicated scroll body. */
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
:is(button, a, input, textarea, select):focus-visible { outline: 3px solid #0aa55a66; outline-offset: 3px; }
.eyebrow { font-size: 11px; letter-spacing: .8px; }
:is(.profile-main, .order-copy, .account-card, .account-card-head > div, .support-ticket-head > div) { min-width: 0; }
:is(.profile-main p, .order-copy p, .account-card p, .address-card p, .support-ticket-head p, .support-messages p) { overflow-wrap: anywhere; }
.profile-main h1 { line-height: 1.5; overflow-wrap: anywhere; }
.service-copy p { font-size: 12px; }
:is(.order-head, .order-copy p, .profile-stats span, .form-field small, .selected-service p, .agreement, .price-panel p, .action-note, .account-summary small, .account-summary span, .account-card p, .account-form label, .account-note, .account-ledger span) { font-size: 12px; line-height: 1.7; }
.account-summary strong, .money, .money-cent, .wallet-summary strong { font-variant-numeric: tabular-nums; }
.account-summary strong { white-space: normal; overflow-wrap: anywhere; }
.filter-tabs button { min-height: 40px; }
.sheet-header { align-items: flex-start; }
.sheet-header > div { min-width: 0; }
.sheet-header h2 { overflow-wrap: anywhere; }
.sheet-close { flex: 0 0 44px; }
.account-card-head, .account-card-actions { flex-wrap: wrap; }
.support-ticket-list > button { min-height: 64px; }
.support-ticket-list > button > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.support-messages header { flex-wrap: wrap; }
.tool-grid small { font-size: 11px; line-height: 1.6; }
.bottom-nav span { font-size: 12px; }
@media (max-width: 640px) {
    .topbar { min-height: 66px; }
    .book-pill { min-height: 44px; font-size: 12px; }
    .searchbox input { min-height: 44px; font-size: 14px; }
    .searchbox span { top: 9px; }
    .location-button { font-size: 13px; }
    .category-tile strong { font-size: 12px; }
    .category-menu button { font-size: 12px; }
    .hero-kicker, .hero p, .promise-strip b, .promise-strip span { font-size: 11px; }
    .hero-action { font-size: 13px; min-height: 44px; }
    .page-heading p { font-size: 12px; line-height: 1.7; }
    .tool-grid button { min-height: 108px; padding-inline: 7px; }
    .tool-grid small { overflow-wrap: anywhere; }
    .account-card-actions button, .account-inline-button { min-height: 40px; font-size: 12px; }
    .form-field :is(input, textarea, select), .account-form :is(input:not([type=checkbox]), select), .support-form :is(input, select, textarea), .auth-form input { font-size: 16px; min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
