/* ============================================================
 * pages.css — 页面样式
 * Part 1: 首页 / 服务超市 / 服务详情 / 服务商 / 搜索
 * ============================================================ */

/* ---------- 首页 · 头部 ---------- */
.home-page { background: var(--bg); }
.home-hero {
  background: var(--primary-grad);
  padding: calc(var(--safe-t) + 16px) 16px 56px;
  color: #fff;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 24px 24px;
}
.home-hero::after {
  content: ''; position: absolute; right: -40px; top: -30px;
  width: 180px; height: 180px; border-radius: 50%;
  background: rgba(255,255,255,.09);
}
.home-top { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 2; }
.home-loc { display: flex; align-items: center; gap: 3px; color: #fff; font-size: 14px; font-weight: 600; }
.home-icon-btn {
  position: relative; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.18); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.home-dot { position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; background: #FFE08A; border-radius: 50%; border: 1.5px solid var(--primary); }
.home-greeting { margin-top: 20px; position: relative; z-index: 2; }
.home-greeting h1 { font-size: 21px; font-weight: 700; }
.home-greeting p { font-size: 13px; opacity: .88; margin-top: 4px; }
.home-search {
  margin-top: 18px; width: 100%; height: 42px;
  background: #fff; border-radius: var(--r-pill);
  display: flex; align-items: center; gap: 9px;
  padding: 0 16px; color: var(--ink-3); font-size: 13px;
  box-shadow: 0 6px 18px rgba(200,70,30,.16);
  position: relative; z-index: 2;
}

/* ---------- 首页 · Banner ---------- */
.banner-wrap {
  position: relative; margin: -40px 16px 0; height: 148px;
  border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--sh-2); z-index: 3;
}
.banner-slide {
  position: absolute; inset: 0; opacity: 0; transform: scale(1.03);
  transition: opacity .6s ease, transform .6s ease;
  display: flex; align-items: center; padding: 0 18px; overflow: hidden;
}
.banner-slide.active { opacity: 1; transform: scale(1); }
.banner-txt { position: relative; z-index: 2; color: #fff; max-width: 65%; }
.banner-tag { display: inline-block; font-size: 10px; padding: 2px 8px; border-radius: var(--r-pill); background: rgba(255,255,255,.24); margin-bottom: 6px; }
.banner-txt h2 { font-size: 20px; font-weight: 800; letter-spacing: .5px; }
.banner-txt p { font-size: 11px; opacity: .92; margin-top: 5px; line-height: 1.4; }
.banner-emoji { position: absolute; right: 12px; bottom: 4px; font-size: 78px; opacity: .92; filter: drop-shadow(0 6px 10px rgba(0,0,0,.12)); }
.banner-dots { position: absolute; bottom: 10px; left: 18px; display: flex; gap: 5px; z-index: 4; }
.banner-dot { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.5); transition: all .3s; }
.banner-dot.active { width: 16px; background: #fff; }

/* ---------- 首页 · 服务分类（唯一入口，适老大图标） ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px 2px; padding: 18px 6px; }
.cat-item { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-2); }
.cat-emoji {
  width: 46px; height: 46px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: #fff;
  box-shadow: 0 4px 10px rgba(31,41,55,.10);
  transition: transform .15s;
}
.cat-item:active .cat-emoji { transform: scale(.92); }

/* ---------- 服务卡片（横向） ---------- */
.svc-scroll { display: flex; gap: 12px; overflow-x: auto; padding: 2px 16px 6px; scroll-snap-type: x mandatory; }
.svc-card {
  flex: 0 0 148px; background: #fff; border-radius: var(--r-md);
  overflow: hidden; box-shadow: var(--sh-1); scroll-snap-align: start;
}
.svc-cover { height: 96px; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.svc-cover::after { content: ''; position: absolute; width: 90px; height: 90px; border-radius: 50%; background: rgba(255,255,255,.14); top: -30px; right: -20px; }
.svc-emoji { font-size: 50px; filter: drop-shadow(0 4px 6px rgba(0,0,0,.12)); }
.svc-badge {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  background: rgba(255,255,255,.92); color: var(--primary-deep);
  font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: var(--r-pill);
}
.svc-info { padding: 10px; }
.svc-info h4 { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.svc-tags { display: flex; gap: 4px; margin-top: 6px; overflow: hidden; }
.svc-tags span { font-size: 10px; color: var(--ink-3); background: var(--bg); padding: 2px 5px; border-radius: 4px; white-space: nowrap; }
.svc-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.svc-price { color: var(--primary-deep); font-size: 17px; font-weight: 800; }
.svc-price i { font-size: 11px; font-style: normal; }
.svc-price em { font-size: 10px; font-style: normal; font-weight: 400; color: var(--ink-3); }
.svc-rating { display: flex; align-items: center; gap: 3px; font-size: 11px; color: var(--ink-2); }
.svc-scroll-small .svc-card { flex-basis: 132px; }
.svc-scroll-small .svc-cover { height: 76px; }
.svc-scroll-small .svc-emoji { font-size: 40px; }

/* ---------- 首页 · 合作招募 ---------- */
.join-banner {
  margin: 18px 16px; padding: 16px 18px; border-radius: var(--r-lg);
  background: linear-gradient(120deg,#2B3A67 0%,#4A5B9E 100%);
  color: #fff; display: flex; align-items: center; justify-content: space-between;
  position: relative; overflow: hidden; box-shadow: var(--sh-2);
}
.join-banner::after { content: '🤝'; position: absolute; right: 42px; top: 2px; font-size: 60px; opacity: .12; }
.join-tag { font-size: 10px; padding: 2px 8px; border: 1px solid rgba(255,255,255,.4); border-radius: var(--r-pill); }
.join-banner h3 { font-size: 15px; font-weight: 700; margin-top: 7px; }
.join-banner p { font-size: 11px; opacity: .8; margin-top: 4px; }
.join-arrow { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; }

/* ---------- 服务商卡片 ---------- */
.provider-card { display: flex; align-items: center; gap: 11px; padding: 12px 0; }
.provider-card + .provider-card { border-top: 1px solid var(--line); }
.provider-logo {
  width: 46px; height: 46px; flex: 0 0 auto; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 24px;
  box-shadow: 0 3px 8px rgba(31,41,55,.08);
}
.provider-logo-lg { width: 58px; height: 58px; font-size: 30px; border-radius: 15px; }
.provider-card-lg { align-items: flex-start; }
.provider-card-lg .provider-logo { margin-top: 2px; }

/* ---------- 资讯小条 ---------- */
.news-mini { display: flex; gap: 10px; padding: 10px 0; align-items: center; }
.news-mini + .news-mini { border-top: 1px solid var(--line); }
.news-mini-thumb { width: 58px; height: 58px; flex: 0 0 auto; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 28px; }
.news-mini h4 { font-size: 13px; font-weight: 600; line-height: 1.5; }

/* ---------- SOS 悬浮 ---------- */
.sos-float {
  position: fixed; right: 14px; bottom: calc(var(--tab-h) + var(--safe-b) + 16px);
  z-index: 60; width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg,#FF6B6B,#E83E3E); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(232,62,62,.45);
  animation: sos-pulse 2.4s ease-in-out infinite;
}
@keyframes sos-pulse { 0%,100% { box-shadow: 0 6px 16px rgba(232,62,62,.45); } 50% { box-shadow: 0 6px 26px rgba(232,62,62,.75); } }
.sos-float span { font-size: 20px; line-height: 1; }
.sos-float em { font-size: 9px; font-style: normal; font-weight: 800; letter-spacing: .5px; }
@media (min-width: 480px) { .sos-float { right: calc((100vw - 440px)/2 + 14px); } }

/* ---------- 服务超市 · 左侧分类 + 右侧列表（适老布局） ---------- */
.services-page {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.svc-search-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #fff; flex: 0 0 auto; }
.svc-search-bar .search-box { flex: 1; background: var(--bg); }
.svc-map-btn { width: 38px; height: 38px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-deep); display: flex; align-items: center; justify-content: center; }

.svc-catalog { display: flex; flex: 1 1 auto; min-height: 0; }
/* 左侧竖排分类栏 */
.cat-side {
  flex: 0 0 92px;
  width: 92px;
  overflow-y: auto;
  background: #F0F1F4;
  border-right: 1px solid var(--line-2);
  -webkit-overflow-scrolling: touch;
}
.cat-side-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; width: 100%; min-height: 66px; padding: 8px 2px;
  font-size: 12px; color: var(--ink-2); text-align: center; line-height: 1.3;
  position: relative;
}
.cat-side-item .csi-emoji { font-size: 21px; line-height: 1; }
.cat-side-item.active {
  background: #fff; color: var(--primary-deep); font-weight: 700;
}
.cat-side-item.active::before {
  content: ''; position: absolute; left: 0; top: 18%; height: 64%; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--primary);
}
/* 右侧服务面板 */
.svc-panel { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; background: var(--bg); }
.svc-panel-bar {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; background: #fff; border-bottom: 1px solid var(--line);
}
.svc-panel-bar b { font-size: 15px; color: var(--ink); }
.svc-sort-btn { display: flex; align-items: center; gap: 2px; font-size: 12px; color: var(--ink-2); }
.svc-panel-list { flex: 1 1 auto; overflow-y: auto; padding: 12px; -webkit-overflow-scrolling: touch; }
.svc-panel-list .svc-list-card { margin-bottom: 12px; }

/* 服务列表卡片（通用，供详情/收藏/搜索/服务商页复用） */
.svc-list-card { display: flex; gap: 12px; background: #fff; border-radius: var(--r-md); padding: 10px; box-shadow: var(--sh-1); }
.svc-list-cover { width: 108px; height: 108px; flex: 0 0 auto; border-radius: 10px; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.svc-list-cover::after { content: ''; position: absolute; width: 80px; height: 80px; border-radius: 50%; background: rgba(255,255,255,.14); top: -24px; right: -18px; }
.svc-list-emoji { font-size: 52px; filter: drop-shadow(0 4px 6px rgba(0,0,0,.12)); }
.svc-list-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.svc-list-info h3 { font-size: 15px; font-weight: 700; }
.svc-list-info > p { font-size: 11px; color: var(--ink-3); margin-top: 3px; line-height: 1.4; }

/* ---------- 服务详情 ---------- */
.detail-page { background: var(--bg); }
.pb-detail { padding-bottom: 80px; }
.detail-cover {
  height: 250px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding-top: calc(var(--nav-h) + var(--safe-t));
}
.detail-cover-deco { position: absolute; border-radius: 50%; background: rgba(255,255,255,.1); }
.detail-cover-deco.d1 { width: 200px; height: 200px; top: -50px; left: -40px; }
.detail-cover-deco.d2 { width: 130px; height: 130px; bottom: -40px; right: -20px; }
.detail-cover-emoji { font-size: 108px; filter: drop-shadow(0 10px 16px rgba(0,0,0,.16)); z-index: 2; }
.detail-cover-badge { position: absolute; top: calc(var(--nav-h) + var(--safe-t) + 14px); right: 16px; background: rgba(255,255,255,.92); color: var(--primary-deep); font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: var(--r-pill); }
.detail-main { margin-top: -22px; position: relative; z-index: 3; border-radius: 22px 22px 0 0; background: var(--bg); padding-top: 4px; }
.detail-price-card { margin: 12px 16px; padding: 16px; }
.detail-price { color: var(--primary-deep); font-size: 28px; font-weight: 800; }
.detail-price i { font-size: 15px; font-style: normal; }
.detail-price em { font-size: 12px; font-style: normal; font-weight: 400; color: var(--ink-3); }
.detail-origin { color: var(--ink-3); text-decoration: line-through; font-size: 12px; margin-left: 8px; }
.detail-title { font-size: 18px; font-weight: 700; margin-top: 10px; }
.hl-item { padding: 5px 0; font-size: 13px; color: var(--ink-2); }
.detail-desc { font-size: 13px; color: var(--ink-2); line-height: 1.8; }
.detail-meta { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.detail-meta > div { display: flex; justify-content: space-between; padding: 6px 0; font-size: 12px; }
.detail-meta span { color: var(--ink-3); }
.detail-provider { margin: 0 16px; display: flex; align-items: center; gap: 10px; padding: 14px; }
.review-item { font-size: 13px; }
.detail-action-bar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 440px; z-index: 55;
  display: flex; align-items: center; gap: 14px;
  padding: 10px 16px calc(10px + var(--safe-b));
  background: #fff; box-shadow: 0 -3px 16px rgba(31,41,55,.08);
}
.detail-act-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--ink-2); font-size: 10px; flex: 0 0 40px; }

/* ---------- 服务商列表 / 详情 ---------- */
.providers-page { background: var(--bg); }
.pd-hero { padding: calc(var(--nav-h) + var(--safe-t) + 20px) 20px 24px; color: #fff; text-align: center; position: relative; overflow: hidden; }
.pd-hero::after { content: ''; position: absolute; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,.1); right: -60px; top: -60px; }
.pd-hero-emoji { font-size: 60px; filter: drop-shadow(0 4px 8px rgba(0,0,0,.15)); }
.pd-hero h2 { font-size: 19px; font-weight: 800; margin-top: 8px; }
.pd-hero p { font-size: 12px; opacity: .9; margin-top: 4px; }
.provider-detail-page { background: var(--bg); }
.provider-detail-page .svc-list-card { margin-bottom: 12px; }

/* ---------- 搜索 ---------- */
.search-page { background: #fff; min-height: 100%; }
.search-page-bar { display: flex; align-items: center; gap: 6px; padding: calc(var(--safe-t) + 8px) 12px 12px; border-bottom: 1px solid var(--line); }
.search-page-bar .search-box { background: var(--bg); height: 38px; }
.search-hot { padding: 16px; }
.search-hot h4 { font-size: 14px; font-weight: 700; }
.search-hot .chip { padding: 6px 12px; font-size: 12px; }
.search-hot #hot-services .svc-list-card { margin-top: 12px; }
#search-result { padding: 0 16px; }
#search-result .svc-list-card { margin-bottom: 12px; }

/* ============================================================
 * Part 2: 入驻流程（服务商 / 服务人员）
 * ============================================================ */
.join-page { background: var(--bg); min-height: 100%; }
.join-hero {
  background: var(--primary-grad-deep); padding: calc(var(--safe-t) + 26px) 20px 44px;
  color: #fff; text-align: center; border-radius: 0 0 24px 24px; position: relative; overflow: hidden;
}
.join-hero::after { content: ''; position: absolute; width: 180px; height: 180px; border-radius: 50%; background: rgba(255,255,255,.09); right: -50px; top: -60px; }
.join-hero-teal { background: var(--teal-grad); }
.join-hero-emoji { font-size: 46px; filter: drop-shadow(0 4px 8px rgba(0,0,0,.15)); }
.join-hero h2 { font-size: 20px; font-weight: 800; margin-top: 8px; }
.join-hero p { font-size: 12px; opacity: .9; margin-top: 5px; }
.join-card { padding: 18px 16px 16px; }
.join-steps { margin-bottom: 22px; }
.join-step-title { font-size: 16px; font-weight: 700; margin-bottom: 18px; padding-left: 10px; border-left: 3px solid var(--primary); }
.join-body { animation: page-in .25s ease; }
.join-btns { display: flex; gap: 10px; margin-top: 22px; }
.join-tip { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--ink-3); font-size: 11px; padding: 18px 10px; }

/* 上传 */
.upload-item { display: flex; flex-direction: column; gap: 8px; }
.upload-label { font-size: 13px; font-weight: 600; }
.notice-box {
  display: flex; gap: 8px; align-items: flex-start; margin-top: 14px;
  padding: 12px; background: var(--blue-soft); border-radius: var(--r-sm);
  color: var(--blue); font-size: 11px; line-height: 1.6;
}
.notice-box svg { flex: 0 0 auto; margin-top: 1px; }

/* 信息确认 */
.review-list { background: var(--bg); border-radius: var(--r-sm); padding: 4px 12px; }
.review-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; font-size: 13px; border-bottom: 1px solid var(--line); }
.review-row:last-child { border-bottom: 0; }
.review-row span { color: var(--ink-3); flex: 0 0 auto; }
.review-row b { text-align: right; font-weight: 600; }
.agree-row { display: flex; align-items: flex-start; gap: 8px; margin-top: 16px; font-size: 12px; color: var(--ink-2); line-height: 1.6; }
.agree-row input { margin-top: 3px; accent-color: var(--primary); width: 15px; height: 15px; flex: 0 0 auto; }
.agree-row b { color: var(--primary-deep); }

/* 提交成功 */
.apply-success { text-align: center; padding: 16px 4px 8px; }
.success-ico {
  width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 16px;
  background: var(--primary-grad); display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sh-brand);
}
.success-ico.success-teal { background: var(--teal-grad); box-shadow: var(--sh-teal); }
.apply-success h3 { font-size: 19px; font-weight: 800; }
.apply-success > p { font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.apply-no { display: inline-block; margin-top: 14px; padding: 6px 14px; background: var(--bg); border-radius: var(--r-pill); font-size: 12px; color: var(--ink-2); }
.apply-timeline { display: flex; margin-top: 24px; position: relative; }
.tl-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 10px; color: var(--ink-3); position: relative; }
.tl-item:not(:last-child)::after { content: ''; position: absolute; top: 10px; left: 50%; width: 100%; height: 2px; background: var(--line-2); }
.tl-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--line-2); color: #fff; display: flex; align-items: center; justify-content: center; position: relative; z-index: 2; }
.tl-item.active { color: var(--primary-deep); font-weight: 600; }
.tl-item.active .tl-dot { background: var(--primary-grad); box-shadow: var(--sh-brand); }

/* ============================================================
 * Part 3: 合作招募 / 合伙人体系
 * ============================================================ */
.join-entry-page { background: var(--bg); }
.entry-hero { background: var(--primary-grad-deep); padding: calc(var(--safe-t) + 30px) 20px 46px; color: #fff; text-align: center; border-radius: 0 0 24px 24px; }
.entry-hero-emoji { font-size: 48px; display: block; }
.entry-hero h1 { font-size: 22px; font-weight: 800; margin-top: 8px; }
.entry-hero p { font-size: 12px; opacity: .9; margin-top: 4px; }
.entry-card { display: flex; align-items: center; gap: 12px; padding: 14px 0; }
.entry-card + .entry-card { border-top: 1px solid var(--line); }
.entry-emoji { width: 52px; height: 52px; flex: 0 0 auto; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 27px; box-shadow: 0 4px 10px rgba(31,41,55,.1); }
.entry-card h3 { font-size: 15px; font-weight: 700; }
.entry-contact { margin: 16px; }

.partner-page { background: var(--bg); }
.partner-hero {
  background: linear-gradient(130deg,#1E2A55 0%,#4358A8 60%,#5F74C9 100%);
  padding: calc(var(--safe-t) + 28px) 20px 30px; color: #fff; position: relative; overflow: hidden;
}
.partner-hero-inner { position: relative; z-index: 2; }
.ph-tag { display: inline-block; font-size: 10px; padding: 3px 10px; border-radius: var(--r-pill); background: rgba(255,255,255,.18); }
.partner-hero h1 { font-size: 21px; font-weight: 800; margin-top: 10px; }
.partner-hero p { font-size: 12px; opacity: .85; margin-top: 5px; }
.partner-hero .row { font-size: 11px; opacity: .9; }
.ph-emoji { position: absolute; right: 6px; bottom: 6px; font-size: 96px; opacity: .16; transform: rotate(-12deg); }

.partner-level-tabs { display: flex; gap: 8px; padding: 14px 16px 6px; }
.partner-level-tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 12px 4px 10px; background: #fff; border-radius: var(--r-md);
  box-shadow: var(--sh-1); border: 2px solid transparent; transition: all .2s;
}
.partner-level-tab.active { border-color: var(--primary); box-shadow: var(--sh-brand); transform: translateY(-2px); }
.plt-emoji { font-size: 24px; }
.partner-level-tab b { font-size: 12px; }
.partner-level-tab small { font-size: 9px; color: var(--ink-3); }
.partner-level-tab.active b { color: var(--primary-deep); }

.partner-detail-card { margin: 10px 16px; background: #fff; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-2); }
.pdc-head { display: flex; align-items: center; gap: 14px; padding: 18px; color: #fff; position: relative; overflow: hidden; }
.pdc-head::after { content: ''; position: absolute; width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,.12); right: -40px; top: -40px; }
.pdc-emoji { font-size: 44px; position: relative; z-index: 2; }
.pdc-en { font-size: 9px; letter-spacing: 2px; opacity: .75; }
.pdc-head h2 { font-size: 19px; font-weight: 800; }
.pdc-head p { font-size: 11px; opacity: .9; margin-top: 2px; }
.pdc-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); }
.pdc-metric { background: #fff; padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; }
.pdc-metric span { font-size: 11px; color: var(--ink-3); }
.pdc-metric b { font-size: 14px; color: var(--ink); }
.pdc-body { padding: 16px 18px 18px; }
.pdc-desc { font-size: 12px; color: var(--ink-2); line-height: 1.8; }
.pdc-sub { font-size: 14px; font-weight: 700; margin: 18px 0 10px; display: flex; align-items: center; gap: 6px; }
.pdc-list { display: flex; flex-direction: column; gap: 9px; }
.pdc-li { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--ink-2); line-height: 1.55; }
.pdc-li svg { flex: 0 0 auto; margin-top: 2px; }

.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 14px 6px; }
.support-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 8px 2px; }
.support-item span { font-size: 26px; }
.support-item b { font-size: 12px; }
.support-item small { font-size: 10px; color: var(--ink-3); line-height: 1.4; }
.map-item { display: flex; align-items: center; gap: 8px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.map-item:last-child { border-bottom: 0; }
.map-city { font-size: 13px; font-weight: 700; min-width: 40px; }
.partner-bottom { margin: 16px; background: linear-gradient(135deg,#FFF3EC,#FFE8DC); }
.partner-bottom h4 { font-size: 15px; }

.apply-form-page { background: var(--bg); }
.apply-form-hero { background: var(--primary-grad-deep); padding: calc(var(--safe-t) + 26px) 20px 44px; color: #fff; text-align: center; border-radius: 0 0 24px 24px; }
.apply-form-hero span { font-size: 44px; }
.apply-form-hero h2 { font-size: 19px; font-weight: 800; margin-top: 8px; }
.apply-form-hero p { font-size: 12px; opacity: .9; margin-top: 4px; }
.apply-level-chip { padding: 10px 12px; background: var(--primary-soft); border-radius: var(--r-sm); font-size: 12px; color: var(--ink-2); margin-bottom: 18px; }
.apply-level-chip b { color: var(--primary-deep); }
.apply-level-chip a { float: right; color: var(--primary-deep); }

/* ============================================================
 * Part 4: 总部管理后台
 * ============================================================ */
.gap10 { gap: 10px; }
.admin-page { background: var(--bg); min-height: 100%; }
.admin-hero {
  background: linear-gradient(130deg,#1B2440,#334168); color: #fff;
  padding: calc(var(--safe-t) + 24px) 18px 46px; border-radius: 0 0 24px 24px;
}
.admin-hero-tag { font-size: 11px; opacity: .8; }
.admin-hero h1 { font-size: 22px; font-weight: 800; margin-top: 6px; }
.admin-hero p { font-size: 11px; opacity: .75; margin-top: 4px; }
.admin-avatar { width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,.16); display: flex; align-items: center; justify-content: center; font-size: 28px; }
.admin-body { margin-top: -28px; position: relative; z-index: 2; padding: 0 14px 16px; }
.admin-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.admin-stat { background: #fff; border-radius: var(--r-md); padding: 12px; display: flex; align-items: center; gap: 9px; box-shadow: var(--sh-1); flex-wrap: wrap; }
.as-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.as-name { font-size: 10px; color: var(--ink-3); display: block; }
.as-value { font-size: 17px; font-weight: 800; display: block; }
.as-trend { font-size: 9px; color: var(--success); display: flex; align-items: center; gap: 2px; width: 100%; }
.admin-card { margin-top: 12px; padding: 15px; border-radius: var(--r-md); }
.admin-card-title { font-size: 15px; font-weight: 700; }
.revenue-nums { display: flex; gap: 24px; margin-top: 12px; }
.revenue-nums span { font-size: 11px; color: var(--ink-3); display: block; }
.revenue-nums b { font-size: 17px; }
.chart-wrap { display: flex; align-items: flex-end; gap: 4px; height: 110px; margin-top: 14px; }
.chart-col { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; }
.chart-bar { width: 100%; max-width: 16px; border-radius: 3px 3px 0 0; background: #C9D6F5; min-height: 4px; }
.chart-col span { font-size: 8px; color: var(--ink-3); }
.pending-list { margin-top: 10px; }
.pending-item { display: flex; align-items: center; gap: 9px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pending-item:last-child { border-bottom: 0; }
.status-row { display: flex; align-items: center; gap: 8px; padding: 7px 0; font-size: 12px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; }
.rank-row { display: flex; align-items: center; gap: 8px; padding: 7px 0; font-size: 12px; }
.rank-no { width: 18px; height: 18px; border-radius: 5px; background: var(--bg); color: var(--ink-3); font-size: 10px; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.rank-no.r0 { background: #FFE9C9; color: #C77C05; } .rank-no.r1 { background: #E8ECF2; color: #7A8699; } .rank-no.r2 { background: #FFE5D8; color: #D2693A; }
.rank-bar { width: 70px; height: 5px; background: var(--bg); border-radius: 3px; overflow: hidden; }
.rank-bar i { display: block; height: 100%; background: var(--primary-grad); border-radius: 3px; }
.mgr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 4px; }
.quick-mgr { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.quick-mgr > span { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.quick-mgr small { font-size: 11px; color: var(--ink-2); }
.audit-info { display: flex; gap: 10px; align-items: center; padding: 6px 0 14px; }

/* ============================================================
 * Part 5: 个人中心 / 订单 / 健康 / 消息 / 收藏 / 紧急
 * ============================================================ */
.user-page { background: var(--bg); }
.user-hero { background: var(--primary-grad); padding: calc(var(--safe-t) + 24px) 18px 46px; color: #fff; border-radius: 0 0 24px 24px; }
.user-avatar { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.22); display: flex; align-items: center; justify-content: center; font-size: 30px; flex: 0 0 auto; }
.user-hero h2 { font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.user-vip { font-size: 10px; padding: 2px 7px; border-radius: var(--r-pill); background: rgba(255,255,255,.24); font-weight: 500; }
.user-setting { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; }
.user-stats { display: flex; margin-top: 20px; }
.user-stats > div { flex: 1; text-align: center; position: relative; }
.user-stats > div:not(:last-child)::after { content: ''; position: absolute; right: 0; top: 4px; height: 24px; width: 1px; background: rgba(255,255,255,.25); }
.user-stats b { font-size: 19px; font-weight: 800; display: block; }
.user-stats span { font-size: 11px; opacity: .85; }
.user-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding: 16px 4px; }
.user-grid-item { display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; }
.user-grid-item > span { width: 42px; height: 42px; border-radius: 13px; display: flex; align-items: center; justify-content: center; }
.user-grid-item small { font-size: 11px; color: var(--ink-2); }
.ug-badge { position: absolute; top: -4px; right: 8px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: var(--r-pill); background: var(--danger); color: #fff; font-size: 9px; font-style: normal; line-height: 16px; text-align: center; }
.user-list-item { display: flex; align-items: center; gap: 10px; padding: 12px 0; }
.user-list-item + .user-list-item { border-top: 1px solid var(--line); }
.user-list-item b { font-size: 13px; display: block; }
.user-list-item small { font-size: 11px; color: var(--ink-3); }
.uli-icon { width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }

/* 订单 */
.orders-page { background: var(--bg); }
.order-list { padding: 12px 16px; display: flex; flex-direction: column; gap: 12px; }
.order-card { padding: 14px; }
.order-status { font-size: 12px; font-weight: 700; }
.order-status.s-completed { color: var(--success); } .order-status.s-service { color: var(--info); } .order-status.s-pending { color: var(--warning); }
.order-emoji { width: 48px; height: 48px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 26px; flex: 0 0 auto; }
.order-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }

/* 健康档案 */
.health-page { background: var(--bg); }
.health-hero { background: var(--teal-grad); padding: calc(var(--safe-t) + 24px) 18px 44px; color: #fff; border-radius: 0 0 24px 24px; }
.health-avatar { width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-size: 28px; }
.health-hero h2 { font-size: 18px; font-weight: 800; }
.health-basics { display: flex; margin-top: 18px; }
.health-basics > div { flex: 1; text-align: center; }
.health-basics b { display: block; font-size: 16px; } .health-basics span { font-size: 11px; opacity: .8; }
.health-record { display: flex; align-items: center; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.health-record:last-child { border-bottom: 0; }
.hr-date { color: var(--ink-3); flex: 0 0 76px; font-size: 11px; }
.health-advice { display: flex; gap: 10px; background: var(--gold-soft); }

/* 消息 */
.messages-page { background: var(--bg); }
.notice-banner { margin: 12px 16px 0; padding: 12px 14px; border-radius: var(--r-sm); background: var(--primary-soft); color: var(--primary-deep); font-size: 12px; display: flex; align-items: center; gap: 8px; }
.message-item { display: flex; gap: 10px; padding: 14px 0; align-items: flex-start; }
.message-item + .message-item { border-top: 1px solid var(--line); }
.msg-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }

/* 收藏 / 紧急 / 申请 / 设置 */
.favorites-page { background: var(--bg); min-height: 100%; }
.fav-item { margin-bottom: 12px; }
.fav-remove { padding: 4px; }
.emergency-page { background: var(--bg); }
.ec-hero { background: linear-gradient(135deg,#FF6B6B,#E83E3E); color: #fff; padding: calc(var(--safe-t) + 28px) 20px 36px; text-align: center; border-radius: 0 0 24px 24px; }
.ec-hero > span { font-size: 50px; }
.ec-hero h1 { font-size: 21px; font-weight: 800; margin-top: 8px; }
.ec-hero p { font-size: 12px; opacity: .9; margin-top: 4px; }
.ec-sos { margin-top: 20px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,.16); border: 3px solid rgba(255,255,255,.6); color: #fff; font-size: 17px; font-weight: 800; box-shadow: 0 0 0 12px rgba(255,255,255,.08); }
.ec-item { display: flex; align-items: center; gap: 10px; padding: 12px 0; }
.ec-item + .ec-item { border-top: 1px solid var(--line); }
.ec-emoji { font-size: 26px; }
.applications-page { background: var(--bg); }
.app-record { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.app-record:last-child { border-bottom: 0; }
.settings-page { background: var(--bg); }
.settings-page .list-item::before { left: 60px; }
.placeholder-page { background: var(--bg); min-height: 100%; }

/* ============================================================
 * Part 6: 养老资讯
 * ============================================================ */
.news-page { background: var(--bg); }
.news-banner { background: linear-gradient(120deg,#FF9A6C,#FF7043); padding: calc(var(--safe-t) + 22px) 18px 26px; color: #fff; display: flex; align-items: center; gap: 14px; }
.news-banner span { font-size: 44px; }
.news-banner h2 { font-size: 20px; font-weight: 800; }
.news-banner p { font-size: 11px; opacity: .9; margin-top: 3px; }
.news-tabs { display: flex; gap: 18px; padding: 0 16px; background: #fff; border-bottom: 1px solid var(--line); overflow-x: auto; }
.news-tabs .tab { padding: 12px 0; font-size: 13px; white-space: nowrap; }
.news-list { padding: 12px 16px; display: flex; flex-direction: column; gap: 12px; }
.news-card { overflow: hidden; }
.news-cover { height: 108px; display: flex; align-items: center; justify-content: center; position: relative; }
.news-cover > span { font-size: 50px; filter: drop-shadow(0 4px 6px rgba(0,0,0,.12)); }
.tag-tag { position: absolute; top: 10px; left: 10px; font-style: normal; font-size: 10px; background: rgba(255,255,255,.9); color: var(--ink); padding: 2px 8px; border-radius: var(--r-pill); }
.news-card-body { padding: 12px 14px 14px; }
.news-card-body h3 { font-size: 15px; font-weight: 700; line-height: 1.5; }
.news-detail-page { background: #fff; }
.nd-head { height: 170px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; padding-top: var(--nav-h); position: relative; }
.nd-emoji { font-size: 58px; }
.nd-cat { margin-top: 8px; font-size: 11px; padding: 3px 10px; border-radius: var(--r-pill); background: rgba(255,255,255,.24); }
.nd-body { padding: 20px 18px; }
.nd-body h1 { font-size: 20px; font-weight: 800; line-height: 1.5; }
.nd-meta { display: flex; gap: 12px; font-size: 11px; color: var(--ink-3); margin-top: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.nd-content { margin-top: 18px; }
.nd-content p { font-size: 14px; line-height: 1.9; color: var(--ink-2); margin-bottom: 14px; text-align: justify; }
.nd-content h3 { font-size: 15px; font-weight: 700; margin: 18px 0 10px; color: var(--ink); }
.nd-actions { display: flex; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
