/* ============================================================
   用户端 H5 · 健康绿 / 生命绿 + 天空蓝
   ============================================================ */
html, body.app-body { background: #edf3e9; }
body.app-body { overflow-x: hidden; }
.app-ambient {
  position: fixed; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 12% 18%, rgba(124, 158, 123, .2), transparent 32%),
    radial-gradient(circle at 88% 8%, rgba(47, 169, 214, .14), transparent 30%),
    radial-gradient(circle at 50% 100%, rgba(195, 165, 112, .08), transparent 40%);
}
.phone {
  position: relative; width: 100%; max-width: 480px; min-height: 100vh; margin: 0 auto;
  background: #f7faf4; overflow-x: hidden; padding-bottom: calc(78px + env(safe-area-inset-bottom));
}
@media (min-width: 560px) {
  .phone { box-shadow: 0 30px 90px rgba(35, 57, 42, .16); }
}
.phone a { -webkit-tap-highlight-color: transparent; }

/* ---------- 通用 ---------- */
.btn { padding: 13px 24px; font-size: 14px; box-shadow: 0 10px 22px rgba(85, 125, 91, .2); }
.btn-sm { padding: 8px 16px; font-size: 12.5px; }
.ghost-btn { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 12.5px; color: var(--muted); background: #fff; }
.ghost-btn:active { background: var(--green-50); }
.empty-state { text-align: center; padding: 70px 20px; color: var(--muted-2); }
.empty-state > span { display: inline-flex; color: var(--green-300); margin-bottom: 14px; }
.empty-state p { font-size: 13px; margin-bottom: 18px; }
.loading-screen { min-height: 70vh; display: flex; align-items: center; justify-content: center; }
.loading-ring { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--green-100); border-top-color: var(--green-600); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.field { margin-bottom: 14px; }
.field > span { font-size: 11px; margin-bottom: 6px; }
.input, .textarea, .select { padding: 12px 14px; font-size: 14px; border-radius: 12px; }
.textarea { min-height: 84px; }
.rich { font-size: 13.5px; line-height: 1.9; }
.rich h3 { font-size: 16px; margin: 20px 0 8px; font-family: var(--font-serif); }
.rich p { margin-bottom: 10px; color: var(--muted); }
.rich ul, .rich ol { padding-left: 1.2em; margin-bottom: 10px; color: var(--muted); }
.rich ul { list-style: disc; } .rich ol { list-style: decimal; }
.phone .skeleton { border-radius: 14px; }

/* ---------- 首页 ---------- */
.home-hero {
  position: relative; padding: calc(18px + env(safe-area-inset-top)) 20px 74px;
  background: linear-gradient(150deg, #3a5c45 0%, #547d5c 48%, #79b0a4 78%, #72c4d6 100%);
  border-radius: 0 0 30px 30px; overflow: hidden; color: #fff;
}
.home-hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, .07), transparent 40%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  opacity: .3; mix-blend-mode: overlay; pointer-events: none;
}
.hero-orb { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .18; }
.hero-orb.orb-a { width: 220px; height: 220px; border: 1px solid #fff; right: -70px; top: -60px; }
.hero-orb.orb-b { width: 320px; height: 320px; border: 1px solid #fff; right: -140px; top: -100px; opacity: .1; }
.home-top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; }
.home-brand { display: flex; align-items: center; gap: 10px; }
.home-brand img { width: 34px; height: 34px; object-fit: contain; filter: brightness(0) invert(1); opacity: .95; }
.home-brand strong { display: block; font-family: var(--font-serif); font-size: 16px; letter-spacing: .18em; line-height: 1.2; }
.home-brand span { display: block; font-size: 6.5px; letter-spacing: .18em; opacity: .55; margin-top: 2px; }
.home-avatar { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .5); overflow: hidden; }
.home-avatar img { width: 100%; height: 100%; object-fit: cover; }
.home-greeting { position: relative; z-index: 2; margin-top: 26px; }
.hello { font-size: 10.5px; letter-spacing: .18em; color: rgba(255, 255, 255, .55); margin-bottom: 8px; }
.home-greeting h1 { font-family: var(--font-serif); font-size: 23px; font-weight: 600; line-height: 1.5; letter-spacing: .01em; }
.home-slogan { margin-top: 10px; font-size: 10.5px; color: rgba(255, 255, 255, .5); letter-spacing: .05em; }
.home-search {
  position: relative; z-index: 2; margin-top: 22px; height: 46px; border-radius: 14px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(12px); display: flex; align-items: center; gap: 9px; padding: 0 14px;
  color: rgba(255, 255, 255, .7); font-size: 12.5px;
}
.home-search > span:first-child { display: inline-flex; opacity: .8; }
.home-search > span:nth-child(2) { flex: 1; }
.home-search em { font-style: normal; font-size: 11px; background: rgba(255, 255, 255, .18); padding: 5px 11px; border-radius: 999px; color: #fff; }
.home-main { position: relative; z-index: 3; margin-top: -46px; padding: 0 16px 26px; }
.banner-card { position: relative; height: 176px; border-radius: 20px; overflow: hidden; box-shadow: 0 16px 36px rgba(35, 57, 42, .16); background: var(--green-900); }
.banner-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .8s var(--ease), visibility .8s; }
.banner-slide.active { opacity: 1; visibility: visible; }
.banner-img { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.02); }
.banner-veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(56, 87, 65, .86), rgba(56, 87, 65, .4) 65%, rgba(36, 58, 45, .12)); }
.banner-copy { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: #fff; max-width: 72%; }
.banner-copy h3 { font-family: var(--font-serif); font-size: 20px; font-weight: 600; line-height: 1.45; }
.banner-copy p { font-size: 10.5px; color: rgba(255, 255, 255, .6); margin-top: 7px; line-height: 1.6; }
.banner-copy > span { display: inline-flex; align-items: center; gap: 4px; margin-top: 14px; font-size: 10px; color: var(--gold-light); letter-spacing: .06em; }
.banner-dots { position: absolute; right: 16px; bottom: 14px; display: flex; gap: 5px; z-index: 3; }
.banner-dots button { width: 5px; height: 5px; border-radius: 4px; background: rgba(255, 255, 255, .35); transition: all .35s; padding: 0; }
.banner-dots button.active { width: 16px; background: var(--gold-light); }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 18px; background: #fff; border-radius: 18px; padding: 18px 8px 16px; box-shadow: 0 8px 24px rgba(35, 57, 42, .05); }
.quick-item { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.quick-icon { width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.qi-green { background: linear-gradient(135deg, #e7f2e2, #cfe3c8); color: var(--green-700); }
.qi-sky { background: linear-gradient(135deg, #e6f6fb, #c8ecf7); color: var(--sky-700); }
.qi-gold { background: linear-gradient(135deg, #faf3e4, #f1e3c6); color: #9c7a3a; }
.qi-dark { background: linear-gradient(135deg, #ebf2e7, #d8e7cf); color: var(--green-800); }
.quick-item b { font-size: 11.5px; font-weight: 600; }
.quick-item small { font-size: 8.5px; color: var(--muted-2); }
.notice-bar { display: flex; align-items: center; gap: 9px; margin-top: 14px; padding: 10px 14px; background: #fff; border-radius: 12px; font-size: 10.5px; color: var(--muted); overflow: hidden; }
.notice-tag { flex: none; background: var(--green-100); color: var(--green-700); font-size: 9px; padding: 2px 7px; border-radius: 4px; letter-spacing: .04em; }
.notice-scroll { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-block { margin-top: 26px; }
.block-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 14px; }
.block-head h2 { font-family: var(--font-serif); font-size: 19px; font-weight: 600; letter-spacing: .01em; }
.block-head p { font-size: 7.5px; letter-spacing: .16em; color: var(--muted-2); margin-top: 3px; }
.block-more { display: inline-flex; align-items: center; gap: 2px; font-size: 10.5px; color: var(--muted-2); }
.center-scroll { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
.center-scroll::-webkit-scrollbar { display: none; }
.center-mini { flex: none; width: 146px; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 6px 18px rgba(35, 57, 42, .06); }
.center-mini-img { height: 88px; background-size: cover; background-position: center 30%; }
.center-mini-body { padding: 10px 12px 12px; }
.center-mini-body span { font-size: 6.5px; letter-spacing: .1em; color: var(--green-600); }
.center-mini-body h3 { font-family: var(--font-serif); font-size: 13px; font-weight: 600; margin-top: 3px; }
.center-mini-body p { font-size: 9px; color: var(--muted-2); line-height: 1.55; margin-top: 3px; }
.service-scroll, .product-scroll { display: flex; gap: 11px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
.service-scroll::-webkit-scrollbar, .product-scroll::-webkit-scrollbar { display: none; }
.service-mini { flex: none; width: 200px; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 6px 18px rgba(35, 57, 42, .06); }
.service-mini-img { height: 110px; background-size: cover; background-position: center 32%; position: relative; }
.mini-tag { position: absolute; left: 8px; bottom: 8px; font-size: 8px; color: #fff; background: rgba(36, 58, 45, .48); padding: 2px 7px; border-radius: 999px; backdrop-filter: blur(6px); }
.service-mini-body { padding: 11px 12px 12px; }
.service-mini-body h3 { font-family: var(--font-serif); font-size: 13.5px; line-height: 1.45; font-weight: 600; }
.service-mini-body p { font-size: 9px; color: var(--muted-2); margin-top: 4px; height: 14px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mini-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.mini-foot b { font-family: var(--font-serif); color: var(--green-700); font-size: 16px; }
.mini-foot span { font-size: 8.5px; color: var(--muted-2); display: inline-flex; }
.ai-teaser { position: relative; display: flex; align-items: center; justify-content: space-between; margin-top: 26px; padding: 22px 20px; border-radius: 20px; overflow: hidden; background: linear-gradient(120deg, #385741, #3c6047 55%, #4f7b74); color: #fff; }
.ai-teaser-glow { position: absolute; right: -30px; top: -40px; width: 170px; height: 170px; border-radius: 50%; background: radial-gradient(circle, rgba(132, 206, 186, .4), transparent 65%); }
.ai-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 7.5px; letter-spacing: .16em; color: var(--green-300); border: 1px solid rgba(198, 220, 192, .34); padding: 3px 8px; border-radius: 999px; }
.ai-teaser-copy h3 { font-family: var(--font-serif); font-size: 18px; font-weight: 600; line-height: 1.5; margin-top: 10px; }
.ai-teaser-copy p { font-size: 9.5px; color: rgba(255, 255, 255, .45); margin-top: 7px; }
.ai-orb { width: 58px; height: 58px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .4), rgba(132, 206, 186, .2)); border: 1px solid rgba(255, 255, 255, .3); display: flex; align-items: center; justify-content: center; color: #fff; flex: none; box-shadow: 0 0 30px rgba(132, 206, 186, .3); }
.product-mini { flex: none; width: 124px; }
.product-mini-img { height: 124px; border-radius: 14px; background-size: cover; background-position: center; }
.product-mini h3 { font-size: 11.5px; margin-top: 8px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-mini .mini-foot b { font-size: 14px; }
.product-mini .mini-foot span { font-size: 8px; }
.home-footer { text-align: center; padding: 34px 10px 10px; color: var(--muted-2); }
.home-footer img { width: 28px; margin: 0 auto 8px; opacity: .5; }
.home-footer p { font-size: 9.5px; letter-spacing: .08em; }
.home-footer span { display: block; font-size: 8px; opacity: .7; margin-top: 4px; }

/* ---------- 子页头部 ---------- */
.sub-header { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .92); backdrop-filter: blur(18px); padding: calc(10px + env(safe-area-inset-top)) 16px 12px; border-bottom: 1px solid var(--line); }
.sub-nav { display: flex; align-items: center; justify-content: space-between; height: 34px; }
.sub-nav h1 { font-family: var(--font-serif); font-size: 17px; font-weight: 600; }
.nav-back { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--green-50); color: var(--ink); }
.nav-action { font-size: 11px; color: var(--green-700); }
.sub-header.simple { padding-bottom: 10px; }
.services-search { display: flex; align-items: center; gap: 8px; margin-top: 10px; height: 40px; background: var(--green-50); border-radius: 12px; padding: 0 13px; color: var(--muted-2); }
.services-search input { flex: 1; border: 0; background: transparent; outline: none; font-size: 13px; color: var(--ink); }
.services-search button { color: var(--muted-2); display: flex; }
.tag-scroll { display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px; scrollbar-width: none; background: #fff; border-bottom: 1px solid var(--line); }
.tag-scroll::-webkit-scrollbar { display: none; }
.tag-scroll button { flex: none; font-size: 11.5px; color: var(--muted); background: var(--green-50); padding: 6px 13px; border-radius: 999px; transition: all .3s; }
.tag-scroll button.active { background: var(--green-700); color: #fff; box-shadow: 0 6px 14px rgba(68, 107, 78, .22); }
.filter-note { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 16px; background: var(--green-100); color: var(--green-700); font-size: 10.5px; }
.filter-note button { display: inline-flex; align-items: center; gap: 2px; font-size: 10px; color: var(--green-700); }
.filter-note i { display: inline-flex; }

/* ---------- 服务列表 ---------- */
.services-list { padding: 14px 16px 30px; display: flex; flex-direction: column; gap: 12px; }
.skeleton-list { display: flex; flex-direction: column; gap: 12px; }
.sk-card { height: 128px; }
.service-row { display: flex; gap: 12px; background: #fff; border-radius: 16px; padding: 10px; box-shadow: 0 5px 18px rgba(35, 57, 42, .05); }
.service-row-img { width: 112px; height: 112px; border-radius: 12px; background-size: cover; background-position: center; position: relative; flex: none; }
.service-row-img span { position: absolute; left: 7px; bottom: 7px; font-size: 8px; color: #fff; background: rgba(36, 58, 45, .48); padding: 2px 7px; border-radius: 999px; backdrop-filter: blur(5px); }
.service-row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 4px 2px 2px; }
.service-row-body h3 { font-family: var(--font-serif); font-size: 15px; font-weight: 600; line-height: 1.4; }
.service-row-body > p { font-size: 10.5px; color: var(--muted-2); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.service-row-tags { display: flex; gap: 4px; margin-top: 7px; flex-wrap: wrap; }
.service-row-tags span { font-size: 8.5px; color: var(--green-600); background: var(--green-50); border-radius: 4px; padding: 2px 6px; }
.service-row-foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: auto; }
.service-row-foot b { font-family: var(--font-serif); color: var(--green-700); font-size: 18px; }
.service-row-foot b small { font-size: 10px; }
.service-row-foot em { font-style: normal; font-size: 9px; color: var(--muted-2); }

/* ---------- 服务详情 ---------- */
.detail-page { padding-bottom: 74px; }
.detail-hero { position: relative; height: 300px; background-size: cover; background-position: center; }
.detail-hero-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(36, 58, 45, .06) 30%, rgba(56, 87, 65, .72)); }
.floating-back, .floating-cart { position: absolute; z-index: 4; top: calc(14px + env(safe-area-inset-top)); width: 36px; height: 36px; border-radius: 50%; background: rgba(36, 58, 45, .36); backdrop-filter: blur(8px); color: #fff; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, .18); }
.floating-back { left: 16px; } .floating-cart { right: 16px; }
.floating-cart em { position: absolute; top: -3px; right: -3px; background: var(--orange); color: #fff; font-style: normal; font-size: 8px; min-width: 15px; height: 15px; border-radius: 999px; display: flex; align-items: center; justify-content: center; padding: 0 3px; }
.detail-hero-copy { position: absolute; left: 20px; right: 20px; bottom: 22px; color: #fff; }
.detail-hero-copy h1 { font-family: var(--font-serif); font-size: 23px; font-weight: 600; line-height: 1.45; margin-top: 8px; }
.detail-hero-copy p { font-size: 10.5px; color: rgba(255, 255, 255, .65); margin-top: 5px; }
.detail-main { margin-top: -14px; position: relative; background: #f7faf4; border-radius: 20px 20px 0 0; padding: 16px 16px 26px; }
.detail-price-card { background: #fff; border-radius: 14px; padding: 15px 16px; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 6px 18px rgba(35, 57, 42, .05); }
.detail-price { font-family: var(--font-serif); color: var(--green-700); font-size: 27px; font-weight: 600; }
.detail-price small { font-size: 12px; }
.detail-price-card del { font-size: 10px; color: var(--muted-2); margin-left: 7px; }
.detail-duration { display: inline-flex; align-items: center; gap: 4px; font-size: 9.5px; color: var(--muted); background: var(--green-50); padding: 5px 9px; border-radius: 999px; }
.detail-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.detail-tags span { font-size: 9.5px; color: var(--green-700); background: var(--green-100); padding: 3px 9px; border-radius: 999px; }
.detail-section { background: #fff; border-radius: 16px; padding: 18px 16px; margin-top: 12px; }
.detail-section h2 { font-family: var(--font-serif); font-size: 16px; font-weight: 600; margin-bottom: 10px; position: relative; padding-left: 11px; }
.detail-section h2::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; border-radius: 3px; background: linear-gradient(var(--green-500), var(--sky-400)); }
.detail-intro { font-size: 12.5px; color: var(--muted); line-height: 1.9; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.feature-item { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--ink-2); background: var(--green-50); border-radius: 10px; padding: 9px 10px; }
.feature-item i { color: var(--green-600); display: inline-flex; flex: none; }
.notice-list { padding-left: 1.1em; list-style: disc; }
.notice-list li { font-size: 11.5px; color: var(--muted); line-height: 1.8; margin-bottom: 3px; }
.related-list { display: flex; flex-direction: column; gap: 10px; }
.related-item { display: flex; gap: 11px; align-items: center; }
.related-img { width: 64px; height: 64px; border-radius: 10px; background-size: cover; background-position: center; flex: none; }
.related-item h3 { font-size: 13px; font-weight: 600; }
.related-item p { font-size: 9.5px; color: var(--muted-2); margin-top: 2px; }
.related-item b { font-size: 13px; color: var(--green-700); font-family: var(--font-serif); }
.detail-bottom { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 480px; z-index: 70; display: flex; align-items: center; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
.detail-consult { width: 56px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 9px; color: var(--muted); }
.detail-book { flex: 1; border-radius: 999px; background: linear-gradient(100deg, #557d5b, #77aca2); }

/* ---------- AI ---------- */
.ai-page { min-height: calc(100vh - 78px); background: linear-gradient(180deg, #2f4a38, #355b44 34%, #f3f8ee 34.1%); padding-bottom: 150px; }
.ai-header { position: relative; color: #fff; text-align: center; padding: calc(16px + env(safe-area-inset-top)) 20px 28px; overflow: hidden; }
.ai-header::before, .ai-header::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .08); }
.ai-header::before { width: 300px; height: 300px; left: 50%; top: -160px; transform: translateX(-50%); }
.ai-header::after { width: 190px; height: 190px; left: 50%; top: -100px; transform: translateX(-50%); }
.ai-back { position: absolute; left: 16px; top: calc(14px + env(safe-area-inset-top)); color: #fff; }
.ai-hero-orb { width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .35), rgba(132, 206, 186, .15)); border: 1px solid rgba(255, 255, 255, .25); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 30px rgba(132, 206, 186, .25); }
.ai-header h1 { font-family: var(--font-serif); font-size: 20px; font-weight: 600; }
.ai-header p { font-size: 9.5px; color: rgba(255, 255, 255, .45); margin-top: 6px; }
.ai-status { display: inline-flex; align-items: center; gap: 5px; font-size: 9px; color: var(--green-300); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); padding: 4px 10px; border-radius: 999px; margin-top: 12px; }
.ai-status i { width: 5px; height: 5px; border-radius: 50%; background: #6fe3a8; box-shadow: 0 0 6px #6fe3a8; }
.chat-area { padding: 10px 16px 20px; min-height: 380px; }
.chat-day { text-align: center; font-size: 9px; color: var(--muted-2); margin: 4px 0 14px; }
.chat-msg { display: flex; gap: 8px; margin-bottom: 14px; align-items: flex-start; }
.chat-msg.user { flex-direction: row-reverse; }
.chat-avatar { width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; flex: none; overflow: hidden; }
.chat-avatar img { width: 21px; height: 21px; object-fit: contain; }
.chat-bubble { max-width: 84%; background: #fff; border-radius: 4px 16px 16px 16px; padding: 13px 14px; box-shadow: 0 5px 16px rgba(35, 57, 42, .05); font-size: 12px; line-height: 1.8; color: var(--ink-2); }
.chat-msg.user .chat-bubble { background: linear-gradient(120deg, #557d5b, #6fa196); color: #fff; border-radius: 16px 4px 16px 16px; }
.chat-bubble.emergency { border: 1px solid rgba(217, 74, 61, .3); background: #fff7f6; }
.ai-msg-head { display: flex; align-items: center; gap: 6px; font-family: var(--font-serif); font-weight: 600; font-size: 13.5px; color: var(--green-800); margin-bottom: 7px; }
.ai-msg-head span { color: var(--green-500); }
.ai-summary { font-size: 11.5px; color: var(--muted); line-height: 1.8; }
.ai-section { margin-top: 10px; }
.ai-section h4 { font-size: 11.5px; font-weight: 600; color: var(--green-800); margin-bottom: 5px; }
.ai-section ul { padding-left: 1.05em; list-style: disc; }
.ai-section li { font-size: 11px; color: var(--muted); line-height: 1.8; }
.ai-services { margin-top: 11px; display: flex; flex-direction: column; gap: 7px; }
.ai-service { display: flex; align-items: center; gap: 8px; background: var(--green-50); border-radius: 10px; padding: 7px; }
.ai-service-img { width: 38px; height: 38px; border-radius: 7px; background-size: cover; background-position: center; flex: none; }
.ai-service h5 { font-size: 11px; font-weight: 600; }
.ai-service span { font-size: 9px; color: var(--green-700); }
.ai-service i { margin-left: auto; color: var(--muted-2); display: flex; }
.ai-suggest { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 11px; }
.ai-suggest button { font-size: 9.5px; color: var(--green-700); background: var(--green-50); border: 1px solid var(--green-100); padding: 5px 9px; border-radius: 999px; text-align: left; }
.ai-disclaimer { font-size: 8.5px; color: var(--muted-2); margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line); line-height: 1.6; }
.typing { display: flex; gap: 4px; padding: 15px 16px; }
.typing span { width: 5px; height: 5px; border-radius: 50%; background: var(--green-400); animation: typing 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; } .typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
.ai-quick { background: #fff; border-radius: 16px; padding: 14px; margin-top: 4px; box-shadow: 0 5px 16px rgba(35, 57, 42, .04); }
.ai-quick p { font-size: 9.5px; color: var(--muted-2); margin-bottom: 9px; letter-spacing: .06em; }
.ai-quick button { display: block; width: 100%; text-align: left; font-size: 11.5px; color: var(--ink-2); padding: 9px 0; border-bottom: 1px solid var(--line); }
.ai-quick button:last-child { border-bottom: 0; }
.ai-quick button::after { content: "›"; float: right; color: var(--muted-2); }
.chat-input-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(64px + env(safe-area-inset-bottom)); width: 100%; max-width: 480px; display: flex; gap: 8px; padding: 9px 14px; background: rgba(247, 250, 244, .95); backdrop-filter: blur(14px); border-top: 1px solid var(--line); z-index: 65; }
.chat-input-bar input { flex: 1; height: 40px; border-radius: 999px; border: 1px solid var(--line-strong); padding: 0 15px; font-size: 12.5px; outline: none; background: #fff; }
.chat-input-bar input:focus { border-color: var(--green-400); }
.chat-send { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(120deg, #557d5b, #77aca2); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.chat-send[disabled] { opacity: .4; }

/* ---------- 商城 ---------- */
.mall-head { position: relative; padding: calc(16px + env(safe-area-inset-top)) 18px 26px; background: linear-gradient(145deg, #375d47, #4c7759 55%, #74aca3 100%); color: #fff; border-radius: 0 0 26px 26px; overflow: hidden; }
.mall-orb { position: absolute; width: 230px; height: 230px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .12); right: -90px; top: -80px; }
.mall-top { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 2; }
.mall-top h1 { font-family: var(--font-serif); font-size: 24px; font-weight: 600; letter-spacing: .04em; }
.mall-top p { font-size: 9.5px; color: rgba(255, 255, 255, .5); margin-top: 4px; letter-spacing: .08em; }
.mall-cart { position: relative; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); display: flex; align-items: center; justify-content: center; }
.mall-cart em { position: absolute; top: -3px; right: -3px; background: var(--gold); color: #2b2413; font-style: normal; font-size: 8px; min-width: 16px; height: 16px; border-radius: 999px; display: flex; align-items: center; justify-content: center; padding: 0 3px; font-weight: 700; }
.mall-search { position: relative; z-index: 2; margin-top: 18px; height: 40px; border-radius: 999px; background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .2); display: flex; align-items: center; gap: 8px; padding: 0 15px; }
.mall-search span { opacity: .7; display: inline-flex; }
.mall-search input { flex: 1; border: 0; background: transparent; outline: none; color: #fff; font-size: 12.5px; }
.mall-search input::placeholder { color: rgba(255, 255, 255, .5); }
.mall-main { margin-top: -14px; position: relative; padding: 0 16px 20px; }
.mall-banner { position: relative; height: 112px; border-radius: 16px; overflow: hidden; background-size: cover; background-position: center; box-shadow: 0 10px 26px rgba(35, 57, 42, .14); }
.mall-banner-veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(36, 58, 45, .8), rgba(36, 58, 45, .2)); }
.mall-banner > div:last-child { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: #fff; }
.mall-banner span { font-size: 7.5px; letter-spacing: .16em; color: var(--gold-light); }
.mall-banner h3 { font-family: var(--font-serif); font-size: 17px; margin-top: 4px; }
.mall-banner p { font-size: 9px; color: rgba(255, 255, 255, .55); margin-top: 3px; }
.category-scroll { display: flex; gap: 14px; overflow-x: auto; padding: 16px 2px 6px; scrollbar-width: none; }
.category-scroll::-webkit-scrollbar { display: none; }
.category-item { flex: none; display: flex; flex-direction: column; align-items: center; gap: 5px; width: 54px; }
.cat-icon { width: 44px; height: 44px; border-radius: 14px; background: #fff; color: var(--green-700); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(35, 57, 42, .05); transition: all .3s; }
.category-item b { font-size: 9px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.category-item.active .cat-icon { background: linear-gradient(135deg, #557d5b, #77aca2); color: #fff; box-shadow: 0 7px 16px rgba(85, 125, 91, .22); }
.category-item.active b { color: var(--green-700); font-weight: 600; }
.mall-tabs { display: flex; align-items: center; gap: 20px; padding: 12px 2px; }
.mall-tabs button { position: relative; font-size: 13.5px; color: var(--muted-2); padding-bottom: 4px; }
.mall-tabs button.active { color: var(--ink); font-weight: 700; font-family: var(--font-serif); font-size: 16px; }
.mall-tabs button.active span { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 16px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--green-500), var(--sky-400)); }
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.product-card { background: #fff; border-radius: 15px; overflow: hidden; box-shadow: 0 5px 16px rgba(35, 57, 42, .05); }
.product-img { height: 155px; background-size: cover; background-position: center; position: relative; }
.p-badge { position: absolute; left: 8px; top: 8px; font-size: 8px; padding: 2px 7px; border-radius: 5px; color: #fff; letter-spacing: .04em; }
.p-badge.hot { background: rgba(226, 90, 12, .9); } .p-badge.new { background: rgba(85, 125, 91, .9); }
.product-body { padding: 10px 11px 12px; }
.product-body h3 { font-size: 12.5px; font-weight: 600; line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-body > p { font-size: 9px; color: var(--muted-2); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-foot { display: flex; align-items: baseline; justify-content: space-between; margin-top: 9px; }
.product-foot b { font-family: var(--font-serif); color: var(--green-700); font-size: 18px; }
.product-foot b small { font-size: 10px; }
.product-foot span { font-size: 8px; color: var(--muted-2); }

/* ---------- 商品详情 ---------- */
.product-detail { padding-bottom: 84px; }
.pd-hero { height: 340px; background-size: cover; background-position: center; }
.pd-main { margin-top: -18px; position: relative; background: #f7faf4; border-radius: 20px 20px 0 0; padding: 18px 16px 20px; }
.pd-price { display: flex; align-items: baseline; gap: 8px; }
.pd-price b { font-family: var(--font-serif); font-size: 30px; color: var(--green-700); }
.pd-price b small { font-size: 13px; }
.pd-price del { font-size: 10px; color: var(--muted-2); }
.pd-price > span { margin-left: auto; font-size: 9.5px; color: var(--muted-2); }
.pd-main h1 { font-family: var(--font-serif); font-size: 20px; font-weight: 600; line-height: 1.45; margin-top: 8px; }
.pd-sub { font-size: 11.5px; color: var(--muted-2); margin-top: 5px; }
.pd-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 10px; }
.pd-tags span { font-size: 9px; color: var(--green-700); background: var(--green-100); padding: 3px 8px; border-radius: 999px; }
.pd-meta { display: flex; gap: 16px; margin-top: 14px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pd-meta span { display: inline-flex; align-items: center; gap: 4px; font-size: 9.5px; color: var(--muted); }
.pd-meta i { color: var(--green-500); display: inline-flex; }
.pd-section { background: #fff; border-radius: 16px; padding: 18px 15px; margin-top: 12px; }
.pd-section h2 { font-family: var(--font-serif); font-size: 16px; margin-bottom: 9px; }
.pd-section > p { font-size: 12px; color: var(--muted); line-height: 1.9; }
.pd-related { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 2px; }
.pd-related a { flex: none; width: 108px; }
.pd-related-img { height: 108px; border-radius: 12px; background-size: cover; background-position: center; }
.pd-related h3 { font-size: 11px; margin-top: 6px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-related b { font-size: 12px; color: var(--green-700); font-family: var(--font-serif); }
.pd-bottom { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 480px; z-index: 70; background: rgba(255, 255, 255, .97); backdrop-filter: blur(16px); border-top: 1px solid var(--line); padding: 9px 14px calc(9px + env(safe-area-inset-bottom)); }
.pd-qty { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 10px; color: var(--muted); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; }
.stepper button { width: 30px; height: 28px; font-size: 15px; color: var(--muted); background: var(--green-50); }
.stepper b { min-width: 36px; text-align: center; font-size: 12px; }
.stepper.small button { width: 26px; height: 24px; font-size: 13px; }
.stepper.small b { min-width: 30px; font-size: 11px; }
.pd-actions { display: flex; gap: 8px; }
.pd-cart-btn, .pd-buy-btn { flex: 1; height: 44px; border-radius: 999px; font-size: 13.5px; font-weight: 600; }
.pd-cart-btn { background: var(--green-100); color: var(--green-700); }
.pd-buy-btn { background: linear-gradient(100deg, #557d5b, #77aca2); color: #fff; }

/* ---------- 购物车 ---------- */
.cart-page { padding: 14px 16px 100px; }
.login-tip { text-align: center; padding: 60px 20px; }
.login-tip p { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.cart-item { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 15px; padding: 11px; margin-bottom: 10px; }
.cart-check { width: 21px; height: 21px; border-radius: 50%; border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; color: transparent; flex: none; background: #fff; }
.cart-check.on { background: var(--green-600); border-color: var(--green-600); color: #fff; }
.cart-img { width: 76px; height: 76px; border-radius: 10px; background-size: cover; background-position: center; flex: none; }
.cart-body { flex: 1; min-width: 0; }
.cart-body h3 { font-size: 12.5px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cart-body > p { font-size: 9px; color: var(--muted-2); margin-top: 3px; }
.cart-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 7px; }
.cart-foot b { font-family: var(--font-serif); color: var(--green-700); font-size: 16px; }
.cart-summary { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; max-width: 480px; width: 100%; background: rgba(255, 255, 255, .97); backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 12px; z-index: 66; }
.cart-summary span { display: block; font-size: 9.5px; color: var(--muted-2); }
.cart-summary b { font-size: 11px; }
.cart-summary b em { font-style: normal; font-family: var(--font-serif); font-size: 20px; color: var(--green-700); }
.cart-summary .btn { padding: 11px 26px; }
.cart-empty a { margin-top: 4px; }

/* ---------- 结算 ---------- */
.checkout-page { padding: 14px 16px 100px; }
.checkout-card, .detail-card { background: #fff; border-radius: 16px; padding: 16px; margin-bottom: 12px; }
.checkout-card h3, .detail-card h3 { font-family: var(--font-serif); font-size: 14.5px; margin-bottom: 13px; display: flex; align-items: center; gap: 6px; }
.checkout-card h3 span { color: var(--green-600); display: inline-flex; }
.checkout-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.checkout-item:last-child { border-bottom: 0; }
.checkout-item-body { flex: 1; min-width: 0; }
.checkout-item-body h4 { font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.checkout-item-body p { font-size: 9.5px; color: var(--muted-2); margin-top: 3px; }
.checkout-item > b { font-size: 12.5px; color: var(--green-700); }
.checkout-item.empty { color: var(--muted-2); font-size: 11px; justify-content: center; }
.checkout-note { font-size: 9px; color: var(--muted-2); line-height: 1.7; padding: 0 4px 10px; }
.checkout-bottom { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 480px; background: rgba(255, 255, 255, .97); backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; z-index: 70; }
.checkout-bottom > div { font-size: 11px; color: var(--muted); }
.checkout-bottom > div b { font-family: var(--font-serif); font-size: 23px; color: var(--green-700); margin-left: 4px; }
.checkout-bottom .btn { padding: 12px 28px; }

/* ---------- 订单 ---------- */
.order-tabs { display: flex; gap: 18px; padding: 12px 16px; overflow-x: auto; background: #fff; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.order-tabs::-webkit-scrollbar { display: none; }
.order-tabs button { flex: none; font-size: 12px; color: var(--muted-2); position: relative; padding-bottom: 4px; }
.order-tabs button.active { color: var(--green-700); font-weight: 600; }
.order-tabs button.active::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0; width: 14px; height: 2px; border-radius: 2px; background: var(--green-600); }
.orders-page { padding: 14px 16px 20px; }
.order-card { background: #fff; border-radius: 16px; padding: 14px; margin-bottom: 11px; }
.order-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.order-head span { font-size: 9.5px; color: var(--muted-2); letter-spacing: .03em; }
.order-head em { font-style: normal; font-size: 10px; }
.st-warn { color: var(--orange-600); } .st-ok { color: var(--green-600); } .st-info { color: var(--sky-600); } .st-muted { color: var(--muted-2); }
.order-items { padding: 4px 0; }
.order-item { display: flex; gap: 9px; padding: 7px 0; align-items: center; }
.order-img { width: 52px; height: 52px; border-radius: 9px; background-size: cover; background-position: center; flex: none; }
.order-item h4 { font-size: 11.5px; font-weight: 500; }
.order-item p { font-size: 9.5px; color: var(--muted-2); margin-top: 2px; }
.order-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--line); gap: 8px; }
.order-foot > span { font-size: 9.5px; color: var(--muted-2); }
.order-foot b { color: var(--ink); font-size: 12px; }
.order-actions { display: flex; gap: 7px; }
.order-detail-page { padding: 14px 16px 20px; }
.order-status-card { background: linear-gradient(135deg, #42654b, #517d64 60%, #74aba8); color: #fff; border-radius: 18px; padding: 24px 20px; text-align: center; margin-bottom: 12px; }
.status-icon { width: 50px; height: 50px; border-radius: 50%; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; }
.order-status-card h2 { font-family: var(--font-serif); font-size: 19px; }
.order-status-card p { font-size: 10px; color: rgba(255, 255, 255, .55); margin-top: 5px; }
.detail-line { font-size: 11.5px; color: var(--muted); line-height: 1.8; }
.detail-line b { color: var(--green-700); }
.order-detail-actions { padding-top: 6px; }

/* ---------- 预约 ---------- */
.appointment-page { padding: 14px 16px 20px; }
.appointment-card { background: #fff; border-radius: 16px; padding: 15px; margin-bottom: 11px; }
.appointment-head { display: flex; align-items: center; justify-content: space-between; }
.appointment-no { font-size: 9px; color: var(--muted-2); letter-spacing: .04em; }
.appointment-head em { font-style: normal; font-size: 10px; }
.appointment-card > h3 { font-family: var(--font-serif); font-size: 16px; margin: 9px 0 8px; }
.appointment-info p { display: flex; align-items: flex-start; gap: 6px; font-size: 10.5px; color: var(--muted); line-height: 1.7; }
.appointment-info i { color: var(--green-500); display: inline-flex; margin-top: 2px; }
.appointment-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--line); }
.appointment-actions .btn { padding: 7px 16px; }

/* ---------- 我的 ---------- */
.mine-hero { position: relative; padding: calc(16px + env(safe-area-inset-top)) 18px 58px; background: linear-gradient(150deg, #3a5c45, #547d5c 58%, #74aba4); color: #fff; border-radius: 0 0 28px 28px; overflow: hidden; }
.mine-orb { position: absolute; width: 260px; height: 260px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .1); right: -100px; top: -90px; }
.mine-top { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 2; }
.mine-top h1 { font-family: var(--font-serif); font-size: 22px; letter-spacing: .06em; }
.mine-top button { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .1); padding: 5px 11px; border-radius: 999px; }
.profile-card { position: relative; z-index: 2; display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.profile-avatar { position: relative; width: 66px; height: 66px; border-radius: 50%; overflow: visible; flex: none; }
.profile-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255, 255, 255, .5); }
.v-badge { position: absolute; right: -2px; bottom: -2px; width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg, #f0d9a8, #c3a570); color: #4a3a16; font-size: 9px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 1.5px solid #42654b; }
.profile-info h2 { font-family: var(--font-serif); font-size: 21px; font-weight: 600; }
.profile-info > p { font-size: 10.5px; color: rgba(255, 255, 255, .55); margin-top: 4px; }
.member-pill { display: inline-flex; align-items: center; gap: 8px; margin-top: 9px; font-size: 9px; color: var(--gold-light); background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); padding: 4px 10px; border-radius: 999px; }
.member-pill span { color: rgba(255, 255, 255, .5); border-left: 1px solid rgba(255, 255, 255, .18); padding-left: 8px; }
.profile-card.guest .btn { margin-top: 10px; }
.mine-main { margin-top: -38px; position: relative; z-index: 3; padding: 0 16px 20px; }
.mine-stats { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: 16px; padding: 16px 4px; box-shadow: 0 8px 24px rgba(35, 57, 42, .07); text-align: center; }
.mine-stats a { border-right: 1px solid var(--line); }
.mine-stats a:last-child { border-right: 0; }
.mine-stats b { display: block; font-family: var(--font-serif); font-size: 20px; color: var(--ink); }
.mine-stats span { display: block; font-size: 9px; color: var(--muted-2); margin-top: 2px; }
.mine-card { background: #fff; border-radius: 16px; padding: 2px 15px; margin-top: 12px; box-shadow: 0 5px 16px rgba(35, 57, 42, .04); }
.mine-menu { display: flex; align-items: center; gap: 11px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mine-menu:last-child { border-bottom: 0; }
.mm-icon { width: 36px; height: 36px; border-radius: 11px; display: flex; align-items: center; justify-content: center; flex: none; }
.mm-green { background: var(--green-100); color: var(--green-700); }
.mm-sky { background: var(--sky-100); color: var(--sky-700); }
.mm-gold { background: #faf1e0; color: #a17f3e; }
.mm-dark { background: #ebf2e7; color: var(--green-800); }
.mine-menu div { flex: 1; min-width: 0; }
.mine-menu b { display: block; font-size: 13px; font-weight: 500; }
.mine-menu small { display: block; font-size: 9.5px; color: var(--muted-2); margin-top: 2px; }
.mine-menu > i { color: var(--muted-2); display: flex; }
.logout-btn { width: 100%; margin-top: 16px; padding: 13px; border-radius: 14px; background: #fff; color: var(--muted); font-size: 12.5px; border: 1px solid var(--line); }
.mine-version { text-align: center; font-size: 8.5px; color: var(--muted-2); margin-top: 18px; opacity: .7; }

/* ---------- 登录 ---------- */
.login-page { position: relative; min-height: 100vh; padding: calc(16px + env(safe-area-inset-top)) 22px 30px; background: linear-gradient(160deg, #2f4a38, #40684f 45%, #5c8a82 78%, #6db5c8); overflow: hidden; color: #fff; }
.login-bg { position: absolute; inset: 0; background-image: radial-gradient(circle at 80% 12%, rgba(255, 255, 255, .12), transparent 35%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='130' height='130'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='130' height='130' filter='url(%23n)' opacity='.3'/%3E%3C/svg%3E"); opacity: .35; mix-blend-mode: overlay; }
.login-top { position: relative; z-index: 2; }
.login-back { width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); display: flex; align-items: center; justify-content: center; color: #fff; }
.login-brand { position: relative; z-index: 2; text-align: center; margin: 26px 0 30px; }
.login-brand img { width: 60px; margin: 0 auto 14px; filter: brightness(0) invert(1); }
.login-brand h1 { font-family: var(--font-serif); font-size: 27px; letter-spacing: .28em; padding-left: .28em; }
.login-brand p { font-size: 9.5px; color: rgba(255, 255, 255, .5); letter-spacing: .18em; margin-top: 6px; }
.login-card { position: relative; z-index: 2; background: rgba(255, 255, 255, .97); border-radius: 22px; padding: 26px 22px; color: var(--ink); box-shadow: 0 24px 60px rgba(26, 44, 32, .28); }
.login-card h2 { font-family: var(--font-serif); font-size: 20px; }
.login-sub { font-size: 10px; color: var(--muted-2); margin: 5px 0 20px; }
.login-input { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-strong); border-radius: 12px; padding: 0 13px; height: 46px; background: #fbfdfb; }
.login-input i { color: var(--muted-2); display: inline-flex; }
.login-input input { flex: 1; border: 0; background: transparent; outline: none; font-size: 14px; min-width: 0; }
.code-btn { font-size: 10.5px; color: var(--green-700); white-space: nowrap; border-left: 1px solid var(--line); padding-left: 10px; }
.code-btn[disabled] { color: var(--muted-2); }
.agreement { display: flex; align-items: center; gap: 7px; font-size: 9.5px; color: var(--muted-2); margin: 4px 0 16px; }
.checkbox { width: 16px; height: 16px; border-radius: 4px; border: 1px solid var(--line-strong); display: inline-flex; align-items: center; justify-content: center; color: transparent; flex: none; }
.checkbox.on { background: var(--green-600); border-color: var(--green-600); color: #fff; }
.login-submit { height: 46px; border-radius: 12px; font-size: 14.5px; }
.login-demo { text-align: center; font-size: 9.5px; color: var(--muted-2); margin-top: 12px; }
.login-demo b { color: var(--green-700); letter-spacing: .12em; }
.login-footer { position: relative; z-index: 2; text-align: center; font-size: 8.5px; color: rgba(255, 255, 255, .38); margin-top: 26px; }

/* ---------- 设备 ---------- */
.devices-page { padding: 16px 16px 30px; }
.devices-intro { background: linear-gradient(135deg, #42654b, #517d64 60%, #74aba8); color: #fff; border-radius: 18px; padding: 22px 20px; margin-bottom: 14px; }
.devices-intro h2 { font-family: var(--font-serif); font-size: 18px; line-height: 1.5; }
.devices-intro p { font-size: 10px; color: rgba(255, 255, 255, .55); margin-top: 7px; line-height: 1.7; }
.device-item { background: #fff; border-radius: 16px; overflow: hidden; margin-bottom: 12px; }
.device-item-img { height: 150px; background-size: cover; background-position: center; }
.device-item-body { padding: 15px; }
.device-item-body h3 { font-family: var(--font-serif); font-size: 16px; }
.device-item-body > p { font-size: 10.5px; color: var(--muted); line-height: 1.8; margin-top: 6px; }
.device-params { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.device-params span { font-size: 8.5px; color: var(--green-700); background: var(--green-50); padding: 3px 7px; border-radius: 5px; }

/* ---------- 弹层 ---------- */
.sheet-mask { position: fixed; inset: 0; z-index: 300; background: rgba(30, 49, 36, .5); backdrop-filter: blur(5px); display: flex; align-items: flex-end; justify-content: center; animation: fadeIn .25s; }
.booking-sheet, .pay-sheet { width: 100%; max-width: 480px; background: #fff; border-radius: 22px 22px 0 0; padding: 20px 20px calc(20px + env(safe-area-inset-bottom)); max-height: 88vh; overflow-y: auto; animation: sheetUp .35s var(--ease); }
@keyframes sheetUp { from { transform: translateY(40px); opacity: .6; } }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sheet-head h3 { font-family: var(--font-serif); font-size: 17px; line-height: 1.4; }
.sheet-head button { color: var(--muted-2); display: flex; flex: none; }
.sheet-tip { text-align: center; font-size: 9px; color: var(--muted-2); margin-top: 10px; }
.booking-type { display: flex; gap: 8px; margin-bottom: 14px; }
.booking-type button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px; height: 42px; border-radius: 11px; border: 1px solid var(--line-strong); font-size: 12px; color: var(--muted); }
.booking-type button.active { border-color: var(--green-500); background: var(--green-50); color: var(--green-700); font-weight: 600; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay-amount { text-align: center; font-family: var(--font-serif); font-size: 38px; font-weight: 600; color: var(--ink); padding: 6px 0 18px; }
.pay-amount small { font-size: 16px; margin-right: 3px; }
.pay-method { width: 100%; display: flex; align-items: center; gap: 11px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; margin-bottom: 9px; background: #fff; }
.pay-method.active { border-color: var(--green-500); background: var(--green-50); }
.pay-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex: none; }
.pay-icon.wechat { background: #e8f4e2; color: #1aad19; }
.pay-icon.alipay { background: #e8f4fd; color: #1677ff; }
.pay-method div { flex: 1; text-align: left; }
.pay-method b { display: block; font-size: 12.5px; font-weight: 500; }
.pay-method small { display: block; font-size: 9px; color: var(--muted-2); margin-top: 1px; }
.radio { width: 17px; height: 17px; border-radius: 50%; border: 1px solid var(--line-strong); flex: none; }
.radio.on { border: 5px solid var(--green-600); }
.pay-sheet .btn { margin-top: 8px; }
.success-mask { position: fixed; inset: 0; z-index: 400; background: rgba(30, 49, 36, .55); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 30px; animation: fadeIn .25s; }
.success-card { background: #fff; border-radius: 22px; padding: 30px 24px 24px; text-align: center; width: 100%; max-width: 340px; animation: modalUp .35s var(--ease); }
.success-icon { width: 68px; height: 68px; border-radius: 50%; background: linear-gradient(135deg, #557d5b, #77b79f); color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; box-shadow: 0 12px 28px rgba(85, 125, 91, .26); }
.success-card h2 { font-family: var(--font-serif); font-size: 21px; }
.success-card > p { font-size: 10px; color: var(--muted-2); margin-top: 6px; }
.success-actions { display: flex; gap: 9px; margin-top: 22px; }
.success-actions > * { flex: 1; }

/* ---------- 底部导航 ---------- */
.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 200;
  width: 100%; max-width: 480px; height: calc(64px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-around;
}
.tabbar > a { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--muted-2); font-size: 8.5px; padding-top: 3px; }
.tabbar > a span { display: inline-flex; transition: transform .3s; }
.tabbar > a b { font-weight: 500; letter-spacing: .02em; }
.tabbar > a.active { color: var(--green-700); }
.tabbar > a.active span { transform: translateY(-1px); }
.tabbar > a.active b { font-weight: 700; }
.tab-ai { position: relative; }
.tab-ai .ai-orb-btn { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, #42654b, #74acb3); color: #fff; display: flex; align-items: center; justify-content: center; margin-top: -25px; border: 3px solid #f7faf4; box-shadow: 0 8px 22px rgba(53, 84, 65, .28); }
.tab-ai.active .ai-orb-btn { background: linear-gradient(135deg, #557d5b, #6eb2be); }
.tab-badge { position: absolute; top: -1px; right: 18px; min-width: 15px; height: 15px; border-radius: 999px; background: var(--orange); color: #fff; font-style: normal; font-size: 8px; display: flex; align-items: center; justify-content: center; padding: 0 3px; }

/* ---------- 动画 ---------- */
@keyframes fadeIn { from { opacity: 0; } }
@keyframes modalUp { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; } }

@media (max-width: 360px) {
  .home-greeting h1 { font-size: 20px; }
  .quick-icon { width: 40px; height: 40px; }
  .banner-copy h3 { font-size: 18px; }
  .product-grid { gap: 8px; }
  .product-img { height: 140px; }
}
