/*
  Worthlife 官网落地页示意稿：三个方向共用的样式
  品牌色、标志、按钮、"待替换"标记、方向切换条、预约表单
*/
:root {
  --pri: #1f3a5f;
  --pri-hover: #16304f;
  --pri-mid: #7f9cc4;
  --pri-light: #c9d7ea;
  --pri-soft: #e7edf5;
  --bg: #f4f5f7;
  --card: #ffffff;
  --ink: #1b1f27;
  --ink-2: #6b7280;
  --line: #e3e6eb;
  --field: #d3d8df;
  --deep: #0e1a2b;
  --deep-2: #17283f;
  --on-deep: #f4f5f7;
  --on-deep-2: #a3b3c9;
  --font: "Manrope", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  --latin: "Manrope", "PingFang SC", "Microsoft YaHei", sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--pri-mid); outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.num { font-family: var(--latin); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
section[id] { scroll-margin-top: 64px; }

/* 标志：墨蓝圆角方块 + 白色 W */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.logo-mark {
  flex: none; width: 30px; height: 30px; border-radius: 7px;
  display: grid; place-items: center;
  background: var(--pri); color: #fff;
  font: 800 17px/1 var(--latin);
}
.logo-text { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.logo-text b { font: 700 18px/1 var(--latin); letter-spacing: -.01em; }
.logo-text small { font-size: 13px; color: var(--ink-2); }
.on-dark .logo { color: #fff; }
.on-dark .logo-mark { background: #fff; color: var(--pri); }
.on-dark .logo-text small { color: var(--on-deep-2); }

/* 按钮：苹果式胶囊 */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 24px;
  border: 1px solid transparent; border-radius: 999px;
  font: 600 15px/1 var(--font); text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-pri { background: var(--pri); color: #fff; }
.btn-pri:hover { background: var(--pri-hover); }
.btn-line { border-color: var(--pri); color: var(--pri); background: transparent; }
.btn-line:hover { background: var(--pri); color: #fff; }
.btn-white { background: #fff; color: var(--pri); }
.btn-white:hover { background: var(--pri-soft); }
.btn-line-white { border-color: rgba(255, 255, 255, .7); color: #fff; background: transparent; }
.btn-line-white:hover { background: #fff; color: var(--pri); }
.btn-sm { height: 34px; padding: 0 16px; font-size: 13px; }

/* 待替换：示意稿里所有占位内容都挂这个 */
.tbd {
  display: inline-flex; align-items: center;
  height: 20px; padding: 0 7px; margin-left: 8px;
  border: 1px dashed var(--pri-mid); border-radius: 4px;
  background: var(--pri-soft); color: var(--pri);
  font: 500 11px/1 var(--font); letter-spacing: 0;
  vertical-align: middle; white-space: nowrap;
}
.on-dark .tbd, .tbd.on-photo { background: rgba(14, 26, 43, .45); color: #dfe7f2; border-color: rgba(223, 231, 242, .6); }

/* 方向切换条（示意稿专用） */
.switcher {
  position: fixed; left: 50%; bottom: 16px; z-index: 90;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 4px;
  max-width: calc(100vw - 24px); padding: 5px;
  border-radius: 999px;
  background: rgba(14, 26, 43, .88);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(14, 26, 43, .25);
}
.switcher span { padding: 0 8px 0 12px; color: var(--on-deep-2); font-size: 12px; white-space: nowrap; }
.switcher a { padding: 8px 14px; border-radius: 999px; color: #fff; font-size: 13px; text-decoration: none; white-space: nowrap; }
.switcher a:hover { background: rgba(255, 255, 255, .12); }
.switcher a[aria-current] { background: #fff; color: var(--pri); font-weight: 600; }
@media (max-width: 560px) {
  .switcher span { display: none; }
  .switcher a { padding: 8px 10px; font-size: 12px; }
}

/* 预约表单 */
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.label { padding: 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.field input:not([type="checkbox"]), .field select {
  width: 100%; height: 48px; padding: 0 14px;
  border: 1px solid var(--field); border-radius: 12px;
  background: #fff; color: var(--ink);
  font: 16px var(--font);
}
.field select {
  -webkit-appearance: none; appearance: none; padding-right: 40px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%231f3a5f' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 16px center;
}
.field input::placeholder { color: #9ca3af; }
.field input:focus, .field select:focus { outline: 2px solid var(--pri); outline-offset: 0; border-color: var(--pri); }
.field [aria-invalid="true"] { border-color: #c2413a; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.chip span {
  display: inline-block; padding: 8px 14px;
  border: 1px solid var(--field); border-radius: 999px;
  background: #fff; font-size: 14px; line-height: 1.4;
  cursor: pointer; user-select: none;
}
.chip input:checked + span { background: var(--pri); border-color: var(--pri); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--pri-mid); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.6; color: var(--ink-2); cursor: pointer; }
.consent input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--pri); }
.consent a { color: var(--pri); }
.err { margin: 0; font-size: 13px; color: #c2413a; }
.form .btn { width: 100%; height: 52px; font-size: 16px; }
.fine { margin: -6px 0 0; font-size: 12px; color: var(--ink-2); text-align: center; }
.booked { padding: 32px 0 16px; text-align: center; }
.booked-mark {
  width: 64px; height: 64px; margin: 0 auto; border-radius: 50%;
  display: grid; place-items: center; background: var(--pri-soft);
}
.booked-mark::after {
  content: ""; width: 14px; height: 26px; margin-top: -6px;
  border: solid var(--pri); border-width: 0 3px 3px 0; transform: rotate(45deg);
}
.booked h3 { margin: 20px 0 8px; font-size: 24px; font-weight: 700; }
.booked p { max-width: 22em; margin: 0 auto; color: var(--ink-2); }

/* 页脚 */
.foot { padding: 48px 0 96px; font-size: 13px; color: var(--ink-2); }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.foot-cols { display: flex; flex-wrap: wrap; gap: 12px 48px; }
.foot-cols p { margin: 0; }
.foot-cols b { display: block; margin-bottom: 2px; font-weight: 600; color: var(--ink); }
.foot-legal { margin: 20px 0 0; }
.on-dark.foot { color: var(--on-deep-2); }
.on-dark .foot-top { border-color: rgba(255, 255, 255, .12); }
.on-dark .foot-cols b { color: #fff; }

/* 截图或减弱动态时：所有动效直接停在最终状态 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto !important; }
}
.still *, .still *::before, .still *::after { animation: none !important; transition: none !important; }
.still .switcher { display: none; }
