/* 患者端（手机优先） */
body.patient { background: #eef3f5; font-size: 15px; }
.m-app { max-width: 560px; margin: 0 auto; min-height: 100vh; background: #f4f7f8; position: relative; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.m-loading { padding: 80px 0; text-align: center; color: var(--c-muted); }

/* 顶栏 */
.m-bar { position: sticky; top: 0; z-index: 10; height: 52px; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--c-line); }
.m-bar h1 { font-size: 17px; font-weight: 600; max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-back { position: absolute; left: 4px; top: 6px; width: 40px; height: 40px; border: 0; background: none; font-size: 30px; line-height: 1; color: var(--c-text); cursor: pointer; border-radius: 10px; }
.m-back:active { background: var(--c-gray-bg); }
.m-home { position: absolute; right: 8px; top: 9px; height: 34px; padding: 0 10px; border: 0; background: none; color: var(--c-primary); font-size: 14px; cursor: pointer; }
.m-main { padding: 14px 14px 0; display: flex; flex-direction: column; gap: 12px; }

/* 首页头图 */
.m-hero { position: relative; overflow: hidden; color: #fff; padding: 28px 20px 64px; background: linear-gradient(140deg, var(--c-primary) 0%, var(--brand-b) 55%, var(--side-3) 100%); }
.m-hero::before, .m-hero::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.m-hero::before { width: 220px; height: 220px; right: -60px; top: -80px; }
.m-hero::after { width: 140px; height: 140px; right: 60px; bottom: -70px; }
.m-hero-inner { position: relative; display: flex; gap: 14px; align-items: center; }
.m-hero-inner img { border-radius: 12px; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); background: #fff; }
.m-hero h1 { font-size: 21px; font-weight: 700; letter-spacing: .5px; }
.m-hero p { opacity: .85; font-size: 13px; margin-top: 3px; }
.m-hero + .m-main { margin-top: -44px; position: relative; }

/* 功能入口 */
.m-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.m-tile { background: #fff; border-radius: 14px; padding: 12px 4px 10px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--c-text); box-shadow: 0 2px 10px rgba(16, 40, 60, .06); text-align: center; }
.m-tile:hover { text-decoration: none; }
.m-tile:active { transform: scale(.98); }
.m-tile b { font-size: 14px; font-weight: 600; white-space: nowrap; }
.m-tile small { font-size: 11px; color: var(--c-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.m-tile .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.m-tile .ic svg { width: 22px; height: 22px; }
.ic-teal { background: #e3f4f2; color: #0d7f7a; } .ic-blue { background: #e6eefc; color: #2459c4; }
.ic-amber { background: #fdf1dd; color: #b8650a; } .ic-violet { background: #efe9fb; color: #6d3fc7; }
.m-tile.hero-tile { grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; text-align: left; padding: 18px 16px; gap: 14px; background: linear-gradient(120deg, #ffffff 0%, #f0faf8 100%); }
.m-tile.hero-tile .ic { width: 52px; height: 52px; border-radius: 16px; background: var(--c-primary); color: #fff; }
.m-tile.hero-tile .ic svg { width: 28px; height: 28px; }
.m-tile.hero-tile b { font-size: 18px; }
.m-tile.hero-tile small { font-size: 13px; }
.m-tile.hero-tile .go { margin-left: auto; color: var(--c-primary); font-size: 24px; }

/* 卡片 */
.m-card { background: #fff; border-radius: 14px; padding: 16px; box-shadow: 0 1px 6px rgba(16, 40, 60, .05); }
.m-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.m-card p { color: var(--c-text-2); font-size: 14px; }
.m-notice { display: flex; gap: 10px; align-items: flex-start; background: #fff8eb; border: 1px solid #f7e1b5; color: #7a4b07; border-radius: 12px; padding: 10px 12px; font-size: 13px; }
.m-notice svg, .m-card h3 svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.m-section-title { font-size: 13px; color: var(--c-muted); padding: 4px 4px 0; }
.kv { display: grid; grid-template-columns: 84px 1fr; gap: 8px 10px; font-size: 14px; }
.kv dt { color: var(--c-muted); }
.kv dd { margin: 0; color: var(--c-text); word-break: break-all; }

/* 科室列表 */
.m-search { position: relative; }
.m-search input { height: 42px; border-radius: 21px; padding-left: 40px; background: #fff; border-color: transparent; box-shadow: 0 1px 6px rgba(16, 40, 60, .05); }
.m-search svg { position: absolute; left: 14px; top: 12px; width: 18px; height: 18px; color: var(--c-muted); }
.m-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.m-tabs::-webkit-scrollbar { display: none; }
.m-tabs button { flex: none; border: 1px solid var(--c-border); background: #fff; border-radius: 18px; height: 34px; padding: 0 14px; cursor: pointer; }
.m-tabs button.on { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.dept-group h4 { font-size: 13px; color: var(--c-muted); font-weight: 500; margin: 6px 4px 8px; }
.dept-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dept-item { background: #fff; border-radius: 12px; padding: 14px; color: var(--c-text); display: flex; flex-direction: column; gap: 4px; box-shadow: 0 1px 6px rgba(16, 40, 60, .05); border: 1px solid transparent; }
.dept-item:hover { text-decoration: none; border-color: var(--c-primary-100); }
.dept-item b { font-size: 16px; }
.dept-item span { font-size: 12px; color: var(--c-muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 日期条 */
.date-strip { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; }
.date-strip::-webkit-scrollbar { display: none; }
.date-chip { flex: none; width: 58px; padding: 8px 0; border-radius: 12px; border: 1px solid var(--c-border); background: #fff; text-align: center; cursor: pointer; display: flex; flex-direction: column; gap: 1px; }
.date-chip .w { font-size: 12px; color: var(--c-muted); }
.date-chip .d { font-size: 15px; font-weight: 600; }
.date-chip .s { font-size: 11px; color: var(--c-ok); }
.date-chip .s.none { color: var(--c-muted); }
.date-chip.on { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.date-chip.on .w, .date-chip.on .s { color: rgba(255, 255, 255, .85); }

/* 医生卡 */
.doc-card { background: #fff; border-radius: 14px; padding: 14px; box-shadow: 0 1px 6px rgba(16, 40, 60, .05); }
.doc-head { display: flex; gap: 12px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 18px; font-weight: 600; color: #fff; background: linear-gradient(140deg, #19a39b, #0d6f86); }
.doc-head .info { flex: 1; min-width: 0; }
.doc-head .name { display: flex; align-items: baseline; gap: 8px; }
.doc-head .name b { font-size: 16px; }
.doc-head .name span { font-size: 12px; color: var(--c-primary); background: var(--c-primary-50); padding: 1px 6px; border-radius: 4px; }
.doc-head .spec { font-size: 13px; color: var(--c-text-2); margin-top: 3px; }
.doc-head .fee { font-size: 13px; color: #c2410c; font-weight: 600; white-space: nowrap; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 12px; }
.slot { border: 1px solid var(--c-primary-100); background: var(--c-primary-50); border-radius: 10px; padding: 8px 6px; text-align: center; cursor: pointer; color: var(--c-primary-600); display: flex; flex-direction: column; gap: 1px; }
.slot b { font-size: 14px; }
.slot small { font-size: 12px; }
.slot:active { transform: scale(.97); }
.slot.off { background: #f3f4f6; border-color: #e5e7eb; color: #9aa3ae; cursor: not-allowed; }
.slot-date { font-size: 12px; color: var(--c-muted); margin: 10px 0 -4px; }

/* 表单 */
.m-form { display: flex; flex-direction: column; gap: 14px; }
.m-form .input { height: 44px; font-size: 15px; border-radius: 10px; }
.m-form textarea.input { height: auto; min-height: 84px; padding: 10px 12px; }
.m-form .seg { border-radius: 10px; }
.m-form .seg label span { height: 42px; padding: 0 20px; }
.m-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.agree { font-size: 13px; color: var(--c-text-2); align-items: flex-start; }
.agree input { margin-top: 2px; }
.m-submit { position: sticky; bottom: 0; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(244, 247, 248, 0), #f4f7f8 30%); margin: 0 -14px; }

/* 摘要卡 */
.sum-card { background: linear-gradient(135deg, #0d7f7a, #13667e); color: #fff; border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.sum-card .t { font-size: 18px; font-weight: 600; }
.sum-card .sub { opacity: .88; font-size: 14px; }
.sum-card .row { gap: 14px; font-size: 14px; flex-wrap: wrap; }

/* 成功页 */
.done-hero { text-align: center; padding: 26px 16px 8px; }
.done-hero .ok { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 12px; background: var(--c-ok-bg); color: var(--c-ok); display: grid; place-items: center; }
.done-hero .ok svg { width: 34px; height: 34px; }
.done-hero h2 { font-size: 20px; }
.code-box { margin: 14px auto 4px; display: inline-flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 22px; border-radius: 12px; background: #f1f7f6; border: 1px dashed #9fd3cd; }
.code-box small { color: var(--c-muted); font-size: 12px; }
.code-box b { font-size: 26px; letter-spacing: 4px; color: var(--c-primary-600); font-family: ui-monospace, "SF Mono", Consolas, monospace; }
.big-num { font-size: 40px; font-weight: 700; color: var(--c-primary); line-height: 1.1; }

/* 预约记录卡 */
.appt-card { background: #fff; border-radius: 14px; padding: 14px; box-shadow: 0 1px 6px rgba(16, 40, 60, .05); display: flex; flex-direction: column; gap: 8px; }
.appt-card .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.appt-card .top b { font-size: 16px; }
.appt-card .meta { font-size: 13px; color: var(--c-text-2); display: grid; gap: 3px; }
.appt-card .actions { display: flex; gap: 8px; justify-content: flex-end; border-top: 1px solid var(--c-line); padding-top: 10px; }

/* 候诊进度 */
.queue-box { text-align: center; padding: 20px 10px; }
.queue-box .label { color: var(--c-muted); font-size: 13px; }
.queue-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.queue-stats div { background: #f5f8f9; border-radius: 10px; padding: 10px 4px; }
.queue-stats b { display: block; font-size: 20px; }
.queue-stats span { font-size: 12px; color: var(--c-muted); }

.m-foot { text-align: center; color: #a1aab5; font-size: 12px; padding: 18px 0 6px; }
.privacy p { margin-bottom: 8px; font-size: 14px; color: var(--c-text-2); }
/* v1.5 患者端：底部导航、科室导航、首页信息胶囊 */
.m-app { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
.m-tabbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 560px; z-index: 20; display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, .96); backdrop-filter: saturate(160%) blur(12px); border-top: 1px solid var(--c-line); padding: 6px 0 calc(6px + env(safe-area-inset-bottom)); }
.m-tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: #8a94a3; text-decoration: none; }
.m-tabbar a svg { width: 22px; height: 22px; }
.m-tabbar a.on { color: var(--c-primary); font-weight: 600; }
.m-hero-pills { position: relative; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.m-hero-pills span, .m-hero-pills a { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 5px 10px; border-radius: 14px; background: rgba(255, 255, 255, .16); color: #fff; text-decoration: none; }
.m-hero-pills svg { width: 14px; height: 14px; }
.m-tile.hero-tile { background: linear-gradient(120deg, #ffffff 0%, color-mix(in srgb, var(--c-primary-50) 80%, #fff) 100%); }
.m-section-head { display: flex; justify-content: space-between; align-items: center; margin-top: 2px; }
.m-section-head a { font-size: 13px; color: var(--c-primary); }
.m-depts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.m-depts a { background: #fff; border-radius: 14px; padding: 12px 4px 10px; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--c-text); text-decoration: none; box-shadow: 0 2px 10px rgba(16, 40, 60, .05); min-width: 0; }
.m-depts a:active { transform: scale(.98); }
.m-depts .d-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--dc), color-mix(in srgb, var(--dc) 70%, #000)); box-shadow: 0 4px 10px color-mix(in srgb, var(--dc) 30%, transparent); }
.m-depts b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.m-depts small { font-size: 11px; color: var(--c-muted); }

@supports not (color: color-mix(in srgb, red 50%, blue)) {
  .m-tile.hero-tile { background: linear-gradient(120deg, #fff 0%, var(--c-primary-50) 100%); }
  .m-depts .d-ic { background: var(--dc); box-shadow: 0 4px 10px rgba(0, 0, 0, .15); }
}

/* ---------- 患者端装修 ---------- */
body.hero-solid .m-hero { background: var(--c-primary); }
body.hero-gradient .m-hero { background: linear-gradient(135deg, var(--c-primary) 0%, var(--m-accent, var(--brand-b)) 100%); }
body.hero-plain .m-hero { background: #fff; color: var(--c-text); border-bottom: 1px solid var(--c-border); }
body.hero-plain .m-hero::before, body.hero-plain .m-hero::after { display: none; }
body.hero-plain .m-hero-pills span, body.hero-plain .m-hero-pills a { background: var(--c-primary-50); color: var(--c-primary-600); }
body.st-square .m-card, body.st-square .x-big, body.st-square .x-small, body.st-square .x-doc, body.st-square .m-banner, body.st-square .x-spec-grid, body.st-square .x-icons, body.st-square .x-menu { border-radius: 6px; }
.x-home { display: flex; flex-direction: column; gap: 14px; }
.m-banner { position: relative; border-radius: 16px; overflow: hidden; box-shadow: 0 6px 20px rgba(15, 23, 42, .08); background: #fff; }
.mb-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.mb-track::-webkit-scrollbar { display: none; }
.mb-item { flex: 0 0 100%; scroll-snap-align: start; display: block; aspect-ratio: 2.2 / 1; }
.mb-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mb-dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 6px; }
.mb-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .6); transition: width .2s; }
.mb-dots i.on { width: 16px; background: #fff; }
.x-entries { display: grid; grid-template-columns: 1.1fr 1fr; gap: 10px; }
.x-entries.solo { grid-template-columns: 1fr; }
.x-big { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 18px 16px; border-radius: 16px; background: linear-gradient(160deg, #fff, var(--c-primary-50)); color: var(--c-text); text-decoration: none; min-height: 138px; box-shadow: 0 6px 20px rgba(15, 23, 42, .06); }
.x-big b { font-size: 21px; color: var(--c-primary-600); }
.x-big small { color: var(--c-muted); font-size: 13px; }
.x-plus { position: absolute; left: 16px; bottom: 14px; width: 42px; height: 42px; border-radius: 50%; background: var(--c-primary); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 14px var(--c-primary-100); }
.x-plus svg { width: 22px; height: 22px; }
.x-side { display: flex; flex-direction: column; gap: 10px; }
.x-small { flex: 1; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 14px; background: #fff; color: var(--c-text); text-decoration: none; box-shadow: 0 6px 20px rgba(15, 23, 42, .06); }
.x-small b { display: block; font-size: 16px; }
.x-small small { font-size: 12px; color: var(--c-muted); }
.x-small .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--c-primary); color: #fff; display: grid; place-items: center; flex: 0 0 40px; }
.x-small .ic svg { width: 22px; height: 22px; }
.x-icons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 4px; background: #fff; border-radius: 16px; padding: 14px 6px; box-shadow: 0 6px 20px rgba(15, 23, 42, .06); }
.x-icons a { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--c-text); text-decoration: none; font-size: 12px; }
.x-icons .ic { width: 42px; height: 42px; border-radius: 14px; background: var(--c-primary-50); color: var(--c-primary-600); display: grid; place-items: center; }
.x-icons .ic svg { width: 22px; height: 22px; }
.x-icons b { font-weight: 500; }
.x-spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 4px; background: #fff; border-radius: 16px; padding: 18px 6px; box-shadow: 0 6px 20px rgba(15, 23, 42, .06); }
.x-spec-grid a { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--c-text); text-decoration: none; }
.x-spec-grid .ic { width: 46px; height: 46px; color: var(--c-primary); display: grid; place-items: center; }
.x-spec-grid .ic svg { width: 40px; height: 40px; }
.x-spec-grid b { font-size: 13px; font-weight: 500; text-align: center; }
.x-docs { display: flex; flex-direction: column; gap: 12px; }
.x-doc { display: grid; grid-template-columns: 72px 1fr auto; gap: 4px 12px; align-items: start; background: #fff; border-radius: 16px; padding: 14px; box-shadow: 0 6px 20px rgba(15, 23, 42, .06); }
.doc-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--c-primary-50); grid-row: span 2; }
.doc-photo.ph { display: grid; place-items: center; font-size: 26px; font-weight: 700; color: var(--c-primary-600); }
.x-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.x-name b { font-size: 18px; }
.x-name small { width: 100%; color: var(--c-muted); font-size: 12px; }
.x-tag { font-size: 11px; padding: 2px 8px; border-radius: 6px; background: var(--c-primary-50); color: var(--c-primary-600); }
.x-spec { font-size: 13px; color: var(--c-text-2); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 4px; }
.x-promo { font-size: 13px; color: var(--m-accent, var(--c-primary)); margin-top: 4px; }
.x-btn { align-self: start; padding: 8px 18px; border-radius: 999px; background: var(--c-primary); color: #fff; text-decoration: none; font-size: 14px; white-space: nowrap; }
.x-more { grid-column: 1 / -1; margin-top: 6px; background: var(--c-primary-50); border-radius: 10px; padding: 8px 12px; font-size: 13px; }
.x-more summary { color: var(--c-primary-600); cursor: pointer; }
.x-more p { margin-top: 6px; color: var(--c-text-2); line-height: 1.6; white-space: pre-line; }
.x-clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.x-tabs { margin-bottom: 10px; }
.x-me-head { display: flex; gap: 14px; align-items: center; padding: 28px 20px 26px; color: #fff; background: linear-gradient(135deg, var(--c-primary), var(--m-accent, var(--brand-b))); }
.x-me-head img { width: 58px; height: 58px; border-radius: 50%; background: #fff; padding: 6px; }
.x-me-head b { display: block; font-size: 20px; }
.x-me-head small { display: block; font-size: 13px; opacity: .9; margin-top: 2px; }
.x-me-head a { color: #fff; }
.x-menu { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 6px 20px rgba(15, 23, 42, .06); }
.x-menu a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; color: var(--c-text); text-decoration: none; border-bottom: 1px solid #eef1f4; font-size: 16px; }
.x-menu a:last-child { border-bottom: 0; }
.x-menu b { flex: 1; font-weight: 500; }
.x-menu .go { color: #c0c7d0; font-size: 20px; }
.x-menu .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff; }
.x-menu .ic svg { width: 20px; height: 20px; }
.x-menu .c1 { background: #22c55e; } .x-menu .c2 { background: #eab308; } .x-menu .c3 { background: #6366f1; } .x-menu .c4 { background: var(--c-primary); }
.x-menu .c5 { background: #f97316; } .x-menu .c6 { background: #10b981; } .x-menu .c7 { background: #ef4444; } .x-menu .c8 { background: #0ea5e9; }
.x-menu .c9 { background: #3b82f6; } .x-menu .c10 { background: #8b5cf6; }
.x-rec .top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.x-rec .top small { color: var(--c-muted); }
.x-rec-row { display: grid; grid-template-columns: 72px 1fr; gap: 8px; padding: 6px 0; border-top: 1px dashed #eef1f4; font-size: 14px; }
.x-rec-row span { color: var(--c-muted); }
.x-rec-row p { margin: 0; }
.x-rec-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.x-rec-files svg { width: 14px; height: 14px; vertical-align: -2px; }
.x-home .m-section-title { font-size: 17px; font-weight: 700; color: var(--c-text); border-left: 4px solid var(--c-primary); padding-left: 8px; line-height: 1.2; }

/* ---------- 搭建器模块 ---------- */
.x-home .blk:empty { display: none; }
.x-home .blk { display: flex; flex-direction: column; gap: 10px; }
.m-banner.full { border-radius: 0; margin: 0 -16px; box-shadow: none; }
.x-search { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px; padding: 4px 14px; box-shadow: 0 6px 20px rgba(15, 23, 42, .06); }
.x-search.square { border-radius: 8px; }
.x-search span { color: var(--c-muted); display: grid; } .x-search svg { width: 18px; height: 18px; }
.x-search .input { border: 0; box-shadow: none; background: transparent; height: 38px; padding: 0; }
.x-ad { display: grid; gap: 10px; }
.x-ad .ad-it { display: block; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 6px 20px rgba(15, 23, 42, .06); }
.x-ad img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad-one { grid-template-columns: 1fr; } .ad-one .ad-it { aspect-ratio: 2.6 / 1; }
.ad-two { grid-template-columns: 1fr 1fr; } .ad-two .ad-it { aspect-ratio: 1.6 / 1; }
.ad-three { grid-template-columns: repeat(3, 1fr); } .ad-three .ad-it { aspect-ratio: 1 / 1; }
.ad-onetwo { grid-template-columns: 1.15fr 1fr; grid-template-rows: 1fr 1fr; height: 210px; }
.ad-onetwo .ad-it:first-child { grid-row: span 2; }
.x-gal { display: flex; gap: 10px; }
.gal-scroll { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; } .gal-scroll::-webkit-scrollbar { display: none; }
.gal-scroll figure { flex: 0 0 62%; scroll-snap-align: start; }
.gal-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); }
.x-gal figure { margin: 0; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 6px 20px rgba(15, 23, 42, .06); }
.x-gal img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.x-gal figcaption { font-size: 12px; padding: 6px 8px; color: var(--c-text-2); }
.x-it { display: flex; flex-direction: column; gap: 10px; }
.x-it .it-row { display: flex; gap: 12px; background: #fff; border-radius: 14px; padding: 10px; box-shadow: 0 6px 20px rgba(15, 23, 42, .06); color: var(--c-text); text-decoration: none; }
.x-it .it-row img { width: 96px; height: 72px; border-radius: 10px; object-fit: cover; flex: 0 0 96px; }
.x-it b { display: block; font-size: 15px; } .x-it p { margin: 4px 0 0; font-size: 13px; color: var(--c-muted); line-height: 1.5; }
.it-top { display: grid; grid-template-columns: 1fr 1fr; }
.it-top .it-row { flex-direction: column; } .it-top .it-row img { width: 100%; height: auto; aspect-ratio: 4 / 3; flex: none; }
.x-ent { display: grid; gap: 10px; }
.x-ent a { color: var(--c-text); text-decoration: none; }
.ent-grid4 { grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: 16px; padding: 14px 6px; box-shadow: 0 6px 20px rgba(15, 23, 42, .06); gap: 12px 4px; }
.ent-grid4 a { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; }
.ent-grid4 .ic { width: 46px; height: 46px; border-radius: 50%; background: var(--c-primary); color: #fff; display: grid; place-items: center; }
.ent-grid4 .ic svg { width: 22px; height: 22px; } .ent-grid4 b { font-weight: 500; }
.ent-grid3 { grid-template-columns: repeat(3, 1fr); }
.ent-grid3 a { display: flex; flex-direction: column; gap: 8px; padding: 14px 10px; border-radius: 14px; background: #fff; box-shadow: 0 6px 20px rgba(15, 23, 42, .06); }
.ent-grid3 .ic { width: 38px; height: 38px; border-radius: 12px; background: var(--c-primary-50); color: var(--c-primary-600); display: grid; place-items: center; }
.ent-grid3 .ic svg { width: 20px; height: 20px; } .ent-grid3 b { display: block; font-size: 15px; } .ent-grid3 small { font-size: 11px; color: var(--c-muted); }
.ent-list { grid-template-columns: 1fr; }
.ent-list a { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px; background: #fff; box-shadow: 0 6px 20px rgba(15, 23, 42, .06); }
.ent-list .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--c-primary); color: #fff; display: grid; place-items: center; flex: 0 0 48px; }
.ent-list .ic svg { width: 24px; height: 24px; } .ent-list .tx { flex: 1; } .ent-list b { display: block; font-size: 18px; } .ent-list small { color: var(--c-muted); }
.ent-list .go, .sp-list .go { color: #c0c7d0; font-size: 22px; }
.x-nav { display: grid; gap: 14px 4px; background: #fff; border-radius: 16px; padding: 16px 6px; box-shadow: 0 6px 20px rgba(15, 23, 42, .06); }
.nav-4 { grid-template-columns: repeat(4, 1fr); } .nav-5 { grid-template-columns: repeat(5, 1fr); }
.x-nav .nv { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--c-text); text-decoration: none; font-size: 12px; }
.x-nav .ic { width: 44px; height: 44px; border-radius: 14px; background: var(--c-primary-50); color: var(--c-primary-600); display: grid; place-items: center; }
.x-nav .ic svg { width: 24px; height: 24px; } .x-nav b { font-weight: 500; text-align: center; }
.nav-3card { grid-template-columns: repeat(3, 1fr); background: transparent; box-shadow: none; padding: 0; gap: 10px; }
.nav-3card .nv { background: #fff; border-radius: 14px; padding: 16px 6px; box-shadow: 0 6px 20px rgba(15, 23, 42, .06); font-size: 13px; }
.nav-3card .ic { background: var(--c-primary); color: #fff; }
.x-title { display: flex; justify-content: space-between; align-items: flex-end; }
.x-title b { display: block; font-size: 18px; border-left: 4px solid var(--c-primary); padding-left: 8px; }
.x-title small { display: block; color: var(--c-muted); font-size: 12px; margin: 4px 0 0 12px; }
.x-title .more { font-size: 13px; color: var(--c-primary-600); text-decoration: none; }
.tt-center { justify-content: center; text-align: center; } .tt-center b { border: 0; padding: 0; } .tt-center small { margin-left: 0; } .tt-center .more { display: none; }
.x-hotline { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: linear-gradient(90deg, var(--c-primary), var(--m-accent, var(--c-primary))); color: #fff; text-decoration: none; }
.x-hotline .ic { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .2); display: grid; place-items: center; }
.x-hotline .ic svg { width: 20px; height: 20px; } .x-hotline b { display: block; font-size: 16px; } .x-hotline small { opacity: .85; } .x-hotline .go { margin-left: auto; font-size: 22px; }
.sp-card3 { grid-template-columns: repeat(3, 1fr); background: transparent; box-shadow: none; padding: 0; gap: 10px; }
.sp-card3 a { background: #fff; border-radius: 14px; padding: 14px 6px; box-shadow: 0 6px 20px rgba(15, 23, 42, .06); }
.sp-list { grid-template-columns: 1fr; padding: 4px 0; gap: 0; }
.sp-list a { flex-direction: row; gap: 12px; padding: 10px 16px; border-bottom: 1px solid #eef1f4; }
.sp-list a:last-child { border-bottom: 0; } .sp-list .ic { width: 36px; height: 36px; } .sp-list .ic svg { width: 28px; height: 28px; } .sp-list b { flex: 1; text-align: left; font-size: 15px; }
.x-dscroll { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; } .x-dscroll::-webkit-scrollbar { display: none; }
.x-dscroll .x-dmini { flex: 0 0 132px; }
.x-dgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.x-dmini { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px; border-radius: 14px; background: #fff; box-shadow: 0 6px 20px rgba(15, 23, 42, .06); color: var(--c-text); text-decoration: none; text-align: center; }
.x-dmini .doc-photo { width: 64px; height: 64px; } .x-dmini b { font-size: 15px; } .x-dmini small { font-size: 12px; color: var(--c-muted); }
.x-dmini .x-btn { margin-top: 6px; padding: 5px 16px; font-size: 13px; }
.x-steps { display: flex; flex-direction: column; gap: 0; background: #fff; border-radius: 16px; padding: 12px 16px; box-shadow: 0 6px 20px rgba(15, 23, 42, .06); }
.x-steps .sp { display: flex; gap: 12px; padding: 8px 0; position: relative; }
.x-steps .no { width: 26px; height: 26px; border-radius: 50%; background: var(--c-primary); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: 0 0 26px; }
.x-steps b { display: block; font-size: 15px; } .x-steps small { color: var(--c-muted); font-size: 12px; }
.st-line .sp:not(:last-child)::after { content: ""; position: absolute; left: 12px; top: 36px; bottom: -6px; width: 2px; background: var(--c-primary-100); }
.st-cards { flex-direction: row; overflow-x: auto; gap: 10px; background: transparent; box-shadow: none; padding: 0; }
.st-cards .sp { flex: 0 0 140px; flex-direction: column; background: #fff; border-radius: 14px; padding: 12px; box-shadow: 0 6px 20px rgba(15, 23, 42, .06); }
.x-bar { display: flex; align-items: center; gap: 8px; background: #fff7ed; color: #9a3412; border-radius: 10px; padding: 8px 12px; overflow: hidden; }
.x-bar .ic { display: grid; } .x-bar svg { width: 16px; height: 16px; }
.x-bar .mq { overflow: hidden; white-space: nowrap; flex: 1; }
.x-bar .mq span { display: inline-block; padding-left: 100%; animation: oc-marquee 18s linear infinite; font-size: 13px; }
@keyframes oc-marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .x-bar .mq span { animation: none; padding-left: 0; } }
.x-plain h3 { font-size: 17px; margin-bottom: 6px; } .x-plain p { color: var(--c-text-2); line-height: 1.7; }
.x-faq { background: #fff; border-radius: 16px; box-shadow: 0 6px 20px rgba(15, 23, 42, .06); overflow: hidden; }
.x-faq details { border-bottom: 1px solid #eef1f4; padding: 12px 16px; } .x-faq details:last-child { border-bottom: 0; }
.x-faq summary { font-weight: 600; cursor: pointer; } .x-faq p { margin: 8px 0 0; color: var(--c-text-2); line-height: 1.6; font-size: 14px; }
.x-stats { display: grid; grid-template-columns: repeat(var(--n), 1fr); background: #fff; border-radius: 16px; padding: 16px 6px; box-shadow: 0 6px 20px rgba(15, 23, 42, .06); text-align: center; }
.x-stats b { display: block; font-size: 22px; color: var(--c-primary); } .x-stats small { color: var(--c-muted); font-size: 12px; }
.x-promo-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 16px; border-radius: 16px; background: linear-gradient(120deg, var(--c-primary-50), #fff); box-shadow: 0 6px 20px rgba(15, 23, 42, .06); background-size: cover; background-position: center; }
.x-promo-card b { display: block; font-size: 18px; color: var(--c-primary-600); } .x-promo-card small { display: block; color: var(--c-text-2); margin-top: 4px; font-size: 13px; }
.x-promo-card.has-img { min-height: 120px; } .x-promo-card.has-img b, .x-promo-card.has-img small { color: #fff; }
.x-video { display: grid; gap: 10px; } .vd-grid2 { grid-template-columns: 1fr 1fr; }
.x-video .vd { display: block; color: var(--c-text); text-decoration: none; }
.x-video .cv { position: relative; display: block; border-radius: 12px; overflow: hidden; background: #0f172a; aspect-ratio: 16 / 9; }
.x-video .cv img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.x-video .cv i { position: absolute; inset: 0; margin: auto; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .85); color: var(--c-primary); display: grid; place-items: center; font-style: normal; }
.x-video b { display: block; font-size: 14px; margin-top: 6px; }
.x-space.sp-s { height: 4px; } .x-space.sp-m { height: 16px; } .x-space.sp-l { height: 32px; }
.x-hr { border: 0; border-top: 1px solid #e5e7eb; margin: 4px 0; }
.x-button .btn { border-radius: 999px; }
/* 关怀版：字大、按钮大 */
body.font-large { font-size: 18px; }
body.font-large .m-hero h1 { font-size: 26px; } body.font-large .m-hero p { font-size: 17px; }
body.font-large .ent-list b, body.font-large .x-menu b { font-size: 21px; } body.font-large .ent-list small { font-size: 15px; }
body.font-large .m-card, body.font-large .kv { font-size: 18px; } body.font-large .m-tabbar span { font-size: 14px; }
body.font-large .btn { font-size: 18px; }
/* 后台装修预览：选中的模块 */
.x-home .blk.blk-pick { outline: 2px dashed var(--c-primary); outline-offset: 4px; border-radius: 12px; }
/* 文章列表 / 详情 */
.x-art { display: flex; flex-direction: column; gap: 10px; }
.x-art .ar { display: flex; gap: 12px; background: #fff; border-radius: 14px; padding: 12px; box-shadow: 0 6px 20px rgba(15, 23, 42, .06); color: inherit; text-decoration: none; }
.x-art .ar img { width: 96px; height: 72px; object-fit: cover; border-radius: 10px; flex: none; background: #f1f5f9; }
.x-art .ar > div { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.x-art b { font-size: 15px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.x-art p { margin: 0; font-size: 13px; color: var(--c-text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.x-art small { color: var(--c-muted); font-size: 12px; }
.x-art .top { font-style: normal; font-size: 11px; color: #fff; background: #ef4444; border-radius: 4px; padding: 0 4px; margin-right: 6px; vertical-align: 2px; }
.x-art.art-card .ar { flex-direction: column; padding: 0; overflow: hidden; }
.x-art.art-card .ar img { width: 100%; height: 150px; border-radius: 0; }
.x-art.art-card .ar > div { padding: 0 12px 12px; }
.x-art.art-title { background: #fff; border-radius: 14px; gap: 0; box-shadow: 0 6px 20px rgba(15, 23, 42, .06); }
.x-art.art-title .ar { box-shadow: none; border-radius: 0; border-bottom: 1px solid #eef1f4; padding: 11px 14px; }
.x-art.art-title .ar:last-child { border-bottom: 0; }
.x-art.art-title b { -webkit-line-clamp: 1; font-weight: 500; }
.x-cats { margin-bottom: 4px; }
.x-cats:empty { display: none; }
.x-article h1 { font-size: 20px; line-height: 1.45; margin: 0 0 6px; }
.x-article .cv { width: 100%; border-radius: 12px; margin: 12px 0 4px; }
.x-article .bd { font-size: 16px; line-height: 1.8; color: var(--c-text); }
.x-article .bd p { margin: 10px 0; }
.x-article .bd h3 { font-size: 17px; margin: 18px 0 6px; padding-left: 8px; border-left: 4px solid var(--c-primary); }
.x-article .bd img { width: 100%; border-radius: 10px; margin: 8px 0; display: block; }
/* 按症状找科室 */
.x-sym { display: flex; flex-wrap: wrap; gap: 8px; }
.x-sym a { padding: 7px 14px; border-radius: 999px; background: #fff; color: var(--c-text); text-decoration: none; font-size: 14px; box-shadow: 0 2px 8px rgba(15, 23, 42, .06); border: 1px solid var(--c-primary-100); }
.x-sym.sym-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.x-sym.sym-grid a { border-radius: 10px; text-align: center; padding: 10px 4px; }
/* 评价、反馈 */
.x-rate-link { display: flex; align-items: center; gap: 6px; justify-content: center; margin-top: 10px; padding: 9px; border-radius: 10px; background: #fff7ed; color: #c2410c; font-size: 14px; text-decoration: none; }
.x-rate-link svg { width: 18px; height: 18px; }
.x-rate .top, .x-fb .top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.x-stars { display: flex; justify-content: center; gap: 6px; margin: 16px 0 4px; }
.x-stars button { border: 0; background: none; font-size: 38px; line-height: 1; color: #e2e8f0; cursor: pointer; padding: 0 2px; }
.x-stars button.on { color: #f59e0b; }
.x-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 8px 0 14px; }
.x-tags button { border: 1px solid var(--c-line, #e2e8f0); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; }
.x-tags button.on { border-color: var(--c-primary); background: var(--c-primary-50); color: var(--c-primary); }
.x-fb p { margin: 6px 0; }
.x-reply { margin-top: 8px; padding: 10px; border-radius: 10px; background: var(--c-primary-50); font-size: 14px; }
.x-reply p { margin: 4px 0 0; }
/* ---------- 营销转化 ---------- */
/* 底部悬浮按钮栏（在导航栏上面） */
body.has-fbar .m-app { padding-bottom: calc(132px + env(safe-area-inset-bottom)); }
.x-fbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(58px + env(safe-area-inset-bottom)); width: calc(100% - 20px); max-width: 540px; z-index: 21;
  display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 8px; padding: 6px; border-radius: 16px; background: rgba(255, 255, 255, .96); box-shadow: 0 8px 28px rgba(15, 23, 42, .16); }
.x-fbar a { display: flex; align-items: center; justify-content: center; gap: 6px; height: 42px; border-radius: 12px; background: var(--c-primary-50); color: var(--c-primary); text-decoration: none; font-size: 14px; }
.x-fbar a.hl { background: linear-gradient(135deg, #f97316, #ef4444); color: #fff; box-shadow: 0 4px 12px rgba(239, 68, 68, .3); }
.x-fbar .ic svg { width: 20px; height: 20px; display: block; }
/* 右侧悬浮咨询按钮 */
.x-fbtn { position: fixed; right: max(12px, calc(50% - 268px)); bottom: calc(150px + env(safe-area-inset-bottom)); z-index: 22; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: linear-gradient(135deg, var(--c-primary), var(--c-primary-600)); color: #fff; text-decoration: none; font-size: 13px; font-weight: 600;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .25); animation: x-pulse 2s infinite; }
@keyframes x-pulse { 0% { box-shadow: 0 0 0 0 rgba(13, 148, 136, .45); } 70% { box-shadow: 0 0 0 14px rgba(13, 148, 136, 0); } 100% { box-shadow: 0 0 0 0 rgba(13, 148, 136, 0); } }
/* 弹窗、底部弹层 */
.x-pop { position: fixed; inset: 0; z-index: 60; background: rgba(15, 23, 42, .55); display: grid; place-items: center; padding: 24px; animation: x-fade .2s; }
@keyframes x-fade { from { opacity: 0; } }
.x-pop-in { position: relative; width: min(340px, 100%); }
.x-pop-in img { width: 100%; border-radius: 16px; display: block; }
.x-pop-x { position: absolute; right: -6px; top: -42px; width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; background: none; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.x-sheet { place-items: end center; padding: 0; }
.x-sheet-in { position: relative; width: 100%; max-width: 560px; background: #f4f7f8; border-radius: 20px 20px 0 0; padding: 18px 14px calc(18px + env(safe-area-inset-bottom)); max-height: 88vh; overflow: auto; animation: x-up .25s; }
@keyframes x-up { from { transform: translateY(40px); opacity: .5; } }
.x-sheet .x-pop-x { right: 12px; top: 10px; border: 0; color: #64748b; background: #e2e8f0; width: 30px; height: 30px; font-size: 18px; }
/* 留电话表单 */
.x-form { display: flex; flex-direction: column; gap: 10px; }
.x-form h3 { margin: 0; font-size: 17px; }
.x-form p { margin: 0; }
.x-form.plain { padding: 4px 2px; }
.x-proj { display: flex; flex-wrap: wrap; gap: 8px; }
.x-proj label { cursor: pointer; }
.x-proj input { position: absolute; opacity: 0; }
.x-proj span { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid #e2e8f0; background: #fff; font-size: 13px; }
.x-proj input:checked + span { border-color: var(--c-primary); background: var(--c-primary-50); color: var(--c-primary); font-weight: 600; }
.x-agree { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--c-muted); }
.x-form-ok { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 0; text-align: center; }
.x-form-ok svg { width: 40px; height: 40px; color: #16a34a; }
/* 活动倒计时 */
.x-cd { display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 6px; background: #fff1f2; color: #e11d48; font-size: 12px; font-weight: 600; }
.x-promo-card.has-img .x-cd { background: rgba(255, 255, 255, .9); }
.x-cd-bar { margin: 8px 0; padding: 6px 10px; border-radius: 8px; background: #fff1f2; color: #e11d48; font-size: 13px; font-weight: 600; }
.x-cd-bar.off { background: #f1f5f9; color: #64748b; }
/* 项目价目 */
.x-price { background: #fff; border-radius: 14px; box-shadow: 0 6px 20px rgba(15, 23, 42, .06); overflow: hidden; }
.x-price .pr { display: flex; justify-content: space-between; gap: 10px; padding: 12px 14px; border-bottom: 1px solid #eef1f4; color: inherit; text-decoration: none; }
.x-price .pr:last-child { border-bottom: 0; }
.x-price .pr span { color: #e11d48; font-weight: 600; white-space: nowrap; }
.x-price.pr-card { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #eef1f4; }
.x-price.pr-card .pr { flex-direction: column; background: #fff; border: 0; }
/* 优惠券（电商样式） */
.x-tks { display: flex; flex-direction: column; gap: 10px; }
.x-tks.tks-grid2 { display: grid; grid-template-columns: 1fr 1fr; }
.x-tks.tks-scroll { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
.x-tks.tks-scroll::-webkit-scrollbar { display: none; }
.x-tks.tks-scroll .x-tk { flex: 0 0 78%; }
.x-tk { display: flex; align-items: center; position: relative; min-height: 84px; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 6px 18px rgba(239, 68, 68, .1); }
.x-tk .tk-l { flex: 0 0 96px; align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(135deg, #fb7185, #ef4444); position: relative; }
.x-tk .tk-l::after { content: ""; position: absolute; right: -1px; top: 0; bottom: 0; border-right: 2px dashed rgba(255, 255, 255, .7); }
.x-tk .tk-l b { font-size: 24px; line-height: 1.1; }
.x-tk .tk-l small { font-size: 11px; opacity: .9; }
.x-tk .tk-m { flex: 1; min-width: 0; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; }
.x-tk .tk-m b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x-tk .tk-m small { font-size: 12px; color: var(--c-muted); }
.x-tk .tk-m .hot { color: #e11d48; }
.x-tk .tk-btn { margin-right: 12px; border: 0; border-radius: 999px; padding: 7px 14px; background: linear-gradient(135deg, #f97316, #ef4444); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.x-tk .tk-btn:disabled { background: #cbd5e1; }
.x-tk .tk-st { margin-right: 12px; font-size: 12px; color: var(--c-muted); }
.tks-grid2 .x-tk { flex-direction: column; align-items: stretch; }
.tks-grid2 .x-tk .tk-l { flex: none; padding: 10px 0; }
.tks-grid2 .x-tk .tk-l::after { display: none; }
.tks-grid2 .x-tk .tk-btn { margin: 0 10px 10px; }
.x-tk.solo { box-shadow: none; border: 1px solid #fde2e2; }
.x-mycp.used .x-tk, .x-mycp.expired .x-tk { filter: grayscale(1); opacity: .7; }
.x-cp-detail { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.x-cp-detail .ok { color: #16a34a; font-weight: 600; display: flex; align-items: center; gap: 4px; margin: 0; }
.x-cp-detail .ok svg { width: 20px; height: 20px; }
.x-cp-detail .nm { font-size: 17px; }
.x-cp-detail .qr { width: 190px; height: 190px; background: #fff; padding: 8px; border-radius: 12px; }
.x-cp-detail .code { font-size: 24px; font-weight: 700; letter-spacing: 3px; font-family: ui-monospace, Consolas, monospace; }
/* 特价项目（商品卡片） */
.x-deal { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.x-deal .dl { display: flex; flex-direction: column; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 6px 20px rgba(15, 23, 42, .06); color: inherit; text-decoration: none; }
.x-deal .cv { position: relative; display: block; aspect-ratio: 1 / 1; background: #f1f5f9; }
.x-deal .cv img { width: 100%; height: 100%; object-fit: cover; display: block; }
.x-deal .cv .ph { display: grid; place-items: center; height: 100%; font-size: 26px; font-weight: 700; color: var(--c-primary); background: var(--c-primary-50); }
.x-deal .cv i { position: absolute; left: 8px; top: 8px; font-style: normal; font-size: 11px; color: #fff; background: linear-gradient(135deg, #f97316, #ef4444); padding: 2px 6px; border-radius: 6px; }
.x-deal .tx { display: flex; flex-direction: column; gap: 4px; padding: 8px 10px 10px; }
.x-deal .tx b { font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.x-deal .pr { display: flex; align-items: baseline; gap: 6px; }
.x-deal .pr em { font-style: normal; color: #e11d48; font-size: 18px; font-weight: 700; }
.x-deal .pr s { color: #94a3b8; font-size: 12px; }
.x-deal .bt { align-self: flex-start; font-size: 12px; color: #fff; background: linear-gradient(135deg, #f97316, #ef4444); padding: 4px 12px; border-radius: 999px; }
.x-deal.dl-list { grid-template-columns: 1fr; }
.x-deal.dl-list .dl { flex-direction: row; }
.x-deal.dl-list .cv { flex: 0 0 112px; aspect-ratio: auto; min-height: 112px; }
.x-deal.dl-list .tx { flex: 1; justify-content: center; }
.x-deal.dl-big { grid-template-columns: 1fr; }
.x-deal.dl-big .cv { aspect-ratio: 16 / 9; }
.x-deal.dl-big .tx { flex-direction: row; flex-wrap: wrap; align-items: center; }
.x-deal.dl-big .tx b { flex: 1 0 100%; }
.x-deal.dl-big .bt { margin-left: auto; align-self: center; }
/* 关注我们：公众号 / 抖音 */
.x-follow { text-align: center; }
.x-follow-tip { font-weight: 600; margin-bottom: 10px; }
.x-follow-row { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.x-follow-one { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 120px; }
.x-follow-one img { width: 132px; height: 132px; object-fit: contain; border-radius: 8px; border: 1px solid #eef0f3; background: #fff; }
.x-follow-one b { font-size: 14px; }
.x-follow-one span { font-size: 12px; color: #6b7280; }

/* 医生名片：照片 + 认证小勾、职称、执业认证、从医年限、接诊人次 / 评价分、擅长病种、学术任职、出诊时间 */
.doc-av { position: relative; display: inline-block; flex: none; line-height: 0; }
.x-doc > .doc-av { grid-row: span 2; }
.doc-photo { border: 2px solid #fff; box-shadow: 0 2px 8px rgba(15, 23, 42, .12); }
.doc-v { position: absolute; right: 0; bottom: 2px; width: 20px; height: 20px; border-radius: 50%; background: #16a34a; color: #fff; font-style: normal;
  font-size: 12px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; line-height: 1; }
.x-doc { cursor: pointer; }
.x-cert { display: inline-flex; align-items: center; gap: 2px; font-size: 11px; padding: 1px 7px; border-radius: 6px; color: #0f7b4c; background: #e3f6ec; border: 1px solid #c4ead5; }
.x-cert::before { content: "✓"; font-weight: 700; }
.x-meta { font-size: 12px; color: var(--c-muted); margin-top: 3px; }
.x-stat { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: 12px; color: var(--c-text-2); }
.x-stat b { font-size: 15px; color: #e8590c; margin-right: 2px; font-weight: 700; }
.x-dz { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; align-items: center; }
.x-dz em { font-style: normal; font-size: 12px; color: var(--c-muted); margin-right: 2px; }
.x-dz i { font-style: normal; font-size: 12px; padding: 2px 8px; border-radius: 10px; background: var(--c-primary-50); color: var(--c-primary-600); }
.x-hon { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 6px; font-size: 12px; color: #8a5a00; }
.x-hon span::before { content: "◆"; font-size: 9px; margin-right: 4px; color: #e0a526; vertical-align: 1px; }
.x-clinic { font-size: 12px; color: var(--c-text-2); margin-top: 6px; }
.x-dmini .yr { color: var(--c-primary-600) !important; }
.doc-head .doc-photo { width: 56px; height: 56px; }
.doc-head .more { font-size: 12px; color: var(--c-primary-600); margin-top: 6px; }
.doc-head .x-stat b { font-size: 14px; }
/* 医生介绍弹窗 */
.dsheet h4 { margin: 16px 0 6px; font-size: 14px; color: var(--c-text); }
.dsheet p { margin: 0; color: var(--c-text-2); line-height: 1.7; font-size: 14px; }
.ds-head { display: flex; gap: 14px; align-items: center; }
.ds-head .doc-photo { width: 84px; height: 84px; }
.ds-head .x-name b { font-size: 20px; }
.ds-cert { display: inline-flex; flex-direction: column; margin-top: 6px; font-size: 13px; color: #0f7b4c; font-weight: 600; }
.ds-cert small { font-weight: 400; color: var(--c-muted); font-size: 11px; }
.ds-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 8px; margin-top: 16px; }
.ds-nums div { background: linear-gradient(180deg, #fff7ed, #fff); border: 1px solid #fde3c8; border-radius: 12px; padding: 10px 6px; text-align: center; }
.ds-nums b { display: block; font-size: 22px; color: #e8590c; line-height: 1.2; }
.ds-nums span { font-size: 11px; color: var(--c-muted); }
.ds-hon { margin: 0; padding-left: 18px; color: var(--c-text-2); font-size: 14px; line-height: 1.8; }
.ds-intro { white-space: pre-line; }
/* 导航：选地图 */
.ns-addr { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--c-primary-50); }
.ns-addr b { font-size: 15px; } .ns-addr span { font-size: 13px; color: var(--c-text-2); }
.ns-tip { font-size: 12px; color: #9a6700; background: #fff8e1; border-radius: 10px; padding: 8px 10px; margin: 10px 0 0; line-height: 1.6; }
.ns-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.ns-it { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--c-border); border-radius: 12px; background: #fff; font: inherit; cursor: pointer; text-align: left; }
.ns-it .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700; flex: none; }
.ns-it b { flex: 1; font-size: 15px; } .ns-it .go { font-size: 13px; color: var(--c-primary-600); }
.ns-amap .ic { background: #1677ff; } .ns-baidu .ic { background: #e53935; } .ns-qq .ic { background: #17b26a; } .ns-apple .ic { background: #111827; }
.ns-phone { display: block; text-align: center; margin-top: 14px; font-size: 13px; color: var(--c-muted); }
