:root {
  color-scheme: dark;
  --bg: #101114;
  --surface: #17191f;
  --surface-2: #20232b;
  --surface-3: #292d36;
  --text: #f6f7fb;
  --muted: #a7afbe;
  --line: rgba(255, 255, 255, 0.12);
  --red: #ff3b30;
  --blue: #2d8cff;
  --cyan: #16d6c2;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.wechat-img {
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
  border: 10px solid #fff;
  border-radius: 8px;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 82% 4%, rgba(255, 59, 48, 0.18), transparent 320px),
    linear-gradient(180deg, rgba(45, 140, 255, 0.1), transparent 430px),
    var(--bg);
  color: var(--text);
}

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

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 60px;
  padding: 9px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(16, 17, 20, 0.9);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.header-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 59, 48, 0.5);
  border-radius: 8px;
  background: linear-gradient(135deg, #2a1012, #431214 48%, var(--red));
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 11px;
}

.site-nav {
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.site-nav a:hover {
  color: var(--text);
}

.header-actions {
  gap: 8px;
}

.header-search,
.header-cart,
.button,
.icon-button {
  border: 0;
  border-radius: 8px;
}

.header-search,
.header-cart {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
}

.header-cart span {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  margin-left: 6px;
  place-items: center;
  border-radius: 999px;
  background: var(--red);
  font-size: 12px;
  font-weight: 800;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  font-weight: 800;
  font-size: 13px;
}

.button.primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 12px 30px rgba(255, 59, 48, 0.24);
}

.button.secondary {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
}

.button.full {
  width: 100%;
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  background: var(--surface-3);
  color: var(--text);
  font-size: 24px;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Top product banner */
.hero {
  padding: clamp(10px, 1.7vw, 18px) clamp(16px, 4vw, 48px) 10px;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(255, 59, 48, 0.16), transparent 34%),
    linear-gradient(250deg, rgba(45, 140, 255, 0.18), transparent 42%),
    var(--surface);
  box-shadow: var(--shadow);
}

.hero-slides {
  position: relative;
  overflow: hidden;
  min-height: clamp(300px, 40vh, 450px);
}

.hero-slide {
  display: none;
  min-height: inherit;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  gap: clamp(16px, 3vw, 38px);
  align-items: center;
  padding: clamp(18px, 3vw, 34px);
}

.hero-slide.is-active {
  display: grid;
}

.hero-carousel.slide-forward .hero-slide.is-active {
  animation: bannerSlideForward 360ms ease both;
}

.hero-carousel.slide-backward .hero-slide.is-active {
  animation: bannerSlideBackward 360ms ease both;
}

.slide-copy {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.slide-copy h1 {
  margin: 0;
  font-size: clamp(30px, 4.1vw, 54px);
  line-height: 0.98;
  letter-spacing: 0;
}

.slide-copy h3 {
  margin: 0;
  color: var(--cyan);
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.15;
}

.slide-copy p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.slide-meta,
.product-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.promo-badge,
.license,
.plugin-type-badge {
  display: inline-flex;
  width: max-content;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
}

.plugin-type-badge {
  border-color: rgba(255, 59, 48, 0.48);
  background: rgba(255, 59, 48, 0.12);
  color: #ffd1ce;
  font-weight: 900;
}

.plugin-public-id {
  display: inline-flex;
  width: max-content;
  min-height: 26px;
  align-items: center;
  margin-top: 8px;
  padding: 0 10px;
  border: 1px solid rgba(22, 214, 194, 0.35);
  border-radius: 999px;
  color: #9ef1e8;
  font-size: 12px;
  font-weight: 900;
}

.promo-badge {
  border-color: rgba(255, 59, 48, 0.38);
  color: #ffb8b4;
}

.slide-feature-list {
  display: grid;
  gap: 6px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.slide-feature-list li {
  color: var(--text);
  line-height: 1.35;
  font-size: 13px;
}

.slide-feature-list li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--red);
}

.slide-tags,
.slide-price {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
}

.slide-tags span,
.slide-price span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
}

.slide-price {
  gap: 14px;
}

.slide-price strong {
  color: var(--text);
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1;
}

.slide-visual {
  position: relative;
  min-width: 0;
  height: clamp(250px, 32vw, 340px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111318;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.slide-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.visual-panel {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 4px;
  min-width: 180px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 17, 20, 0.84);
  backdrop-filter: blur(12px);
}

.visual-panel span,
.visual-panel small {
  color: var(--muted);
}

.visual-panel strong {
  color: var(--text);
}

.hero-carousel-controls {
  position: absolute;
  top: 0;
  left: 14px;
  right: 14px;
  bottom: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
  pointer-events: none;
}

.hero-carousel-controls .icon-button {
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  color: rgba(255, 255, 255, 0.82);
  pointer-events: auto;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
}

.hero-carousel-controls .icon-button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 7px;
  pointer-events: auto;
  transform: translateX(-50%);
}

.hero-dots button {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.hero-dots button.is-active {
  width: 9px;
  height: 9px;
  background: var(--red);
}

@keyframes bannerSlideForward {
  from {
    opacity: 0.35;
    transform: translateX(34px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bannerSlideBackward {
  from {
    opacity: 0.35;
    transform: translateX(-34px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Catalog cards */
.section,
.workflow,
.download-panel {
  padding: clamp(40px, 5.5vw, 72px) clamp(16px, 4vw, 48px);
}

#plugins {
  background: var(--bg);
  padding-top: clamp(12px, 2vw, 24px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 6px;
}

.section-heading h2,
.workflow h2,
.download-panel h2,
.split-section h2,
.faq h2 {
  margin-bottom: 8px;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.1;
}

.section-heading p,
.workflow p,
.download-panel p,
.split-section p,
.faq p,
.cart-panel p {
  color: var(--muted);
  line-height: 1.65;
}

.catalog-head {
  display: grid;
  grid-template-columns: minmax(260px, 0.48fr) minmax(560px, 0.92fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 8px;
}

.catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.25fr) repeat(3, minmax(112px, 0.72fr));
  gap: 8px;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(32, 35, 43, 0.82);
}

label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111318;
  color: var(--text);
  outline: none;
  padding: 0 12px;
}

textarea {
  min-height: 88px;
  padding: 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(45, 140, 255, 0.18);
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
}

.result-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 13px;
}

#plugins .product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

#plugins .product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease;
}

#plugins .product-card:hover {
  border-color: rgba(255, 59, 48, 0.42);
  transform: translateY(-2px);
}

#plugins .product-thumb {
  width: 100%;
  aspect-ratio: 16 / 8.5;
  object-fit: cover;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111318;
}

#plugins .product-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  margin-bottom: 6px;
}

#plugins .product-top>div {
  min-width: 0;
}

#plugins .plugin-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: var(--icon-bg);
  color: #fff;
  font-weight: 900;
}

#plugins .product-meta-row .license,
#plugins .product-meta-row .plugin-type-badge {
  min-height: 24px;
  padding: 0 8px;
  font-size: 11px;
}

#plugins .product-card h3 {
  margin: 8px 0 0;
  font-size: 17px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

#plugins .price {
  display: block;
  margin: 4px 0;
  font-size: 25px;
  font-weight: 900;
}

#plugins .product-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 13px;
  overflow-wrap: anywhere;
}

#plugins .metrics,
#plugins .tag-row,
#plugins .user-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

#plugins .metrics span,
#plugins .tag-row span,
#plugins .user-tags span {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
}

#plugins .metrics span:first-child {
  border-color: rgba(45, 140, 255, 0.35);
  color: #9bc6ff;
}

#plugins .user-tags span {
  border-color: rgba(22, 214, 194, 0.28);
  color: #9ef1e8;
}

#plugins .product-body-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(88px, 0.46fr);
  gap: 12px;
  align-items: start;
  margin-top: 0;
}

#plugins .product-tags-panel {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-content: flex-start;
  gap: 6px;
  padding-top: 1px;
}

#plugins .product-tags-panel .metrics,
#plugins .product-tags-panel .tag-row,
#plugins .product-tags-panel .user-tags {
  display: contents;
  margin-top: 0;
}

#plugins .feature-list {
  display: grid;
  gap: 7px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.check-list {
  display: grid;
  gap: 7px;
  margin: 12px 0 14px;
  padding: 0;
  list-style: none;
}

#plugins .feature-list li,
.check-list li {
  color: var(--muted);
  line-height: 1.4;
  font-size: 13px;
}

#plugins .feature-list li::before,
.check-list li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--cyan);
}

.resource-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 12px;
}

.resource-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.resource-stats span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.tutorial-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  width: max-content;
  max-width: 100%;
  min-height: 28px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid rgba(255, 59, 48, 0.35);
  border-radius: 999px;
  color: #ffb8b4;
  font-size: 12px;
  font-weight: 800;
}

.tutorial-link:hover {
  border-color: var(--red);
  color: #fff;
}

#plugins .card-actions,
.slide-copy .card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
}

#plugins .card-actions .button,
.slide-copy .card-actions .button {
  min-width: 0;
  white-space: nowrap;
}

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

/* Product detail page */
.detail-page {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 3vw, 36px) clamp(16px, 4vw, 48px) clamp(44px, 7vw, 84px);
}

.detail-back-row {
  display: flex;
  justify-content: flex-start;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(380px, 1.18fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: center;
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(255, 59, 48, 0.14), transparent 38%),
    linear-gradient(250deg, rgba(45, 140, 255, 0.15), transparent 46%),
    var(--surface);
  box-shadow: var(--shadow);
}

.detail-copy {
  display: grid;
  gap: 12px;
}

.detail-copy h1 {
  margin: 0;
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1;
}

.detail-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.detail-price {
  color: var(--text);
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1;
}

.detail-copy .card-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 150px));
  gap: 10px;
  margin-top: 4px;
}

.detail-media {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111318;
}

.detail-media img {
  width: 100%;
  height: clamp(260px, 34vw, 430px);
  object-fit: cover;
}

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

.detail-panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.detail-panel h2 {
  margin-bottom: 12px;
}

.detail-panel p {
  color: var(--muted);
  line-height: 1.7;
}

.detail-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.6;
}

.detail-step-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-step-list li {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.detail-step-list strong {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  margin-bottom: 6px;
  padding: 0 8px;
  border: 1px solid rgba(22, 214, 194, 0.28);
  border-radius: 999px;
  color: #9ef1e8;
  font-size: 12px;
}

.detail-step-list p {
  margin: 0;
}

.detail-step-list img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111318;
}

.detail-image-panel {
  grid-column: 1 / -1;
}

.detail-image-panel img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111318;
}

/* Supporting sections */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0 clamp(16px, 4vw, 48px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.trust-strip span {
  display: grid;
  min-height: 58px;
  place-items: center;
  padding: 10px;
  background: rgba(25, 27, 32, 0.9);
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

.workflow {
  background: #14161b;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.timeline article {
  min-height: 230px;
  padding: 24px;
  background: var(--surface);
}

.timeline span {
  display: inline-grid;
  width: 44px;
  height: 44px;
  margin-bottom: 24px;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-3);
  color: var(--cyan);
  font-weight: 900;
}

.checkout-form {
  display: grid;
  gap: 14px;
}

.order-result {
  grid-column: 1 / -1;
  padding: 18px;
  border: 1px solid rgba(22, 214, 194, 0.35);
  border-radius: 8px;
  background: rgba(22, 214, 194, 0.08);
}

.download-line {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  margin: 9px 0;
  color: var(--muted);
}

.download-line strong {
  color: var(--text);
  word-break: break-all;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 420px);
  gap: 34px;
  align-items: center;
}

.wechat-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.wechat-card-img {
  width: 190px;
  height: 190px;
  margin-bottom: 20px;
}

.faq {
  padding-top: 0;
}

details {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}

details:last-child {
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
}

/* Cart drawer */
.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  visibility: hidden;
  pointer-events: none;
}

.cart-drawer.is-open {
  visibility: visible;
  pointer-events: auto;
}

.cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  opacity: 0;
  transition: opacity 180ms ease;
}

.cart-drawer.is-open .cart-backdrop {
  opacity: 1;
}

.cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: min(520px, 100%);
  height: 100%;
  overflow-y: auto;
  padding: 24px;
  border-left: 1px solid var(--line);
  background: #15171c;
  box-shadow: var(--shadow);
  transform: translateX(100%);
  transition: transform 220ms ease;
}

.cart-drawer.is-open .cart-panel {
  transform: translateX(0);
}

.cart-head,
.cart-row,
.cart-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cart-items {
  display: grid;
  gap: 12px;
}

.cart-row {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.cart-row p {
  margin: 0;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 9px;
}

.qty-controls button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-3);
  color: var(--text);
}

.cart-empty {
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  text-align: center;
}

.cart-summary {
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 18px;
}

.cart-summary strong {
  font-size: 30px;
}

.cart-fly-dot {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 120;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 0 0 8px rgba(255, 59, 48, 0.18), 0 8px 22px rgba(255, 59, 48, 0.45);
  pointer-events: none;
  transform: translate(var(--from-x), var(--from-y)) scale(1);
  animation: cartFly 980ms cubic-bezier(0.22, 0.86, 0.24, 1) forwards;
}

@keyframes cartFly {
  0% {
    opacity: 0;
    transform: translate(var(--from-x), var(--from-y)) scale(0.72);
  }
  16% {
    opacity: 1;
    transform: translate(var(--from-x), calc(var(--from-y) - 18px)) scale(1);
  }
  100% {
    opacity: 0.2;
    transform: translate(var(--to-x), var(--to-y)) scale(0.42);
  }
}

.payment-box {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 20px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.wechat-script {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(22, 214, 194, 0.32);
  border-radius: 8px;
  background: rgba(22, 214, 194, 0.08);
}

.wechat-script h3,
.wechat-script p {
  margin: 0;
}

.wechat-script p {
  color: var(--muted);
  line-height: 1.6;
}

.copy-text {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111318;
  color: var(--text);
  font-weight: 800;
  line-height: 1.5;
}

.checkout-wechat-img {
  width: 210px;
  height: 210px;
  margin: 0;
}


.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(16px, 4vw, 48px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 1180px) {
  .catalog-head {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 980px) {
  .site-nav {
    display: none;
  }

  .hero-slide,
  .download-panel,
  .split-section,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .hero-slides {
    min-height: 620px;
  }

  .slide-visual {
    height: 320px;
  }

  .slide-visual img {
    min-height: 0;
  }

  #plugins .product-grid,
  .trust-strip,
  .timeline,
  .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {

  .brand small,
  .header-search {
    display: none;
  }

  .header-cart {
    padding: 0 10px;
    font-size: 13px;
  }

  .hero-slides {
    min-height: 680px;
  }

  .hero-slide {
    padding: 20px;
    align-content: start;
  }

  .slide-copy h1 {
    font-size: 34px;
  }

  .slide-copy p {
    font-size: 14px;
  }

  .slide-visual {
    height: 260px;
  }

  .visual-panel {
    right: 12px;
    bottom: 12px;
    min-width: 150px;
    padding: 10px;
  }

  #plugins .product-grid,
  .catalog-toolbar,
  .search-row,
  .trust-strip,
  .timeline,
  .payment-box,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  #plugins .card-actions,
  .slide-copy .card-actions {
    grid-template-columns: 1fr;
  }

  #plugins .product-body-row {
    grid-template-columns: 1fr;
  }

  #plugins .product-tags-panel {
    justify-content: flex-start;
  }

  #plugins .product-tags-panel .metrics,
  #plugins .product-tags-panel .tag-row,
  #plugins .product-tags-panel .user-tags,
  .resource-stats {
    justify-content: flex-start;
  }

  .site-footer {
    display: grid;
  }

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