:root {
  --ink: #152027;
  --muted: #66737d;
  --line: #dbe3e8;
  --paper: #f5f7f6;
  --white: #ffffff;
  --green: #16805d;
  --blue: #2c65cc;
  --orange: #c45d25;
  --red: #b7434a;
  --charcoal: #101820;
  --shadow: 0 18px 45px rgba(16, 24, 32, 0.12);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.store-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px 48px;
  border-bottom: 1px solid rgba(219, 227, 232, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--charcoal);
  color: var(--white);
  font-weight: 900;
}
.brand strong, .brand small { display: block; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 12px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #35444e;
  font-size: 15px;
}
.nav-links a:hover { color: var(--green); }

.header-action,
.primary-button,
.secondary-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.header-action,
.primary-button {
  min-height: 44px;
  padding: 0 18px;
  background: var(--green);
  color: var(--white);
  box-shadow: 0 12px 24px rgba(22, 128, 93, .18);
}
.secondary-button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,.62);
  background: rgba(255,255,255,.16);
  color: var(--white);
}
.header-action:hover,
.primary-button:hover,
.secondary-button:hover,
.icon-button:hover { transform: translateY(-1px); }
svg { width: 18px; height: 18px; stroke-width: 2.2; }

.store-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, .82fr);
  gap: 54px;
  align-items: center;
  min-height: 610px;
  padding: 72px max(48px, calc((100vw - 1180px) / 2)) 88px;
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(16, 24, 32, .96), rgba(31, 122, 90, .84)),
    url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1800&q=82");
  background-size: cover;
  background-position: center;
}
.eyebrow {
  margin: 0 0 12px;
  color: #198762;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}
.store-hero .eyebrow { color: #9be1c4; }
.hero-copy h1 {
  margin: 0;
  max-width: 660px;
  font-size: 54px;
  line-height: 1.08;
}
.hero-copy p:not(.eyebrow) {
  max-width: 660px;
  margin: 24px 0 0;
  color: rgba(255,255,255,.88);
  font-size: 18px;
  line-height: 1.82;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-showcase { position: relative; min-height: 360px; }
.showcase-window {
  padding: 18px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 8px;
  background: rgba(255,255,255,.16);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}
.window-bar { display: flex; gap: 7px; margin-bottom: 14px; }
.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.72);
}
.store-screen {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 14px;
  min-height: 270px;
  padding: 16px;
  border-radius: 8px;
  background: #f9fbfb;
}
.screen-sidebar {
  border-radius: 8px;
  background:
    linear-gradient(#d7eee6 0 0) 16px 20px / 48px 10px no-repeat,
    linear-gradient(#d7eee6 0 0) 16px 48px / 36px 10px no-repeat,
    linear-gradient(#d7eee6 0 0) 16px 76px / 50px 10px no-repeat,
    #172026;
}
.screen-main { display: grid; gap: 14px; }
.screen-stat {
  height: 70px;
  border: 1px solid #dbe3e8;
  border-radius: 8px;
  background: linear-gradient(90deg, #e7f5ef, #fff);
}
.screen-table { display: grid; gap: 10px; }
.screen-table span {
  height: 16px;
  border-radius: 4px;
  background: #dde7ec;
}
.screen-chart {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 8px;
  height: 84px;
}
.screen-chart span {
  border-radius: 5px 5px 0 0;
  background: var(--green);
}
.screen-chart span:nth-child(1) { height: 42%; }
.screen-chart span:nth-child(2) { height: 70%; }
.screen-chart span:nth-child(3) { height: 56%; }
.screen-chart span:nth-child(4) { height: 86%; }
.screen-chart span:nth-child(5) { height: 64%; }
.hero-price-card {
  position: absolute;
  right: 22px;
  bottom: -28px;
  min-width: 190px;
  padding: 20px;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.hero-price-card span,
.hero-price-card small { display: block; color: var(--muted); }
.hero-price-card strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 30px;
}

.store-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  width: min(1180px, calc(100% - 48px));
  margin: -40px auto 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.store-benefits div {
  padding: 22px 24px;
  border-right: 1px solid var(--line);
}
.store-benefits div:last-child { border-right: 0; }
.store-benefits svg { color: var(--green); }
.store-benefits strong,
.store-benefits span { display: block; }
.store-benefits strong { margin-top: 12px; }
.store-benefits span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
}

.store-section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 78px 0 0;
}
.store-section-head {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 56px;
  align-items: end;
  margin-bottom: 24px;
}
.store-section h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.2;
}
.store-section-head p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.category-tabs span {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: #35444e;
  font-weight: 800;
  font-size: 14px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.software-card {
  --accent: var(--green);
  display: flex;
  flex-direction: column;
  min-height: 620px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(16,24,32,.07);
  overflow: hidden;
}
.software-card[data-accent="green"] { --accent: var(--green); }
.software-card[data-accent="blue"] { --accent: var(--blue); }
.software-card[data-accent="orange"] { --accent: var(--orange); }
.software-card[data-accent="red"] { --accent: var(--red); }
.software-preview {
  min-height: 190px;
  padding: 16px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, #ffffff), #eef3f5);
}
.preview-toolbar { display: flex; gap: 6px; margin-bottom: 12px; }
.preview-toolbar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 70%, #ffffff);
}
.preview-content {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 12px;
  height: 140px;
}
.preview-nav {
  border-radius: 8px;
  background: rgba(16,24,32,.88);
}
.preview-body {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255,255,255,.82);
}
.preview-body > span {
  height: 13px;
  border-radius: 6px;
  background: rgba(16,24,32,.13);
}
.preview-bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  gap: 7px;
  height: 58px;
}
.preview-bars i {
  display: block;
  border-radius: 5px 5px 0 0;
  background: var(--accent);
}
.preview-bars i:nth-child(1) { height: 48%; }
.preview-bars i:nth-child(2) { height: 78%; }
.preview-bars i:nth-child(3) { height: 55%; }
.preview-bars i:nth-child(4) { height: 88%; }
.software-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}
.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.project-tag {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}
.sku {
  color: var(--muted);
  font-size: 12px;
}
.software-card h3 {
  margin: 10px 0 0;
  font-size: 24px;
  line-height: 1.28;
}
.software-card p {
  color: var(--muted);
  line-height: 1.7;
}
.software-badges {
  display: grid;
  gap: 8px;
  margin: 4px 0 18px;
}
.software-badges span {
  padding: 8px 10px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 7%, #ffffff);
  color: #31414c;
  font-size: 13px;
}
.card-detail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.card-detail h4 {
  margin: 0 0 10px;
  font-size: 15px;
}
.feature-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #33424c;
  font-size: 14px;
}
.feature-list li {
  position: relative;
  padding-left: 17px;
  line-height: 1.5;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.buy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.price {
  display: block;
  color: var(--charcoal);
  font-size: 32px;
  font-weight: 900;
}
.buy-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
.software-card .primary-button {
  background: var(--accent);
  box-shadow: none;
  white-space: nowrap;
}

.terms-section,
.process-section { padding-top: 82px; }
.terms-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.terms-grid article,
.process-list li {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.terms-grid article {
  min-height: 184px;
  padding: 22px;
}
.terms-grid svg { color: var(--green); width: 26px; height: 26px; }
.terms-grid h3 {
  margin: 16px 0 8px;
  font-size: 19px;
}
.terms-grid p,
.process-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}
.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.process-list li {
  min-height: 210px;
  padding: 22px;
}
.process-list span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #e7f5ef;
  color: var(--green);
  font-weight: 900;
}
.process-list strong {
  display: block;
  margin: 18px 0 8px;
  font-size: 18px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 28px;
  margin-top: 82px;
  padding: 26px 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--white);
  font-size: 14px;
}

.pay-dialog {
  width: min(960px, calc(100% - 34px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: var(--shadow);
}
.pay-dialog::backdrop { background: rgba(16,24,32,.62); }
.dialog-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(310px, .95fr);
  margin: 0;
  background: var(--white);
}
.dialog-main,
.payment-result { padding: 20px; }
.dialog-main h2,
.payment-result h3 {
  margin: 0;
  font-size: 22px;
}
.dialog-summary {
  margin: 12px 0 18px;
  color: var(--muted);
  line-height: 1.7;
}
.dialog-summary p { margin: 0 0 12px; }
.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 38px;
  height: 38px;
  background: #edf1f1;
  color: var(--ink);
}
.order-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid #dce5df;
  border-radius: 8px;
  background: #f0f6f1;
}
.order-total strong { font-size: 24px; }
label {
  display: block;
  margin: 12px 0 0;
  color: #33424c;
  font-weight: 700;
}
input, textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  border: 1px solid #cfd8dd;
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: var(--white);
  outline: none;
}
input:focus, textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(22,128,93,.14);
}
textarea { resize: vertical; }
.wide { width: 100%; }
.dialog-main .primary-button { margin-top: 12px; }
.form-message {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.5;
}
.payment-result {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  border-left: 1px solid var(--line);
  background: #f3f5f1;
}
.payment-result[hidden] { display: none; }
.payment-result .secondary-button {
  border-color: var(--line);
  background: var(--white);
  color: var(--ink);
}
.qr-box {
  display: grid;
  place-items: center;
  min-height: 236px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.qr-box img {
  width: min(210px, 100%);
  height: auto;
  display: block;
}
.qr-box .text-link {
  color: var(--green);
  font-weight: 800;
  text-align: center;
}
.payment-result p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
.checkout-detail { margin-top: 12px; }
.checkout-detail strong {
  display: block;
  margin-bottom: 6px;
  color: var(--charcoal);
}
.checkout-detail ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: #33424c;
}
.checkout-note {
  padding: 10px 12px;
  border-radius: 8px;
  background: #f0f6f1;
}

.result-page {
  min-height: 100vh;
  background: linear-gradient(120deg, rgba(31,122,90,.11), rgba(198,95,36,.12)), var(--paper);
}
.result-shell {
  width: min(780px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0;
}
.result-card {
  margin-top: 42px;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  text-align: center;
}
.result-card > svg {
  width: 54px;
  height: 54px;
  color: var(--green);
}
.result-card h1 {
  margin: 8px 0 12px;
  font-size: 32px;
}
.result-card p { color: var(--muted); line-height: 1.7; }
.result-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}
.result-actions .secondary-button {
  border-color: var(--line);
  color: var(--ink);
  background: var(--white);
}

@media (max-width: 1020px) {
  .store-header {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 12px 24px;
  }
  .nav-links {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 3px;
  }
  .store-hero,
  .store-section-head,
  .products-grid,
  .terms-grid,
  .process-list,
  .store-benefits,
  .dialog-shell {
    grid-template-columns: 1fr;
  }
  .store-hero { padding: 64px 24px 76px; }
  .store-benefits { margin-top: -26px; }
  .store-benefits div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .store-benefits div:last-child { border-bottom: 0; }
  .payment-result {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 680px) {
  .store-header { padding: 10px 16px; }
  .brand { min-width: 0; }
  .header-action { padding: 0 12px; }
  .store-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 54px 16px 70px;
  }
  .hero-copy h1 { font-size: 36px; }
  .hero-copy p:not(.eyebrow) { font-size: 16px; }
  .store-section,
  .store-benefits { width: calc(100% - 28px); }
  .store-section { padding-top: 62px; }
  .store-section h2 { font-size: 28px; }
  .card-detail,
  .buy-row {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }
  .software-card .primary-button { width: 100%; }
  .site-footer {
    justify-content: flex-start;
    padding: 24px 16px;
  }
  .result-actions { flex-direction: column; }
}


.dialog-shell.inline-checkout {
  grid-template-columns: 1fr;
}

.pay-dialog {
  width: min(448px, calc(100% - 20px));
}

.inline-payment-result {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f3f5f1;
}

.inline-payment-result h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.inline-payment-result .qr-box {
  min-height: 180px;
}

.inline-payment-result[hidden] {
  display: none;
}
