:root {
  color-scheme: light;
  font: 16px/1.6 system-ui, "Microsoft YaHei", sans-serif;
  color: #142b49;
  background: #f3f7fc;
  --ink: #142b49;
  --muted: #4f6480;
  --line: #d9e5f3;
  --accent: #185ca6;
  --accent-dark: #174679;
  --homepage-blue: #4192e7;
  --accent-light: #e7f2ff;
  --soft: #f4f8fe;
  --surface: #fff;
  --hero-text: #eff7ff;
  --hero-muted: #cde3fc;
  --hero-background:
    radial-gradient(ellipse at 93% 8%, #4192e766, transparent 62%),
    linear-gradient(112deg, #10294f 8%, #17457a 100%);
  --card-shadow: 0 14px 32px #1a417715;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); text-underline-offset: .22em; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
p, figure, dl, dd { margin: 0; }
header { background: var(--surface); border-bottom: 1px solid var(--line); }
.frame { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.topbar, .brand, .nav-link, .footer { display: flex; align-items: center; }
.topbar { min-height: 72px; justify-content: space-between; gap: 18px; }
.brand { gap: 11px; color: var(--ink); font-size: 1.0625rem; font-weight: 760; text-decoration: none; }
.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--accent-dark);
  border-bottom: 2px solid var(--homepage-blue);
  color: var(--surface);
  font-size: 1.03rem;
}
.brand-section { margin-left: 9px; color: var(--muted); font-size: .8125rem; font-weight: 500; }
.nav-link { gap: 7px; font-size: .875rem; font-weight: 660; text-decoration: none; }
.nav-tools { display: flex; min-width: 0; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 5px 20px; }
.nav-tools .nav-link { white-space: nowrap; }
.nav-link:hover, .footer a:hover { text-decoration: underline; }
.benefits-logout {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--accent-dark);
  font: inherit;
  font-size: .875rem;
  white-space: nowrap;
  cursor: pointer;
}
.benefits-logout:disabled { cursor: wait; }
.benefits-session-status { color: var(--ink); text-align: right; font-size: .875rem; }
.benefits-session-status:not(:empty) { padding-bottom: 10px; }
.page { padding-block: clamp(24px, 4vw, 46px) 26px; }
h1 { margin: 0; font-size: clamp(2.15rem, 4.5vw, 3.75rem); line-height: 1.15; font-weight: 820; }
h2 { margin: 0; font-size: .9375rem; font-weight: 730; }
.hero {
  padding: clamp(28px, 5vw, 54px);
  border-radius: 25px;
  background: var(--hero-background);
  color: var(--hero-text);
}
.hero p { margin-top: 13px; color: var(--hero-muted); }
.plan-grid, .software, .checkout-grid { display: grid; gap: 22px; }
.plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 22px; }
.card.plan { display: flex; flex-direction: column; border-top: 4px solid var(--line); }
.plan h2, .checkout-benefits h2, .payment-card h2 { color: var(--ink); font-size: clamp(1.3rem, 2.4vw, 1.65rem); }
.plan-price { margin-block: 12px 17px; }
.plan-amount { display: flex; align-items: center; gap: 18px; }
.payment-term { padding-left: 16px; border-left: 1px solid var(--line); color: var(--muted); font-size: .9375rem; line-height: 1.5; }
.card.vip-plan {
  border-color: #b7d3f2;
  border-top-color: var(--homepage-blue);
  background: linear-gradient(180deg, var(--accent-light), var(--surface) 147px);
}
.vip-plan h2 { color: var(--accent-dark); }
.comparison > div {
  display: grid;
  grid-template-columns: minmax(6em, 35%) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding-block: 12px;
  border-top: 1px solid var(--line);
}
.comparison dt {
  justify-self: start;
  max-width: 100%;
  padding: 5px 8px;
  border-radius: 6px;
  background: var(--accent-light);
}
.comparison dt, .checkout-entitlements dt {
  color: var(--accent-dark);
  font-weight: 700;
  line-height: 1.45;
}
.comparison dd, .checkout-entitlements dd { color: var(--ink); font-weight: 660; }
.plan .quota-note { padding-top: 12px; border-top: 1px solid var(--line); }
.plan .button { align-self: flex-start; }
.vip-plan .direct-checkout {
  padding: 14px;
  border: 1px solid #abc9ee;
  border-radius: 12px;
  background: var(--accent-light);
}
.vip-plan .direct-checkout > p { margin: 0 0 10px; }
.vip-plan .direct-checkout > p:first-child { font-weight: 700; overflow-wrap: anywhere; }
.vip-plan .direct-checkout label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
}
.vip-plan .direct-checkout input[type="checkbox"] {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
}
.vip-plan .direct-checkout .button { width: 100%; min-height: 48px; }
.vip-plan .direct-checkout-status { color: var(--muted); font-size: .875rem; line-height: 1.5; }
.vip-plan .direct-checkout-status:not(:empty) { margin-top: 10px; }
.price {
  display: block;
  color: var(--accent-dark);
  font-size: clamp(2.35rem, 5.4vw, 3.575rem);
  line-height: 1.12;
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
  font-weight: 790;
}
.price span { margin-right: .16em; font-size: .58em; vertical-align: .2em; }
.button {
  display: inline-flex;
  min-height: 47px;
  gap: 17px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--accent);
  color: var(--surface);
  font: inherit;
  font-weight: 680;
  text-decoration: none;
  cursor: pointer;
}
.button:not(:disabled):hover, .button:not(:disabled):focus-visible { background: var(--accent-dark); }
.button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.button:disabled { border-color: var(--line); background: var(--soft); color: var(--muted); cursor: not-allowed; }
.subtle { color: var(--muted); font-size: .8125rem; }
.quota-note { margin-bottom: 12px; color: var(--muted); font-size: .9375rem; }
.software {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: start;
  margin-top: 25px;
}
.preview {
  min-width: 0;
  padding: clamp(17px, 3.1vw, 31px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--card-shadow);
}
.preview figcaption { margin-bottom: 14px; color: var(--accent-dark); font-size: .925rem; font-weight: 750; }
.preview table {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  color: var(--ink);
  font-size: clamp(.75rem, 1.27vw, .9375rem);
  overflow: hidden;
  text-align: left;
}
.preview th, .preview td { padding: 12px clamp(8px, 1.5vw, 15px); }
.preview th { background: var(--soft); color: var(--muted); font-weight: 660; }
.preview td { border-top: 1px solid var(--line); }
.preview td:first-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.preview td + td { color: var(--accent-dark); font-weight: 700; }
.preview p { margin-top: 14px; color: var(--muted); font-size: .8125rem; }
.capabilities {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.capabilities div { padding: 14px clamp(14px, 3vw, 26px); }
.capabilities div + div { border-left: 1px solid var(--line); }
.capabilities dt { color: var(--accent-dark); font-size: 1.19rem; font-weight: 770; }
.capabilities dd { color: var(--muted); font-size: .8125rem; }
.export-notes { margin-top: 11px; }
.updates {
  margin-top: 27px;
  padding: 17px clamp(14px, 3vw, 24px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.update {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  gap: 7px 15px;
  align-items: baseline;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.update time, .update p { color: var(--muted); font-size: .8125rem; }
.update h3 { margin: 0 0 2px; font-size: .9rem; font-weight: 730; }
.footer { flex-wrap: wrap; gap: 20px; padding-block: 16px 24px; border-top: 1px solid var(--line); font-size: .8125rem; }
.footer a { color: var(--muted); text-decoration: none; }

.card {
  min-width: 0;
  padding: clamp(23px, 3vw, 37px);
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--surface);
  box-shadow: var(--card-shadow);
}
.checkout-page { min-height: 100vh; background: #f8fbff; }
.checkout, .checkout-page .footer { max-width: 1060px; }
.checkout { padding-block: clamp(32px, 4.8vw, 56px) 40px; }
.checkout-heading { margin-bottom: clamp(24px, 4vw, 38px); text-align: center; }
.checkout-heading h1 { color: var(--ink); }
.checkout-heading p { margin-top: 10px; color: var(--muted); }
.checkout-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); align-items: start; gap: clamp(28px, 5vw, 64px); }
.checkout-benefits { min-width: 0; padding-top: calc(clamp(22px, 3vw, 32px) + 4px); }
.checkout-entitlements { margin-top: 14px; }
.checkout-entitlements > div { padding-block: 15px 16px; border-top: 1px solid var(--line); }
.checkout-entitlements dd { margin-top: 4px; }
.checkout-compare-link { display: inline-flex; gap: 7px; padding-top: 4px; font-size: .9375rem; font-weight: 650; }
.payment-card { padding: clamp(22px, 3vw, 32px); border-top: 4px solid var(--homepage-blue); }
.checkout-total { display: flex; align-items: end; gap: 18px; padding-block: 16px 17px; }
.checkout-total-label { color: var(--muted); font-size: .9375rem; }
.payment-card .price { white-space: nowrap; }
.checkout-total .payment-term { margin-bottom: 4px; }
.payment-method { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-block: 11px; margin-bottom: 14px; border-block: 1px solid var(--line); }
.payment-method span { color: var(--muted); }
.payment-card .button { min-height: 50px; width: 100%; }
.payment-card .button[hidden] { display: none; }
.payment-status { margin-top: 8px; color: var(--muted); font-size: .9375rem; text-align: center; }
.payment-card .quota-note { margin: 17px 0 0; padding-top: 13px; border-top: 1px solid var(--line); }

@media (max-width: 860px) {
  .plan-grid, .checkout-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .checkout-benefits { padding-top: 0; }
}

@media (max-width: 740px) {
  .software { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

@media (max-width: 480px) {
  .frame { width: calc(100% - 28px); }
  .topbar { min-height: 58px; gap: 12px; }
  .brand-section { display: none; }
  .nav-link { font-size: .8125rem; }
  .nav-tools { column-gap: 10px; }
  .nav-tools .nav-link > span { display: none; }
  .hero { border-radius: 20px; }
  .comparison > div { min-height: 56px; }
  .checkout-entitlements > div { padding-block: 12px; }
  .capabilities { grid-template-columns: minmax(0, 1fr); }
  .capabilities div { display: grid; grid-template-columns: 84px 1fr; gap: 7px; align-items: baseline; padding-block: 9px; }
  .capabilities div + div { border-top: 1px solid var(--line); border-left: 0; }
  .capabilities dt { font-size: 1rem; }
  .update { grid-template-columns: minmax(0, 1fr); }
}
