:root {
  color-scheme: light;
  --ink: #10213f;
  --muted: #61708c;
  --line: #dbe7f4;
  --blue: #136fe8;
  --cyan: #0db7d4;
  --soft: #f8fbff;
  --panel: #ffffff;
  --ok: #147d55;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f7fbff 0%, #eef7fb 52%, #f8fbff 100%);
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  width: min(1160px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 28px 0 36px;
}

.nav,
.hero,
.section,
footer {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 16px 44px rgba(43, 83, 126, .08);
}

.nav {
  min-height: 76px;
  border-radius: 18px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 22px;
}

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
}

.links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  color: #42536e;
  font-weight: 800;
}

.links a:hover,
footer a:hover {
  color: var(--blue);
}

.hero,
.section {
  margin-top: 24px;
  border-radius: 22px;
  padding: 38px;
}

.eyebrow {
  color: #155fb7;
  font-weight: 900;
  margin-bottom: 14px;
}

h1 {
  margin: 0;
  font-size: 42px;
  line-height: 1.18;
}

h2 {
  margin: 0 0 18px;
  font-size: 28px;
}

h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

p,
li,
td,
th,
label {
  color: #52647f;
  line-height: 1.85;
  font-weight: 700;
}

.lead {
  max-width: 860px;
  font-size: 18px;
  margin: 18px 0 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.commerce-trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.commerce-trust a {
  min-height: 46px;
  border: 1px solid #d7e5f4;
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: #29486f;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  transition: border-color .16s ease, color .16s ease, background .16s ease, transform .16s ease;
}

.commerce-trust a:hover,
.commerce-trust a:focus-visible {
  border-color: #1778f2;
  background: #eef7ff;
  color: #0b5fc6;
  transform: translateY(-1px);
}

.two-col {
  display: grid;
  grid-template-columns: 1.35fr .8fr;
  gap: 22px;
  align-items: start;
}

.card,
.info-box {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--soft);
  padding: 22px;
}

.product-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.product-media,
.product-visual {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 1px solid #d7e5f4;
  border-radius: 16px;
  background:
    radial-gradient(circle at 25% 18%, rgba(13, 183, 212, .22), transparent 34%),
    linear-gradient(135deg, #eef7ff, #ffffff 62%, #e9f6f3);
  color: #17416f;
  font-weight: 900;
}

.product-media::before,
.product-visual::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .28) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, .22) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: .55;
}

.product-media > *,
.product-visual > * {
  position: relative;
  z-index: 1;
}

.product-media {
  min-height: 138px;
  margin-bottom: 18px;
  font-size: 18px;
}

.product-media--phone,
.product-visual--phone {
  background:
    radial-gradient(circle at 72% 16%, rgba(91, 79, 244, .2), transparent 30%),
    linear-gradient(135deg, #f5f9ff, #eef4ff 55%, #ffffff);
}

.product-media--monitor,
.product-visual--monitor {
  background:
    radial-gradient(circle at 24% 20%, rgba(13, 183, 212, .2), transparent 32%),
    linear-gradient(135deg, #f5fcff, #ffffff 58%, #edf8f6);
}

.product-media--ssd,
.product-visual--ssd {
  background:
    radial-gradient(circle at 74% 20%, rgba(19, 111, 232, .18), transparent 34%),
    linear-gradient(135deg, #f7fbff, #ffffff 56%, #eef6ff);
}

.device {
  display: flex;
  min-height: 78px;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
}

.product-visual .device {
  min-height: 170px;
  transform: scale(1.45);
}

.device-screen,
.device-tower,
.phone-body,
.monitor-screen,
.monitor-stand,
.ssd-body {
  position: relative;
  display: block;
  box-shadow: 0 16px 34px rgba(31, 66, 108, .16);
}

.device-screen {
  width: 84px;
  height: 52px;
  border: 5px solid #10213f;
  border-radius: 10px;
  background:
    radial-gradient(circle at 24% 28%, rgba(255, 255, 255, .86), transparent 15%),
    linear-gradient(145deg, #1b7de0, #75e4f2);
}

.device-screen::after {
  content: "";
  position: absolute;
  left: 28px;
  bottom: -20px;
  width: 28px;
  height: 18px;
  border-radius: 0 0 6px 6px;
  background: #10213f;
}

.device-tower {
  width: 34px;
  height: 68px;
  border-radius: 9px;
  background: linear-gradient(180deg, #14233d, #314968);
}

.device-tower::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 9px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle, #7cf0ff 0 32%, #0f5fbf 34% 62%, transparent 64%);
}

.device-tower::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 11px;
  height: 4px;
  border-radius: 999px;
  background: #89a7c8;
  box-shadow: 0 -9px 0 #587798;
}

.phone-body {
  width: 54px;
  height: 88px;
  border: 5px solid #10213f;
  border-radius: 18px;
  background:
    radial-gradient(circle at 72% 16%, rgba(255, 255, 255, .9), transparent 13%),
    linear-gradient(160deg, #5b4ff4, #1bb6d8 58%, #dffbff);
}

.phone-body::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 16px;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(16, 33, 63, .7);
}

.phone-body::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: 8px;
  width: 10px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
}

.device-monitor {
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.monitor-screen {
  width: 94px;
  height: 58px;
  border: 5px solid #10213f;
  border-radius: 11px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .85), transparent 32%),
    linear-gradient(150deg, #23c1d9, #0f5fbf);
}

.monitor-stand {
  width: 50px;
  height: 24px;
  box-shadow: none;
}

.monitor-stand::before,
.monitor-stand::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: #10213f;
}

.monitor-stand::before {
  top: 0;
  width: 10px;
  height: 18px;
  border-radius: 0 0 4px 4px;
}

.monitor-stand::after {
  bottom: 0;
  width: 50px;
  height: 7px;
  border-radius: 999px;
}

.ssd-body {
  width: 112px;
  height: 64px;
  transform: rotate(-5deg);
  border: 4px solid rgba(16, 33, 63, .88);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .85), transparent 38%),
    linear-gradient(145deg, #d7e9ff, #2a81df);
}

.ssd-body::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 18px;
  width: 54px;
  height: 7px;
  border-radius: 999px;
  background: rgba(16, 33, 63, .62);
  box-shadow: 0 14px 0 rgba(16, 33, 63, .35);
}

.ssd-body::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 20px;
  height: 10px;
  border-radius: 4px;
  background: #10213f;
}

.product-media-label {
  color: #31506f;
  font-size: 14px;
  font-weight: 900;
}

.product-hero {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 28px;
  align-items: center;
}

.product-visual {
  min-height: 280px;
  font-size: 30px;
}

.product-card:hover,
.product-card:focus-visible {
  border-color: rgba(19, 111, 232, .38);
  box-shadow: 0 16px 34px rgba(43, 83, 126, .12);
  transform: translateY(-2px);
}

.product-card:focus-visible {
  outline: 3px solid rgba(19, 111, 232, .2);
  outline-offset: 3px;
}

.tag-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0;
}

.tag-row span {
  border: 1px solid #d7e5f4;
  border-radius: 999px;
  padding: 7px 10px;
  background: #fff;
  color: #52647f;
  font-size: 13px;
  font-weight: 800;
}

.price {
  margin-top: auto;
  color: #0f5fbf;
  font-size: 22px;
  font-weight: 900;
}

.seller {
  margin-top: 10px;
  color: #61708c;
  font-weight: 800;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.product-card .actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.product-card .actions .btn {
  width: 100%;
  min-width: 0;
  padding: 0 12px;
  white-space: nowrap;
}

.product-card .actions .btn.primary {
  grid-column: 1 / -1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #c9dcf1;
  border-radius: 10px;
  background: #fff;
  color: #1c4d86;
  font-weight: 900;
  cursor: pointer;
}

.btn.primary {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 14px 30px rgba(19, 111, 232, .18);
}

.btn:disabled {
  cursor: default;
  opacity: .72;
}

.btn.is-complete,
.btn.is-complete:disabled {
  border-color: #b7dccb;
  background: #e8f7ef;
  box-shadow: none;
  color: #147d55;
  opacity: 1;
}

.btn.is-added,
.store-btn.is-added {
  border-color: #b7dccb;
  background: #edf9f3;
  box-shadow: none;
  color: #147d55;
}

.cart-actions-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.cart-status {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #c8ead8;
  border-radius: 999px;
  padding: 0 14px;
  background: #f1fbf6;
  color: #126d50;
  font-size: 13px;
  font-weight: 900;
}

.cart-status[hidden],
[data-cart-clear][hidden] {
  display: none;
}

.cart-quantity-control {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  overflow: hidden;
  border: 1px solid #c9dcf1;
  border-radius: 10px;
  background: #fff;
}

.cart-quantity-control button {
  width: 38px;
  min-height: 38px;
  border: 0;
  background: #f5f9ff;
  color: #155fb7;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.cart-quantity-control button:hover,
.cart-quantity-control button:focus-visible {
  background: #e8f2ff;
}

.cart-quantity-control span {
  min-width: 42px;
  padding: 0 10px;
  color: #10213f;
  font-weight: 900;
  text-align: center;
}

.cart-row-action {
  min-height: 38px;
  border: 1px solid #c9dcf1;
  border-radius: 10px;
  padding: 0 14px;
  background: #fff;
  color: #1c4d86;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.cart-row-action:hover,
.cart-row-action:focus-visible {
  border-color: #1778f2;
  background: #eef7ff;
  color: #0b5fc6;
}

.btn.is-muted {
  background: #e6eef8;
  border-color: #d5e2f2;
  box-shadow: none;
  color: #607491;
}

.form-actions,
.form-status {
  grid-column: 1 / -1;
}

.form-actions {
  margin-top: 4px;
}

.form-status {
  margin: 0;
  border: 1px solid #b9dbff;
  border-radius: 12px;
  padding: 14px 16px;
  background: #eef7ff;
  color: #124478;
  font-weight: 900;
}

.form-status-error {
  border-color: #ffd0d0;
  background: #fff5f5;
  color: #9b1c1c;
}

.form-status-note {
  margin-bottom: 16px;
}

.form-status[hidden] {
  display: none;
}

.form-grid.is-submitting {
  cursor: wait;
}

.form-grid.is-submitted input,
.form-grid.is-submitted select,
.form-grid.is-submitted textarea {
  border-color: #d5e3f1;
  background: #f4f8fd;
  color: #273a58;
}

.order-confirmation {
  grid-column: 1 / -1;
  border: 1px solid rgba(20, 125, 85, .28);
  border-left: 5px solid var(--ok);
  border-radius: 16px;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(232, 247, 239, .96), rgba(255, 255, 255, .96) 72%),
    #fff;
  box-shadow: 0 18px 38px rgba(30, 94, 68, .11);
  outline: none;
}

.order-confirmation[hidden] {
  display: none;
}

.order-confirmation:focus-visible {
  box-shadow: 0 18px 38px rgba(30, 94, 68, .11), 0 0 0 3px rgba(20, 125, 85, .16);
}

.order-confirmation-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.confirmation-mark {
  position: relative;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 999px;
  background: var(--ok);
  box-shadow: 0 10px 20px rgba(20, 125, 85, .18);
}

.confirmation-mark::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 8px;
  width: 9px;
  height: 16px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.confirmation-kicker {
  margin: 0 0 4px;
  color: var(--ok);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.45;
}

.order-confirmation h3 {
  margin: 0;
}

.order-confirmation p {
  margin: 8px 0 0;
}

.confirmation-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 0;
}

.confirmation-details div {
  min-width: 0;
  border: 1px solid #d7e9dc;
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, .84);
}

.confirmation-detail-wide {
  grid-column: 1 / -1;
}

.confirmation-details dt {
  margin: 0 0 4px;
  color: #5c735f;
  font-size: 13px;
  font-weight: 900;
}

.confirmation-details dd {
  margin: 0;
  color: #10213f;
  font-weight: 900;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.confirmation-steps {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding-left: 22px;
}

.confirmation-steps li {
  color: #31506f;
}

.order-summary {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr minmax(320px, .8fr);
  gap: 18px;
  border: 1px solid #d7e5f4;
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 22px;
  background: #f5fbff;
}

.order-summary h3,
.order-summary p {
  margin: 0;
}

.order-summary p {
  margin-top: 8px;
}

.summary-list {
  display: grid;
  gap: 10px;
}

.summary-row,
.cart-total,
.order-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid #dbe7f4;
  border-radius: 12px;
  padding: 12px 14px;
  background: #ffffff;
}

.summary-row span,
.cart-total,
.order-total {
  color: #52647f;
  font-weight: 800;
}

.summary-row strong,
.cart-total strong,
.order-total strong {
  color: #10213f;
  font-weight: 900;
}

.empty-cell {
  color: #607491;
  font-weight: 800;
  text-align: center;
}

.order-total {
  grid-column: 1 / -1;
}

.cart-total {
  margin-top: 16px;
}

.checkbox-line {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkbox-line input {
  width: auto;
  margin-top: 8px;
  flex: 0 0 auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 16px;
}

th,
td {
  border: 1px solid var(--line);
  padding: 16px;
  text-align: left;
  vertical-align: top;
  background: var(--soft);
}

th {
  width: 160px;
  color: #10213f;
  background: #eef6ff;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #c9d8eb;
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  font-weight: 800;
  color: #12223d;
  background: #fff;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(19, 111, 232, .12);
}

textarea {
  min-height: 112px;
  resize: vertical;
}

.notice {
  border: 1px solid #d7e5f4;
  border-radius: 16px;
  padding: 18px;
  background: #fff;
}

.security-record {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.beian-police {
  width: 16px;
  height: 17px;
  flex: 0 0 auto;
  object-fit: contain;
}

footer {
  margin-top: 24px;
  border-radius: 18px;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  color: #62738c;
  font-size: 14px;
  font-weight: 800;
}

@media (max-width: 900px) {
  .page {
    width: min(100vw - 28px, 1160px);
    padding-top: 14px;
  }

  .nav,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .section {
    padding: 26px 20px;
  }

  h1 {
    font-size: 32px;
  }

  .grid,
  .commerce-trust,
  .two-col,
  .product-hero,
  .form-grid,
  .order-summary,
  .confirmation-details {
    grid-template-columns: 1fr;
  }

  table {
    display: block;
    overflow-x: auto;
  }

  .cart-table {
    display: block;
    overflow: visible;
    border-radius: 0;
  }

  .cart-table thead {
    display: none;
  }

  .cart-table tbody {
    display: grid;
    gap: 14px;
  }

  .cart-table tr {
    display: grid;
    gap: 11px;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    background: var(--soft);
  }

  .cart-table td {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    border: 0;
    padding: 0;
    background: transparent;
    text-align: right;
  }

  .cart-table td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    color: #10213f;
    font-weight: 900;
    text-align: left;
  }

  .cart-table td:first-child {
    display: block;
    text-align: left;
    color: #10213f;
    font-size: 18px;
    font-weight: 900;
  }

  .cart-table td:first-child::before {
    display: block;
    margin-bottom: 4px;
    color: #61708c;
    font-size: 13px;
  }
}
