/* =========================================================
   base.css —— 变量、重置、排版
   ========================================================= */

:root {
  /* 主色 */
  --brand: #c8a45c;
  --brand-dark: #a8873f;
  --brand-light: #f7f0de;
  --accent: #c8a45c;

  /* 中性色 */
  --text: #1a1a1a;
  --text2: #8a8a8a;
  --text3: #b5b5b5;
  --bg: #f5f6f8;
  --card: #ffffff;
  --line: #ebedf0;

  /* 语义色 */
  --green: #0a8a4a;
  --green-bg: #e8f7ee;
  --red: #e64340;
  --red-bg: #fdecec;
  --orange: #c77b12;
  --orange-bg: #fff4e0;
  --blue: #3f6fb5;
  --blue-bg: #eaf2fb;

  /* 尺寸 */
  --radius: 12px;
  --radius-btn: 10px;
  --shadow: 0 4px 20px rgba(26, 26, 26, 0.06);
  --shadow-lg: 0 10px 40px rgba(26, 26, 26, 0.12);

  /* 布局 */
  --topbar-h: 48px;
  --tabbar-h: 56px;
  --sidebar-w: 216px;
  --maxw: 1200px;

  /* 字号 */
  --fs-body: 14px;
  --fs-helper: 12px;
  --fs-title: 16px;
  --fs-h2: 18px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

/* 移动端触控体验：取消点击弹跳/双击缩放，字体随屏幕自适应而不被浏览器放大 */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  touch-action: manipulation;
}

body {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* 输入框聚焦时不放大页面（iOS Safari 默认 <16px 会放大） */
input,
select,
textarea {
  font-size: 16px;
}

@media (min-width: 768px) {
  input,
  select,
  textarea {
    font-size: inherit;
  }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3,
h4,
h5 {
  font-weight: 600;
  line-height: 1.4;
}

p {
  line-height: 1.75;
}

.text-muted {
  color: var(--text2);
}

.text-brand {
  color: var(--brand-dark);
}

.text-red {
  color: var(--red);
}

.text-green {
  color: var(--green);
}

.text-accent {
  color: var(--accent);
  font-weight: 600;
}

.text-center {
  text-align: center;
}

.hidden {
  display: none !important;
}

.ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mt8 { margin-top: 8px; }
.mt12 { margin-top: 12px; }
.mt16 { margin-top: 16px; }
.mb8 { margin-bottom: 8px; }
.mb12 { margin-bottom: 12px; }

/* 滚动条 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-thumb {
  background: #d8dbe0;
  border-radius: 3px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

/* =========================================================
   components.css —— 按钮 / 卡片 / 表单 / 标签 / 弹窗 / 状态
   ========================================================= */

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-block;
  padding: 11px 18px;
  border-radius: var(--radius-btn);
  font-size: var(--fs-body);
  text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
  font-weight: 500;
  transition: opacity 0.15s, transform 0.1s;
  background: var(--card);
  color: var(--text);
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled,
.btn.disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary.danger {
  background: #b03a3a;
  color: #fff;
}

.btn-ghost {
  background: var(--brand-light);
  color: var(--brand-dark);
}

.btn-line {
  background: transparent;
  border-color: var(--line);
  color: var(--text2);
}

.btn-line.danger {
  color: var(--red);
  border-color: #f0c8c8;
}

.btn-block {
  display: block;
  width: 100%;
}

.btn-sm {
  padding: 7px 14px;
  font-size: var(--fs-helper);
  border-radius: 16px;
}

/* 小圆角按钮（列表内操作） */
.mini {
  display: inline-block;
  padding: 6px 13px;
  border-radius: 16px;
  font-size: var(--fs-helper);
  border: 1px solid var(--line);
  background: var(--card);
  cursor: pointer;
  color: var(--text2);
  white-space: nowrap;
}

.mini.pri {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.mini.danger {
  color: var(--red);
  border-color: #f0c8c8;
}

/* 图标按钮 */
.iconbtn {
  min-width: 52px;
  text-align: center;
  font-size: 11px;
  color: var(--text2);
  cursor: pointer;
  background: none;
}

.iconbtn .ic {
  font-size: 19px;
  display: block;
  margin-bottom: 2px;
}

/* ---------------- 卡片 ---------------- */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-pad {
  padding: 14px 16px;
}

.block {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.block h4 {
  font-size: var(--fs-title);
  margin-bottom: 10px;
  padding-left: 9px;
  border-left: 3px solid var(--brand);
}

.block p {
  font-size: var(--fs-body);
  color: #4d4d4d;
}

/* ---------------- 分组列表 ---------------- */
.cellgroup {
  background: var(--card);
  border-radius: var(--radius);
  margin: 12px 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.cell {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  font-size: var(--fs-body);
  background: var(--card);
  width: 100%;
  text-align: left;
}

.cell:last-child {
  border-bottom: 0;
}

.cell .ci {
  width: 24px;
  text-align: center;
  font-size: 17px;
  color: var(--brand);
  flex: 0 0 24px;
}

.cell .cv {
  flex: 1;
  min-width: 0;
}

.cell .arrow {
  color: var(--text3);
}

/* ---------------- 标签 ---------------- */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tags span,
.rtag {
  font-size: var(--fs-helper);
  color: var(--brand-dark);
  background: var(--brand-light);
  padding: 4px 10px;
  border-radius: 12px;
}

.badge {
  font-size: 10px;
  color: var(--brand-dark);
  background: var(--brand-light);
  padding: 1px 7px;
  border-radius: 8px;
  white-space: nowrap;
}

.badge.ver {
  color: #fff;
  background: var(--brand);
}

.pill {
  display: inline-block;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 10px;
  white-space: nowrap;
}

.pill.gray { background: #eef0f2; color: #8a8a8a; }
.pill.orange { background: var(--orange-bg); color: var(--orange); }
.pill.green { background: var(--green-bg); color: var(--green); }
.pill.red { background: var(--red-bg); color: var(--red); }
.pill.blue { background: var(--blue-bg); color: var(--blue); }

/* 状态文字（预约 / 订单） */
.status {
  font-size: var(--fs-helper);
  font-weight: 500;
  white-space: nowrap;
}

.status.wait { color: var(--accent); }
.status.done { color: var(--green); }
.status.cancel { color: var(--text2); }
.status.reject { color: var(--red); }

/* ---------------- chips ---------------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
  background: var(--card);
}

.chip {
  flex: 0 0 auto;
  padding: 7px 13px;
  border-radius: 16px;
  background: var(--bg);
  font-size: var(--fs-helper);
  color: var(--text2);
  cursor: pointer;
  border: 1px solid transparent;
  user-select: none;
}

.chip.on {
  background: var(--brand-light);
  color: var(--brand-dark);
  border-color: var(--brand);
}

/* 分段控件 */
.seg {
  display: flex;
  background: var(--card);
  margin: 12px 16px;
  border-radius: var(--radius);
  padding: 4px;
  gap: 4px;
}

.seg > div {
  flex: 1;
  text-align: center;
  padding: 8px 4px;
  font-size: var(--fs-body);
  color: var(--text2);
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}

.seg > div.on {
  background: var(--brand-light);
  color: var(--brand-dark);
  font-weight: 600;
}

.seg-scroll {
  overflow-x: auto;
}

.seg-scroll > div {
  flex: 0 0 auto;
  min-width: 78px;
}

/* ---------------- 表单 ---------------- */
.form-page {
  padding: 16px;
}

.fgroup {
  margin-bottom: 16px;
}

.fgroup > label {
  display: block;
  font-size: var(--fs-body);
  font-weight: 500;
  margin-bottom: 8px;
}

.fgroup .req {
  color: var(--red);
  margin-left: 2px;
}

.input,
.select,
.textarea {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  padding: 11px 12px;
  font-size: var(--fs-body);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--brand);
}

.textarea {
  min-height: 90px;
  resize: vertical;
  line-height: 1.6;
}

.select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text2) 50%),
    linear-gradient(135deg, var(--text2) 50%, transparent 50%);
  background-position: calc(100% - 16px) 18px, calc(100% - 11px) 18px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

.hint {
  font-size: var(--fs-helper);
  color: var(--text2);
  margin-top: 6px;
  line-height: 1.6;
}

.radio-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.radio {
  padding: 9px 16px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: var(--fs-body);
  cursor: pointer;
  user-select: none;
}

.radio.on {
  background: var(--brand-light);
  border-color: var(--brand);
  color: var(--brand-dark);
  font-weight: 500;
}

/* 开关 */
.sw {
  width: 44px;
  height: 25px;
  border-radius: 20px;
  background: #d8dce0;
  position: relative;
  transition: background 0.2s;
  cursor: pointer;
  flex: 0 0 44px;
}

.sw.on {
  background: var(--brand);
}

.sw i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.sw.on i {
  left: 22px;
}

/* 上传占位 */
.upload {
  width: 100%;
  min-height: 92px;
  border: 1px dashed var(--brand);
  border-radius: var(--radius);
  background: var(--brand-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--brand-dark);
  font-size: var(--fs-helper);
  cursor: pointer;
  text-align: center;
  padding: 12px;
}

.upload .plus {
  font-size: 26px;
  line-height: 1;
}

/* ---------------- 提示条 ---------------- */
.notice {
  background: var(--brand-light);
  color: var(--brand-dark);
  border-radius: var(--radius-btn);
  padding: 10px 12px;
  font-size: var(--fs-helper);
  line-height: 1.7;
  margin: 12px 16px;
}

.notice.danger {
  background: var(--red-bg);
  color: #a32d2d;
}

.privacy-tip {
  font-size: var(--fs-helper);
  color: #6b7a6a;
  background: #eef2eb;
  border: 1px solid #dde5d8;
  padding: 9px 12px;
  border-radius: 8px;
  line-height: 1.6;
  margin: 12px 16px;
}

.lock-box {
  background: #faf6ec;
  border: 1px solid #ecdcb5;
  border-radius: var(--radius);
  padding: 14px;
  margin: 0 16px 12px;
  text-align: center;
}

.lock-box .lk {
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--orange);
}

.lock-box .ld {
  font-size: var(--fs-helper);
  color: var(--text2);
  margin: 6px 0 10px;
  line-height: 1.6;
}

.lock-box .go {
  display: inline-block;
  font-size: var(--fs-helper);
  color: #fff;
  background: var(--accent);
  border-radius: 16px;
  padding: 6px 16px;
  cursor: pointer;
}

.contact-box {
  background: #eef8f1;
  border: 1px solid #cdebd8;
  border-radius: var(--radius);
  padding: 14px;
  margin: 0 16px 12px;
}

.contact-box .ct {
  font-size: var(--fs-title);
  font-weight: 600;
  color: #0a6e3a;
  margin-bottom: 10px;
}

.contact-box .row {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px dashed #cdebd8;
  font-size: var(--fs-body);
}

.contact-box .row:last-child {
  border-bottom: 0;
}

.contact-box .row span {
  color: var(--text2);
}

/* ---------------- 头像 ---------------- */
.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex: 0 0 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  color: #fff;
  font-weight: 600;
  background: #5a7c9c;
}

/* ---------------- 空态 / 加载 ---------------- */
.state-box {
  text-align: center;
  color: var(--text2);
  font-size: var(--fs-body);
  padding: 46px 20px;
  line-height: 1.8;
}

.state-icon {
  font-size: 42px;
  display: block;
  margin-bottom: 12px;
  opacity: 0.6;
}

.state-text {
  color: var(--text2);
}

.spinner {
  width: 26px;
  height: 26px;
  margin: 0 auto 10px;
  border: 2px solid var(--line);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.skeleton-card {
  display: flex;
  gap: 12px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 13px;
  margin: 0 16px 10px;
}

.sk {
  background: linear-gradient(90deg, #f0f1f3 25%, #e7e9ec 37%, #f0f1f3 63%);
  background-size: 400% 100%;
  animation: sk 1.2s ease infinite;
  border-radius: 6px;
}

@keyframes sk {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

.sk-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex: 0 0 52px;
}

.sk-body {
  flex: 1;
}

.sk-line {
  height: 12px;
  margin-bottom: 8px;
}

.sk-line:last-child {
  margin-bottom: 0;
}

.w40 { width: 40%; }
.w60 { width: 60%; }
.w90 { width: 90%; }

/* ---------------- Toast / Modal ---------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 10px 18px;
  border-radius: 20px;
  font-size: var(--fs-body);
  z-index: 900;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  white-space: nowrap;
  max-width: 88vw;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toast.show {
  opacity: 1;
}

/* 城市检测提示：独立通道，位置高于业务 toast，避免同时显示时互相覆盖 */
.toast-city {
  bottom: 142px;
  background: rgba(28, 46, 43, 0.9);
  border: 1px solid rgba(240, 194, 90, 0.5);
}

.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.modal-mask.show {
  display: flex;
}

.modal-box {
  width: 100%;
  max-width: 380px;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: 16px;
  padding: 24px 20px 18px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.modal-icon {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--brand-light);
  color: var(--brand-dark);
  font-size: 28px;
  line-height: 54px;
  margin: 0 auto 14px;
}

.modal-title {
  font-size: var(--fs-h2);
  font-weight: 600;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.modal-desc {
  font-size: var(--fs-body);
  color: var(--text2);
  line-height: 1.75;
  margin-bottom: 18px;
  overflow-y: auto;
  min-height: 0;
  flex: 1;
  text-align: left;
}

/* 宽版弹窗（用户详情等） */
.modal-box.modal-box-wide {
  max-width: 900px;
  text-align: left;
}
/* 宽版为左对齐的数据展示布局，图标与标题对齐一致 */
.modal-box-wide .modal-icon {
  margin: 0 0 12px;
}

.modal-btns {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.modal-btns .btn {
  flex: 1;
  white-space: nowrap;
  padding-left: 10px;
  padding-right: 10px;
}

/* ---------------- 电话链接 ---------------- */
.phone-link {
  color: var(--accent);
  font-weight: 600;
  border-bottom: 1px dashed var(--accent);
  cursor: pointer;
}

/* =========================================================
   layout.css —— 手机端(顶栏+底部Tab) / PC端(侧栏+顶栏+内容区)
   同一份 HTML，媒体查询 768px 切换，不写两套页面
   ========================================================= */

#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

/* ---------------- 顶栏（手机端 / PC 端共用） ---------------- */
.topbar {
  height: var(--topbar-h);
  flex: 0 0 var(--topbar-h);
  display: flex;
  align-items: center;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: 0 12px;
  position: sticky;
  top: 0;
  z-index: 60;
}

.topbar .nav-back {
  width: 34px;
  font-size: 22px;
  line-height: 1;
  color: var(--text);
  cursor: pointer;
  visibility: hidden;
  flex: 0 0 34px;
}

.topbar .nav-back.show {
  visibility: visible;
}

.topbar .nav-title {
  flex: 1;
  text-align: center;
  font-size: var(--fs-title);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar .nav-right {
  flex: 0 0 auto;
  min-width: 34px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.topbar .nav-action {
  font-size: var(--fs-helper);
  color: var(--text2);
  cursor: pointer;
  position: relative;
}

.topbar .nav-action .dot-badge {
  position: absolute;
  top: -11px;
  right: -12px;
}
/* 消息按钮：角标偏右上，给 💬 图标留出可见空间，并与后面的站点 chip 保持间距 */
.topbar #navMsg { margin-right: 14px; }

/* 顶栏通用账号区：未登录=登录/注册按钮组，已登录=统一入口 */
.topbar .nav-user-slot {
  display: flex;
  align-items: center;
}
.topbar .nav-auth-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}
.topbar .nav-auth-btns button {
  border: 1px solid var(--brand, #c8a45c);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 12px;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
}
.topbar .nav-auth-btns .btn-login {
  background: var(--brand, #c8a45c);
  color: #fff;
}
.topbar .nav-auth-btns .btn-reg {
  background: transparent;
  color: var(--brand, #c8a45c);
}
/* 已登录账号区：头像 + 昵称 + 退出 */
.topbar .nav-user-chip-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.topbar .nav-user-name {
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topbar .nav-user-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--text2);
  font-size: 13px;
}
.topbar .nav-user-chip .avatar-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand, #c8a45c);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

/* 后台顶部账号区：账号入口 + 明确退出按钮 */
.topbar .nav-admin-chip {
  display: flex;
  align-items: center;
  gap: 12px;
}
/* 顶栏分站标识：仅 PC 显示（跟随 .pc-only），手机端已有城市入口 */
.topbar .nav-city-chip {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--brand-light);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  vertical-align: middle;
}
/* 总管理员的后台工作分站 chip 可点击切换 */
.topbar .nav-city-chip.city-chip-btn {
  cursor: pointer;
  transition: opacity .15s ease, box-shadow .15s ease;
}
.topbar .nav-city-chip.city-chip-btn:hover {
  opacity: .82;
  box-shadow: 0 0 0 2px rgba(180, 140, 20, .2);
}
.topbar .nav-city-chip.city-chip-btn:focus-visible {
  outline: 2px solid var(--brand-dark);
  outline-offset: 2px;
}
.topbar .btn-admin-logout,
.topbar .btn-user-logout {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text2);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.topbar .btn-admin-logout:hover,
.topbar .btn-user-logout:hover {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-bg);
}

.dot-badge {
  background: var(--red);
  color: #fff;
  font-size: 10px;
  border-radius: 9px;
  padding: 1px 6px;
  display: inline-block;
  line-height: 1.4;
}

/* PC 端顶栏左侧放站点名，标题居左 */
.pc-only {
  display: none;
}

/* ---------------- 内容区 ---------------- */
#view {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.page {
  padding-bottom: 16px;
  animation: pageIn 0.22s ease;
}

@keyframes pageIn {
  from {
    opacity: 0.4;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ---------------- 侧栏（PC 端） ---------------- */
.sidebar {
  display: none;
}

/* ---------------- 底部 TabBar（手机端：悬浮卡片） ---------------- */
.tabbar {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: calc(8px + env(safe-area-inset-bottom));
  z-index: 70;
  height: calc(var(--tabbar-h) + 2px);
  display: flex;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(26, 26, 26, 0.14);
  overflow: hidden;
}

.tabbar .tab {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 11px;
  color: var(--text2);
  cursor: pointer;
}

.tabbar .tab.on {
  color: var(--brand-dark);
  font-weight: 600;
}

.tabbar .tab .ico {
  font-size: 21px;
  line-height: 1;
  filter: grayscale(1) opacity(.55);
  transition: filter .15s, transform .15s;
}

.tabbar .tab.on .ico {
  filter: none;
  transform: translateY(-1px) scale(1.06);
}

/* ---------------- 手机端后台功能抽屉 ---------------- */
.admin-drawer-mask {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: rgba(20, 18, 14, 0.42);
  display: flex;
  justify-content: flex-end;
}
.admin-drawer-mask[hidden] {
  display: none;
}
.admin-drawer {
  width: min(86vw, 360px);
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--card);
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.18);
  animation: admDrawerIn 0.2s ease;
}
@keyframes admDrawerIn {
  from { transform: translateX(18px); opacity: 0.7; }
  to { transform: translateX(0); opacity: 1; }
}
.ad-drawer-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--line);
}
.ad-drawer-title b {
  display: block;
  font-size: 16px;
  color: var(--text);
}
.ad-drawer-title span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--text3);
}
.ad-drawer-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--bg);
  color: var(--text2);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.ad-drawer-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 10px calc(20px + env(safe-area-inset-bottom));
}
.ad-drawer-group {
  margin-top: 12px;
  padding: 6px 10px 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text3);
}
.ad-drawer-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 0;
  padding: 11px 12px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
}
.ad-drawer-item:active {
  background: var(--bg);
}
.ad-drawer-item.on {
  background: #fbf3df;
  color: var(--brand-dark);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--brand);
}
.ad-drawer-item .ic {
  width: 22px;
  text-align: center;
  font-size: 16px;
}

/* 悬浮 TabBar 占据视觉空间：给内容区留出底部安全距离 */
#view .page {
  padding-bottom: calc(var(--tabbar-h) + 34px);
}

/* 小程序风格线性图标 */
.tabbar .tab .ico svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tabbar .tab.on .ico svg {
  stroke-width: 2.1;
}

/* =========================================================
   PC 端：>= 768px
   ========================================================= */
@media (min-width: 768px) {
  #app {
    flex-direction: row;
  }

  /* 侧栏 */
  .sidebar {
    display: flex;
    flex-direction: column;
    width: var(--sidebar-w);
    flex: 0 0 var(--sidebar-w);
    background: var(--card);
    border-right: 1px solid var(--line);
    padding: 18px 0;
    height: 100vh;
    position: sticky;
    top: 0;
    overflow-y: auto;
  }

  .sidebar .sb-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 18px 18px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 12px;
    cursor: pointer;
  }
  .sidebar .sb-logo:hover { opacity: .82; }

  .sidebar .sb-logo .lg {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: var(--brand);
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .sidebar .sb-logo b {
    font-size: var(--fs-title);
    display: block;
    line-height: 1.3;
  }

  .sidebar .sb-logo span {
    font-size: 11px;
    color: var(--text2);
  }

  .sidebar .sb-group {
    padding: 10px 18px 4px;
    font-size: 11px;
    color: var(--text3);
    letter-spacing: 0.5px;
  }

  .sidebar .sb-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    font-size: var(--fs-body);
    color: var(--text2);
    cursor: pointer;
    border-left: 3px solid transparent;
  }

  .sidebar .sb-item:hover {
    background: var(--brand-light);
    color: var(--brand-dark);
  }

  .sidebar .sb-item.on {
    background: var(--brand-light);
    color: var(--brand-dark);
    font-weight: 600;
    border-left-color: var(--brand);
  }

  .sidebar .sb-item .ic {
    font-size: 16px;
    width: 20px;
    text-align: center;
  }

  .sidebar .sb-foot {
    margin-top: auto;
    padding: 14px 18px 0;
    border-top: 1px solid var(--line);
    font-size: 11px;
    color: var(--text3);
    line-height: 1.7;
  }

  /* 主区域 */
  .main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
  }

  .topbar {
    height: 56px;
    flex: 0 0 56px;
    padding: 0 20px;
  }

  .topbar .nav-back {
    display: none;
  }

  .topbar .nav-title {
    text-align: left;
    font-size: var(--fs-h2);
    margin-left: 12px;
  }

  .topbar .nav-right {
    margin-left: auto;
  }

  .pc-only {
    display: flex;
  }

  .mob-only {
    display: none !important;
  }

  #view {
    padding: 0;
  }

  .page {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 20px 20px 40px;
  }

  /* PC 端隐藏底部 TabBar */
  .tabbar {
    display: none;
  }

  /* 列表类卡片在 PC 端两列 */
  .pc-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
  }

  /* PC 端表单两列排布 */
  .pc-form-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
  }
}

@media (min-width: 1100px) {
  .pc-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 16px;
  }
}

/* =========================================================
   pages.css —— 各业务页专用样式
   ========================================================= */

/* ---------------- 首页 ---------------- */
.sitebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px 2px;
}

.sitebar .site {
  font-size: var(--fs-title);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.sitebar .site .ar {
  font-size: 10px;
  color: var(--text2);
}

.sitebar .ct {
  font-size: var(--fs-helper);
  color: var(--blue);
  background: var(--blue-bg);
  padding: 6px 12px;
  border-radius: 16px;
  cursor: pointer;
  white-space: nowrap;
}

.home-search {
  display: flex;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  height: 34px;
  margin: 8px 16px 0;
  padding: 0 12px;
  color: var(--text3);
  font-size: var(--fs-helper);
  gap: 7px;
  cursor: pointer;
  overflow: hidden;
}

.home-search .mag {
  width: 14px;
  height: 14px;
  border: 2px solid #c3c6cb;
  border-radius: 50%;
  position: relative;
  flex: 0 0 14px;
}

.home-search .mag::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 2px;
  background: #c3c6cb;
  bottom: -2px;
  right: -3px;
  transform: rotate(45deg);
}

.home-search .tagmini {
  margin-left: auto;
  background: var(--brand-light);
  color: var(--brand-dark);
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
}

/* 轮播 */
.banner {
  margin: 10px 16px 0;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  height: 148px;
  cursor: pointer;
}

.banner .bn {
  position: absolute;
  inset: 0;
  display: flex;
  transition: opacity 0.45s;
  opacity: 0;
  pointer-events: none;
}

.banner .bn.on {
  opacity: 1;
  pointer-events: auto;
}

.banner .bn1 { background: linear-gradient(120deg, #0d6e63, #1a8b78); }
.banner .bn2 { background: linear-gradient(120deg, #2f4b8f, #4a6fc0); }
.banner .bn3 { background: linear-gradient(120deg, #b5652e, #d98b45); }

.banner .btext {
  position: relative;
  z-index: 2;
  padding: 20px 18px;
  color: #fff;
  max-width: 74%;
}

.banner .btext .bt1 {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.25;
}

.banner .btext .bt1 em {
  font-style: normal;
  color: #ffe08a;
}

.banner .btext .bt2 {
  font-size: 15px;
  font-weight: 600;
  margin-top: 5px;
  opacity: 0.95;
}

.banner .btext .bt3 {
  display: inline-block;
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.95);
  color: #0d6e63;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 12px;
}

.banner .bart {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 52%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 62px;
  z-index: 1;
  opacity: 0.9;
}

.banner .dots {
  position: absolute;
  bottom: 9px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 3;
}

.banner .dots i {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.5);
  transition: 0.2s;
}

.banner .dots i.on {
  width: 14px;
  background: #fff;
}

/* 金刚区 */
.king {
  background: var(--card);
  margin: 12px 16px 0;
  border-radius: var(--radius);
  padding: 14px 6px 10px;
  box-shadow: var(--shadow);
}

.king .kp {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}

.king .ki {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  cursor: pointer;
  text-align: center;
}

.king .ki .bub2 {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
}

/* 信任数据 */
.trust {
  display: flex;
  background: var(--card);
  margin: 12px 16px 0;
  border-radius: var(--radius);
  padding: 13px 0;
  box-shadow: var(--shadow);
}

.trust div {
  flex: 1;
  text-align: center;
  border-right: 1px solid var(--line);
}

.trust div:last-child {
  border: 0;
}

.trust b {
  font-size: 16px;
  color: var(--brand-dark);
  display: block;
  font-weight: 600;
}

.trust span {
  font-size: 10px;
  color: var(--text2);
}

/* 头条 */
.headline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 16px 0;
  background: var(--card);
  border-radius: 10px;
  padding: 9px 11px;
  cursor: pointer;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.headline .hl-t {
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-dark);
  white-space: nowrap;
  padding-right: 8px;
  border-right: 1px solid var(--line);
}

.headline .hl-c {
  font-size: 11px;
  color: var(--text2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.headline .hl-a {
  color: var(--text3);
  font-size: 12px;
}

/* promo */
.promo {
  margin: 12px 16px 0;
  border-radius: var(--radius);
  min-height: 92px;
  background: linear-gradient(110deg, #3a2a78, #6b3fa8);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 14px 16px;
  color: #fff;
}

.promo .p1 {
  font-size: 11px;
  opacity: 0.85;
  position: relative;
  z-index: 2;
}

.promo .p2 {
  font-size: 19px;
  font-weight: 800;
  margin-top: 4px;
  position: relative;
  z-index: 2;
  line-height: 1.2;
}

.promo .p2 em {
  font-style: normal;
  color: #ffd85e;
}

.promo .pbtn {
  margin-left: auto;
  background: #ffce4a;
  color: #6b3fa8;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 18px;
  position: relative;
  z-index: 2;
  white-space: nowrap;
}

.promo .part {
  position: absolute;
  right: 100px;
  bottom: -14px;
  font-size: 72px;
  opacity: 0.3;
}

/* 快速入口 */
.entry2 {
  display: flex;
  gap: 10px;
  margin: 14px 16px 0;
}

.entry2 .e {
  flex: 1;
  border-radius: var(--radius);
  padding: 14px;
  color: #fff;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  min-height: 74px;
}

.entry2 .e.a { background: var(--brand-dark); }
.entry2 .e.b { background: #c99a3c; }

.entry2 .e h4 {
  font-size: var(--fs-title);
  margin-bottom: 4px;
}

.entry2 .e p {
  font-size: 11px;
  opacity: 0.85;
}

.entry2 .e .tag {
  position: absolute;
  right: 10px;
  bottom: 8px;
  font-size: 26px;
  opacity: 0.35;
}

/* 专题 */
.topics {
  margin: 16px 16px 0;
}

.topics h3 {
  font-size: var(--fs-title);
  margin-bottom: 10px;
}

.topics .tg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.topics .ti {
  border-radius: var(--radius);
  padding: 15px 14px;
  min-height: 78px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.topics .ti.a { background: #e9edfb; }
.topics .ti.b { background: #fbeaf0; }
.topics .ti.c { background: #e4f3f3; }
.topics .ti.d { background: #fbf1e2; }
.topics .ti.e { background: #f1ecfa; grid-column: span 2; }
.topics .ti.e .dot-badge {
  display: inline-block;
  width: auto;
  margin-top: 0;
  padding: 1px 6px;
  font-size: 10px;
  color: #fff;
  vertical-align: 2px;
}

.topics .ti b {
  font-size: var(--fs-title);
  display: block;
  position: relative;
  z-index: 2;
}

.topics .ti span {
  font-size: 11px;
  color: var(--text2);
  display: block;
  margin-top: 5px;
  position: relative;
  z-index: 2;
}

.topics .ti .dec {
  position: absolute;
  right: 6px;
  bottom: 2px;
  font-size: 38px;
  opacity: 0.25;
}

/* 区块标题 */
.section-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 16px 10px;
}

.section-h h3 {
  font-size: var(--fs-title);
  font-weight: 600;
}

.section-h .more {
  font-size: var(--fs-helper);
  color: var(--text2);
  cursor: pointer;
}

/* ---------------- 老师卡片 ---------------- */
.teacher {
  display: flex;
  gap: 12px;
  margin: 0 16px 10px;
  padding: 13px;
  background: var(--card);
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: var(--shadow);
}

.tinfo {
  flex: 1;
  min-width: 0;
}

.tinfo .row1 {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.tinfo .name {
  font-size: 15px;
  font-weight: 600;
}

.tinfo .meta {
  font-size: var(--fs-helper);
  color: var(--text2);
  margin-top: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tinfo .bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.verify-row {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 7px;
}

.verify-row i {
  font-style: normal;
  font-size: 10px;
  color: var(--green);
  background: var(--green-bg);
  padding: 2px 6px;
  border-radius: 5px;
}

.price {
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
}

.price small {
  font-size: 11px;
  font-weight: 400;
  color: var(--text2);
}

.star {
  color: #f5a623;
  font-size: var(--fs-helper);
}

.pdate {
  font-size: 11px;
  color: var(--text2);
  margin-top: 6px;
}

.pdate.fresh {
  color: var(--brand-dark);
}

/* ---------------- 筛选栏 ---------------- */
.filterbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}

.filterbar > div {
  text-align: center;
  font-size: 13px;
  color: var(--text2);
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  padding: 8px 2px;
  line-height: 1.2;
}

.filterbar > div.on {
  color: var(--brand-dark);
  font-weight: 600;
}

.filterbar > div.on::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--brand);
}

.filter-panel {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.filter-panel .opt {
  text-align: center;
  font-size: var(--fs-helper);
  padding: 9px 4px;
  color: var(--text2);
  border-radius: 8px;
  cursor: pointer;
}

.filter-panel .opt.on {
  background: var(--brand-light);
  color: var(--brand-dark);
  font-weight: 600;
}

.result-count {
  font-size: var(--fs-helper);
  color: var(--text2);
  padding: 10px 16px 2px;
}

.area-note {
  margin: 0 16px 8px;
  padding: 9px 12px;
  background: var(--brand-light);
  border-radius: 10px;
  font-size: 11px;
  color: var(--brand-dark);
  line-height: 1.6;
}

.area-note span {
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
}

/* ---------------- 老师详情 ---------------- */
.detailhero {
  background: var(--card);
  padding: 18px 16px;
}

.dh-top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.dh-top .avatar {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  font-size: 25px;
}

.dh-name {
  font-size: 19px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.dh-meta {
  font-size: var(--fs-helper);
  color: var(--text2);
  margin-top: 7px;
  line-height: 1.7;
}

.verify-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 12px;
}

.verify-grid > div {
  text-align: center;
  font-size: 10px;
  color: var(--text2);
}

.verify-grid .vi {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-light);
  color: var(--brand-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 5px;
  font-size: 15px;
}

.stat3 {
  display: flex;
  background: var(--card);
  margin: 10px 16px 0;
  border-radius: var(--radius);
  padding: 14px 0;
  box-shadow: var(--shadow);
}

.stat3 > div {
  flex: 1;
  text-align: center;
  border-right: 1px solid var(--line);
}

.stat3 > div:last-child {
  border: 0;
}

.stat3 b {
  font-size: 17px;
  display: block;
}

.stat3 span {
  font-size: 11px;
  color: var(--text2);
}

.videocover {
  height: 130px;
  border-radius: var(--radius);
  background: #26251f;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  overflow: hidden;
}

.videocover .play {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
}

.videocover .lb {
  position: absolute;
  left: 10px;
  top: 9px;
  font-size: 10px;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  padding: 3px 8px;
  border-radius: 6px;
}

.review-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.review-item:last-child {
  border: 0;
}

.review-item .rh {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.review-item p {
  font-size: var(--fs-helper);
  color: var(--text2);
  margin-top: 6px;
  line-height: 1.6;
}

.review-filter {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 10px 0 4px;
}

.fixbar {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card);
  border-top: 1px solid var(--line);
  padding: 9px 14px calc(9px + env(safe-area-inset-bottom));
  display: flex;
  gap: 10px;
  z-index: 40;
  align-items: center;
}

.fixbar .btn-primary {
  flex: 1;
}

/* ---------------- 订单 / 预约卡片 ---------------- */
.ordercard {
  background: var(--card);
  border-radius: var(--radius);
  margin: 0 16px 12px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.ordercard .oh {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-helper);
  color: var(--text2);
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  gap: 8px;
}

.ordercard .ob {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.ordercard .ob .avatar {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  font-size: 18px;
}

.ordercard .ob .t {
  flex: 1;
  min-width: 0;
}

.ordercard .ob .t b {
  font-size: 14px;
}

.ordercard .ob .t p {
  font-size: var(--fs-helper);
  color: var(--text2);
  margin-top: 5px;
}

.ordercard .of {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

/* 需求卡片 */
.demand-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px;
  margin: 0 16px 10px;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.demand-card .dh {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.demand-card .dt {
  font-size: 15px;
  font-weight: 600;
}

.demand-card .dm {
  font-size: 11px;
  color: var(--text2);
  margin-top: 6px;
}

.demand-card .df {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.demand-card .price {
  font-size: 13px;
}

.demand-card .apps {
  font-size: 11px;
  color: var(--text2);
}

/* 收藏卡片 */
.fav-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px;
  margin: 0 16px 10px;
  box-shadow: var(--shadow);
}

.fav-card .fi {
  flex: 1;
  min-width: 0;
}

.fav-card .fn {
  font-size: 15px;
  font-weight: 600;
}

.fav-card .fm {
  font-size: 11px;
  color: var(--text2);
  margin-top: 4px;
}

.fav-card .fx {
  font-size: 11px;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 14px;
  padding: 5px 12px;
  cursor: pointer;
  white-space: nowrap;
}

/* 需求详情 */
.demand-detail-hero {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  padding: 20px 18px;
}

.demand-detail-hero h2 {
  font-size: 20px;
  margin: 12px 0 6px;
}

.ddh-sub {
  font-size: var(--fs-helper);
  opacity: 0.9;
}

.dd-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  font-size: var(--fs-body);
}

.dd-row span {
  color: var(--text2);
}

.dd-row b {
  color: var(--text);
  font-weight: 600;
  text-align: right;
  max-width: 62%;
}

/* ---------------- 地图（示意图，非真实地图服务） ---------------- */
.mapview {
  height: 290px;
  background: #e8ecdf;
  position: relative;
  overflow: hidden;
  margin: 0 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.mapgrid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(#dfe6d4 1px, transparent 1px),
    linear-gradient(90deg, #dfe6d4 1px, transparent 1px);
  background-size: 38px 38px;
  opacity: 0.7;
}

.road {
  position: absolute;
  background: #fff;
  opacity: 0.9;
}

.road.r1 {
  top: 90px;
  left: -10px;
  right: -10px;
  height: 12px;
  transform: rotate(-8deg);
}

.road.r2 {
  top: -10px;
  bottom: -10px;
  left: 150px;
  width: 12px;
  transform: rotate(12deg);
}

.pin {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.pin span {
  transform: rotate(45deg);
}

.pin.u {
  background: var(--blue);
}

.pin.sel {
  background: var(--accent);
  transform: rotate(-45deg) scale(1.12);
}

.maphd {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 5;
  display: flex;
  gap: 8px;
}

.maphd .sb {
  background: #fff;
  border-radius: 18px;
  padding: 8px 12px;
  font-size: var(--fs-helper);
  color: var(--text2);
  flex: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  outline: none;
}

.mapdist {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 10px 16px 0;
  background: var(--card);
}

.mapcount {
  padding: 10px 16px 4px;
  font-size: var(--fs-helper);
  color: var(--text2);
}

/* ---------------- 我的 ---------------- */
.myhead {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  padding: 22px 16px 26px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 14px;
}

.myhead .avatar {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  font-size: 23px;
  background: rgba(255, 255, 255, 0.25);
}

.myhead b {
  font-size: 18px;
  display: block;
}

.myhead p {
  font-size: var(--fs-helper);
  opacity: 0.85;
  margin-top: 5px;
}

.quick4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--card);
  margin: 14px 16px 0;
  border-radius: var(--radius);
  padding: 16px 0;
  box-shadow: var(--shadow);
}

.quick4.quick5 {
  grid-template-columns: repeat(5, 1fr);
}

.quick4 > div {
  text-align: center;
  font-size: 11px;
  color: var(--text2);
  cursor: pointer;
}

.quick4 .ic {
  font-size: 21px;
  color: var(--brand);
  display: block;
  margin-bottom: 5px;
}

/* ---------------- 消息 ---------------- */
.listmsg {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  position: relative;
}

.listmsg .avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  font-size: 17px;
}

.listmsg .c {
  flex: 1;
  min-width: 0;
}

.listmsg .c .r1 {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.listmsg .c .r1 b {
  font-size: 14px;
}

.listmsg .c .r1 time {
  font-size: 11px;
  color: var(--text2);
  white-space: nowrap;
}

.listmsg .c p {
  font-size: var(--fs-helper);
  color: var(--text2);
  margin-top: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------------- 客服会话 ---------------- */
.chathead {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.chathead .avatar {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  font-size: 15px;
}

.msg {
  padding: 14px 16px;
  display: flex;
  gap: 10px;
}

.msg.me {
  flex-direction: row-reverse;
}

.msg .avatar {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  font-size: 15px;
}

.bubble {
  max-width: 72%;
  padding: 10px 13px;
  border-radius: var(--radius);
  background: var(--card);
  font-size: 13px;
  line-height: 1.6;
}

.msg.me .bubble {
  background: var(--brand);
  color: #fff;
}

.chatinput {
  position: sticky;
  bottom: 0;
  background: var(--card);
  border-top: 1px solid var(--line);
  padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
  display: flex;
  gap: 8px;
  align-items: center;
}

.chatinput .field {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 9px 13px;
  font-size: 13px;
  color: var(--text2);
}

/* ---------------- 积分 / 礼品 ---------------- */
.pts-hero {
  background: linear-gradient(135deg, #7a5c28, #b9862f);
  color: #fff;
  padding: 22px 16px 44px;
  border-radius: 0 0 20px 20px;
  text-align: center;
}

.pts-hero .l {
  font-size: var(--fs-helper);
  opacity: 0.85;
}

.pts-hero .n {
  font-size: 42px;
  font-weight: 700;
  margin: 4px 0;
}

.pts-hero .u {
  font-size: var(--fs-helper);
  opacity: 0.9;
}

.pts-card {
  background: var(--card);
  border-radius: var(--radius);
  margin: -28px 16px 12px;
  padding: 14px;
  position: relative;
  box-shadow: var(--shadow);
}

.pts-stat3 {
  display: flex;
  text-align: center;
}

.pts-stat3 > div {
  flex: 1;
  font-size: 10px;
  color: var(--text2);
}

.pts-stat3 b {
  display: block;
  font-size: 17px;
  color: var(--text);
  margin-bottom: 2px;
}

.task-row,
.ledger-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.task-row:last-child,
.ledger-row:last-child {
  border-bottom: 0;
}

.task-row .ti {
  flex: 1;
  min-width: 0;
}

.task-row .ti b {
  font-size: 13px;
  display: block;
}

.task-row .ti span {
  font-size: 11px;
  color: var(--text2);
}

.task-row .tp {
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}

.task-row .go {
  font-size: 11px;
  color: var(--brand-dark);
  border: 1px solid var(--brand);
  border-radius: 12px;
  padding: 3px 10px;
  cursor: pointer;
  white-space: nowrap;
  margin-left: 8px;
}

.ledger-row .a b {
  font-size: 13px;
  display: block;
}

.ledger-row .a span {
  font-size: 10px;
  color: var(--text2);
}

.ledger-row .v {
  font-size: 14px;
  font-weight: 700;
}

.ledger-row .v.add { color: var(--green); }
.ledger-row .v.use { color: var(--text2); }

.gift-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 16px;
}

.gift {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gift .img {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  background: var(--brand-light);
}

.gift .b {
  padding: 10px;
}

.gift .b .nm {
  font-size: 13px;
  font-weight: 600;
}

.gift .b .pr {
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
  margin: 5px 0;
}

.gift .b .st {
  font-size: 10px;
  color: var(--text2);
}

.gift .b .ex {
  font-size: 11px;
  color: #fff;
  background: var(--brand);
  text-align: center;
  border-radius: 14px;
  padding: 5px 0;
  margin-top: 8px;
  cursor: pointer;
}

.gift .b .ex.off {
  background: #c9c9c9;
  cursor: not-allowed;
}

/* ---------------- 文章 / 资料 ---------------- */
.art-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border-radius: 18px;
  padding: 9px 14px;
  margin: 12px 16px;
  font-size: var(--fs-helper);
  color: var(--text2);
}

.art-search .search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13px;
  color: var(--text);
}

.art-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px 6px;
}

.art-cats .ac {
  flex: 0 0 auto;
  padding: 6px 12px;
  border-radius: 14px;
  background: var(--card);
  font-size: var(--fs-helper);
  color: var(--text2);
  border: 1px solid var(--line);
  cursor: pointer;
}

.art-cats .ac.on {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.art-tip {
  font-size: 11px;
  color: var(--brand-dark);
  background: var(--brand-light);
  margin: 6px 16px 12px;
  padding: 8px 10px;
  border-radius: 8px;
}

.art-card {
  display: flex;
  gap: 12px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 12px;
  margin: 0 16px 10px;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.art-cover {
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  border-radius: 10px;
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 27px;
}

.art-info {
  min-width: 0;
  flex: 1;
}

.art-tag {
  display: inline-block;
  font-size: 10px;
  color: var(--brand-dark);
  background: var(--brand-light);
  padding: 1px 7px;
  border-radius: 8px;
  margin-bottom: 4px;
}

.art-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.art-desc {
  font-size: 11px;
  color: var(--text2);
  margin-top: 3px;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.art-meta {
  display: flex;
  gap: 12px;
  font-size: 10px;
  color: var(--text3);
  margin-top: 5px;
}

.art-detail {
  background: var(--card);
  margin: 12px 16px;
  border-radius: var(--radius);
  padding: 18px;
}

.art-d-tag {
  display: inline-block;
  font-size: 11px;
  color: #fff;
  background: var(--brand);
  padding: 2px 9px;
  border-radius: 10px;
}

.art-d-title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.45;
  margin: 12px 0 8px;
}

.art-d-meta {
  font-size: 11px;
  color: var(--text2);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.art-d-body {
  font-size: var(--fs-body);
  line-height: 1.85;
  padding-top: 8px;
}

.art-d-body h2 {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-dark);
  margin: 18px 0 8px;
  padding-left: 9px;
  border-left: 3px solid var(--brand);
}

.art-d-body p {
  margin: 8px 0;
  color: #4a4a4a;
}

.art-kw-title {
  font-size: var(--fs-helper);
  font-weight: 600;
  margin: 18px 0 8px;
}

.art-kws {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.art-kws span {
  font-size: 11px;
  color: var(--brand-dark);
  background: var(--brand-light);
  padding: 3px 9px;
  border-radius: 10px;
}

.art-share {
  font-size: var(--fs-helper);
  color: var(--text2);
  text-align: center;
  margin: 20px 0 10px;
}

.art-share-btns {
  display: flex;
  gap: 10px;
}

.art-share-btns > div {
  flex: 1;
  text-align: center;
  font-size: var(--fs-helper);
  padding: 9px 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  cursor: pointer;
  color: var(--brand-dark);
}

.rel-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border-radius: 10px;
  padding: 11px 12px;
  margin-bottom: 8px;
  cursor: pointer;
}

.rel-item span {
  font-size: 21px;
}

.rel-item b {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.mat-seg {
  display: flex;
  gap: 6px;
  padding: 4px 16px 8px;
}

.mat-seg > div {
  flex: 1;
  text-align: center;
  font-size: 13px;
  padding: 8px 0;
  border-radius: 16px;
  background: var(--card);
  color: var(--text2);
  border: 1px solid var(--line);
  cursor: pointer;
}

.mat-seg > div.on {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  font-weight: 600;
}

.mat-detail-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  padding: 22px 18px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
}

.mat-detail-hero .md-cover {
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.md-info {
  min-width: 0;
}

.md-tag {
  display: inline-block;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.25);
  padding: 2px 9px;
  border-radius: 10px;
  margin-bottom: 6px;
}

.md-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}

.md-meta {
  font-size: 11px;
  opacity: 0.9;
  margin-top: 6px;
}

.mat-detail {
  background: var(--card);
  margin: 12px 16px;
  border-radius: var(--radius);
  padding: 16px;
}

.mat-preview {
  margin: 6px 0 16px;
}

.mp-page {
  min-height: 140px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 42px;
  color: var(--brand);
  padding: 16px;
  text-align: center;
}

.mp-page p {
  font-size: var(--fs-body);
  color: var(--text);
  margin: 0;
}

.mp-page span {
  font-size: 10px;
  color: var(--text2);
}

.mat-actions {
  display: flex;
  gap: 10px;
}

.mat-actions .btn {
  flex: 1;
  text-align: center;
}

/* ---------------- 案例 ---------------- */
.case-hero {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  padding: 22px 18px 20px;
}

.case-hero h2 {
  font-size: 20px;
  margin: 0 0 6px;
}

.case-hero p {
  font-size: var(--fs-helper);
  opacity: 0.9;
  margin: 0;
}

.case-stat {
  display: flex;
  background: var(--card);
  margin: 12px 16px;
  border-radius: var(--radius);
  padding: 14px 0;
  box-shadow: var(--shadow);
}

.case-stat > div {
  flex: 1;
  text-align: center;
  border-right: 1px solid var(--line);
}

.case-stat > div:last-child {
  border: 0;
}

.case-stat b {
  display: block;
  font-size: 18px;
  color: var(--accent);
}

.case-stat span {
  display: block;
  font-size: 11px;
  color: var(--text2);
  margin-top: 2px;
}

.case-grid {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 16px 4px;
}

.case-card {
  flex: 0 0 168px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 13px;
  box-shadow: var(--shadow);
}

.case-card .ch {
  display: flex;
  align-items: center;
  gap: 8px;
}

.case-card .av {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.case-card .cn b {
  font-size: 12px;
  display: block;
}

.case-card .cn span {
  font-size: 10px;
  color: var(--text2);
}

.case-card p {
  font-size: 11px;
  color: var(--text2);
  margin: 0;
  line-height: 1.55;
}

.case-list-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 15px;
  margin: 0 16px 12px;
  box-shadow: var(--shadow);
}

.case-list-card .cl-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.case-list-card .cl-av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
}

.case-list-card .cl-name b {
  font-size: 14px;
  display: block;
}

.case-list-card .cl-name span {
  font-size: 11px;
  color: var(--text2);
}

.case-list-card .cl-desc {
  font-size: var(--fs-body);
  color: var(--text);
  line-height: 1.6;
  margin: 11px 0 8px;
}

.case-list-card .cl-meta {
  font-size: 11px;
  color: var(--text2);
  border-top: 1px dashed var(--line);
  padding-top: 8px;
  line-height: 1.7;
}

/* ---------------- 步骤条 ---------------- */
.stepbar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 0 6px;
}

.step {
  font-size: 11px;
  color: var(--text2);
  text-align: center;
  flex: 1;
  position: relative;
}

.step .n {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--line);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 5px;
  font-size: 12px;
}

.step.on .n {
  background: var(--brand);
}

.step.on {
  color: var(--brand-dark);
}

.step.done .n {
  background: var(--green);
}

.step.done {
  color: var(--green);
}

/* ---------------- 课表 ---------------- */
.week-tabs {
  display: flex;
  background: var(--bg);
  border-radius: 10px;
  padding: 3px;
  gap: 3px;
}

.week-tabs .wt {
  flex: 1;
  text-align: center;
  font-size: 13px;
  padding: 7px 0;
  border-radius: 8px;
  color: var(--text2);
  cursor: pointer;
}

.week-tabs .wt.on {
  background: var(--card);
  color: var(--brand-dark);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.week-range {
  text-align: center;
  font-size: var(--fs-helper);
  color: var(--text2);
  padding: 10px 0 4px;
}

.week-days {
  display: flex;
  gap: 5px;
  padding: 8px 16px 4px;
}

.week-days .wd {
  flex: 1;
  text-align: center;
  padding: 8px 0 6px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.week-days .wd.on {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.week-days .wd span {
  font-size: 10px;
  opacity: 0.8;
}

.week-days .wd b {
  font-size: 14px;
}

.week-days .wd i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: transparent;
  margin-top: 2px;
}

.week-days .wd i.dot {
  background: var(--accent);
}

.week-days .wd.on i.dot {
  background: #fff;
}

.classcard {
  background: var(--card);
  border-radius: var(--radius);
  padding: 13px 14px;
  margin-bottom: 10px;
  border-left: 3px solid var(--brand);
  box-shadow: var(--shadow);
}

.classcard .ct {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.ctime {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-dark);
}

.cstatus {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
}

.cstatus.done {
  background: #eef2eb;
  color: #5a7c5a;
}

.cstatus.wait {
  background: var(--orange-bg);
  color: var(--orange);
}

.ctitle {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 5px;
}

.cmeta {
  font-size: var(--fs-helper);
  color: var(--text2);
}

.cnote {
  font-size: 10px;
  color: var(--text3);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}

.schedule-summary {
  display: flex;
  margin: 4px 16px 20px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px 0;
  box-shadow: var(--shadow);
}

.schedule-summary > div {
  flex: 1;
  text-align: center;
  border-right: 1px solid var(--line);
}

.schedule-summary > div:last-child {
  border-right: 0;
}

.schedule-summary b {
  display: block;
  font-size: 18px;
  color: var(--brand-dark);
}

.schedule-summary span {
  display: block;
  font-size: 11px;
  color: var(--text2);
  margin-top: 2px;
}

/* ---------------- 核销 / 费用 ---------------- */
.feecard {
  background: var(--card);
  border-radius: var(--radius);
  margin: 0 16px 12px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.feecard .fh {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 8px;
  gap: 8px;
}

.feecard .fm {
  font-size: var(--fs-helper);
  color: var(--text2);
  line-height: 1.75;
}

.feebtns {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.feebtns > * {
  flex: 1;
  text-align: center;
}

.fee-steps {
  margin: 14px 16px;
}

.fee-step {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.fee-step .n {
  flex: 0 0 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fee-step .c b {
  font-size: 13px;
  display: block;
  margin-bottom: 2px;
}

.fee-step .c span {
  font-size: 11px;
  color: var(--text2);
  line-height: 1.5;
}

.qr-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  margin: 0 16px;
  box-shadow: var(--shadow);
}

.qr-canvas {
  width: 168px;
  height: 168px;
  margin: 0 auto;
  border: 6px solid #fff;
  outline: 1px solid var(--line);
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  border-radius: 4px;
}

.qr-id {
  font-size: var(--fs-helper);
  color: var(--text2);
  margin-top: 12px;
  line-height: 1.7;
}

.qr-id b {
  color: var(--text);
  font-size: 14px;
}

.rec-head {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
  padding: 18px 16px 22px;
  border-radius: 0 0 18px 18px;
}

.rec-head .g {
  font-size: var(--fs-helper);
  opacity: 0.85;
}

.rec-head .big {
  font-size: 28px;
  font-weight: 700;
  margin: 6px 0 2px;
}

.rec-head .sub {
  font-size: 11px;
  opacity: 0.9;
}

.rec-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px;
  margin: 0 16px 10px;
  box-shadow: var(--shadow);
}

.rec-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.rec-top .t {
  font-size: 15px;
  font-weight: 600;
}

.rec-meta {
  font-size: 11px;
  color: var(--text2);
  margin-top: 5px;
}

.rec-grid {
  display: flex;
  border-top: 1px dashed var(--line);
  margin-top: 11px;
  padding-top: 10px;
}

.rec-grid > div {
  flex: 1;
  text-align: center;
  font-size: 10px;
  color: var(--text2);
}

.rec-grid b {
  display: block;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 2px;
}

/* ---------------- 老师简历 / 资质 ---------------- */
.resume-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  padding: 22px 18px;
}

.resume-hero .avatar {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  font-size: 23px;
  background: rgba(255, 255, 255, 0.25);
}

.resume-hero b {
  font-size: 18px;
}

.resume-hero p {
  font-size: var(--fs-helper);
  opacity: 0.9;
  margin: 4px 0 0;
}

.credit-hero {
  background: linear-gradient(135deg, #1e7a5a, #0a5e42);
  color: #fff;
  padding: 24px 18px 20px;
  text-align: center;
}

.credit-score {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
}

.credit-score small {
  font-size: 14px;
  font-weight: 400;
  opacity: 0.85;
}

.credit-label {
  font-size: 13px;
  opacity: 0.95;
  margin-top: 4px;
}

.credit-level {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 4px 14px;
  font-size: var(--fs-helper);
  margin-top: 12px;
}

.credit-gauge {
  height: 8px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 5px;
  margin: 18px 16px 0;
  overflow: hidden;
}

.credit-gauge i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #ffd76a, #ffb02e);
  border-radius: 5px;
}

.credit-stats {
  display: flex;
  background: var(--card);
  margin: 14px 16px;
  border-radius: var(--radius);
  padding: 14px 0;
  box-shadow: var(--shadow);
}

.credit-stats > div {
  flex: 1;
  text-align: center;
  border-right: 1px solid var(--line);
}

.credit-stats > div:last-child {
  border: 0;
}

.credit-stats b {
  display: block;
  font-size: 18px;
  color: var(--brand-dark);
}

.credit-stats span {
  display: block;
  font-size: 11px;
  color: var(--text2);
  margin-top: 2px;
}

.parent-review {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px;
  margin: 0 16px 10px;
  box-shadow: var(--shadow);
}

.parent-review .pr-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.parent-review .pr-av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.parent-review .pr-name b {
  font-size: 13px;
  display: block;
}

.parent-review .pr-name span {
  font-size: 10px;
  color: var(--text2);
}

.parent-review .pr-star {
  color: #f5a623;
  font-size: 13px;
  margin-left: auto;
}

.parent-review .pr-text {
  font-size: var(--fs-helper);
  color: var(--text);
  line-height: 1.65;
  margin: 10px 0 6px;
}

.parent-review .pr-time {
  font-size: 10px;
  color: var(--text2);
}

/* ---------------- 协议页 ---------------- */
.legal-doc {
  background: var(--card);
  margin: 12px 16px;
  border-radius: var(--radius);
  padding: 18px;
}

.legal-doc h2 {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-dark);
  margin: 18px 0 8px;
  padding-left: 9px;
  border-left: 3px solid var(--brand);
}

.legal-doc p {
  font-size: var(--fs-body);
  color: #4a4a4a;
  line-height: 1.85;
  margin: 8px 0;
}

.legal-doc .intro {
  background: var(--brand-light);
  padding: 10px 12px;
  border-radius: 8px;
  line-height: 1.75;
}

/* ---------------- 客服热线 ---------------- */
.hotline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 16px 0;
  padding: 14px;
  background: var(--brand-light);
  border: 1px solid rgba(200, 164, 92, 0.25);
  border-radius: var(--radius);
}

.hotline .hicon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
}

.hotline .htext {
  flex: 1;
  min-width: 0;
}

.hotline .htext b {
  display: block;
  font-size: 15px;
  color: var(--brand-dark);
}

.hotline .htext span {
  display: block;
  font-size: 11px;
  color: var(--text2);
  margin-top: 2px;
}

.hotline .hcall {
  padding: 8px 14px;
  border-radius: 18px;
  background: var(--brand);
  color: #fff;
  font-size: var(--fs-helper);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

/* ---------------- PC 端补充 ---------------- */
@media (min-width: 768px) {
  .page > .cellgroup,
  .page > .demand-card,
  .page > .teacher,
  .page > .ordercard,
  .page > .fav-card,
  .page > .feecard,
  .page > .rec-card,
  .page > .parent-review,
  .page > .case-list-card,
  .page > .art-card {
    margin-left: 0;
    margin-right: 0;
  }

  .page > .section-h {
    margin-left: 0;
    margin-right: 0;
  }

  .fixbar {
    position: sticky;
  }
}

/* =========================================================
   admin 后台
   ========================================================= */

/* ---------------- 工作台 ---------------- */
.adm-hero {
  background: linear-gradient(135deg, #2c3e50, #3d566e);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 12px;
  color: #fff;
}
.adm-hero-t { font-size: 18px; font-weight: 600; }
.adm-hero-s { font-size: 12px; opacity: 0.82; margin-top: 8px; line-height: 1.7; }
.adm-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
}
.adm-all-btn:active { background: rgba(255, 255, 255, 0.24); }
@media (min-width: 768px) {
  .adm-all-btn { display: none; }
}

.adm-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}
@media (min-width: 768px) {
  .adm-cards { grid-template-columns: repeat(4, 1fr); }
}
.adm-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.adm-card-ic { font-size: 20px; }
.adm-card-v {
  font-size: 24px;
  font-weight: 700;
  color: var(--brand-dark);
  margin: 6px 0 2px;
}
.adm-card-l { font-size: 12px; color: var(--text2); }

.adm-sec {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.adm-sec-h {
  font-size: var(--fs-title);
  font-weight: 600;
  margin-bottom: 12px;
  padding-left: 9px;
  border-left: 3px solid var(--brand);
}

.adm-users {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  text-align: center;
}
.adm-user b { display: block; font-size: 19px; color: var(--brand-dark); }
.adm-user span { font-size: 11px; color: var(--text2); }

.adm-trend {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
  min-height: 92px;
}
.adm-trend-item { flex: 1; text-align: center; }
.adm-trend-bar {
  width: 100%;
  max-width: 26px;
  margin: 0 auto;
  background: linear-gradient(180deg, var(--brand), var(--brand-dark));
  border-radius: 4px 4px 0 0;
}
.adm-trend-n { font-size: 11px; color: var(--text); margin-top: 4px; }
.adm-trend-d { font-size: 10px; color: var(--text3); }

.adm-quick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (min-width: 768px) {
  .adm-quick { grid-template-columns: repeat(6, 1fr); }
}
.adm-q {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px 8px;
  text-align: center;
  font-size: 12px;
  box-shadow: var(--shadow);
  cursor: pointer;
}

/* ---------------- 筛选栏 / Tab ---------------- */
.adm-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 12px;
}
.adm-tabs.sub { margin-top: -4px; }
.adm-tab {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 13px;
  color: var(--text2);
  cursor: pointer;
  white-space: nowrap;
}
.adm-tab.on {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 500;
}

.adm-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
/* 多筛选项时允许换行，搜索框保持最小宽度 */
.adm-bar-wrap { flex-wrap: wrap; }
.adm-bar-wrap .adm-search { flex: 1 1 240px; }
.adm-bar-wrap .adm-sel { flex: 0 0 126px; }
.adm-search { flex: 1; min-width: 0; }
.adm-sel { flex: 0 0 118px; }

/* ---------------- 列表行 ---------------- */
.adm-card-row {
  background: var(--card);
  border-radius: var(--radius);
  padding: 13px 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
}
.adm-row-h {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: var(--fs-body);
  margin-bottom: 6px;
}
.adm-row-h b { font-size: var(--fs-title); }
.adm-row-m {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.75;
  word-break: break-all;
}
.adm-row-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.adm-desc {
  font-size: 13px;
  color: var(--text);
  line-height: 1.8;
  margin-top: 8px;
  padding: 9px 11px;
  background: var(--bg);
  border-radius: 9px;
  white-space: pre-wrap;
}

/* ---------------- 详情 ---------------- */
.adm-detail { animation: admFade 0.2s ease; }
@keyframes admFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.adm-kv {
  display: flex;
  gap: 12px;
  font-size: 13px;
  line-height: 1.9;
  padding: 5px 0;
  border-bottom: 1px dashed var(--line);
}
.adm-kv span { flex: 0 0 84px; color: var(--text2); }
.adm-kv b { flex: 1; font-weight: 500; word-break: break-all; }

.adm-sub {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.adm-sub:last-child { border-bottom: 0; }

/* ---------------- 分页 ---------------- */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 0 4px;
}
.pbtn {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 8px;
  padding: 6px 13px;
  font-size: 12px;
  color: var(--text);
  cursor: pointer;
}
.pbtn:disabled { opacity: 0.45; cursor: not-allowed; }
.pinfo { font-size: 12px; color: var(--text2); }

/* ---------------- 老师选择 ---------------- */
.adm-teacher-opt {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.adm-teacher-opt b { font-size: 14px; }
.adm-teacher-opt span { font-size: 12px; color: var(--text2); }

/* ---------------- 正文编辑器 ---------------- */
.adm-editor {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.adm-editor-bar {
  display: flex;
  gap: 8px;
  padding: 9px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.adm-blk {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  border-bottom: 1px solid var(--line);
}
.adm-blk:last-child { border-bottom: 0; }
.adm-blk-tag {
  flex: 0 0 auto;
  font-size: 11px;
  color: var(--brand-dark);
  background: var(--brand-light);
  border-radius: 5px;
  padding: 3px 7px;
}
.adm-blk input { flex: 1; min-width: 0; border: 0; }
.adm-blk-del {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border: 0;
  background: var(--red-bg);
  color: var(--red);
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
}

/* ---------------- 全局配置 ---------------- */
.adm-cfg {
  background: var(--card);
  border-radius: var(--radius);
  padding: 13px 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
}
.adm-cfg-h {
  display: flex;
  gap: 9px;
  align-items: baseline;
  margin-bottom: 9px;
  font-size: 13px;
}
.adm-cfg textarea { font-family: inherit; }

/* ---------------- 科目配置 ---------------- */
.adm-subj-list { display: flex; flex-direction: column; gap: 8px; }
.adm-subj-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.adm-subj-row .adm-blk-del { flex: 0 0 auto; }
@media (max-width: 767px) {
  .adm-subj-row { flex-wrap: wrap; }
  .adm-subj-row .adm-blk-del { margin-left: auto; }
}

/* =====================================================================
 * 后台 · 站点设置（adminSettings）
 * ===================================================================== */
.adm-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
}
.adm-form .fgroup { margin: 0; }
.adm-form .fgroup > label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text1);
}
.adm-form .input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  color: var(--text1);
}
.adm-form .input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(200, 164, 92, .12);
}
.fhint {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--text2);
}
.frow {
  display: flex;
  gap: 8px;
}
.frow .input { flex: 1 1 0; min-width: 0; }
@media (max-width: 767px) {
  .frow { flex-direction: column; }
}

/* 预览区 */
.adm-preview {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}
.pv-card {
  padding: 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2c3e50, #1a1a1a);
  color: #fff;
}
.pv-site {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
}
.pv-phone {
  font-size: 15px;
  font-weight: 500;
  color: var(--brand);
}
.pv-hint {
  margin-top: 5px;
  font-size: 12px;
  opacity: .78;
  line-height: 1.6;
}
.pv-trust {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.pv-trust-item {
  flex: 1 1 90px;
  padding: 12px 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  text-align: center;
}
.pv-trust-item b {
  display: block;
  font-size: 17px;
  color: var(--brand);
}
.pv-trust-item span {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: var(--text2);
}
.pv-line {
  padding: 9px 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--text1);
}
.pv-note {
  font-size: 11px;
  line-height: 1.7;
  color: var(--text2);
}

/* 登录方式切换 */
.login-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line, rgba(0,0,0,.08));
  margin-bottom: 18px;
}
.login-tab {
  flex: 1;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 10px 4px;
  font-size: 14px;
  color: var(--text2);
  cursor: pointer;
}
.login-tab.on {
  color: var(--brand, #c8a45c);
  border-bottom-color: var(--brand, #c8a45c);
  font-weight: 500;
}

/* 注册身份选择：家长 / 老师 */
.rg-roles {
  display: flex;
  gap: 10px;
}
.rg-role {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 6px;
  border: 1.5px solid var(--line, #ebedf0);
  border-radius: 12px;
  background: var(--card, #fff);
  color: var(--text2, #8a8a8a);
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.rg-role .ri { font-size: 26px; line-height: 1.2; }
.rg-role .rt { font-size: 13px; font-weight: 600; color: var(--text, #1a1a1a); }
.rg-role .rd { font-size: 11px; }
.rg-role.on {
  border-color: var(--brand, #c8a45c);
  background: var(--brand-light, #f7f0de);
  color: var(--brand-dark, #a8873f);
}
.rg-role.on .rt { color: var(--brand-dark, #a8873f); }

/* 登录页：注册 / 忘记密码 快捷入口 */
.login-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  font-size: 12px;
}
.login-links a {
  color: var(--brand, #c8a45c);
  cursor: pointer;
  text-decoration: none;
}
.login-links a:hover {
  text-decoration: underline;
}

/* =========================================================
   城市分站选择器
   ========================================================= */
.city-picker {
  width: 100%;
  max-width: 380px;
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
}
.city-picker .cp-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 12px;
  font-size: 15px;
  border-bottom: 1px solid var(--line);
}
.city-picker .cp-h b {
  font-weight: 600;
}
.city-picker .cp-close {
  font-size: 15px;
  color: var(--text3);
  cursor: pointer;
  padding: 2px 6px;
}
.city-picker .cp-list {
  max-height: 46vh;
  overflow-y: auto;
  padding: 6px 0;
}
/* 更多城市选择：与门户金色调一致（参考主流家教站入口） */
.city-picker .cp-more {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  font-size: 14px;
  font-weight: 600;
  color: #b9862f;
  cursor: pointer;
  border-top: 1px solid var(--line);
  text-decoration: none;
}
.city-picker .cp-more:hover { background: var(--brand-light); color: #7a5c28; }
.city-picker .city-opt {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 13px 18px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  border-left: 3px solid transparent;
}
.city-picker .city-opt:hover {
  background: var(--brand-light);
}
.city-picker .city-opt.on {
  border-left-color: var(--brand);
  font-weight: 600;
  color: var(--brand-dark);
}
.city-picker .city-opt .cn {
  /* 城市名统一居中；右侧的「默认」标签与「✓」用绝对定位贴边，
     避免两种标记宽度不同把城市名挤歪（新乡市 / 西安市 不对齐） */
  flex: none;
  text-align: center;
}
.city-picker .city-opt .ct {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: var(--brand-dark);
  background: var(--brand-light);
  border-radius: 5px;
  padding: 2px 6px;
  white-space: nowrap;
}
.city-picker .city-opt .ck {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brand);
  font-weight: 700;
}
.city-picker .cp-tip {
  padding: 11px 18px;
  font-size: 11px;
  color: var(--text3);
  border-top: 1px solid var(--line);
  background: var(--bg);
  line-height: 1.6;
}

/* ---------------- 用户详情弹窗 ---------------- */
.ud-wrap { font-size: 13px; line-height: 1.7; }
.ud-loading { padding: 40px 0; text-align: center; color: var(--text2); }
.ud-sec { margin-bottom: 22px; }
.ud-sec:last-child { margin-bottom: 0; }
.ud-sec h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-dark);
  margin: 0 0 10px;
  padding-left: 10px;
  border-left: 3px solid var(--brand);
}
.ud-sub { margin-top: 12px; }
.ud-sub > b { display: block; margin-bottom: 6px; color: var(--text2); font-size: 13px; }
.ud-pwd-btn { margin-left: 8px; flex: 0 0 auto !important; }
.ud-cred-hint { font-size: 12px; color: var(--text3); padding-top: 8px; }
.ud-empty {
  padding: 14px;
  text-align: center;
  color: var(--text3);
  background: var(--bg);
  border-radius: 8px;
  font-size: 12px;
}
.ud-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 10px;
  margin: 4px 0 18px;
}
.ud-stat {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
}
.ud-stat b { display: block; font-size: 18px; color: var(--brand-dark); line-height: 1.3; }
.ud-stat span { display: block; font-size: 11px; color: var(--text2); margin-top: 2px; }
.ud-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.ud-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.ud-table th, .ud-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  vertical-align: top;
}
.ud-table th { background: var(--bg); color: var(--text2); font-weight: 600; position: sticky; top: 0; }
.ud-table td { color: var(--text); white-space: normal; min-width: 60px; }
.ud-table tr:last-child td { border-bottom: 0; }

/* ---------------- 站务消息 / 客服会话（双向聊天） ---------------- */
.cv-entry {
  display: flex; align-items: center; gap: 10px; margin: 12px 16px 0;
  padding: 12px 14px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); cursor: pointer; transition: border-color .15s, background .15s;
}
.cv-entry:hover { border-color: var(--brand); background: var(--bg); }
.cv-entry-ic {
  width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%;
  background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.cv-entry-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cv-entry-body b { font-size: 13px; color: var(--text); }
.cv-entry-body em { font-size: 11px; color: var(--text2); font-style: normal; }
.cv-entry-arrow { color: var(--text2); font-size: 20px; }

.cv-shell {
  display: flex; height: calc(100vh - 190px); min-height: 520px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.cv-front { height: calc(100vh - 320px); }
.cv-side {
  width: 310px; flex: 0 0 310px; min-width: 0;
  display: flex; flex-direction: column; border-right: 1px solid var(--line);
}
.cv-side-head {
  padding: 13px 14px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.cv-side-title { font-size: 15px; font-weight: 700; color: var(--text); }
.cv-side-sub { font-size: 11px; color: var(--text2); margin-top: 3px; }
.cv-side-btns { display: flex; gap: 6px; flex-shrink: 0; }
.cv-filters { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.cv-sel { width: 108px; flex: 0 0 108px; padding: 7px 8px; font-size: 12px; }
.cv-search { flex: 1; min-width: 0; padding: 7px 9px; font-size: 12px; }
.cv-list { flex: 1; overflow-y: auto; min-height: 0; }
.cv-item {
  width: 100%; display: flex; align-items: flex-start; gap: 9px;
  padding: 11px 12px; background: transparent; border: 0; border-bottom: 1px solid var(--line);
  text-align: left; cursor: pointer; position: relative; color: var(--text);
}
.cv-item:hover { background: var(--bg); }
.cv-item.on { background: var(--bg); box-shadow: inset 3px 0 0 var(--brand); }
.cv-avatar {
  width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%;
  background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.cv-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cv-item-line1 { display: flex; justify-content: space-between; gap: 6px; align-items: baseline; }
.cv-item-line1 b { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-item-line1 time { font-size: 10px; color: var(--text2); flex-shrink: 0; }
.cv-item-line2 { font-size: 11px; color: var(--text2); }
.cv-item-line2 em { font-style: normal; }
.cv-item-line3 { font-size: 12px; color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-badge {
  position: absolute; right: 10px; bottom: 9px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 9px; background: #d94f4f; color: #fff; font-size: 10px; line-height: 17px; text-align: center;
}

.cv-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cv-main-head {
  height: 50px; flex: 0 0 50px; padding: 0 16px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px; font-size: 14px;
}
.cv-main-head b { font-size: 14px; font-weight: 700; }
.cv-head-sub, .cv-head-muted { font-size: 12px; color: var(--text2); font-weight: 400; }
.cv-thread { flex: 1; min-height: 0; overflow-y: auto; padding: 16px; background: var(--bg); }
.cv-empty { height: 100%; display: flex; align-items: center; justify-content: center; color: var(--text2); font-size: 13px; }
.cv-row { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 16px; }
.cv-row.me { flex-direction: row-reverse; }
.cv-row-av {
  width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; background: var(--card);
  display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--brand-dark);
}
.cv-row.me .cv-row-av { background: var(--brand); color: #fff; }
.cv-row-main { max-width: 74%; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cv-row.me .cv-row-main { align-items: flex-end; }
.cv-row-name { font-size: 10px; color: var(--text2); }
.cv-bubble {
  padding: 10px 13px; background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; font-size: 13px; line-height: 1.7; color: var(--text); word-break: break-word;
}
.cv-row.me .cv-bubble { background: var(--brand); border-color: var(--brand); color: #fff; }
.cv-compose { flex-shrink: 0; border-top: 1px solid var(--line); padding: 10px 12px; background: var(--card); }
.cv-textarea { width: 100%; resize: none; font-size: 13px; line-height: 1.6; }
.cv-compose-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.cv-hint { font-size: 11px; color: var(--text2); }
.cv-back { display: none; background: none; border: 0; font-size: 24px; color: var(--text); cursor: pointer; line-height: 1; }

.cv-pick-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.cv-pick-tab {
  flex: 1; padding: 7px 6px; font-size: 12px; background: var(--bg); color: var(--text2);
  border: 1px solid var(--line); border-radius: 6px; cursor: pointer;
}
.cv-pick-tab.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.cv-pick-search { width: 100%; margin-bottom: 8px; font-size: 12px; }
.cv-pick-list { max-height: 260px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; }
.cv-pick-item {
  width: 100%; display: flex; align-items: center; gap: 9px; padding: 9px 10px;
  background: transparent; border: 0; border-bottom: 1px solid var(--line); text-align: left; cursor: pointer; color: var(--text);
}
.cv-pick-item:hover { background: var(--bg); }
.cv-pick-item b { font-size: 12px; display: block; }
.cv-pick-item em { font-size: 11px; color: var(--text2); font-style: normal; display: block; margin-top: 2px; }
.cv-pick-go { margin-left: auto; color: var(--text2); font-size: 18px; }

@media (max-width: 760px) {
  .cv-shell, .cv-front { height: calc(100vh - 150px); min-height: 460px; border-radius: 0; border-left: 0; border-right: 0; }
  .cv-side { width: 100%; flex: 1; border-right: 0; }
  .cv-main { display: none; }
  .cv-shell.cv-mobile-open .cv-side { display: none; }
  .cv-shell.cv-mobile-open .cv-main { display: flex; }
  .cv-back { display: inline-block; }
  .cv-filters { flex-wrap: wrap; }
  .cv-sel { width: 100%; flex: 1 1 100%; }
  .cv-hint { max-width: 60%; }
}

/* =====================================================================
   desktop.css —— PC 端界面增强（主流家教网风格）
   仅在大屏（≥900px）生效，移动端完全不受影响。
   在保留原有视觉风格基础上：加宽内容、老师卡片宫格、筛选更清晰。
   ===================================================================== */

@media (min-width: 900px) {
  /* 内容区更宽更居中 */
  #view { padding: 22px 32px 40px; }
  .page-inner { max-width: 1200px; margin: 0 auto; }

  /* 首页顶部：城市 + 搜索同一行，更像门户 */
  .sitebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 6px;
  }
  .home-search {
    max-width: 720px;
    height: 46px;
    margin-top: 8px;
    font-size: 14px;
  }

  /* 首页 Banner 更高更大气 */
  .banner { height: 260px; border-radius: 16px; }
  .banner .btext .bt1 { font-size: 34px; }
  .banner .btext .bt2 { font-size: 17px; }
  .banner .bart { font-size: 92px; right: 8%; }

  /* 双入口卡片并排加高 */
  .entry2 .e { min-height: 104px; padding: 20px 24px; }
  .entry2 .e h4 { font-size: 19px; }
  .entry2 .e p { font-size: 13px; }

  /* 精选专题 5 列等宽（含「我的预约」） */
  .topics .tg { grid-template-columns: repeat(5, 1fr); gap: 14px; }
  .topics .ti { min-height: 96px; padding: 16px 18px; }
  .topics .ti.e { grid-column: auto; }

  /* 老师列表：PC 端双列宫格 */
  #hmTeachers,
  #ltList,
  .teacher-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .teacher {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 20px;
    transition: box-shadow 0.18s, transform 0.18s;
    background: var(--card);
  }
  .teacher:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
  }
  .teacher .name { font-size: 17px; }
  .teacher .meta { font-size: 13px; }
  .teacher .bottom .price { font-size: 19px; }

  /* 板块标题更醒目 */
  .section-h { margin: 26px 0 12px; }
  .section-h h3 { font-size: 19px; }

  /* 首页金刚区/信任区卡片更舒展 */
  .king-grid, .trust-row { gap: 16px; }
}

/* 大屏超宽：老师三列 */
@media (min-width: 1440px) {
  #hmTeachers,
  #ltList,
  .teacher-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* =====================================================================
   后台工作台 · PC 端优化
   保持原有金灰配色，只调整密度、层级与留白。
   ===================================================================== */
@media (min-width: 900px) {
  .sidebar {
    padding-top: 22px;
  }
  .sidebar .sb-logo {
    padding-bottom: 20px;
    margin-bottom: 10px;
  }
  .sidebar .sb-group {
    padding-top: 12px;
    font-weight: 600;
  }
  .sidebar .sb-item {
    margin: 0 10px 2px;
    padding: 9px 10px;
    border-radius: 8px;
    border-left-width: 0;
  }
  .sidebar .sb-item.on {
    border-left-width: 3px;
  }
  .sidebar .sb-foot {
    margin: 18px 10px 0;
    padding-left: 8px;
    padding-right: 8px;
  }

  .topbar {
    padding: 0 24px;
  }
  .topbar .nav-title {
    font-size: 19px;
  }

  .adm-hero {
    padding: 22px 26px;
    margin-bottom: 16px;
  }
  .adm-hero-t { font-size: 20px; }
  .adm-hero-s { font-size: 13px; margin-top: 10px; }

  .adm-cards { gap: 14px; margin-bottom: 16px; }
  .adm-card {
    border: 1px solid var(--line);
    padding: 18px 20px;
    transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
  }
  .adm-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand);
  }
  .adm-card-v { font-size: 30px; margin: 8px 0 4px; }
  .adm-card-l { font-size: 13px; }

  .adm-sec { padding: 18px 20px; margin-bottom: 16px; }
  .adm-sec-h { font-size: 17px; margin-bottom: 16px; }

  .adm-desktop-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .adm-quick-title {
    font-size: 17px;
    font-weight: 600;
    margin: 20px 0 10px;
    padding-left: 9px;
    border-left: 3px solid var(--brand);
  }
  .adm-q {
    padding: 16px 10px;
    font-size: 13px;
    border: 1px solid transparent;
    transition: border-color 0.18s, transform 0.18s;
  }
  .adm-q:hover {
    border-color: var(--brand);
    transform: translateY(-1px);
  }
}

@media (min-width: 1100px) {
  .sidebar { width: 232px; flex-basis: 232px; }
  .page-inner { max-width: 1280px; }
  .adm-desktop-grid {
    grid-template-columns: 1fr 1.5fr;
  }
  .adm-trend { min-height: 112px; }
  .adm-trend-bar { max-width: 32px; }
}

/* 后台分站前缀列在中等屏幕下缩小字号，避免文字挤压 */
@media (min-width: 900px) and (max-width: 1180px) {
  .admin-thead.city-prefix-table,
  .admin-row.city-prefix-table {
    font-size: 12px;
  }
}

/* =====================================================================
   portal.css —— 电脑版门户首页（旧版 PC 模板复原）
   ≥900px 首页隐藏原 SPA 侧栏/顶栏，全宽展示门户；
   <900px 门户整体隐藏，移动端沿用 prototype-mobile.css 的原型样式。
   ===================================================================== */

.pc-portal { display: none; }

/* 门户通用容器与按钮 */
.pt-wrap { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }
.pt-btn-line,
.pt-btn-primary,
.pt-btn-teal,
.pt-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 8px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: .2s;
  white-space: nowrap;
  font-family: inherit;
}
.pt-btn-line { background: #fff; color: #7a5c28; border: 1px solid #9c7a3c; }
.pt-btn-line:hover { background: #f4ecd8; }
.pt-btn-primary { background: linear-gradient(135deg, #b9862f, #7a5c28); color: #fff; box-shadow: 0 6px 16px rgba(156,122,60,.28); }
.pt-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(156,122,60,.36); }
.pt-btn-teal { background: #0d6e63; color: #fff; height: 44px; padding: 0 26px; }
.pt-btn-teal:hover { background: #09564e; }
.pt-btn-ghost { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.5); }
.pt-btn-ghost:hover { background: rgba(255,255,255,.26); }
.pt-btn-lg { padding: 14px 30px; font-size: 15px; }
.pt-tag { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 5px; background: #f4ecd8; color: #7a5c28; }
.pt-tag.teal { background: #e2f2ef; color: #0d6e63; }

/* 顶部工具条 */
.pt-toolbar { background: #2e2a22; color: #d9d2c2; font-size: 12px; height: 34px; line-height: 34px; }
.pt-toolbar .pt-wrap { display: flex; justify-content: space-between; }
.pt-l span { margin-right: 20px; }
.pt-city { cursor: pointer; color: #f0c25a; font-weight: 600; }
.pt-city:hover { color: #fff; }
.pt-r > span { margin-left: 20px; cursor: pointer; }
.pt-r > span:hover { color: #fff; }
.pt-r b { color: #f0c25a; }
/* 登录态账号区：登录后显示账户名，不再出现「登录/免费注册」 */
.pt-auth-slot { display: inline-flex; align-items: center; gap: 14px; }
.pt-auth-link { color: #d9d2c2; }
.pt-msg { position: relative; display: inline-flex; align-items: center; color: #d9d2c2; white-space: nowrap; }
.pt-msg:hover { color: #fff; }
.pt-msg .dot-badge { position: absolute; top: -9px; right: -13px; background: #e04b4b; color: #fff; font-size: 10px; line-height: 1.4; border-radius: 9px; padding: 1px 5px; min-width: 16px; text-align: center; }
.pt-user { display: inline-flex; align-items: center; gap: 6px; color: #f0c25a; }
.pt-user:hover { color: #fff; }
.pt-user-avatar { width: 18px; height: 18px; border-radius: 50%; background: #f0c25a; color: #2e2a22; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.pt-user-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-auth-logout { padding-left: 14px; border-left: 1px solid #5c574c; color: #d9d2c2; }
.pt-auth-logout:hover { color: #fff; }

/* 主导航 */
.pt-header { background: #fff; position: relative; z-index: 10; box-shadow: 0 2px 12px rgba(0,0,0,.05); }
.pt-header .pt-hd { display: flex; align-items: center; height: 74px; gap: 22px; }
.pt-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; cursor: pointer; }
.pt-logo .lm { width: 42px; height: 42px; border-radius: 11px; background: linear-gradient(135deg,#b9862f,#7a5c28); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; box-shadow: 0 4px 12px rgba(156,122,60,.3); }
.pt-logo .lt b { display: block; font-size: 19px; letter-spacing: 1px; color: #7a5c28; line-height: 1.2; }
.pt-logo .lt span { font-size: 10px; color: #8a8578; letter-spacing: 1px; }
.pt-nav { display: flex; gap: 2px; flex: 1; }
.pt-nav a { padding: 10px 13px; font-size: 15px; border-radius: 7px; color: #4a463d; cursor: pointer; transition: .2s; position: relative; white-space: nowrap; }
.pt-nav a:hover { background: #f4ecd8; color: #7a5c28; }
.pt-nav a.on { color: #7a5c28; font-weight: 700; }
.pt-nav a.on::after { content: ""; position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%); width: 18px; height: 3px; background: #b9862f; border-radius: 2px; }
.pt-search { display: flex; align-items: center; background: #f5f2ea; border: 1px solid #ece8dd; border-radius: 20px; padding: 0 6px 0 12px; height: 36px; width: 190px; gap: 6px; flex-shrink: 0; }
.pt-search input { border: 0; background: transparent; outline: 0; flex: 1; font-size: 13px; color: #1f1e1b; min-width: 0; }
.pt-search button { border: 0; background: transparent; cursor: pointer; font-size: 15px; }
.pt-hd-cta { display: flex; gap: 10px; flex-shrink: 0; }

/* 公共区块标题 */
.pt-sech { text-align: center; margin-bottom: 34px; }
.pt-sech .kicker { font-size: 13px; color: #b9862f; font-weight: 700; letter-spacing: 3px; margin-bottom: 8px; }
.pt-sech h2 { font-size: 30px; font-weight: 800; color: #26231d; letter-spacing: 1px; }
.pt-sech p { color: #8a8578; font-size: 14px; margin-top: 10px; }
.pt-loading { text-align: center; color: #8a8578; padding: 36px 0; }
.pt-more { text-align: center; margin-top: 30px; }

/* Hero */
.pt-hero { background: linear-gradient(115deg,#0a5d54,#0d6e63 55%,#16806f); color: #fff; padding: 60px 0 66px; position: relative; overflow: hidden; }
.pt-hero::before { content: ""; position: absolute; right: -80px; top: -120px; width: 460px; height: 460px; border-radius: 50%; border: 40px solid rgba(255,255,255,.05); }
.pt-hero::after { content: ""; position: absolute; right: 120px; bottom: -160px; width: 300px; height: 300px; border-radius: 50%; background: rgba(240,194,90,.1); }
.pt-hc { display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; position: relative; z-index: 2; }
.pt-htext h1 { font-size: 46px; line-height: 1.25; font-weight: 800; letter-spacing: 1px; }
.pt-htext h1 em { font-style: normal; color: #f7cf6b; }
.pt-lead { font-size: 17px; opacity: .92; margin: 16px 0 26px; letter-spacing: .5px; }
.pt-hsearch { background: #fff; border-radius: 14px; padding: 8px; display: flex; gap: 8px; box-shadow: 0 12px 30px rgba(0,0,0,.18); max-width: 540px; }
.pt-hsearch select,
.pt-hsearch input { border: 1px solid #ece8dd; border-radius: 8px; height: 44px; padding: 0 12px; font-size: 14px; color: #1f1e1b; background: #fff; outline: 0; }
.pt-hsearch select { width: 110px; }
.pt-hsearch input { flex: 1; min-width: 0; }
.pt-points { display: flex; gap: 22px; margin-top: 20px; font-size: 13px; opacity: .92; }
.pt-stats { display: grid; grid-template-columns: repeat(4,1fr); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); border-radius: 14px; margin-top: 34px; max-width: 720px; }
.pt-stats div { text-align: center; padding: 16px 8px; border-right: 1px solid rgba(255,255,255,.16); }
.pt-stats div:last-child { border: 0; }
.pt-stats b { display: block; font-size: 26px; color: #f7cf6b; font-weight: 800; }
.pt-stats span { font-size: 12px; opacity: .85; }
.pt-art { display: flex; align-items: center; justify-content: center; position: relative; min-height: 320px; }
.pt-art .pt-big { font-size: 160px; filter: drop-shadow(0 18px 26px rgba(0,0,0,.28)); }
.pt-art .pt-f1 { position: absolute; top: 24px; left: 30px; font-size: 54px; animation: ptfloat 4s ease-in-out infinite; }
.pt-art .pt-f2 { position: absolute; bottom: 30px; right: 36px; font-size: 60px; animation: ptfloat 5s ease-in-out infinite reverse; }
.pt-art .pt-f3 { position: absolute; top: 70px; right: 10px; font-size: 40px; animation: ptfloat 3.5s ease-in-out infinite; }
@keyframes ptfloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* 内页 SEO 直出卡片（爬虫可读静态内容，客户端接管后替换为交互视图） */
.seo-ssr-page { max-width: 1080px; margin: 0 auto; padding: 40px 18px 64px; }
.seo-ssr-head { text-align: center; margin-bottom: 32px; }
.seo-ssr-head .kicker { font-size: 13px; color: #b9862f; font-weight: 700; letter-spacing: 3px; }
.seo-ssr-head h1 { font-size: 30px; font-weight: 800; color: #26231d; margin: 8px 0; }
.seo-ssr-head p { color: #8a8578; font-size: 14px; }
.seo-card-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.seo-card { background: #fff; border: 1px solid #e6e0d2; border-radius: 12px; padding: 16px 18px; }
.seo-card-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.seo-card-h b { font-size: 16px; color: #26231d; }
.seo-tag { font-size: 11px; color: #0d6e63; background: #eaf5f2; border-radius: 999px; padding: 2px 9px; }
.seo-card-m { font-size: 13px; color: #5a554a; line-height: 1.7; }
.seo-card-f { font-size: 12px; color: #9a9384; margin-top: 8px; }
.seo-empty { text-align: center; color: #9a9384; padding: 30px; grid-column: 1 / -1; }
@media (max-width: 640px) { .seo-card-grid { grid-template-columns: 1fr; } }
/* 文章详情页 SSR 正文（爬虫可读，客户端接管前显示） */
.seo-article-detail { max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid #e6e0d2; border-radius: 12px; padding: 28px 30px; }
.seo-article-detail h1 { font-size: 26px; font-weight: 800; color: #26231d; line-height: 1.4; margin: 12px 0; }
.seo-article-meta { font-size: 12px; color: #9a9384; margin-bottom: 16px; }
.seo-article-lead { font-size: 15px; color: #5a554a; line-height: 1.8; padding: 12px 16px; background: #faf7f0; border-left: 3px solid #b9862f; border-radius: 4px; margin: 0 0 20px; }
.seo-article-body { font-size: 15px; color: #3d3a33; line-height: 1.9; }
.seo-article-body h2 { font-size: 19px; font-weight: 700; color: #26231d; margin: 24px 0 10px; }
.seo-article-body p { margin: 0 0 14px; }
.seo-article-kw { margin-top: 24px; font-size: 12px; color: #9a9384; }
.seo-article-kw span { display: inline-block; background: #f2eee4; border-radius: 999px; padding: 3px 10px; margin: 0 6px 6px 0; color: #6e685b; }

/* 本地家教概况（分站 SEO 差异化正文） */
.pt-local-intro { background: #f7f4ec; padding: 42px 0 38px; }
.pt-local-intro .pt-sech { margin-bottom: 22px; }
.pt-intro-text { max-width: 960px; margin: 0 auto; font-size: 15px; line-height: 2; color: #4a463c; text-align: center; }
.pt-intro-tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px; }
.pt-intro-tags span { display: inline-block; font-size: 13px; color: #0d6e63; background: #fff; border: 1px solid #cfc7b2; border-radius: 999px; padding: 6px 16px; }
.pt-intro-teachers { max-width: 760px; margin: 24px auto 0; text-align: left; }
.pt-intro-teachers h3 { font-size: 15px; color: #26231d; margin-bottom: 10px; text-align: center; }
.pt-intro-teachers ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2,1fr); gap: 6px 20px; }
.pt-intro-teachers li { font-size: 13px; color: #5a554a; line-height: 1.8; padding-left: 14px; position: relative; }
.pt-intro-teachers li::before { content: "·"; position: absolute; left: 2px; color: #b9862f; font-weight: 700; }
.pt-intro-demands { max-width: 760px; margin: 20px auto 0; text-align: left; }
.pt-intro-demands h3 { font-size: 15px; color: #26231d; margin-bottom: 10px; text-align: center; }
.pt-intro-demands ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2,1fr); gap: 6px 20px; }
.pt-intro-demands li { font-size: 13px; color: #5a554a; line-height: 1.8; padding-left: 14px; position: relative; }
.pt-intro-demands li::before { content: "▸"; position: absolute; left: 0; color: #b9862f; }
@media (max-width: 640px) { .pt-intro-teachers ul, .pt-intro-demands ul { grid-template-columns: 1fr; } }

/* 四步流程 */
.pt-flow { background: #fff; padding: 50px 0 44px; }
.pt-steps { display: grid; grid-template-columns: repeat(4,1fr); position: relative; }
.pt-steps::before { content: ""; position: absolute; top: 34px; left: 12%; right: 12%; height: 2px; background: linear-gradient(90deg,#b9862f,#0d6e63); opacity: .35; }
.pt-fs { text-align: center; position: relative; z-index: 2; padding: 0 12px; }
.pt-fs .n { width: 68px; height: 68px; border-radius: 50%; background: #fff; border: 2px solid #b9862f; color: #b9862f; display: flex; align-items: center; justify-content: center; font-size: 26px; margin: 0 auto 14px; box-shadow: 0 6px 16px rgba(156,122,60,.15); }
.pt-fs:nth-child(even) .n { border-color: #0d6e63; color: #0d6e63; }
.pt-fs b { display: block; font-size: 16px; margin-bottom: 6px; color: #26231d; }
.pt-fs p { font-size: 12px; color: #8a8578; line-height: 1.7; }

/* 学段科目 */
.pt-subjects { background: #f6f4ee; padding: 54px 0; }
.pt-subject-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.pt-subject-tabs button { border: 1px solid #ece8dd; background: #fff; border-radius: 20px; padding: 8px 20px; font-size: 14px; cursor: pointer; color: #8a8578; }
.pt-subject-tabs button.on { background: #7a5c28; color: #fff; border-color: #7a5c28; }
.pt-subject-grid { display: grid; grid-template-columns: repeat(10,1fr); gap: 12px; }
.si { background: #fff; border: 1px solid #ece8dd; border-radius: 12px; padding: 16px 6px; text-align: center; cursor: pointer; transition: .2s; }
.si:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(60,45,20,.08); border-color: #b9862f; }
.si .em { font-size: 30px; display: block; margin-bottom: 6px; }
.si b { font-size: 13px; }

/* 四重保障 */
.pt-guard { background: linear-gradient(135deg,#f4ecd8,#faf6ea); padding: 54px 0; }
.pt-guard-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.gc { background: #fff; border-radius: 14px; padding: 24px 20px; text-align: center; box-shadow: 0 8px 28px rgba(60,45,20,.08); }
.gc .gi { width: 56px; height: 56px; border-radius: 14px; background: #f4ecd8; color: #7a5c28; display: flex; align-items: center; justify-content: center; font-size: 26px; margin: 0 auto 14px; }
.gc b { display: block; font-size: 16px; margin-bottom: 8px; }
.gc p { font-size: 12px; color: #8a8578; line-height: 1.7; }

/* 明星老师 */
.pt-teachers { background: #fff; padding: 54px 0; }
.pt-teacher-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.tcard { background: #fff; border: 1px solid #ece8dd; border-radius: 14px; overflow: hidden; cursor: pointer; transition: .25s; position: relative; }
.tcard:hover { transform: translateY(-5px); box-shadow: 0 16px 44px rgba(60,45,20,.13); border-color: #b9862f; }
.tcard .top { height: 96px; background: linear-gradient(135deg,#f4ecd8,#e9f0ea); display: flex; align-items: center; justify-content: center; font-size: 56px; position: relative; }
.tcard .top .ver { position: absolute; top: 10px; left: 10px; background: rgba(255,255,255,.92); color: #0d6e63; font-size: 11px; padding: 3px 8px; border-radius: 10px; font-weight: 600; }
.tcard .body { padding: 15px; }
.tcard .nm { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.tcard .nm b { font-size: 16px; }
.tcard .rate { color: #b9862f; font-weight: 700; font-size: 14px; }
.tcard .meta { font-size: 12px; color: #8a8578; height: 38px; overflow: hidden; }
.tcard .tags { display: flex; gap: 5px; flex-wrap: wrap; margin: 10px 0; }
.tcard .ft { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #ece8dd; padding-top: 10px; margin-top: 10px; }
.tcard .price { color: #c84040; font-size: 18px; font-weight: 800; }
.tcard .price small { font-size: 11px; color: #8a8578; font-weight: 400; }
.tcard .dist { font-size: 12px; color: #8a8578; }
.video-badge { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,.6); color: #fff; font-size: 10px; padding: 3px 7px; border-radius: 8px; z-index: 2; }

/* 提分案例 */
.pt-cases { background: #fff; padding: 54px 0; }
.pt-case-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 16px; }
.cc { border: 1px solid #ece8dd; border-radius: 12px; padding: 18px; background: linear-gradient(180deg,#fbfaf6,#fff); }
.cc .ch { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.cc .ch .av { width: 38px; height: 38px; border-radius: 10px; background: #f4ecd8; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.cc .ch b { font-size: 13px; display: block; }
.cc .ch span { font-size: 11px; color: #8a8578; }
.cc .score { font-size: 22px; color: #0d6e63; font-weight: 800; margin-bottom: 8px; }
.cc .score small { font-size: 12px; color: #8a8578; font-weight: 400; }
.cc p { font-size: 12px; color: #5c574c; line-height: 1.7; }

/* 家教资讯 */
.pt-articles { background: #f6f4ee; padding: 54px 0; }
.pt-article-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.acard { background: #fff; border: 1px solid #ece8dd; border-radius: 14px; overflow: hidden; cursor: pointer; transition: .25s; }
.acard:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(60,45,20,.08); }
.acard .cv { height: 140px; display: flex; align-items: center; justify-content: center; font-size: 56px; background: linear-gradient(135deg,#f4ecd8,#e9f0ea); }
.acard:nth-child(3n+2) .cv { background: linear-gradient(135deg,#e2f2ef,#dceafa); }
.acard:nth-child(3n+3) .cv { background: linear-gradient(135deg,#fbeaf0,#f4ecd8); }
.acard .ab { padding: 16px; }
.acard .ac { font-size: 11px; color: #b9862f; font-weight: 700; }
.acard h3 { font-size: 16px; margin: 8px 0; line-height: 1.5; }
.acard p { font-size: 12px; color: #8a8578; height: 40px; overflow: hidden; }
.acard .af { display: flex; justify-content: space-between; font-size: 11px; color: #aaa; margin-top: 12px; border-top: 1px solid #ece8dd; padding-top: 10px; }

/* CTA */
.pt-cta { background: linear-gradient(120deg,#7a5c28,#b9862f); color: #fff; text-align: center; padding: 52px 0; border-radius: 18px; margin: 0 auto; position: relative; z-index: 3; box-shadow: 0 16px 44px rgba(60,45,20,.13); }
.pt-cta h2 { font-size: 30px; margin-bottom: 12px; }
.pt-cta p { opacity: .9; margin-bottom: 22px; }

/* 页脚 */
.pt-footer { background: #26231d; color: #b8b2a5; padding: 64px 0 24px; margin-top: 60px; }
.pt-foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4,1fr); gap: 36px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.1); }
.pt-footer .pt-fbrand b { font-size: 22px; color: #f0c25a; letter-spacing: 2px; }
.pt-footer .pt-fbrand p { font-size: 12px; margin-top: 14px; line-height: 1.9; }
.pt-footer h4 { color: #fff; font-size: 14px; margin-bottom: 16px; }
.pt-footer a { display: block; font-size: 12px; margin-bottom: 10px; cursor: pointer; }
.pt-footer a:hover { color: #f0c25a; }
.pt-footer .pt-hotline { font-size: 20px; color: #f0c25a; font-weight: 700; margin-bottom: 8px; }
.pt-foot-bot { text-align: center; font-size: 11px; padding-top: 22px; color: #8c8577; }

/* 服务保障等内页（导航入口使用） */
.pt-static-page { background: #f6f4ee; padding: 28px 0 60px; min-height: 100vh; }
.pt-inner-hero { background: linear-gradient(120deg,#09564e,#0d6e63); color: #fff; padding: 40px 0; text-align: center; }
.pt-inner-hero h1 { font-size: 30px; margin-bottom: 8px; }
.pt-inner-hero p { opacity: .85; }
.pt-crumb { font-size: 12px; color: #8a8578; margin: 16px 0; }
.pt-faq { background: #fff; border: 1px solid #ece8dd; border-radius: 12px; padding: 8px 20px; margin-bottom: 12px; }
.pt-faq .q { padding: 14px 0; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; }
.pt-faq .a { font-size: 13px; color: #5c574c; padding: 0 0 14px; line-height: 1.8; display: none; }
.pt-faq.open .a { display: block; }
.pt-faq.open .q { color: #b9862f; }

/* 大屏：电脑版门户启用（与 layout.css 的 768px 断点对齐，避免 768~899px 两段都不显示） */
@media (min-width: 768px) {
  body.is-home #app { flex-direction: column; }
  body.is-home .sidebar,
  body.is-home .topbar,
  body.is-home .tabbar { display: none !important; }
  body.is-home .main { height: auto; min-height: 100vh; }
  body.is-home #view { padding: 0; }
  body.is-home .page { max-width: none; padding: 0; }
  body.is-home .page-inner { max-width: none; }
  body.is-home .mob-home,
  body.is-home .home-search,
  body.is-home .banner,
  body.is-home .entry2,
  body.is-home .topics,
  body.is-home #hmKing,
  body.is-home #hmTrust,
  body.is-home #hmHeadline,
  body.is-home #hmPromo,
  body.is-home #hmTeachers,
  body.is-home #hmDemands,
  body.is-home #hmCases,
  body.is-home .section-h,
  body.is-home .hotline { display: none !important; }

  .pc-portal { display: block; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
}

/* 中等屏幕收紧导航，避免挤压 */
@media (min-width: 768px) and (max-width: 1180px) {
  .pt-nav a { padding: 10px 9px; font-size: 14px; }
  .pt-search { width: 140px; }
  .pt-hd { gap: 14px; }
  .pt-htext h1 { font-size: 38px; }
  .pt-subject-grid { grid-template-columns: repeat(5,1fr); }
  .pt-teacher-grid { grid-template-columns: repeat(2,1fr); }
  .pt-case-grid { grid-template-columns: repeat(3,1fr); }
}

/* =====================================================================
   门户内页（找老师 / 详情 / 表单 / 资讯 / 文章 / 服务保障）
   严格按旧 PC 模板 inner-hero + 面包屑 + 各布局，统一 pt- 前缀。
   移动端（<768px）不生效：.pc-portal 默认隐藏，页面走原有移动版。
   ===================================================================== */
.pt-static-page { background: #f6f4ee; min-height: 100vh; padding-bottom: 8px; }
.pt-inner-hero { background: linear-gradient(120deg,#09564e,#0d6e63); color: #fff; padding: 40px 0; text-align: center; }
.pt-inner-hero h1 { font-size: 30px; margin-bottom: 8px; }
.pt-inner-hero p { opacity: .85; }
.pt-crumb { font-size: 12px; color: #8a8578; margin: 16px 0; }

/* 找老师 */
.pt-filter-layout { display: grid; grid-template-columns: 250px 1fr; gap: 24px; }
.pt-article-layout { display: grid; grid-template-columns: 1fr 250px; gap: 24px; }
.pt-filter-box { background: #fff; border: 1px solid #ece8dd; border-radius: 12px; padding: 18px; height: max-content; }
.pt-filter-box h4 { font-size: 14px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid #ece8dd; }
.pt-fgroup { margin-bottom: 16px; }
.pt-fgroup label { font-size: 12px; color: #8a8578; display: block; margin-bottom: 7px; }
.pt-fopts { display: flex; flex-wrap: wrap; gap: 6px; }
.pt-fopts button { border: 1px solid #ece8dd; background: #fff; border-radius: 6px; padding: 5px 10px; font-size: 12px; cursor: pointer; color: #5c574c; }
.pt-fopts button:hover { border-color: #b9862f; color: #7a5c28; }
.pt-fopts button.on { background: #7a5c28; color: #fff; border-color: #7a5c28; }
.pt-result-head { display: flex; justify-content: space-between; align-items: center; background: #fff; border: 1px solid #ece8dd; border-radius: 10px; padding: 12px 16px; margin-bottom: 18px; }
.pt-result-head b { color: #b9862f; }
.pt-sort button { border: 0; background: transparent; font-size: 13px; color: #8a8578; margin-left: 14px; cursor: pointer; padding: 4px 8px; border-radius: 5px; }
.pt-sort button:hover { color: #7a5c28; }
.pt-sort button.on { background: #f4ecd8; color: #7a5c28; font-weight: 700; }
.pt-empty { text-align: center; padding: 60px 20px; color: #8a8578; background: #fff; border-radius: 12px; }
.pt-list-search { display: flex; align-items: center; background: #f5f2ea; border: 1px solid #ece8dd; border-radius: 8px; padding: 0 12px; height: 40px; margin-bottom: 14px; gap: 8px; color: #aaa; }
.pt-list-search input { border: 0; background: transparent; outline: 0; flex: 1; font-size: 14px; min-width: 0; color: #1f1e1b; }
.pt-area-note { font-size: 12px; color: #8a8578; background: #f4ecd8; border-radius: 8px; padding: 9px 12px; margin-bottom: 14px; }

/* 老师详情 */
.pt-detail-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; }
.pt-dcard { background: #fff; border: 1px solid #ece8dd; border-radius: 14px; padding: 26px; margin-bottom: 18px; }
.pt-dcard h3 { font-size: 18px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid #f4ecd8; }
.pt-dhero { display: flex; gap: 22px; align-items: center; }
.pt-dhero .av { width: 110px; height: 110px; border-radius: 16px; background: linear-gradient(135deg,#f4ecd8,#e9f0ea); display: flex; align-items: center; justify-content: center; font-size: 58px; flex-shrink: 0; }
.pt-dhero h2 { font-size: 26px; margin-bottom: 8px; }
.pt-dhero .ver { display: inline-block; background: #f4ecd8; color: #7a5c28; font-size: 12px; padding: 3px 10px; border-radius: 10px; margin-left: 8px; }
.pt-dhero .mt { color: #8a8578; font-size: 13px; line-height: 1.9; }
.pt-videobox { height: 180px; border-radius: 12px; background: linear-gradient(135deg,#2b2b2b,#444); display: flex; align-items: center; justify-content: center; flex-direction: column; color: #fff; cursor: pointer; margin: 16px 0; gap: 8px; }
.pt-videobox .play { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-size: 24px; }
.pt-verify4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.pt-verify4 div { background: #f4ecd8; border-radius: 10px; padding: 14px 8px; text-align: center; font-size: 13px; color: #7a5c28; }
.pt-verify4 div b { display: block; font-size: 20px; margin-bottom: 4px; }
.pt-review { border-bottom: 1px solid #ece8dd; padding: 14px 0; }
.pt-review:last-child { border: 0; }
.pt-review .rh { display: flex; justify-content: space-between; margin-bottom: 8px; }
.pt-review .rh b { font-size: 14px; }
.pt-review .stars { color: #b9862f; }
.pt-review p { font-size: 13px; color: #5c574c; }
.pt-side-card { background: #fff; border: 1px solid #ece8dd; border-radius: 14px; padding: 22px; height: max-content; }
.pt-side-card .pr { font-size: 30px; color: #c84040; font-weight: 800; margin-bottom: 14px; }
.pt-side-card .pr small { font-size: 13px; color: #8a8578; font-weight: 400; }
.pt-side-card .info-row { display: flex; justify-content: space-between; font-size: 13px; padding: 9px 0; border-bottom: 1px solid #ece8dd; }
.pt-side-card .btn { width: 100%; margin-top: 14px; }
/* 侧栏主操作按钮与咨询客服按钮等宽对齐（.btn-lg 无实际样式，需显式撑满） */
.pt-side-card .pt-btn-primary,
.pt-side-card .pt-btn-line { display: flex; width: 100%; box-sizing: border-box; margin-top: 12px; }
.pt-privacy-tip { font-size: 11px; color: #6b7a6a; background: #eef2eb; border: 1px solid #dde5d8; padding: 9px 12px; border-radius: 8px; line-height: 1.6; margin-top: 12px; }

/* 表单页（请家教 / 做家教） */
.pt-form-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; }
.pt-form-card { background: #fff; border: 1px solid #ece8dd; border-radius: 14px; padding: 28px; }
.pt-form-card h3 { font-size: 18px; margin-bottom: 6px; }
.pt-form-card .sub { color: #8a8578; font-size: 13px; margin-bottom: 22px; }
.pt-fld { margin-bottom: 18px; }
.pt-fld label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.pt-fld label .req { color: #c84040; }
.pt-fld input, .pt-fld select, .pt-fld textarea { width: 100%; border: 1px solid #ece8dd; border-radius: 8px; padding: 11px 12px; font-size: 14px; outline: 0; background: #fff; font-family: inherit; }
.pt-fld input:focus, .pt-fld select:focus, .pt-fld textarea:focus { border-color: #b9862f; }
.pt-fld textarea { resize: vertical; min-height: 90px; }
.pt-radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pt-radio { border: 1px solid #ece8dd; border-radius: 8px; padding: 8px 14px; font-size: 13px; cursor: pointer; background: #fff; }
.pt-radio:hover { border-color: #b9862f; }
.pt-radio.on { background: #f4ecd8; border-color: #b9862f; color: #7a5c28; font-weight: 600; }
.pt-hotline-card { background: #f4ecd8; border: 1px solid rgba(185,134,47,.25); border-radius: 12px; padding: 18px; display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.pt-hotline-card .hi { font-size: 32px; }
.pt-hotline-card b { font-size: 19px; color: #7a5c28; }
.pt-hotline-card span { font-size: 12px; color: #8a8578; display: block; }
.pt-hotline-card .btn { margin-left: auto; }

/* 资讯列表 / 文章详情 / 侧栏 */
.pt-side-list { background: #fff; border: 1px solid #ece8dd; border-radius: 12px; padding: 18px; margin-bottom: 18px; }
.pt-side-list h4 { font-size: 15px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid #f4ecd8; }
.pt-side-list a { display: block; font-size: 13px; padding: 9px 0; border-bottom: 1px dashed #ece8dd; color: #4a463d; cursor: pointer; }
.pt-side-list a:last-child { border-bottom: 0; }
.pt-side-list a:hover { color: #b9862f; }
.pt-article-wrap { background: #fff; border: 1px solid #ece8dd; border-radius: 14px; padding: 36px; max-width: 860px; }
.pt-article-wrap h1 { font-size: 30px; line-height: 1.4; margin: 14px 0; }
.pt-article-wrap .am { font-size: 12px; color: #8a8578; margin-bottom: 26px; padding-bottom: 18px; border-bottom: 1px solid #ece8dd; }
.pt-article-wrap .abody { font-size: 15px; line-height: 2; color: #3a362e; }
.pt-article-wrap .abody h2 { font-size: 19px; margin: 26px 0 12px; padding-left: 12px; border-left: 4px solid #b9862f; }
.pt-article-wrap .abody p { margin-bottom: 12px; }
.pt-article-wrap .kws { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px; padding-top: 20px; border-top: 1px solid #ece8dd; }
.pt-article-wrap .kws span { background: #f4ecd8; color: #7a5c28; font-size: 12px; padding: 4px 10px; border-radius: 12px; }
.pt-art-cta { text-align: center; margin-top: 18px; }

/* ---------- 表单页单套 DOM：移动端隐藏门户外壳，表单卡还原为普通 form-page ---------- */
.portal-form .pt-toolbar,
.portal-form .pt-header,
.portal-form .pt-inner-hero,
.portal-form .pt-crumb,
.portal-form .pt-footer,
.portal-form .portal-aside { display: none; }
.portal-form .pt-static-page { background: transparent; min-height: auto; padding: 0; }
.portal-form .pt-form-layout { display: block; }
.portal-form .pt-form-card { border: 0; background: transparent; padding: 0; border-radius: 0; }
.portal-form-title { display: none; }
@media (min-width: 768px) {
  .portal-form .pt-toolbar { display: block; }
  .portal-form .pt-header { display: block; }
  .portal-form .pt-inner-hero { display: block; }
  .portal-form .pt-crumb { display: block; }
  .portal-form .pt-footer { display: block; margin-top: 40px; }
  .portal-form .portal-aside { display: block; }
  .portal-form .pt-static-page { background: #f6f4ee; padding: 28px 0 60px; }
  .portal-form .pt-form-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; }
  .portal-form .pt-form-layout.single { display: block; }
  .portal-form .pt-form-layout.single .pt-form-card { max-width: none; }
  .portal-form .pt-form-card { border: 1px solid #ece8dd; background: #fff; padding: 28px; border-radius: 14px; }
  .portal-form-title { display: block; margin-bottom: 22px; }
  .portal-form-title h3 { font-size: 18px; }
  .portal-form-title .sub { color: #8a8578; font-size: 13px; }
  .portal-form .pt-form-card .form-page .notice { display: none; }
}

/* 门户内页全宽布局（与 is-home 一致） */
@media (min-width: 768px) {
  body.is-portal .mob-inner,
  body.is-home .mob-inner { display: none !important; }
  body.is-portal #app { flex-direction: column; }
  body.is-portal .sidebar,
  body.is-portal .topbar,
  body.is-portal .tabbar { display: none !important; }
  body.is-portal .main { height: auto; min-height: 100vh; }
  body.is-portal #view { padding: 0; }
  body.is-portal .page { max-width: none; padding: 0; }
  body.is-portal .page-inner { max-width: none; }
}

/* =========================================================
   全站功能页统一门户外壳（PC 全宽，隐藏 App 侧栏/顶栏/TabBar）
   外壳节点 #tPortalTop / #tPortalFoot 注入在 #page 外，各页 rerender() 不会清除。
   移动端（<768px）外壳隐藏，保持原 App 布局与底部 Tab。
   ========================================================= */
.tportal-top,
.tportal-foot { display: none; }
@media (min-width: 768px) {
  body.is-tportal #app { flex-direction: column; }
  body.is-tportal .sidebar,
  body.is-tportal .topbar,
  body.is-tportal .tabbar { display: none !important; }
  body.is-tportal .main { height: auto; min-height: 100vh; }
  body.is-tportal #view { padding: 0; }
  body.is-tportal .page { max-width: none; padding: 0; }
  body.is-tportal .page-inner { max-width: 1200px; margin: 0 auto; padding: 28px 0 12px; }
  /* 页内自带城市条/客服条与门户工具条重复，隐藏避免双份 */
  body.is-tportal #page .sitebar,
  body.is-tportal #page .mob-home,
  body.is-tportal #page .hotline { display: none !important; }
  body.is-tportal .tportal-top,
  body.is-tportal .tportal-foot { display: block; }
}

/* =========================================================
   分站导航页（更多城市选择）
   ========================================================= */
.pt-citynav { background: #fff; border: 1px solid #ece8dd; border-radius: 14px; padding: 24px; }
.pt-cn-section + .pt-cn-section { margin-top: 22px; padding-top: 20px; border-top: 1px dashed #ece8dd; }
.pt-cn-section h3 { font-size: 16px; font-weight: 700; color: #3a362e; margin-bottom: 14px; padding-left: 10px; border-left: 4px solid #b9862f; }
.pt-cn-cur-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; background: #faf7ee; border: 1px solid #f0e6cb; border-radius: 10px; padding: 14px 16px; font-size: 14px; color: #4a463d; }
.pt-cn-cur-row b { color: #7a5c28; font-size: 16px; }
.pt-cn-hint { color: #8a8578; font-size: 12px; }
.pt-cn-hot { display: flex; flex-wrap: wrap; gap: 12px; }
.pt-cn-hot-btn { border: 0; border-radius: 8px; padding: 10px 22px; background: linear-gradient(135deg, #b9862f, #7a5c28); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: 0 3px 10px rgba(156,122,60,.25); }
.pt-cn-hot-btn:hover { filter: brightness(1.08); }
.pt-cn-empty { color: #8a8578; font-size: 13px; }
.pt-cn-letters { display: flex; flex-wrap: wrap; gap: 6px; }
.pt-cn-letters button, .pt-cn-letters span { min-width: 30px; height: 30px; line-height: 30px; text-align: center; border-radius: 6px; font-size: 13px; }
.pt-cn-letters button { border: 0; background: #f4ecd8; color: #7a5c28; font-weight: 700; cursor: pointer; }
.pt-cn-letters button:hover { background: #e8d6a8; }
.pt-cn-letters .off { color: #bbb6aa; background: #f7f6f2; }
.pt-cn-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pt-cn-group { border: 1px solid #ece8dd; border-radius: 10px; overflow: hidden; }
.pt-cn-group h4 { background: #f6f4ee; padding: 10px 12px; font-size: 13px; color: #7a5c28; border-bottom: 1px solid #ece8dd; }
.pt-cn-cities { display: flex; flex-wrap: wrap; gap: 6px 10px; padding: 12px; align-items: center; }
.pt-cn-link { border: 0; background: #f4ecd8; color: #7a5c28; border-radius: 6px; padding: 4px 10px; font-size: 13px; font-weight: 700; cursor: pointer; }
.pt-cn-link:hover { background: #e8d6a8; }
.pt-cn-link.primary { background: linear-gradient(135deg, #b9862f, #7a5c28); color: #fff; }
.pt-cn-soon { color: #aaa59a; font-size: 13px; }
.pt-cn-note { margin-top: 20px; padding: 12px 14px; background: #faf7ee; border-radius: 8px; font-size: 12px; color: #8a8578; line-height: 1.7; }
@media (max-width: 767px) {
  .pt-citynav { padding: 16px 14px; border: 0; border-radius: 0; }
  .pt-cn-groups { grid-template-columns: 1fr; }
  .pt-cn-hot-btn { padding: 9px 16px; font-size: 13px; }
  .pt-cn-cur-row { font-size: 13px; }
}

/* =========================================================
   做家教页 · 可接家教订单（免登录浏览）
   ========================================================= */
.pt-orders { padding: 6px 0 34px; }
.pt-order-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pt-order-grid .od { background: #fff; border: 1px solid #ece8dd; border-radius: 14px; padding: 18px; cursor: pointer; transition: .25s; }
.pt-order-grid .od:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(60,45,20,.12); border-color: #b9862f; }
.pt-order-grid .od-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.pt-order-grid .od-tag { background: #f4ecd8; color: #7a5c28; font-size: 11px; padding: 3px 9px; border-radius: 8px; font-weight: 700; }
.pt-order-grid .od-apps { font-size: 11px; color: #8a8578; }
.pt-order-grid .od-title { font-size: 16px; font-weight: 700; color: #26231d; line-height: 1.5; margin-bottom: 8px; }
.pt-order-grid .od-meta { font-size: 12px; color: #8a8578; line-height: 1.8; }
.pt-order-grid .od-ft { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1px solid #ece8dd; }
.pt-order-grid .od-price { color: #c84040; font-size: 18px; font-weight: 800; }
.pt-order-grid .od-cta { color: #7a5c28; font-size: 12px; font-weight: 700; }
@media (max-width: 900px) { .pt-order-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* =========================================================
   订单详情 · PC 门户视图
   ========================================================= */
#pcDemandDetail { display: block; max-width: 900px; margin: 0 auto; }
.dd-hero-pc { border-bottom: 2px solid #f4ecd8; padding-bottom: 18px; margin-bottom: 18px; }
.dd-hero-pc .ddh-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.dd-hero-pc h2 { font-size: 24px; color: #26231d; margin-bottom: 8px; }
.dd-hero-pc .ddh-sub { font-size: 13px; color: #8a8578; }
.dd-rows { border: 1px solid #ece8dd; border-radius: 10px; overflow: hidden; }
.dd-rows .dd-row { display: flex; padding: 11px 16px; border-bottom: 1px solid #ece8dd; font-size: 13px; }
.dd-rows .dd-row:last-child { border-bottom: 0; }
.dd-rows .dd-row:nth-child(odd) { background: #faf9f5; }
.dd-rows .dd-row span { width: 110px; flex-shrink: 0; color: #8a8578; }
.dd-rows .dd-row b { color: #26231d; font-weight: 600; }
.dd-block { margin-top: 18px; }
.dd-block h4 { font-size: 15px; color: #7a5c28; margin-bottom: 10px; padding-left: 10px; border-left: 3px solid #b9862f; }
.dd-actions { display: flex; gap: 12px; margin-top: 18px; }
.dd-actions .btn { min-width: 130px; justify-content: center; }
.pt-home-orders { padding: 44px 0; background: #fff; border-top: 1px solid #ece8dd; }

/* =====================================================================
   prototype-mobile.css —— 移动端按旧版小程序原型模板复原
   仅在手机宽度（<768px）生效；电脑版门户与后台不受影响。
   ===================================================================== */

@media (max-width: 767px) {
  :root {
    --brand: #9c7a3c;
    --brand-dark: #7a5c28;
    --brand-light: #f4ecd8;
    --accent: #b9862f;
    --bg: #f6f4ee;
    --card: #ffffff;
    --text: #1f1e1b;
    --text2: #8a8578;
    --text3: #aaa59a;
    --line: #ece8dd;
    --green: #07c160;
    --red: #e64340;
    --blue: #576b95;
    --blue-bg: #eaf2fb;
    --radius: 14px;
    --shadow: 0 8px 30px rgba(60, 45, 20, 0.10);
    --shadow-lg: 0 14px 40px rgba(60, 45, 20, 0.16);
    --topbar-h: 44px;
    --tabbar-h: 58px;
  }

  body {
    background: var(--bg);
  }

  /* 顶部导航：原型为小程序胶囊风格 */
  .topbar {
    height: 44px;
    flex: 0 0 44px;
    background: var(--bg);
    border-bottom: 0;
    padding: 0 14px;
    box-shadow: none;
  }
  .topbar .nav-title {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text);
  }
  .topbar .nav-back {
    width: 40px;
    font-size: 26px;
    flex-basis: 40px;
  }
  .topbar .nav-right {
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.7);
    padding: 3px 7px;
  }
  .topbar .nav-action {
    font-size: 11px;
    color: var(--text2);
  }
  .topbar .nav-auth-btns {
    gap: 4px;
  }
  .topbar .nav-auth-btns button,
  .topbar .btn-admin-logout,
  .topbar .btn-user-logout {
    border-radius: 12px;
    padding: 3px 8px;
    font-size: 11px;
  }
  .topbar .nav-user-chip,
  .topbar .nav-admin-chip {
    gap: 6px;
    font-size: 11px;
  }
  .topbar .nav-user-chip-wrap {
    gap: 4px;
  }
  .topbar .nav-user-name {
    max-width: 64px;
  }
  .topbar .nav-user-chip .avatar-dot {
    width: 22px;
    height: 22px;
    font-size: 11px;
  }

  /* 底部 TabBar：原型为贴底平铺栏 */
  .tabbar {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    flex: 0 0 58px;
    height: 58px;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    background: var(--card);
    overflow: visible;
  }
  #view .page {
    padding-bottom: 16px;
  }
  .tabbar .tab {
    font-size: 10px;
    gap: 3px;
    padding-bottom: 4px;
  }
  .tabbar .tab.on {
    color: var(--brand);
  }
  .tabbar .tab .ico {
    font-size: 20px;
    filter: none;
    opacity: 1;
  }
  .tabbar .tab.on .ico {
    filter: none;
    transform: none;
  }

  /* 首页：原型结构与尺寸 */
  .sitebar .site {
    font-size: 15px;
  }
  .sitebar .ct {
    color: #3f6fb5;
    background: #eaf2fb;
    font-size: 12px;
    padding: 6px 12px;
  }
  .home-search {
    color: #9a958a;
    font-size: 12px;
  }
  .home-search .tagmini {
    background: var(--brand-light);
    color: var(--brand-dark);
  }
  .banner {
    height: 150px;
    border-radius: 14px;
  }
  .banner .btext .bt1 {
    font-size: 22px;
  }
  .banner .bart {
    font-size: 66px;
  }
  .king {
    border-radius: 14px;
    box-shadow: none;
  }
  .king .ki .bub2 {
    width: 46px;
    height: 46px;
    font-size: 20px;
  }
  .king .kdots {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 11px;
  }
  .king .kdots i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--line);
    cursor: pointer;
  }
  .king .kdots i.on {
    width: 14px;
    border-radius: 3px;
    background: var(--brand);
  }
  .trust {
    border-radius: 14px;
    box-shadow: none;
  }
  .headline {
    box-shadow: none;
  }
  .section-h h3 {
    font-size: 15px;
  }
  .entry2 .e {
    min-height: 76px;
  }
  .entry2 .e h4 {
    font-size: 14px;
  }
  .topics .ti {
    min-height: 80px;
    height: 80px;
  }
  .topics .ti b {
    font-size: 14px;
  }
  .topics .ti .dec {
    font-size: 40px;
  }

  /* 老师 / 订单卡片 */
  .teacher {
    margin: 0 16px 10px;
    padding: 13px;
    border-radius: 14px;
    box-shadow: none;
  }
  .teacher .avatar {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
    font-size: 22px;
  }
  .teacher .name {
    font-size: 15px;
  }
  .teacher .meta {
    font-size: 12px;
  }
  .teacher .price,
  .demand-card .price {
    color: var(--accent);
    font-size: 15px;
  }
  .teacher .star {
    color: #f5a623;
  }
  .badge,
  .tag {
    background: var(--brand-light);
    color: var(--brand-dark);
  }
  .badge.ver {
    background: var(--brand);
    color: #fff;
  }
  .ordercard .status.wait {
    color: var(--accent);
  }

  /* 案例：原型为横向滑动卡片 */
  .case-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 0 16px 4px;
  }
  .case-card {
    flex: 0 0 168px;
    border-radius: 12px;
    padding: 13px;
    box-shadow: var(--shadow);
  }
  .case-card .up {
    font-size: 19px;
    font-weight: 700;
    color: var(--accent);
    margin: 9px 0 5px;
  }

  /* 通用按钮 / 弹窗 */
  .btn,
  .mini {
    border-radius: 22px;
    font-size: 14px;
  }
  .btn-primary {
    background: var(--brand);
    color: #fff;
  }
  .btn-line,
  .mini {
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text2);
  }
  .modal-mask {
    background: rgba(0, 0, 0, 0.45);
  }
  .modal-box {
    border-radius: 18px;
    padding: 26px 20px 20px;
  }
  .modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--brand-light);
    color: var(--brand);
    font-size: 30px;
    line-height: 56px;
  }
  .toast {
    bottom: 76px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.8);
  }

  /* 资讯 / 表单类页面统一原型配色 */
  .art-search,
  .art-card,
  .block,
  .cellgroup,
  .quick4,
  .card {
    background: var(--card);
    border-radius: 14px;
  }
  .art-cats .ac.on {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
  }
  .area-note {
    background: var(--brand-light);
    color: var(--brand-dark);
  }
}
/* ------------------------------------------------------------------
 * 右下角悬浮客服入口（core/floatingService.js）
 * 复用站点配置里的客服码/电话，不使用新图标字体与外部依赖
 * ------------------------------------------------------------------ */
.fs-dock {
  position: fixed;
  right: 12px;
  bottom: 76px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.fs-dock.is-hidden { display: none !important; }
.fs-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  transition: opacity .18s ease, transform .18s ease;
}
.fs-dock.is-collapsed .fs-menu {
  opacity: 0;
  transform: translateY(8px) scale(.92);
  pointer-events: none;
}
.fs-item {
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(200, 164, 92, .45);
  background: #fff;
  color: var(--brand-dark);
  box-shadow: 0 3px 12px rgba(26, 26, 26, .13);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.fs-item:active { transform: scale(.94); }
.fs-item[hidden] { display: none !important; }
.fs-ico { font-size: 18px; }
.fs-label { font-size: 10px; margin-top: 2px; }
.fs-main {
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid #fff;
  background: linear-gradient(135deg, #d9b978, #b9862f);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(185, 134, 47, .42);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.fs-main:active { transform: scale(.94); }
@media (min-width: 900px) {
  .fs-dock { right: 24px; bottom: 28px; }
}
