:root {
  color-scheme: dark;
  --bg: #06101d;
  --bg-2: #0a1a2e;
  --panel: rgba(12, 29, 50, .78);
  --line: rgba(148, 200, 238, .16);
  --text: #eef8ff;
  --muted: #96adc2;
  --accent: #62dcff;
  --accent-2: #6effc8;
  --danger: #ff6c7e;
  --radius: 22px;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(56, 157, 255, .2), transparent 28%),
    radial-gradient(circle at 88% 32%, rgba(64, 255, 203, .12), transparent 30%),
    linear-gradient(160deg, var(--bg), var(--bg-2) 54%, #071522);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 36px));
  margin: 18px auto 0;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(5, 15, 28, .78);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 45px rgba(0, 0, 0, .25);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  color: #062236;
  font-size: 22px;
  font-weight: 1000;
  background: linear-gradient(135deg, #9aedff, #67ffd0);
  box-shadow: 0 0 24px rgba(83, 221, 255, .3);
}

.brand b {
  display: block;
  font-size: 19px;
  letter-spacing: -.02em;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: #6f8ea7;
  font-size: 8px;
  letter-spacing: .23em;
}

.main-nav {
  display: flex;
  gap: 8px;
}

.header-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .06em;
}

.nav-link {
  padding: 9px 19px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  transition: .2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  border-color: rgba(107, 225, 255, .28);
  background: rgba(65, 174, 224, .13);
}

main {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.catalog-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 34px;
  min-height: calc(100vh - 120px);
  padding: 44px 0 72px;
}

.category-sidebar {
  align-self: start;
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(8, 23, 40, .72);
  box-shadow: 0 20px 55px rgba(0, 0, 0, .2);
}

.category-sidebar h2 {
  margin: 8px 0 0;
  font-size: 24px;
  letter-spacing: -.035em;
}

.category-nav {
  display: grid;
  gap: 9px;
}

.category-nav .nav-link {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 3px 10px;
  width: 100%;
  padding: 14px 12px;
  border-radius: 14px;
  text-align: left;
}

.category-nav .nav-link span {
  grid-row: 1 / 3;
  align-self: center;
  color: #5d7890;
  font-size: 10px;
  letter-spacing: .08em;
}

.category-nav .nav-link b {
  color: inherit;
  font-size: 16px;
}

.category-nav .nav-link small {
  color: #71899d;
  font-size: 10px;
}

.category-nav .nav-link.active span,
.category-nav .nav-link.active small {
  color: #8ccbe2;
}

.side-note {
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: #7890a3;
  font-size: 12px;
  line-height: 1.8;
}

.support-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(104, 230, 255, .22);
  border-radius: 15px;
  background:
    radial-gradient(circle at 100% 0, rgba(93, 233, 255, .13), transparent 60%),
    rgba(12, 37, 60, .56);
}

.support-card span {
  color: #809db2;
  font-size: 11px;
  letter-spacing: .08em;
}

.support-card a {
  color: #aeefff;
  font-size: 17px;
  font-weight: 900;
  text-decoration: none;
}

.support-card a:hover {
  color: #72ffd1;
}

.catalog-panel {
  min-width: 0;
}

.search-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  max-width: 620px;
  margin: 0 0 34px auto;
  padding: 8px 8px 8px 17px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(9, 27, 47, .7);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .16);
}

.search-bar > span {
  color: #6f8ba0;
  font-size: 25px;
  line-height: 1;
}

.search-bar input {
  height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.search-bar input:focus {
  box-shadow: none;
}

.search-bar button {
  height: 38px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  color: #062135;
  background: linear-gradient(120deg, #9cecff, #70ffd0);
  font-weight: 900;
}

.catalog-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.catalog-head h1 {
  margin: 8px 0 0;
  font-size: clamp(42px, 6vw, 72px);
  line-height: .98;
  letter-spacing: -.055em;
}

.catalog-head > p {
  max-width: 390px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  text-align: right;
}

.hero {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  align-items: center;
  gap: clamp(30px, 7vw, 90px);
  min-height: 560px;
  padding: 70px 24px 56px;
}

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 18px 0 22px;
  font-size: clamp(50px, 8vw, 96px);
  line-height: .96;
  letter-spacing: -.065em;
}

.hero h1 em {
  color: transparent;
  font-style: normal;
  background: linear-gradient(105deg, #c5f4ff, #66ddff 48%, #72ffd1);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero p {
  max-width: 620px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.9;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;
  transition: transform .15s ease, filter .15s ease;
}

.primary-btn {
  border: 0;
  color: #042033;
  background: linear-gradient(120deg, #a6efff, #67e8ff 54%, #73ffd1);
  box-shadow: 0 12px 35px rgba(74, 219, 255, .25);
}

.secondary-btn {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, .04);
}

.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.primary-btn:disabled {
  cursor: wait;
  opacity: .58;
}

.full {
  width: 100%;
}

.hero-orbit {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
}

.hero-orbit::before,
.hero-orbit::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(112, 218, 255, .16);
  border-radius: 50%;
}

.hero-orbit::before {
  width: 350px;
  height: 350px;
}

.hero-orbit::after {
  width: 270px;
  height: 270px;
  border-style: dashed;
  animation: spin 20s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
}

.orb-one {
  width: 36px;
  height: 36px;
  top: 40px;
  right: 42px;
  background: #6effcf;
  box-shadow: 0 0 45px #6effcf;
}

.orb-two {
  width: 22px;
  height: 22px;
  left: 34px;
  bottom: 68px;
  background: #77dfff;
  box-shadow: 0 0 35px #77dfff;
}

.hero-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: min(290px, 78vw);
  aspect-ratio: 1.18;
  padding: 28px;
  border: 1px solid rgba(164, 229, 255, .24);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(107, 225, 255, .16), transparent 50%),
    rgba(8, 26, 44, .92);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .46);
  transform: rotate(-5deg);
}

.hero-card small {
  color: #77bad8;
  letter-spacing: .22em;
}

.hero-card b {
  font-size: 38px;
  letter-spacing: -.04em;
}

.hero-card span {
  color: var(--muted);
}

.products-section,
.process-section {
  padding: 54px 0 70px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 10px 0 0;
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: -.045em;
}

.section-head > p {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  text-align: right;
}

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

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(18, 48, 76, .72), rgba(7, 20, 34, .84));
  box-shadow: 0 20px 50px rgba(0, 0, 0, .2);
}

.product-category {
  align-self: flex-start;
  padding: 5px 10px;
  border: 1px solid rgba(101, 225, 255, .2);
  border-radius: 999px;
  color: #8ce9ff;
  background: rgba(53, 172, 222, .1);
  font-size: 11px;
  font-weight: 800;
}

.product-card h3 {
  margin: 24px 0 8px;
  font-size: 24px;
  letter-spacing: -.025em;
}

.product-subtitle {
  margin: 0;
  color: #9abdd4;
  font-size: 14px;
}

.product-description {
  flex: 1;
  margin: 18px 0;
  color: var(--muted);
  line-height: 1.75;
  white-space: pre-wrap;
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
}

.product-price {
  color: #f3fbff;
  font-size: 25px;
  font-weight: 900;
}

.buy-btn {
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid rgba(126, 231, 255, .32);
  border-radius: 12px;
  color: #062136;
  background: linear-gradient(120deg, #b3f2ff, #70eaff);
  font-weight: 900;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 60px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  display: flex;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--muted);
  background: rgba(9, 25, 43, .62);
}

.process-list b {
  color: var(--accent);
  font-size: 13px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 2px 38px;
  border-top: 1px solid var(--line);
  color: #6d879c;
  font-size: 12px;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 7, 15, .78);
  backdrop-filter: blur(8px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: 30px;
  border: 1px solid rgba(144, 218, 255, .22);
  border-radius: 24px;
  background: #0a1b2c;
  box-shadow: 0 35px 100px rgba(0, 0, 0, .6);
}

.modal-panel h2 {
  margin: 10px 0 22px;
  font-size: 30px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  font-size: 23px;
}

.selected-product {
  margin-bottom: 18px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--muted);
  background: rgba(255, 255, 255, .025);
}

.selected-product b {
  display: block;
  margin-bottom: 5px;
  color: var(--text);
  font-size: 17px;
}

#checkoutForm {
  display: grid;
  gap: 14px;
}

#checkoutForm label {
  display: grid;
  gap: 7px;
  color: #a7bfd2;
  font-size: 13px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(149, 202, 235, .2);
  border-radius: 12px;
  outline: none;
  color: var(--text);
  background: rgba(3, 14, 25, .78);
}

input,
select {
  height: 46px;
  padding: 0 13px;
}

textarea {
  padding: 12px 13px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(100, 225, 255, .62);
  box-shadow: 0 0 0 3px rgba(76, 204, 255, .09);
}

.form-error {
  margin: 0;
  color: var(--danger);
  font-size: 13px;
}

.order-number,
.result-note {
  color: var(--muted);
  line-height: 1.75;
}

.order-number b {
  color: var(--text);
}

.payment-box {
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: #102235;
  text-align: center;
}

.payment-box img {
  width: min(290px, 100%);
  border-radius: 12px;
}

.qr-missing {
  color: #a73a4b;
}

@media (max-width: 860px) {
  .site-header {
    margin-top: 10px;
  }

  .catalog-shell {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-top: 28px;
  }

  .category-sidebar {
    position: static;
  }

  .category-nav {
    grid-template-columns: 1fr 1fr;
  }

  .search-bar {
    margin-left: 0;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 60px;
    text-align: center;
  }

  .hero-copy p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-orbit {
    min-height: 340px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    align-items: flex-start;
    padding: 11px 13px;
  }

  .brand small {
    display: none;
  }

  .nav-link {
    padding: 9px 13px;
    font-size: 13px;
  }

  .hero {
    padding: 52px 4px 30px;
  }

  .header-note {
    display: none;
  }

  .catalog-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .catalog-head > p {
    text-align: left;
  }

  .category-nav {
    grid-template-columns: 1fr;
  }

  .search-bar {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .search-bar button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-head > p {
    text-align: left;
  }

  .product-grid,
  .process-list {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .modal-panel {
    padding: 24px 19px;
  }
}
