/* ============================================================
   华为鸿蒙（HarmonyOS）设计规范皮肤
   依据 HarmonyOS Design 通用规范：
   - 主色 #007DFF（鸿蒙蓝），文字 #182431，辅助文字 #99A0A8
   - 背景 #F1F3F5，卡片纯白、圆角 16vp、卡片间距 8vp、无描边
   - 标题栏 56vp，标题居中 20vp 中等字重
   - 底部导航 56vp，图标 24vp、选中态用主色
   - 按钮胶囊形（圆角 = 高度一半），主按钮填充、次按钮浅蓝底
   - 输入框 16vp 圆角、浅灰底，聚焦时主色描边
   - 弹窗自底部滑出、顶部圆角 32vp、遮罩 40% 黑
   - 动效曲线 cubic-bezier(0.2, 0, 0.2, 1)，时长 250ms
   只在 html.harmony 下生效（华为浏览器 / 鸿蒙 ArkWeb 才加这个类），
   不加载这段的机器完全不受影响。
   ============================================================ */

html.harmony {
  --ios-bg: #F1F3F5;
  --ios-card: #FFFFFF;
  --ios-label: #182431;
  --ios-label2: #66707A;
  --ios-label3: #99A0A8;
  --ios-sep: #E5E5E5;
  --ios-fill: #F1F3F5;
  --ios-fill2: #E8EAED;
  --ios-tint: #007DFF;
  --ios-tint-soft: rgba(0, 125, 255, .10);
  --ios-red: #E84026;
  --ios-orange: #FF7500;
  --brand: #007DFF;
  --brand-deep: #0060D1;
  --brand-soft: #E5F0FF;
  --brand-weak: #E5F0FF;
  --ink: #182431;
  --ink-2: #182431;
  --muted: #66707A;
  --line: #E5E5E5;
  --bg: #F1F3F5;
  --card: #FFFFFF;
  --danger: #E84026;
  --warn: #FF7500;
  --radius: 16px;
  --sans: "HarmonyOS Sans SC", "HarmonyOS Sans", HarmonyOS-Sans, -apple-system,
          "PingFang SC", "Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
}

html.harmony body {
  background: #F1F3F5;
  color: #182431;
  font-family: var(--sans);
  letter-spacing: 0;
}

/* ---------- 标题栏：56vp，标题居中，背景实色不透明 ---------- */
html.harmony .topbar {
  height: calc(56px + var(--safe-top));
  padding: var(--safe-top) 8px 0;
  background: #FFFFFF;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom: 1px solid #E5E5E5;
}
html.harmony body.native .topbar { background: #FFFFFF; }
html.harmony .topbar .tt { font-size: 20px; font-weight: 500; letter-spacing: 0; }
html.harmony .topbar .sub { font-size: 12px; color: #99A0A8; }
html.harmony .tb-side { height: 56px; }
html.harmony .nav-back { height: 56px; color: #182431; font-size: 16px; font-weight: 500; }
html.harmony .nav-back svg { stroke-width: 2.2; }
html.harmony #bar.wx-top .topbar { background: #FFFFFF; border-bottom: 1px solid #E5E5E5; }
html.harmony #bar.wx-top .topbar .tt { font-size: 20px; font-weight: 500; color: #182431; }
html.harmony .wx-plus { color: #007DFF; }

/* ---------- 底部导航：56vp，选中主色 ---------- */
html.harmony .tabbar {
  height: calc(56px + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: #FFFFFF;
  border-top: 1px solid #E5E5E5;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
html.harmony .tabbar button { min-height: 56px; font-size: 12px; color: #66707A; font-weight: 400; }
html.harmony .tabbar button.on { color: #007DFF; font-weight: 500; }
html.harmony .tabbar svg { width: 24px; height: 24px; stroke-width: 2; }
html.harmony .tabbar button.on svg { stroke-width: 2; }
html.harmony .tabbar.wx { background: #FFFFFF; border-top: 1px solid #E5E5E5; }

/* ---------- 卡片：纯白、16vp 圆角、8vp 间距、无阴影无描边 ---------- */
html.harmony .card,
html.harmony .jobcard,
html.harmony .ticket,
html.harmony .home-job,
html.harmony .group,
html.harmony .list {
  background: #FFFFFF;
  border: 0;
  border-radius: 16px;
  box-shadow: none;
}
/* 分组里的行跟着外框走，自己不加圆角（加了会变成一半一半的错位） */
html.harmony .mrow,
html.harmony .mthread,
html.harmony .thread,
html.harmony .row {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}
html.harmony .card + .card { margin-top: 8px; }
html.harmony .card { padding: 16px; }
html.harmony .jobcard:active,
html.harmony .mrow:active { background: #F1F3F5; }
html.harmony .jobcard .title { font-size: 16px; font-weight: 500; letter-spacing: 0; line-height: 1.4; }
html.harmony .jobcard .meta { font-size: 14px; color: #66707A; }
html.harmony .jobcard .price { font-size: 18px; font-weight: 500; color: #182431; letter-spacing: 0; }
html.harmony .jobcard .tiny { font-size: 12px; color: #99A0A8; }

/* ---------- 按钮：胶囊，40vp 高 ---------- */
html.harmony .btn {
  min-height: 40px;
  padding: 0 20px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  transition: background-color .25s cubic-bezier(.2, 0, .2, 1), opacity .25s cubic-bezier(.2, 0, .2, 1);
}
html.harmony .btn:active { opacity: .8; }
html.harmony .btn-main { background: #007DFF; color: #FFFFFF; }
html.harmony .btn.ghost,
html.harmony .btn.soft { background: #E5F0FF; color: #007DFF; border: 0; }
html.harmony .btn.sm { min-height: 32px; border-radius: 16px; padding: 0 14px; font-size: 14px; }
html.harmony .btn.danger { background: #FDE8E5; color: #E84026; }

/* ---------- 标签 / 徽标：浅底圆角 8 ---------- */
html.harmony .pill,
html.harmony .badge {
  border-radius: 8px;
  background: #F1F3F5;
  font-size: 12px;
  font-weight: 400;
}
html.harmony .pill.warn { background: #FFF0E5; color: #B85800; }

/* ---------- 弹窗：底部滑出，顶部 32vp 圆角 ---------- */
html.harmony .sheet {
  border-radius: 32px 32px 0 0;
  background: #FFFFFF;
  transition: transform .25s cubic-bezier(.2, 0, .2, 1);
}
html.harmony .sheet-mask { background: rgba(0, 0, 0, .4); }
html.harmony .sheet h3 { font-size: 20px; font-weight: 500; letter-spacing: 0; }

/* ---------- 输入：16vp 圆角、浅灰底、聚焦主色 ---------- */
html.harmony input,
html.harmony textarea,
html.harmony select {
  border-radius: 16px;
  background: #F1F3F5;
  border: 1px solid transparent;
  font-size: 16px;
  font-family: var(--sans);
  transition: border-color .25s cubic-bezier(.2, 0, .2, 1);
}
html.harmony input:focus,
html.harmony textarea:focus,
html.harmony select:focus { border-color: #007DFF; background: #FFFFFF; }

/* ---------- 分隔线 1px（鸿蒙不用 0.5px 发丝线） ---------- */
html.harmony .mrow + .mrow,
html.harmony .row-line { border-top: 1px solid #E5E5E5; }

/* ---------- 悬浮「发活」：鸿蒙圆形主色加号 ---------- */
html.harmony .fab {
  background: #007DFF;
  color: #FFFFFF;
  border-radius: 48px;
  box-shadow: 0 6px 16px rgba(0, 125, 255, .28);
}
html.harmony .fab:active { transform: none; opacity: .9; }

/* ---------- 提示条 ---------- */
html.harmony .toast { border-radius: 16px; background: rgba(24, 36, 49, .92); font-size: 14px; }

/* ---------- 列表首行的分组标题：鸿蒙用 14vp 中灰，不用大写 ---------- */
html.harmony .sec-title,
html.harmony .group-title { font-size: 14px; font-weight: 400; color: #99A0A8; letter-spacing: 0; }
