:root {
  color-scheme: light;
  --white: #ffffff;
  --mist: #f5f5f7;
  --paper: #fafafc;
  --ink: #1d1d1f;
  --slate: #6e6e73;
  --silver: #d2d2d7;
  --control: #e8e8ed;
  --steel: #86868b;
  --blue: #0066cc;
  --action: #0071e3;
  --action-hover: #0077ed;
  --blue-tint: #e8f1fc;
  --green: #0f7a3d;
  --green-tint: #e6f5ec;
  --red: #b42318;
  --red-tint: #fdecea;
  --radius: 28px;
  --display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --text: "SF Pro Text", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --shell: 1120px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 16px/1.5 var(--text);
  letter-spacing: -0.015em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; width: 100%; height: auto; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); }

.shell {
  width: min(var(--shell), calc(100% - 80px));
  margin-inline: auto;
}

.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

/* 极简三端切换细条 */
.workspace-bar {
  background: var(--mist);
  border-bottom: 1px solid var(--control);
  font-size: 12px;
  color: var(--slate);
}
.workspace-bar-inner {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.ws-switch {
  display: inline-flex;
  gap: 4px;
}
.ws-switch a {
  padding: 3px 11px;
  border-radius: 999px;
  color: var(--slate);
  transition: background 150ms ease, color 150ms ease;
}
.ws-switch a:hover { color: var(--ink); }
.ws-switch a.active {
  background: var(--white);
  color: var(--ink);
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* 延续原版毛玻璃白色导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(255 255 255 / 92%);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--control);
}
.header-inner {
  min-height: 58px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.brand {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 19px/1.2 var(--display);
  letter-spacing: -0.025em;
}
.brand-mark { width: 28px; height: 28px; flex: none; }

.header-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 13px;
  color: var(--ink);
}
.header-nav button {
  border: 0;
  background: none;
  padding: 4px 0;
  color: var(--slate);
  transition: color 150ms ease;
}
.header-nav button:hover,
.header-nav button.active {
  color: var(--ink);
  font-weight: 500;
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 原版圆润按钮系统 */
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--action);
  color: var(--white);
  font: 400 15px/1.25 var(--text);
  white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.button:hover:not(:disabled) { background: var(--action-hover); }
.button:disabled { opacity: 0.42; cursor: not-allowed; }
.button-small { padding: 7px 14px; font-size: 12.5px; }
.button-outline {
  color: var(--blue);
  background: transparent;
  border-color: var(--blue);
}
.button-outline:hover:not(:disabled) {
  color: var(--white);
  background: var(--blue);
}
.button-subtle {
  color: var(--ink);
  background: var(--mist);
  border-color: transparent;
}
.button-subtle:hover { background: var(--control); }
.button .icon { width: 15px; height: 15px; }

/* 纯白画廊式 Hero */
.hero {
  background: var(--white);
  padding: 58px 0 46px;
  text-align: center;
}
.hero-product {
  font: 600 18px/1.2 var(--display);
  color: var(--blue);
  margin-bottom: 12px;
}
.hero h1 {
  font-size: clamp(40px, 5.6vw, 72px);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.hero-lede {
  max-width: 660px;
  margin: 18px auto 0;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.5;
  color: var(--slate);
  text-wrap: balance;
}
.hero-media {
  margin: 38px auto 26px;
  width: min(100%, 620px);
}
.hero-media img {
  object-fit: contain;
  clip-path: polygon(0 0, 100% 0, 100% 86.4%, 92.4% 86.4%, 87.5% 100%, 12.5% 100%, 7.6% 86.4%, 0 86.4%);
}

/* Apple 分段选择器 */
.seg-control {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: var(--mist);
}
.seg-item {
  border: 0;
  background: transparent;
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--slate);
  transition: all 160ms ease;
}
.seg-item:hover { color: var(--ink); }
.seg-item.active {
  background: var(--white);
  color: var(--ink);
  font-weight: 500;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.live-nodes-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--slate);
}
.live-nodes-note b { color: var(--ink); font-weight: 500; }

/* 浅灰画廊商品区 */
.section { padding: 76px 0; }
.plans-section { background: var(--mist); }

.plans-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}
.section-heading h2 {
  font-size: clamp(30px, 3.8vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.section-heading p {
  margin-top: 8px;
  color: var(--slate);
  font-size: 16px;
}

.cycle-bar {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: var(--control);
  gap: 2px;
}
.cycle-btn {
  border: 0;
  background: transparent;
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--slate);
}
.cycle-btn.active {
  background: var(--white);
  color: var(--ink);
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* 纯白大圆角卡片 (延续原版 28px 圆角与留白) */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.plan-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 30px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1.5px solid transparent;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.plan-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}
.plan-card.featured {
  border-color: var(--action);
}

.card-badges {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.plan-tag {
  padding: 3px 11px;
  border-radius: 999px;
  background: var(--mist);
  color: var(--slate);
  font-size: 12.5px;
  font-weight: 500;
}
.plan-card.featured .plan-tag {
  background: var(--blue-tint);
  color: var(--blue);
}
.stock-pill {
  font-size: 12.5px;
  color: var(--green);
  font-weight: 500;
}
.stock-pill.out { color: var(--slate); }

.plan-card h3 {
  font-size: 24px;
  line-height: 1.18;
  letter-spacing: -0.025em;
}
.plan-sub {
  margin-top: 8px;
  color: var(--slate);
  font-size: 14.5px;
  line-height: 1.5;
}
.plan-spec-chip {
  margin-top: 14px;
  padding: 5px 12px;
  border-radius: 10px;
  background: var(--paper);
  border: 1px solid var(--control);
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
}

.price {
  margin-top: 24px;
  padding-bottom: 20px;
  width: 100%;
  border-bottom: 1px solid var(--control);
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.price strong {
  font: 600 44px/1 var(--display);
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}
.price span { font-size: 14.5px; color: var(--slate); }
.price s {
  margin-left: auto;
  font-size: 13px;
  color: var(--steel);
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 20px 0 28px;
  display: grid;
  gap: 11px;
  font-size: 14px;
  color: var(--ink);
  flex: 1;
}
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.plan-features .icon {
  width: 17px;
  height: 17px;
  color: var(--blue);
  margin-top: 2px;
}

.plan-lock-bar {
  margin-top: 24px;
  padding: 18px 24px;
  border-radius: 20px;
  background: var(--blue-tint);
  font-size: 14.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.plan-lock-bar b { color: var(--blue); margin-right: 10px; }

/* 延续原版手持产品图 Editorial 区域作为 Airbnb 房东自助入驻区 */
.editorial-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 5fr);
  align-items: center;
  gap: 48px;
}
.editorial img { border-radius: var(--radius); }
.host-points {
  list-style: none;
  padding: 0;
  margin: 22px 0 28px;
  display: grid;
  gap: 12px;
  font-size: 15px;
  color: var(--ink);
}
.host-points li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.host-points .icon { color: var(--blue); margin-top: 3px; }

.site-footer {
  background: var(--mist);
  border-top: 1px solid var(--silver);
  padding: 28px 0 32px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.credit {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--slate);
}
.credit a { text-decoration: underline; text-underline-offset: 2px; }

/* 原版克制纯净弹窗 */
dialog.apple-dialog {
  width: min(100% - 32px, 580px);
  padding: 0;
  border: 1px solid var(--control);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.14);
}
dialog.apple-dialog::backdrop {
  background: rgb(29 29 31 / 38%);
  backdrop-filter: blur(4px);
}
.dialog-inner { position: relative; padding: 32px; }
.dialog-close {
  position: absolute;
  top: 22px;
  right: 22px;
  display: grid;
  place-items: center;
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--mist);
  color: var(--ink);
}
.dialog-close:hover { background: var(--control); }
.dialog-title { font-size: 28px; line-height: 1.15; letter-spacing: -0.025em; padding-right: 40px; }

.form-stack { display: grid; gap: 15px; margin-top: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-label { display: block; font-size: 13.5px; font-weight: 500; color: var(--ink); }
.field-input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 13px;
  border-radius: 12px;
  border: 1px solid var(--silver);
  background: var(--white);
  color: var(--ink);
  font-size: 15px;
}
.field-input:focus { outline: 2px solid var(--action); border-color: transparent; }

.quote-summary {
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--mist);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.pay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 6px;
}
.pay-chip {
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid var(--silver);
  text-align: center;
  font-size: 13px;
  color: var(--slate);
  cursor: pointer;
}
.pay-chip input { display: none; }
.pay-chip.selected {
  border-color: var(--action);
  background: var(--blue-tint);
  color: var(--blue);
  font-weight: 500;
}

/* 干净浅灰提号凭据卡 */
.vault-item {
  background: var(--mist);
  border: 1px solid var(--control);
  border-radius: 20px;
  padding: 18px 20px;
  display: grid;
  gap: 10px;
}
.vault-field {
  background: var(--white);
  border: 1px solid var(--control);
  border-radius: 12px;
  padding: 10px 13px;
}
.vault-field small { display: block; font-size: 11.5px; color: var(--slate); margin-bottom: 2px; }
.vault-field code { font-family: var(--mono); font-size: 13px; color: var(--ink); word-break: break-all; }
.totp-digits {
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--blue);
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  background: var(--ink);
  color: var(--white);
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

@media (max-width: 900px) {
  .shell { width: calc(100% - 44px); }
  .plan-grid, .editorial-inner { grid-template-columns: 1fr; }
  .header-nav { display: none; }
  .header-inner { grid-template-columns: 1fr auto; }
}
@media (max-width: 580px) {
  .field-row, .pay-grid { grid-template-columns: 1fr; }
  .dialog-inner { padding: 24px; }
}
