:root {
  --bg: #f7f9fc;
  --panel: #ffffff;
  --panel2: #f1f5fa;
  --text: #243047;
  --muted: #718096;
  --gold: #3478e5;
  --gold2: #4c8df0;
  --line: #e1e8f2;
  --green: #21a66b;
  --radius: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
}

.container {
  width: min(1120px, calc(100% - 32px));
}

.announcement {
  color: #74550b;
  background: #fff3c8;
}

.site-header {
  background: rgba(255, 255, 255, .92);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 22px rgba(42, 67, 105, .05);
}

.nav-wrap {
  height: 62px;
}

.brand {
  font-size: 18px;
}

.brand-mark {
  width: 34px;
  height: 34px;
}

nav {
  gap: 22px;
}

.brand-mark {
  color: #fff;
  background: linear-gradient(145deg, #65a1f5, #2f70db);
  box-shadow: 0 7px 20px rgba(52, 120, 229, .2);
}

nav {
  color: #53627a;
}

nav a:hover,
.section-head > a,
.eyebrow {
  color: #3478e5;
}

.menu-button {
  color: var(--text);
  background: #fff;
  border-color: var(--line);
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, #5597f3, #2f72dd);
  box-shadow: 0 9px 24px rgba(52, 120, 229, .2);
}

.button.primary:hover {
  background: linear-gradient(135deg, #438aee, #2466cf);
}

.button.ghost {
  background: #fff;
  border-color: var(--line);
}

.section-dark {
  background: #f0f5fb;
  border-color: var(--line);
}

.section {
  padding: 54px 0;
}

.section-head {
  margin-bottom: 24px;
}

.section-head h2 {
  font-size: 28px;
}

.purchase-flow {
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 202, 80, .18), transparent 30%),
    linear-gradient(180deg, #f2f7ff, #f8fafd);
  border-bottom-color: var(--line);
}

.steps > div,
.category-card,
.product-card,
.notice-card {
  background: #fff;
  border-color: var(--line);
  box-shadow: 0 8px 25px rgba(46, 72, 110, .06);
}

.product-grid {
  gap: 14px;
}

.product-body {
  padding: 15px;
}

.product-body h3 {
  margin: 6px 0 10px;
  font-size: 16px;
}

.product-cover {
  aspect-ratio: 1.35;
}

.category-card:hover,
.product-card:hover {
  border-color: #9fc3f6;
  box-shadow: 0 13px 32px rgba(46, 92, 155, .12);
}

.steps b,
.price-row strong,
.detail-price strong {
  color: #3478e5;
}

.quick-service {
  color: #34435b;
  background: #f7f9fc;
  border-color: var(--line);
}

.quick-service:hover {
  border-color: #70a5ee;
}

.product-cover,
.detail-cover {
  background: #edf3fa;
}

.cover-placeholder {
  color: #3e7edc;
  background: radial-gradient(circle, #e8f2ff, #f7f9fc);
}

.product-meta {
  color: #8995a7;
}

.stock-badge.ok {
  color: #148253;
  background: #dff7eb;
}

.stock-badge.warn {
  color: #96670a;
  background: #fff1c9;
}

.stock-badge.info {
  color: #2467b1;
  background: #e0efff;
}

.stock-badge.muted {
  color: #6d7888;
  background: #e9edf2;
}

.page-hero {
  background: linear-gradient(135deg, #eaf3ff, #fff8de);
  padding: 44px 0 32px;
}

.page-hero h1 {
  margin: 5px 0;
  font-size: 36px;
}

.search-bar input {
  color: var(--text);
  background: #fff;
  border-color: var(--line);
}

.filters a,
.home-filters button {
  color: #5d6c82;
  background: #fff;
  border-color: var(--line);
}

.filters a:hover,
.home-filters button:hover {
  color: #286ed6;
  border-color: #82afea;
}

.filters a.active,
.home-filters button.active {
  color: #fff;
  background: #3478e5;
  border-color: #3478e5;
}

.detail-cover,
.detail-price,
.detail-content article section {
  border-color: var(--line);
}

.detail-grid {
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  align-items: start;
}

.detail-section {
  padding: 24px 0 64px;
}

.detail-summary h1 {
  margin: 12px 0 8px;
  font-size: 34px;
}

.detail-price {
  margin: 18px 0;
  padding: 13px;
}

.detail-content {
  gap: 30px;
  margin-top: 42px;
}

.detail-content article section {
  padding: 22px 0;
}

.rich-text,
.detail-summary .lead,
.notice-card,
.modal-panel > p {
  color: #64748b;
}

.modal-backdrop,
.qr-preview-backdrop {
  background: rgba(35, 48, 69, .46);
}

.modal-panel,
.qr-preview-panel {
  color: var(--text);
  background: #fff;
  border-color: var(--line);
  box-shadow: 0 22px 70px rgba(31, 52, 82, .2);
}

.service-card {
  color: var(--text);
  background: #f7f9fc;
  border-color: var(--line);
}

.service-card:hover {
  border-color: #6ea3ea;
}

.service-card b {
  color: #3478e5;
}

.mobile-buy {
  background: rgba(255, 255, 255, .96);
  border-top-color: var(--line);
  box-shadow: 0 -6px 25px rgba(37, 58, 88, .08);
}

footer {
  color: #718096;
  background: #edf3f9;
  border-top-color: #dbe4ef;
  padding: 24px 0;
}

.footer-brand {
  color: var(--text);
}

.footer-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-compact p {
  margin: 0;
}

.empty {
  color: var(--muted);
  background: rgba(255, 255, 255, .55);
  border-color: #cdd8e6;
}

@media (max-width: 620px) {
  .container {
    width: calc(100% - 24px);
  }

  .nav-wrap {
    height: 56px;
  }

  .brand {
    font-size: 16px;
  }

  .brand-mark {
    width: 31px;
    height: 31px;
    border-radius: 9px;
  }

  .site-header nav {
    background: #fff;
    border-color: var(--line);
    box-shadow: 0 15px 35px rgba(35, 55, 85, .14);
  }

  .section {
    padding: 38px 0;
  }

  .section-head {
    align-items: flex-start;
    margin-bottom: 17px;
  }

  .section-head h2 {
    font-size: 23px;
  }

  .product-grid {
    gap: 11px;
  }

  .product-card {
    border-radius: 14px;
  }

  .product-cover {
    aspect-ratio: 1.55;
  }

  .product-body {
    padding: 13px;
  }

  .price-row strong {
    font-size: 19px;
  }

  .page-hero {
    padding: 32px 0 24px;
  }

  .page-hero h1 {
    font-size: 29px;
  }

  .detail-section {
    padding: 16px 0 48px;
  }

  .detail-grid {
    gap: 20px;
  }

  .detail-summary h1 {
    font-size: 27px;
  }

  .detail-price {
    margin: 14px 0;
  }

  .detail-content {
    gap: 18px;
    margin-top: 28px;
  }

  .modal-panel {
    width: 100%;
    max-height: 86vh;
    padding: 25px 16px 18px;
    border-radius: 18px;
  }

  .service-card img {
    width: 150px;
  }

  .footer-compact {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  footer {
    padding: 20px 0;
  }
}

@media (max-width: 900px) {
  body {
    padding-bottom: 0;
  }

  body:has(.mobile-buy) {
    padding-bottom: 66px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-cover {
    width: min(100%, 440px);
    margin: 0 auto;
  }
}
