:root {
  --bg: #ffffff;
  --alt: #f5f5f7;
  --ink: #1d1d1f;
  --sub: #6e6e73;
  --muted: #86868b;
  --line: #d2d2d7;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --nav: 52px;
  --glass: rgba(255, 255, 255, 0.6);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(255, 255, 255, 0.8);
  --hairline: rgba(60, 60, 67, 0.14);
  --glass-shadow: 0 10px 30px rgba(40, 50, 120, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  --blur: blur(24px) saturate(180%);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif;
  font-size: 17px;
  line-height: 1.47;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--nav);
  padding: 0 22px;
  background: #fbfbfd;
  border-bottom: 1px solid #e8e8ed;
}

.wordmark {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a,
.nav-menu-btn {
  font-size: 14px;
  line-height: 1;
  color: var(--ink);
}

.nav-menu {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-menu-btn {
  display: inline-flex;
  align-items: center;
  margin: 0 -8px;
  padding: 4px 8px;
  border: 0;
  border-radius: 8px;
  background: none;
  font: inherit;
  font-size: 14px;
  line-height: 1;
  color: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.nav-links a:hover,
.nav-menu-btn:hover,
.text-link:hover,
.linkish:hover {
  color: var(--blue);
}

.nav-menu-btn[aria-expanded="true"],
.nav-menu-btn[aria-expanded="true"]:hover {
  background: rgba(0, 113, 227, 0.1);
  color: var(--ink);
}

.help-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9;
  background: rgba(0, 0, 0, 0.48);
}

.help-backdrop[hidden],
.help-panel[hidden] {
  display: none;
}

.help-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 11;
  background: #fff;
  border-bottom: 1px solid #e8e8ed;
}

.help-panel-inner {
  width: min(980px, calc(100% - 44px));
  margin: 0 auto;
  padding: 34px 0 42px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.help-panel a {
  font-size: 14px;
  line-height: 1.4;
}

.help-panel a:hover {
  color: var(--blue);
}

.nav-account {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}

.account-menu {
  position: relative;
}

.account-avatar {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.account-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  padding: 6px;
  background: var(--glass-strong);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  box-shadow: var(--glass-shadow);
  z-index: 20;
}

.account-dropdown[hidden] {
  display: none;
}

.account-row {
  display: block;
  width: 100%;
  margin: 0;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}

.account-row:hover {
  background: rgba(0, 113, 227, 0.1);
}

.account-email,
.account-credits {
  cursor: default;
}

.account-email {
  color: var(--sub);
  overflow-wrap: break-word;
}

.account-email:hover,
.account-credits:hover {
  background: none;
}

.linkish {
  background: none;
  border: 0;
  padding: 0;
  color: var(--ink);
  cursor: pointer;
}

.hero,
.block {
  width: min(980px, calc(100% - 44px));
  margin: 0 auto;
}

.hero {
  padding: 88px 0 64px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
  color: var(--sub);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 56px;
  line-height: 1.07;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.lede {
  max-width: 640px;
  margin: 18px auto 0;
  font-size: 21px;
  line-height: 1.38;
  color: var(--sub);
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  margin-top: 28px;
}

.shots {
  display: grid;
  grid-template-columns: 44px min(512px, calc(100% - 112px)) 44px;
  justify-content: center;
  align-items: center;
  column-gap: 12px;
  margin: 36px auto 0;
  outline: none;
}

.shot-stage {
  grid-column: 2;
  grid-row: 1;
  display: grid;
}

.shot-stage img {
  grid-area: 1 / 1;
  max-width: 100%;
  height: auto;
  align-self: center;
  justify-self: center;
  border-radius: 22px;
  box-shadow: 0 12px 32px rgba(40, 50, 120, 0.12);
  opacity: 0;
  visibility: hidden;
}

.shot-stage img.on {
  opacity: 1;
  visibility: visible;
}

.shot-nav {
  grid-row: 1;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  position: relative;
}

.shot-nav.prev {
  grid-column: 1;
}

.shot-nav.next {
  grid-column: 3;
}

.shot-nav::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
}

.shot-nav.prev::before {
  transform: translate(-30%, -50%) rotate(-135deg);
}

.shot-nav.next::before {
  transform: translate(-70%, -50%) rotate(45deg);
}

.shot-nav:hover {
  background: var(--alt);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 980px;
  background: var(--blue);
  box-shadow: 0 4px 14px rgba(0, 113, 227, 0.3);
  color: #fff;
  font-size: 17px;
  cursor: pointer;
}

.btn:hover {
  background: var(--blue-hover);
}

.btn:disabled,
.btn:disabled:hover {
  background: rgba(120, 120, 128, 0.16);
  box-shadow: none;
  color: #86868b;
  cursor: default;
}

/* 玻璃质感的次级按钮 */
.btn.btn-glass {
  background: var(--glass-strong);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--hairline);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  color: var(--ink);
}

.btn.btn-glass:hover {
  background: rgba(255, 255, 255, 0.95);
}

.btn.btn-glass:disabled,
.btn.btn-glass:disabled:hover {
  background: rgba(255, 255, 255, 0.5);
  color: #86868b;
}

/* 弹窗里的两个按钮：同样的宽高，间距统一 12px */
.btn.block-btn {
  width: 100%;
  margin-top: 12px;
}

.error + .btn.block-btn,
.error:empty + .btn.block-btn {
  margin-top: 8px;
}

.text-link {
  color: var(--blue);
  font-size: 17px;
}

.block {
  padding: 88px 0;
}

.block.alt {
  width: 100%;
  max-width: none;
  background: var(--alt);
  padding-left: 22px;
  padding-right: 22px;
}

.block.alt > * {
  width: min(980px, 100%);
  margin-left: auto;
  margin-right: auto;
}

h2 {
  font-size: 40px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section-lead {
  max-width: 640px;
  margin-top: 12px;
  font-size: 19px;
  color: var(--sub);
}

.cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.cols h3,
.steps h3 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.cols p,
.steps p {
  margin-top: 8px;
  color: var(--sub);
}

.note {
  margin-top: 36px;
  color: var(--muted);
  font-size: 14px;
}

.steps {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
}

.steps li {
  display: grid;
  grid-template-columns: 36px 1fr;
  column-gap: 16px;
  row-gap: 6px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.steps li::before {
  content: counter(step);
  counter-increment: step;
  grid-column: 1;
  grid-row: 1;
  font-size: 21px;
  font-weight: 600;
  color: var(--muted);
}

.steps h3 {
  grid-column: 2;
  grid-row: 1;
}

.steps p {
  grid-column: 2;
  grid-row: 2;
}

.steps {
  counter-reset: step;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.plan {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 28px 24px 24px;
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  box-shadow: var(--glass-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.plan:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(40, 50, 120, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.plan h3 {
  font-size: 17px;
  font-weight: 600;
}

.price {
  margin-top: 16px;
  font-size: 40px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.price span {
  margin-left: 6px;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--sub);
}

.usage {
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--sub);
}

.usage b {
  color: var(--ink);
  font-weight: 600;
}

.plan .btn {
  margin-top: auto;
}

.foot {
  padding: 28px 22px 40px;
  border-top: 1px solid #e8e8ed;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 24, 40, 0.28);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.overlay[hidden] {
  display: none;
}

.dialog {
  position: relative;
  width: min(420px, 100%);
  padding: 32px 28px 28px;
  background: rgba(255, 255, 255, 0.74);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 26px;
  box-shadow: 0 24px 60px rgba(20, 30, 90, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(120, 120, 128, 0.16);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.dialog h2,
.dialog .btn {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.25;
}

.dialog h2 {
  padding-right: 28px;
}

.dialog .hint {
  margin-top: 8px;
  color: var(--sub);
  font-size: 16px;
}

.field {
  display: block;
  margin-top: 22px;
  font-size: 16px;
  color: var(--sub);
}

.field input {
  display: block;
  width: 100%;
  height: 48px;
  margin-top: 8px;
  padding: 0 14px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  font-size: 16px;
}

.field input:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
  border-color: var(--blue);
}

.error {
  min-height: 20px;
  margin: 8px 0 0;
  color: #b42318;
  font-size: 13px;
}

.summary {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.summary p + p {
  margin-top: 8px;
}

.summary .label {
  color: var(--sub);
  font-size: 14px;
}

.pay-note {
  margin-top: 16px;
  padding: 12px 14px;
  background: rgba(120, 120, 128, 0.1);
  border-radius: 14px;
  color: var(--ink);
  font-size: 14px;
}

@media (max-width: 1068px) {
  .cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 734px) {
  .nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand brand"
      "links account";
    align-items: center;
    column-gap: 16px;
    height: auto;
    min-height: var(--nav);
    padding: 10px 16px;
    row-gap: 8px;
  }

  .wordmark {
    grid-area: brand;
  }

  .nav-links {
    grid-area: links;
    flex-wrap: wrap;
    gap: 6px 12px;
  }

  .nav-account {
    grid-area: account;
    justify-self: end;
  }

  h1 {
    font-size: 40px;
  }

  .lede,
  .section-lead {
    font-size: 17px;
  }

  h2 {
    font-size: 32px;
  }

  .cols,
  .plans {
    grid-template-columns: 1fr;
  }

  .hero,
  .block {
    width: min(980px, calc(100% - 32px));
  }

  .hero {
    padding-top: 56px;
  }
}

body.privacy {
  font-size: 14px;
}

body.privacy h1,
body.privacy h2,
body.privacy .foot {
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0;
}

body.privacy .block {
  padding: 56px 0 88px;
}

body.privacy p,
body.privacy ul {
  margin-top: 16px;
  line-height: 1.7;
}

body.privacy h2 {
  margin-top: 40px;
}

body.privacy h1 + p {
  margin-top: 12px;
}

body.privacy li {
  line-height: 1.7;
}

body.privacy li + li {
  margin-top: 12px;
}

.bills {
  margin-top: 8px;
}

.bill {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.bill-meta,
.bill-time,
.bill-status {
  margin-top: 4px;
  color: var(--sub);
  font-size: 13px;
}

.bill-side {
  flex: none;
  text-align: right;
}

.bill-status.paid {
  color: #1a7f37;
}

.contact-mail {
  margin-top: 16px;
}

.contact-mail a {
  color: var(--blue);
}

.contact-mail a:hover {
  text-decoration: underline;
}

.foot .foot-link {
  margin-top: 8px;
  font-size: 11px;
}

.foot .foot-link a {
  color: var(--muted);
  text-decoration: none;
}

.foot .foot-link a:hover {
  text-decoration: underline;
}
