:root {
  color: #172033;
  background: #f5f7fb;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  --page: #f5f7fb;
  --paper: #ffffff;
  --ink: #172033;
  --muted: #607089;
  --line: #dce3ee;
  --blue: #1d5fd1;
  --blue-dark: #16479d;
  --green: #157a55;
  --amber: #a86100;
  --shadow: 0 16px 40px rgba(23, 32, 51, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--page);
  color: var(--ink);
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

a {
  color: var(--blue);
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 6vw;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
}

.brand span {
  white-space: nowrap;
}

.hero-copy h1,
.section-heading h1,
.section-heading h2,
.brand span,
.top-actions button,
.benefit-card h3,
.screen-body h3 {
  overflow-wrap: anywhere;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.top-actions button,
.legal-strip button,
.auth-head button,
.policy-head button,
.checkout-head button,
.auth-switch button {
  padding: 9px 12px;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
}

.top-actions .nav-login {
  min-width: 92px;
  background: var(--blue);
  color: #ffffff;
  font-weight: 700;
}

.top-actions button:hover,
.legal-strip button:hover,
.auth-head button:hover,
.policy-head button:hover,
.checkout-head button:hover,
.auth-switch button:hover {
  background: #eaf0f8;
  color: var(--ink);
}

.top-actions .nav-login:hover {
  background: var(--blue-dark);
  color: #ffffff;
}

.hero-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 56px 6vw 34px;
  background: #ffffff;
}

.hero-copy h1,
.section-heading h1,
.section-heading h2,
.auth-head h1,
.checkout-head h1,
.policy-head h1 {
  margin: 0;
  letter-spacing: 0;
}

.hero-copy h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
}

.hero-copy p {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.eyebrow,
.plan-type {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.filing-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-top: 20px !important;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f7fafc;
  color: var(--ink) !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.primary,
.secondary,
.plan-card button,
.select-plan {
  min-height: 42px;
  border-radius: 7px;
  padding: 11px 16px;
  font-weight: 700;
}

.primary {
  background: var(--blue);
  color: #ffffff;
}

.primary:hover {
  background: var(--blue-dark);
}

.compact {
  min-height: 38px;
  padding: 0 14px;
}

.secondary {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
}

.wide {
  width: 100%;
}

.select-plan span {
  color: var(--muted);
  font-size: 13px;
}

.content-band,
.embed-shell,
.checkout-shell,
.auth-layout,
.policy-page {
  padding: 42px 6vw;
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

.section-heading h1 {
  font-size: clamp(28px, 4vw, 42px);
}

.section-heading h2 {
  font-size: clamp(26px, 3vw, 36px);
}

.metrics-band,
.screenshots-band {
  background: #f7fafc;
}

.metric-grid,
.screenshot-grid,
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.metric-card,
.screen-card,
.benefit-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.metric-card {
  min-height: 132px;
  padding: 20px;
}

.metric-card strong {
  font-size: 32px;
  line-height: 1;
}

.metric-card span {
  margin-left: 4px;
  color: var(--muted);
  font-weight: 700;
}

.metric-card p {
  margin: 14px 0 0;
  color: var(--muted);
}

.benefit-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.benefit-card {
  display: grid;
  gap: 10px;
  min-height: 166px;
  padding: 20px;
}

.benefit-card h3,
.benefit-card p {
  margin: 0;
}

.benefit-card p {
  color: var(--muted);
  line-height: 1.75;
}

.screenshot-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.screen-card {
  overflow: hidden;
  min-height: 260px;
}

.screen-toolbar {
  display: flex;
  gap: 7px;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: #172033;
}

.screen-toolbar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffffff;
  opacity: 0.72;
}

.screen-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.screen-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: left top;
  border-bottom: 1px solid var(--line);
  background: #f3f6fb;
}

.screen-body h3,
.screen-body p {
  margin: 0;
}

.screen-body p {
  color: var(--muted);
  line-height: 1.65;
}

.screen-list {
  display: grid;
  gap: 10px;
}

.screen-list span {
  display: block;
  min-height: 36px;
  padding: 9px 10px;
  border-radius: 7px;
  background: #eef4ff;
  color: #1f3358;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.pricing-group {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.pricing-group-head {
  display: grid;
  gap: 6px;
}

.pricing-group-head h3,
.pricing-group-head p,
.plan-card h4,
.plan-card ul,
.policy-body h2,
.policy-body p {
  margin: 0;
}

.pricing-group-head p,
.policy-body p,
.field-hint,
.auth-switch {
  color: var(--muted);
  line-height: 1.75;
}

.plan-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.plan-card,
.integration-card,
.auth-box,
.checkout-panel,
.policy-body {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.plan-card {
  display: grid;
  gap: 16px;
  align-content: space-between;
  padding: 20px;
  min-height: 300px;
}

.plan-card strong {
  display: block;
  margin: 8px 0;
  font-size: 26px;
}

.plan-card span {
  color: var(--muted);
}

.plan-card ul,
.integration-card ul {
  display: grid;
  gap: 8px;
  padding-left: 18px;
}

.plan-card button {
  background: #edf4ff;
  color: var(--blue);
}

.legal-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 24px 6vw 42px;
  color: var(--muted);
}

.public-security-filing {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  text-decoration: none;
}

.public-security-filing:hover {
  color: var(--blue);
}

.police-filing-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  object-fit: contain;
}

.auth-layout {
  display: grid;
  place-items: start center;
  min-height: calc(100vh - 72px);
}

.auth-box {
  width: min(480px, 100%);
  padding: 24px;
}

.auth-head,
.checkout-head,
.policy-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f3f6fa;
}

.segmented button {
  min-height: 40px;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.segmented button.is-active {
  background: #ffffff;
  color: var(--blue);
  box-shadow: 0 6px 16px rgba(23, 32, 51, 0.08);
}

.stack-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.stack-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 700;
}

.stack-form input[type="text"],
.stack-form input[type="email"],
.stack-form input[type="password"] {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
  color: var(--ink);
}

.agreement-checklist {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.agreement-checklist label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-weight: 400;
}

.agreement-checklist input {
  width: 16px;
  height: 16px;
  margin-top: 3px;
}

.agreement-checklist button {
  padding: 0;
  background: transparent;
  color: var(--blue);
}

.notice {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 7px;
  background: #fff4e4;
  color: #8a4b00;
}

.auth-switch {
  margin: 0;
  text-align: center;
}

.checkout-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.checkout-steps span {
  min-height: 38px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #e9eef6;
  color: var(--muted);
  font-weight: 700;
}

.checkout-steps span.is-active {
  background: var(--blue);
  color: #ffffff;
}

.checkout-panel {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.checkout-panel.narrow {
  width: min(560px, 100%);
  margin: 0 auto;
}

.checkout-panel h2 {
  margin: 0;
  font-size: 24px;
}

.plan-select-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.select-plan {
  display: grid;
  gap: 9px;
  min-height: 168px;
  padding: 18px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  text-align: left;
}

.select-plan:hover {
  border-color: rgba(29, 95, 209, 0.5);
  box-shadow: 0 12px 26px rgba(29, 95, 209, 0.12);
}

.select-plan strong {
  font-size: 22px;
}

.select-plan b {
  color: var(--blue);
  font-size: 20px;
}

.order-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.order-list div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.order-list dt {
  color: var(--muted);
}

.order-list dd {
  margin: 0;
  font-weight: 700;
}

.qr-wrap {
  display: grid;
  place-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(11, 12px);
  gap: 4px;
  padding: 12px;
  border: 6px solid #ffffff;
  background: #f1f4f8;
}

.qr-cell {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: #ffffff;
}

.qr-cell.is-dark {
  background: #172033;
}

.embed-shell {
  display: grid;
  grid-template-rows: auto minmax(520px, calc(100vh - 190px));
  gap: 18px;
}

.embed-shell--full {
  display: block;
  height: 100vh;
  padding: 0;
  overflow: hidden;
  background: #ffffff;
}

.embed-frame {
  width: 100%;
  min-height: 520px;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.embed-shell--full .embed-frame {
  display: block;
  min-height: 0;
  border: 0;
  border-radius: 0;
}

.policy-page {
  display: grid;
  gap: 18px;
}

.policy-body {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.policy-body section {
  display: grid;
  gap: 8px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.policy-body section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.policy-body h2 {
  font-size: 20px;
}

.marketplace-intro {
  display: grid;
  gap: 18px;
}

.marketplace-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.marketplace-page {
  display: grid;
  gap: 24px;
  padding: 40px clamp(20px, 4vw, 56px);
}

.marketplace-head {
  display: grid;
  gap: 12px;
}

.marketplace-head h1 {
  margin: 0;
  font-size: 34px;
}

.marketplace-filters {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 220px auto;
  gap: 12px;
}

.marketplace-filters input,
.marketplace-filters select {
  border: 1px solid #d7dee8;
  border-radius: 8px;
  padding: 12px 14px;
  font: inherit;
}

.marketplace-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.marketplace-card {
  border: 1px solid #dde5ee;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  min-height: 320px;
  display: grid;
  grid-template-rows: 160px 1fr;
}

.product-image-placeholder {
  display: grid;
  place-items: center;
  background: #f3f6f9;
  color: #66758a;
  font-size: 14px;
}

.product-image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.marketplace-card-body {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.marketplace-card-body h3,
.marketplace-card-body p {
  margin: 0;
}

.marketplace-card-body span,
.marketplace-card-body small {
  color: #64748b;
}

@media (max-width: 1020px) {
  .hero-band,
  .pricing-grid,
  .benefit-grid,
  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plan-select-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 20px;
  }

  .top-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    justify-content: stretch;
  }

  .top-actions button,
  .top-actions .nav-login {
    min-width: 0;
    padding-inline: 8px;
    text-align: center;
  }

  .hero-copy h1 {
    font-size: 34px;
    line-height: 1.16;
  }

  .section-heading h1,
  .section-heading h2 {
    font-size: 26px;
    line-height: 1.25;
  }

  .hero-band,
  .content-band,
  .embed-shell,
  .checkout-shell,
  .auth-layout,
  .policy-page {
    padding: 28px 20px;
  }

  .embed-shell--full {
    height: 100vh;
    padding: 0;
  }

  .plan-list,
  .metric-grid,
  .benefit-grid,
  .plan-select-grid,
  .checkout-steps {
    grid-template-columns: 1fr;
  }

  .auth-head,
  .checkout-head,
  .policy-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .order-list div,
  .integration-card dl div,
  .marketplace-filters,
  .marketplace-grid {
    grid-template-columns: 1fr;
  }
}
