/* ============================================================
   SCICOS 高保真 · 商务设计系统（hifi）
   简约 / 专业 / 商务蓝 · 中文系统黑体
   仅用于高保真界面（class 前缀 hf-）
   ============================================================ */
:root {
  --hf-font: "PingFang SC", "Microsoft YaHei", "Segoe UI", -apple-system, system-ui, "Helvetica Neue", Arial, sans-serif;

  --hf-bg: #f4f6f9;
  --hf-surface: #ffffff;
  --hf-surface-2: #fafbfc;
  --hf-ink: #1a2433;
  --hf-ink-2: #4a5868;
  --hf-ink-3: #8593a3;
  --hf-line: #e6eaf0;
  --hf-line-2: #eef1f5;

  --hf-primary: #1456c4;
  --hf-primary-d: #0f47a3;
  --hf-primary-wash: #eaf1fc;
  --hf-primary-ring: rgba(20,86,196,.18);

  --hf-ok: #1f8a5b;
  --hf-warn: #c47e16;
  --hf-danger: #c0392b;

  --hf-r: 10px;
  --hf-r-sm: 7px;
  --hf-shadow: 0 1px 3px rgba(20,33,51,.06), 0 1px 2px rgba(20,33,51,.04);
  --hf-shadow-lg: 0 8px 28px rgba(20,33,51,.10), 0 2px 8px rgba(20,33,51,.05);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body.hf {
  background: #f5f6fa;
  color: var(--hf-ink);
  font-family: var(--hf-font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.hf ::selection { background: var(--hf-primary-wash); }

/* ---------- 顶栏 ---------- */
.hf-topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 14px;
  height: 60px; padding: 0 28px;
  background: rgba(255,255,255,.88); backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--hf-line);
}
.hf-logo { display: flex; align-items: center; gap: 11px; }
.hf-mark {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, var(--hf-primary), #2f74e6);
  color: #fff; font-weight: 700; font-size: 15px; letter-spacing: .5px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px var(--hf-primary-ring);
}
.hf-logo .nm { font-size: 17px; font-weight: 650; }
.hf-logo .nm small { display:block; font-size:12px; font-weight:400; color: var(--hf-ink-3); margin-top:1px; letter-spacing:.3px; }
.hf-topbar .right { margin-left: auto; color: var(--hf-ink-3); font-size: 13px; }

/* ---------- 容器 ---------- */
.hf-page { min-height: 100vh; padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
.hf-shell { max-width: 880px; margin: 0 auto; padding: 32px 24px 0; }
.hf-shell-form { max-width: 820px; padding-top: 40px; padding-bottom: 48px; }
.hf-hero { margin-bottom: 24px; }
.hf-hero h1 { font-size: 26px; font-weight: 700; margin: 0 0 8px; letter-spacing: .5px; }
.hf-hero p { margin: 0; color: var(--hf-ink-2); font-size: 15px; }

/* ---------- 卡片 ---------- */
.hf-card {
  background: var(--hf-surface); border: 1px solid var(--hf-line);
  border-radius: 14px; box-shadow: var(--hf-shadow);
}
.hf-card-pad { padding: 26px 28px; }
.hf-form-card {
  background: #fff;
  border: 1px solid #eaedf3;
  border-radius: 26px;
  box-shadow: 0 18px 48px rgba(31, 41, 55, .08);
  overflow: hidden;
}
.hf-form-head {
  padding: 28px 34px 22px;
  border-bottom: 1px solid #eef1f5;
}
.hf-form-head h1 {
  margin: 0;
  font-size: 21px;
  line-height: 1.3;
  font-weight: 700;
  color: #1f2b3d;
}
.hf-form-head p {
  margin: 8px 0 0;
  color: #8692a8;
  font-size: 13px;
  font-weight: 500;
}

/* ---------- 表单 ---------- */
.hf-section { padding: 30px 34px 0; }
.hf-section + .hf-section { margin-top: 10px; }
.hf-section-hd {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid #eef1f5;
}
.hf-section-hd .idx {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: #edf1ff;
  color: #5574ef;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: inset 0 0 0 1px rgba(85, 116, 239, .08);
}
.hf-section-hd .txt {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: #1f2b3d;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
}

.hf-grid { display: grid; gap: 16px; }
.hf-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.hf-grid-2 { grid-template-columns: 1fr 1fr; }
.hf-grid-1 { grid-template-columns: 1fr; }
.hf-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.hf-field.full { grid-column: 1 / -1; }
.hf-field label {
  font-size: 13px;
  color: #4a5568;
  font-weight: 600;
  line-height: 1.4;
}
.hf-field label .req { color: var(--hf-danger); margin-left: 3px; }
.hf-field .hf-input,
.hf-field input, .hf-field select, .hf-field textarea {
  font-family: var(--hf-font); font-size: 15px; color: #2b3445;
  background: #fbfcfe; border: 1px solid #dfe5ef;
  border-radius: 12px; padding: 12px 14px; width: 100%;
  transition: border-color .15s, box-shadow .15s; outline: none;
  min-height: 40px;
}
.hf-field input::placeholder, .hf-field textarea::placeholder { color: #b0b8c7; }
.hf-field input:focus, .hf-field select:focus, .hf-field textarea:focus {
  border-color: #8eabff; box-shadow: 0 0 0 3px rgba(91, 122, 255, .12);
}
.hf-field textarea { min-height: 86px; resize: vertical; }
.hf-hidden-input { display: none; }
.hf-select-wrap {
  position: relative;
  width: 100%;
}
.hf-select-wrap::after {
  content: "›";
  position: absolute;
  top: 50%;
  right: 14px;
  color: #a6afbf;
  font-size: 17px;
  line-height: 1;
  transform: translateY(-52%) rotate(90deg);
  pointer-events: none;
}
.hf-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: none;
  padding-right: 38px;
}
.hf-field .hf-select-like {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M4 2.5L8 6L4 9.5' stroke='%238593a3' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 34px;
}
.hf-phone-inline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  width: 100%;
}
.hf-time-trigger {
  width: 100%;
  min-height: 40px;
  justify-content: space-between;
  border: 1px solid #dfe5ef;
  color: #2b3445;
  background: #fbfcfe;
  padding: 12px 14px;
  box-shadow: none;
}
.hf-time-trigger::after {
  content: "›";
  color: #a6afbf;
  font-size: 17px;
  line-height: 1;
}
.hf-time-trigger .txt {
  flex: 1;
  text-align: left;
}
.hf-time-trigger:hover {
  border-color: #cfd7e5;
  background: #fff;
}
.hf-time-picked {
  font-size: 13px;
  color: #8893a6;
}
.hf-sms-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
  margin-top: 0;
  width: 100%;
  min-width: 0;
}
.hf-sms-row .hf-input {
  min-width: 0;
  flex: 1 1 auto;
}
.hf-sms-send-btn {
  flex: 0 0 118px;
  min-width: 118px;
  padding: 0 14px;
  white-space: nowrap;
  font-size: 14px;
}
.hf-sms-help {
  font-size: 12px;
  color: #8b94a7;
  line-height: 1.5;
  min-height: 18px;
}
.hf-sms-help.warn {
  color: #b7791f;
}
.hf-sms-help.success {
  color: #1f8a5b;
}
.hf-sms-help.error {
  color: #c0392b;
}

/* ---------- 按钮 ---------- */
.hf-btn {
  font-family: var(--hf-font); font-size: 15px; font-weight: 600; cursor: pointer;
  border: 1px solid var(--hf-line); background: var(--hf-surface); color: var(--hf-ink);
  border-radius: var(--hf-r); padding: 11px 20px;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .05s;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.hf-btn:hover { border-color: #cfd7e2; background: var(--hf-surface-2); }
.hf-btn:active { transform: translateY(1px); }
.hf-btn.primary {
  background: var(--hf-primary); border-color: var(--hf-primary); color: #fff;
  box-shadow: 0 2px 8px var(--hf-primary-ring);
}
.hf-btn.primary:hover { background: var(--hf-primary-d); border-color: var(--hf-primary-d); }
.hf-btn.lg { padding: 13px 26px; font-size: 16px; }
.hf-btn.block { width: 100%; }
.hf-btn.ghost { border-color: transparent; background: transparent; color: var(--hf-ink-2); }
.hf-btn.ghost:hover { background: var(--hf-line-2); }

.hf-form-foot {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
  padding: 22px 34px 20px;
  border-top: 1px solid #eef1f5;
}
.hf-form-foot .hint {
  color: #a0a8b8;
  font-size: 12px;
  flex: 1;
}
.hf-submit-main {
  min-width: 124px;
  min-height: 40px;
  border-radius: 12px;
  background: #3f66f0;
  border-color: #3f66f0;
  box-shadow: 0 12px 28px rgba(63, 102, 240, .22);
}
.hf-submit-main:hover {
  background: #3558d6;
  border-color: #3558d6;
}
body.hf.hf-modal-open { overflow: hidden; }

/* ---------- 提交成功 ---------- */
.hf-success { max-width: 560px; margin: 7vh auto 0; padding: 0 24px; text-align: center; }
.hf-success .ring {
  width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 22px;
  background: var(--hf-primary-wash); color: var(--hf-primary);
  display: flex; align-items: center; justify-content: center; font-size: 38px;
}
.hf-success h2 { font-size: 25px; margin: 0 0 8px; font-weight: 700; }
.hf-success .lead { color: var(--hf-ink-2); font-size: 15px; margin: 0 0 22px; }
.hf-success-contact {
  margin: 0 auto 22px;
  padding: 16px 18px;
  max-width: 360px;
  text-align: left;
  background: var(--hf-primary-wash);
  border: 1px solid #d4e2f8;
  border-radius: 14px;
}
.hf-success-contact .title {
  margin-bottom: 8px;
  color: var(--hf-ink);
  font-size: 14px;
  font-weight: 700;
}
.hf-success-contact .line {
  color: var(--hf-ink-2);
  font-size: 14px;
  line-height: 1.8;
}
.hf-statusline { color: var(--hf-ink-2); font-size: 14px; margin-bottom: 24px; }
.hf-statusline .pill { display:inline-block; background: var(--hf-warn); color:#fff; border-radius: 20px; padding: 2px 11px; font-size: 13px; font-weight:600; margin: 0 2px; }
.hf-recap {
  text-align: left; background: var(--hf-surface); border: 1px solid var(--hf-line);
  border-radius: 14px; box-shadow: var(--hf-shadow); padding: 8px 22px; margin-bottom: 26px;
}
.hf-recap .row { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--hf-line-2); font-size: 14px; }
.hf-recap .row:last-child { border-bottom: none; }
.hf-recap .row .k { color: var(--hf-ink-3); width: 92px; flex: none; }
.hf-recap .row .v { color: var(--hf-ink); }
.hf-success .acts { display: flex; gap: 12px; justify-content: center; }

@media (max-width: 680px) {
  .hf-shell { padding: 22px 14px 0; }
  .hf-shell-form { padding-top: 18px; padding-bottom: 24px; }
  .hf-card-pad { padding: 20px 16px; }
  .hf-form-card { border-radius: 22px; }
  .hf-form-head { padding: 22px 18px 18px; }
  .hf-form-head h1 { font-size: 20px; }
  .hf-form-head p { font-size: 12px; }
  .hf-section { padding: 24px 18px 0; }
  .hf-section + .hf-section { margin-top: 8px; }
  .hf-section-hd .txt { font-size: 18px; }
  .hf-section-hd .idx {
    width: 30px;
    height: 30px;
    border-radius: 11px;
    font-size: 14px;
  }
  .hf-grid,
  .hf-grid-3,
  .hf-grid-2,
  .hf-grid-1 { grid-template-columns: 1fr; gap: 16px; }
  .hf-phone-inline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .hf-sms-row { gap: 6px; }
  .hf-sms-send-btn {
    flex-basis: 98px;
    min-width: 98px;
    padding: 0 10px;
    font-size: 13px;
  }
  .hf-field label { line-height: 1.45; }
  .hf-peek { display: inline-block; margin-left: 0; margin-top: 6px; }
  .hf-form-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 24px;
    padding: 16px 18px 18px;
    background: #fff;
    border-top: 1px solid #eef1f5;
  }
  .hf-form-foot .hint { font-size: 12px; }
  .hf-form-foot .hf-btn { width: 100%; }
  .hf-submit-main { min-height: 48px; }
  .hf-success { margin-top: 24px; padding: 0 14px; }
  .hf-recap { padding: 8px 16px; }
  .hf-recap .row { flex-direction: column; gap: 4px; }
  .hf-recap .row .k { width: auto; }
  .hf-success .acts { flex-direction: column; }
  .hf-success .acts .hf-btn { width: 100%; }
  .hf-modal-scrim { padding: 0; align-items: flex-end; }
  .hf-modal {
    width: 100vw;
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 18px 18px 0 0;
  }
  .hf-modal-hd,
  .hf-modal-body,
  .hf-modal-ft { padding-left: 16px; padding-right: 16px; }
  .hf-welcome-stage,
  .hf-welcome-stage .hf-welcome-img { max-height: 32vh; }
  .hf-mode-row { grid-template-columns: 1fr; }
  .hf-mode { width: 100%; }
  .hf-modal-ft { flex-wrap: wrap; gap: 10px; }
  .hf-modal-ft .note { flex: 1 0 100%; }
  .hf-modal-ft .hf-btn { flex: 1; min-width: 0; }
  .hf-time-modal { width: 100vw; }
  .hf-calendar-grid,
  .hf-calendar-week { gap: 6px; }
  .hf-timeline-shell { grid-template-columns: 46px minmax(0, 1fr); }
  .hf-quick { grid-template-columns: 1fr; gap: 6px; }
  .hf-quick-chip { width: 100%; text-align: left; border-radius: 14px; padding: 10px 12px; }
  .hf-field input,
  .hf-field select,
  .hf-field textarea { font-size: 16px; }
}

@media (max-width: 420px) {
  .hf-shell { padding: 18px 10px 0; }
  .hf-shell-form { padding-top: 12px; }
  .hf-card-pad { padding: 18px 12px; }
  .hf-form-head { padding-left: 14px; padding-right: 14px; }
  .hf-section { padding-left: 14px; padding-right: 14px; }
  .hf-field label { font-size: 12px; }
  .hf-phone-inline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .hf-field input,
  .hf-field select,
  .hf-field textarea { padding: 10px 12px; }
  .hf-sms-send-btn {
    flex-basis: 92px;
    min-width: 92px;
    padding: 0 8px;
    font-size: 12px;
  }
  .hf-cal-day { min-height: 64px; }
  .hf-btn.lg { padding: 12px 18px; font-size: 15px; }
  .hf-form-foot {
    padding-left: 14px;
    padding-right: 14px;
  }
  .hf-modal-hd { font-size: 15px; }
  .hf-welcome-overlay { padding: 8% 8%; gap: 10px; }
  .hf-welcome-overlay .wm-play { width: 52px; height: 52px; font-size: 22px; }
  .hf-welcome-overlay .wm-welcome { line-height: 1.3; }
}

/* ---------- 顶部校验提示 ---------- */
.hf-alert {
  display: flex; align-items: center; gap: 10px;
  background: #fdecea; border: 1px solid #f5c6c0; color: #a5342a;
  border-radius: var(--hf-r); padding: 12px 15px; font-size: 14px;
  box-shadow: 0 10px 30px rgba(40, 48, 65, .14);
}
.hf-alert .ic { width: 18px; height: 18px; border-radius: 50%; background: var(--hf-danger); color:#fff; font-size: 12px; display:flex; align-items:center; justify-content:center; flex:none; }
.hf-alert-toast {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100vw - 28px), 420px);
  z-index: 2200;
}
.hf-field.err input, .hf-field.err select, .hf-field.err textarea, .hf-field.err .hf-time-trigger { border-color: var(--hf-danger); box-shadow: 0 0 0 3px rgba(192,57,43,.12); }
.hf-sms-row.err input,
.hf-sms-row.err .hf-btn {
  border-color: var(--hf-danger);
  box-shadow: 0 0 0 3px rgba(192,57,43,.12);
}

/* ---------- 欢迎屏内容：可点提示 + 示意图弹窗 ---------- */
.hf-peek { color: var(--hf-primary); font-size: 12px; font-weight: 500; margin-left: 8px; cursor: pointer; }
.hf-peek:hover { text-decoration: underline; }
.hf-modal-scrim {
  position: fixed; inset: 0; background: rgba(19, 28, 45, .14);
  z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px;
  animation: hf-fade .15s ease;
}
@keyframes hf-fade { from { opacity: 0; } to { opacity: 1; } }
.hf-modal {
  width: 720px; max-width: 94vw; max-height: 92vh; overflow-y: auto; background: #fff;
  border-radius: 24px; box-shadow: 0 20px 56px rgba(28, 40, 66, .14); overflow-x: hidden;
  display: flex; flex-direction: column;
}
.hf-modal-hd { position: sticky; top: 0; background: #fff; z-index: 2; }
.hf-modal-hd { display: flex; align-items: center; padding: 18px 24px; border-bottom: 1px solid #edf0f5; font-size: 16px; font-weight: 650; }
.hf-modal-hd .hf-modal-x { margin-left: auto; border: none; background: #f3f5f8; width: 40px; height: 40px; border-radius: 14px; cursor: pointer; font-size: 18px; color: #8f9ab0; }
.hf-modal-hd .hf-modal-x:hover { background: #e8ecf4; }
.hf-modal-body { padding: 18px 24px 16px; background: #fff; }
.hf-welcome-img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; border: 1px solid var(--hf-line); background: var(--hf-line-2); }
.hf-modal-ft { display: flex; align-items: center; gap: 14px; padding: 16px 24px 18px; border-top: 1px solid #edf0f5; position: sticky; bottom: 0; background: #fbfcfe; z-index: 2; }
.hf-modal-ft .note { color: #8692a8; font-size: 14px; flex: 1; }

.hf-time-modal { width: 884px; }
.hf-time-stack { display: grid; }
.hf-time-panel {
  min-width: 0;
  background: #fff;
  border: none;
  border-radius: 0;
  padding: 0;
}
.hf-time-panel-hd {
  font-size: 17px;
  font-weight: 800;
  color: #1f293b;
}
.hf-month-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 16px;
}
.hf-month-shift {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid #e6eaf1;
  background: #fbfcfe;
  color: #657189;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.hf-month-shift:disabled {
  cursor: not-allowed;
  color: #b5bdd0;
  background: #f5f7fb;
}
.hf-month-title {
  text-align: center;
  color: #1f293b;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 44px;
  justify-content: center;
}
.hf-month-title strong {
  font-size: 18px;
  font-weight: 800;
}
.hf-month-title span {
  font-size: 12px;
  color: #9aa5b7;
  font-weight: 600;
}
.hf-calendar-wrap { margin-top: 18px; }
.hf-calendar-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}
.hf-calendar-week span {
  text-align: center;
  color: #a3acbc;
  font-size: 12px;
  font-weight: 600;
}
.hf-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.hf-cal-empty {
  min-height: 80px;
}
.hf-cal-day {
  min-width: 0;
  min-height: 80px;
  border: 1px solid #e7ebf2;
  background: #f8f9fc;
  border-radius: 18px;
  padding: 10px 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.hf-cal-day:hover:not(:disabled) {
  border-color: #cfd7e2;
  box-shadow: 0 6px 16px rgba(60, 76, 106, .07);
}
.hf-cal-day.on {
  border-color: #4468f2;
  background: #4468f2;
  box-shadow: 0 10px 22px rgba(68, 104, 242, .24);
}
.hf-cal-day.today:not(.on) {
  border-color: #2f3542;
  background: #f8f9fc;
  box-shadow: inset 0 0 0 1px rgba(47, 53, 66, .12);
}
.hf-cal-day.off,
.hf-cal-day:disabled {
  cursor: not-allowed;
  background: #f3f5f9;
  color: #b4bccb;
  border-color: #edf0f5;
  box-shadow: none;
}
.hf-cal-day.off .num,
.hf-cal-day:disabled .num {
  color: #aeb7c7;
}
.hf-cal-day.off .mark,
.hf-cal-day:disabled .mark {
  color: #b9c1cf;
}
.hf-cal-day .num {
  color: #2a3344;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
}
.hf-cal-day.on .num,
.hf-cal-day.on .mark {
  color: #fff;
}
.hf-cal-day .mark {
  min-height: 14px;
  font-size: 10.5px;
  font-weight: 600;
  color: #6b7a93;
  letter-spacing: .1px;
}
.hf-cal-day.has-visit .mark {
  position: relative;
  padding-left: 10px;
  color: #5d73f2;
}
.hf-cal-day.on.has-visit .mark {
  color: #fff;
}
.hf-cal-day.on.has-visit .num,
.hf-cal-day.on.has-visit .mark {
  color: #fff !important;
}
.hf-cal-day.has-visit .mark::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: #5d73f2;
}
.hf-cal-day.on.has-visit .mark::before {
  background: rgba(255, 255, 255, .92);
}
.hf-time-back {
  border: 1px solid #e5e9f2;
  background: #fff;
  color: #69758d;
  border-radius: 12px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.hf-time-back:hover {
  border-color: #cfd7e2;
  background: #f4f6fb;
}
.hf-date-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.hf-date-summary .slot {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.hf-date-summary .slot.busy {
  background: #eef2f7;
  color: var(--hf-ink-2);
}
.hf-date-summary .slot.free {
  background: #eaf6ef;
  color: var(--hf-ok);
}
.hf-time-stage-time { padding-bottom: 4px; }
.hf-time-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 22px;
  align-items: start;
}
.hf-time-matrix { min-width: 0; }
.hf-time-matrix-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hf-time-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}
.hf-time-row-label {
  color: #a4acbb;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}
.hf-time-row-slots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.hf-time-chip {
  min-width: 0;
  min-height: 42px;
  padding: 8px 6px;
  border-radius: 12px;
  border: 1px solid #e7ebf2;
  background: #f8f9fc;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: border-color .12s ease, background .12s ease, box-shadow .12s ease, transform .12s ease;
  touch-action: none;
}
.hf-time-chip:hover {
  border-color: #cfd7e2;
  background: #fff;
  box-shadow: 0 4px 12px rgba(60, 76, 106, .07);
  transform: translateY(-1px);
}
.hf-time-chip .t {
  color: #263042;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.1;
}
.hf-time-chip.unavailable {
  cursor: not-allowed;
  background: #f1f3f7;
  border-color: #e4e8ef;
  box-shadow: none;
}
.hf-time-chip.unavailable .t {
  color: #a1acbc;
}
.hf-time-chip.occupied:not(.on) {
  border-color: #d7defa;
  background: #f9faff;
}
.hf-time-chip.occupied:not(.on)::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7390ff;
}
.hf-time-chip.on {
  background: #4468f2;
  border-color: #4468f2;
  box-shadow: 0 8px 16px rgba(68, 104, 242, .20);
}
.hf-time-chip.range-start,
.hf-time-chip.range-end {
  border-color: #4468f2;
}
.hf-time-chip.on .t,
.hf-time-chip.range-start .t,
.hf-time-chip.range-end .t {
  color: #fff;
}
.hf-time-chip.range-invalid.on {
  background: #e99f43;
  border-color: #f0b27a;
  box-shadow: 0 8px 18px rgba(233, 159, 67, .18);
}
.hf-time-chip.range-occupied.on {
  background: #5d73f2;
  border-color: #5d73f2;
  box-shadow: 0 8px 16px rgba(93, 115, 242, .20);
}
.hf-time-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hf-time-side-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 20px 18px;
  border-radius: 20px;
  border: 1px solid #edf0f5;
  background: #f6f8fb;
  box-shadow: none;
}
.hf-time-side-label {
  color: #9ca7ba;
  font-size: 12px;
  font-weight: 700;
}
.hf-time-side-date {
  color: #22304a;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.22;
}
.hf-time-side-week {
  color: #9ba6b7;
  font-size: 14px;
  font-weight: 700;
}
.hf-time-side-divider {
  height: 1px;
  margin: 8px 0 0;
  background: #e4e9f1;
}
.hf-time-side-range {
  color: #22304a;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.22;
}
.hf-time-side-meta {
  color: #8b96aa;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}
.hf-time-side-clear {
  margin-top: 4px;
  align-self: flex-start;
  padding: 0;
  border: none;
  background: transparent;
  color: #7b879b;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.hf-time-side-tip {
  color: #8e98ab;
  font-size: 12px;
  line-height: 1.6;
  padding-left: 14px;
  position: relative;
}
.hf-time-side-tip.alert {
  color: #c0392b;
  font-weight: 800;
}
.hf-time-side-tip::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0;
  color: #1f293b;
  font-size: 11px;
}
.hf-time-side-tip.alert::before {
  color: #c0392b;
}
.hf-time-side-card.warn {
  background: #fff5eb;
  border-color: #f4d5b4;
}
.hf-time-side-card.warn .hf-time-side-range {
  color: #b36d19;
}
.hf-time-side-card.busy {
  background: #f7f9ff;
  border-color: #dbe3ff;
}
.hf-time-side-card.busy .hf-time-side-range {
  color: #22304a;
}
.hf-time-side-card.busy .hf-time-side-meta {
  color: #6780da;
}
.hf-time-side-card.muted {
  background: #f3f5f9;
  border-color: #e2e7ef;
}
.hf-time-side-card.muted .hf-time-side-range {
  color: #657186;
}
.hf-schedule-hd {
  align-items: flex-start;
}
.hf-schedule-copy {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.hf-schedule-copy strong {
  font-size: 17px;
  color: #202a3c;
}
.hf-schedule-ft .hf-btn {
  min-width: 110px;
  min-height: 44px;
  border-radius: 14px;
}
.hf-schedule-ft .hf-btn:not(.primary) {
  background: #fff;
  border-color: #dfe5ef;
  color: #5f6c82;
}
.hf-schedule-ft .hf-btn.primary {
  box-shadow: 0 10px 20px rgba(93, 115, 242, .20);
}
.hf-schedule-ft .hf-btn.primary:disabled {
  background: #cfd7ea;
  border-color: #cfd7ea;
  box-shadow: none;
  cursor: not-allowed;
}
.hf-schedule-ft .note {
  font-weight: 600;
  letter-spacing: .1px;
  color: #9aa5b7;
}
.hf-schedule-ft .note:empty {
  display: none;
}
.hf-schedule-ft {
  justify-content: flex-end;
}
.hf-timeline-shell {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 10px;
}
.hf-timeline-axis {
  position: relative;
}
.hf-timeline-label {
  position: absolute;
  right: 0;
  transform: translateY(-50%);
  color: var(--hf-ink-3);
  font-size: 11px;
  line-height: 1;
}
.hf-timeline-track {
  position: relative;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff 0%, #fafbfd 100%);
  border: 1px solid var(--hf-line);
  overflow: hidden;
}
.hf-track-lines,
.hf-track-slots,
.hf-track-blocks {
  position: absolute;
  inset: 0;
}
.hf-track-slots {
  touch-action: none;
}
.hf-track-lines,
.hf-track-blocks {
  pointer-events: none;
}
.hf-track-line {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px solid #edf1f5;
}
.hf-track-line.major {
  border-top-color: #dce3ea;
}
.hf-track-slot {
  position: absolute;
  left: 0;
  right: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: background .12s ease, box-shadow .12s ease;
}
.hf-track-slot:hover {
  background: rgba(20, 86, 196, .06);
}
.hf-track-slot.on {
  background: rgba(20, 86, 196, .08);
}
.hf-track-slot.unavailable {
  cursor: not-allowed;
  background: rgba(144, 157, 174, .08);
}
.hf-track-slot.range-start::before,
.hf-track-slot.range-end::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: rgba(20, 86, 196, .36);
}
.hf-track-slot.range-start::before {
  top: 0;
}
.hf-track-slot.range-end::after {
  bottom: 0;
}
.hf-track-slot.range-invalid.on {
  background: rgba(196, 126, 22, .10);
}
.hf-timeline-block {
  position: absolute;
  left: 14px;
  right: 14px;
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  box-shadow: 0 2px 8px rgba(20,33,51,.06);
  pointer-events: none;
}
.hf-timeline-block strong {
  font-size: 13px;
  font-weight: 700;
}
.hf-timeline-block span {
  font-size: 12px;
}
.hf-timeline-block.busy {
  background: #edf1f5;
  border: 1px solid #dbe3eb;
  color: var(--hf-ink-2);
}
.hf-timeline-block.selected {
  background: rgba(20, 86, 196, .14);
  border: 1px solid rgba(20, 86, 196, .28);
  color: var(--hf-primary-d);
}
.hf-timeline-block.selected.warn {
  background: rgba(196, 126, 22, .16);
  border-color: rgba(196, 126, 22, .32);
  color: #9a5c07;
}
.hf-timeline-block.selected.muted {
  background: rgba(120, 133, 148, .12);
  border-color: rgba(120, 133, 148, .28);
  color: #4e5d70;
}
.hf-time-empty {
  padding: 20px 16px;
  border-radius: 18px;
  border: 1px dashed #d9e0ea;
  background: #fafbfd;
  color: #68758c;
  font-size: 13px;
  text-align: center;
}
@media (max-width: 720px) {
  .hf-time-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .hf-time-step-head {
    margin-bottom: 14px;
  }
  .hf-time-row {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 10px;
  }
  .hf-time-row-slots {
    gap: 8px;
  }
  .hf-time-side {
    order: -1;
  }
}

/* 欢迎屏舞台：背景图 + 文字叠层 */
.hf-welcome-stage {
  position: relative;
  width: 100%;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(226, 233, 244, .9);
  background: linear-gradient(180deg, #101827 0%, #040813 100%);
  aspect-ratio: 16 / 9;
  min-height: 0;
  max-height: none;
  box-shadow: 0 18px 40px -20px rgba(28, 42, 84, .45), 0 2px 6px rgba(28, 42, 84, .08);
}
.hf-welcome-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,.10);
  pointer-events: none;
  z-index: 1;
}
.hf-welcome-stage .hf-welcome-img,
.hf-welcome-stage .hf-welcome-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: center center;
  background: #000;
  z-index: 0;
}
.hf-welcome-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 16, 28, .16) 0%, rgba(10, 16, 28, .02) 35%, rgba(10, 16, 28, .34) 100%),
    radial-gradient(circle at center, rgba(255,255,255,.06) 0%, rgba(255,255,255,0) 62%);
  pointer-events: none;
  z-index: 2;
}
.hf-welcome-stage .hf-welcome-img { display: none; }
.hf-welcome-stage .hf-welcome-video { display: block; }
.hf-welcome-overlay {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px;
  padding: 46px 36px;
  text-align: center;
  pointer-events: none;
}
.hf-welcome-overlay .wm-load {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 24px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(8, 14, 26, .34);
  box-shadow: 0 16px 32px rgba(0, 0, 0, .16);
}
.hf-welcome-overlay .wm-load.loading {
  min-width: 78px;
  min-height: 78px;
  padding: 18px;
  background: rgba(8, 14, 26, .30);
}
.hf-welcome-overlay .wm-load.loading::before {
  content: "";
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.18);
  border-top-color: rgba(255,255,255,.96);
  animation: hf-spin .8s linear infinite;
}
.hf-welcome-overlay .wm-load.error { background: rgba(154, 36, 28, .58); }
.hf-welcome-overlay .wm-welcome {
  max-width: 88%;
  color: #fff;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .01em;
  text-shadow: 0 2px 14px rgba(0,0,0,.28);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: normal;
}
.hf-welcome-overlay .wm-deftxt {
  color: rgba(255,255,255,.94);
  font-size: clamp(15px, 1.9vw, 21px);
  font-weight: 600;
  text-shadow: 0 2px 10px rgba(0,0,0,.4);
}
@keyframes hf-spin {
  to { transform: rotate(360deg); }
}

/* 模式切换 */
.hf-welcome-modal {
  width: min(960px, 95vw);
  max-height: 92vh;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 40px 90px -28px rgba(28, 42, 84, .34), 0 3px 10px rgba(28, 42, 84, .06);
}
.hf-welcome-modal .hf-modal-hd {
  background: #fff;
  border-bottom: 1px solid #f0f2f7;
}
.hf-welcome-modal .hf-modal-hd span {
  font-size: 21px;
  font-weight: 680;
  color: #1b2638;
  letter-spacing: .01em;
}
.hf-welcome-modal .hf-modal-body {
  padding: 24px 30px 28px;
  background: #fff;
}
.hf-welcome-modal .hf-modal-ft {
  padding: 18px 30px;
  border-top: 1px solid #f0f2f7;
  background: #fbfcfe;
}
.hf-welcome-modal .hf-modal-ft .note {
  font-size: 13px;
  color: #9aa3b4;
}
.hf-welcome-shell {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.hf-welcome-main {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.hf-welcome-preview-col {
  flex: 1.35;
  min-width: 0;
}
.hf-welcome-side {
  width: 322px;
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hf-welcome-side-panels {
  display: grid;
  flex: none;
  min-height: 0;
}
.hf-welcome-side-panels > * {
  grid-area: 1 / 1;
}
.hf-welcome-preview-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 0 2px;
}
.hf-welcome-preview-note .ic {
  font-size: 13px;
  line-height: 1;
  color: #6d7b91;
}
.hf-welcome-preview-note .txt {
  font-size: 12.5px;
  line-height: 1.55;
  color: #9aa3b4;
}
.hf-mode-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  padding: 5px;
  margin-top: 0;
  border: 1px solid #eef0f4;
  border-radius: 14px;
  background: #f3f5f9;
}
.hf-mode {
  flex: 1;
  min-width: 0;
  font-family: var(--hf-font);
  font-size: 14.5px;
  font-weight: 650;
  cursor: pointer;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: #7a8499;
  transition: all .15s;
  line-height: 1.3;
  white-space: nowrap;
  word-break: keep-all;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hf-mode:hover {
  color: #5a6678;
  background: rgba(255,255,255,.74);
}
.hf-mode.on {
  border-color: transparent;
  background: #fff;
  color: var(--hf-primary);
  box-shadow: 0 2px 8px -2px rgba(28,42,84,.16), 0 1px 2px rgba(28,42,84,.06);
}

.hf-cnt { color: var(--hf-ink-3); font-size: 12px; font-weight: 400; }
.hf-welcome-default-card,
.hf-welcome-modal #wm-custom-wrap {
  margin-top: 0 !important;
  border: 1px solid #ebeef4;
  border-radius: 18px;
  background: linear-gradient(180deg, #fbfcfe, #f6f8fc);
  flex: none;
  min-height: 0;
}
.hf-welcome-default-card {
  padding: 22px;
}
.hf-default-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 8px;
  background: rgba(59, 102, 245, .10);
  color: var(--hf-primary);
  font-size: 12px;
  font-weight: 660;
  margin-bottom: 14px;
}
.hf-default-title {
  font-size: 16px;
  font-weight: 680;
  color: #1b2638;
  margin-bottom: 10px;
}
.hf-default-desc {
  font-size: 13.5px;
  line-height: 1.7;
  color: #7a8499;
}
.hf-default-desc strong {
  color: #5a6678;
  font-weight: 600;
}
.hf-default-divider {
  height: 1px;
  background: #ebeef4;
  margin: 18px 0;
}
.hf-default-points {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.hf-default-point {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: #5a6678;
}
.hf-default-point .mark {
  color: var(--hf-primary);
  font-size: 13px;
}
.hf-welcome-modal #wm-custom-wrap {
  display: flex;
  flex-direction: column;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  flex: 1;
}
.hf-welcome-default-card.is-hidden,
.hf-welcome-modal #wm-custom-wrap.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
.hf-welcome-modal #wm-custom-wrap label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #3f4a5c;
}
.hf-welcome-modal #wm-text {
  min-height: 62px;
  height: 62px;
  margin-top: 0;
  background: #fff;
  resize: none;
  border: 1px solid #e3e7ee;
  border-radius: 12px;
  padding: 8px 14px;
  font-size: 14px;
  color: #1b2638;
  line-height: 1.45;
  overflow-y: auto;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.hf-welcome-modal #wm-text:focus {
  border-color: var(--hf-primary);
  box-shadow: 0 0 0 3px rgba(59,102,245,.14);
}
.hf-quick-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: #9aa3b4;
  margin: 14px 0 8px;
}
.hf-quick {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 0;
}
.hf-quick-chip {
  font-family: var(--hf-font);
  font-size: 13px;
  line-height: 1.35;
  cursor: pointer;
  min-height: 0;
  padding: 9px 12px;
  border-radius: 11px;
  border: 1px solid #e7eaf1;
  background: #fff;
  color: #3f4a5c;
  box-shadow: none;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hf-quick-chip::before {
  content: "+";
  color: var(--hf-primary);
  font-size: 12px;
  flex: none;
}
.hf-quick-chip:hover {
  border-color: rgba(59, 102, 245, .5);
  background: rgba(59, 102, 245, .05);
  transform: translateY(-1px);
}

@media (max-width: 1040px) {
  .hf-welcome-modal {
    width: min(900px, 95vw);
  }
  .hf-welcome-main {
    flex-direction: column;
    gap: 18px;
  }
  .hf-welcome-preview-col,
  .hf-welcome-side {
    width: 100%;
  }
  .hf-welcome-side-panels {
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .hf-welcome-modal {
    width: 100vw;
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 18px 18px 0 0;
  }
  .hf-welcome-modal .hf-modal-body {
    padding: 16px;
  }
  .hf-welcome-modal .hf-modal-ft {
    gap: 10px;
    padding: 16px;
  }
  .hf-welcome-modal .hf-modal-ft .note {
    flex: 1 0 100%;
  }
  .hf-welcome-shell {
    gap: 0;
  }
  .hf-mode-row {
    flex-direction: column;
  }
  .hf-mode {
    min-height: 56px;
    white-space: normal;
  }
  .hf-welcome-main {
    gap: 18px;
  }
  .hf-welcome-stage {
    border-radius: 16px;
  }
  .hf-welcome-overlay {
    padding: 36px 24px;
  }
  .hf-welcome-overlay .wm-welcome {
    max-width: 92%;
    font-size: clamp(14px, 3.9vw, 20px);
  }
  .hf-welcome-preview-note {
    margin-top: 12px;
  }
  .hf-welcome-default-card {
    padding: 18px;
  }
  .hf-welcome-modal #wm-text {
    min-height: 58px;
    height: 58px;
  }
  .hf-quick-chip {
    padding: 8px 11px;
  }
}
