:root {
  --bg: #edf2ff;
  --bg-deep: #dbeafe;
  --glass: rgba(255, 255, 255, 0.46);
  --glass-strong: rgba(255, 255, 255, 0.68);
  --line: rgba(255, 255, 255, 0.56);
  --line-soft: rgba(148, 163, 184, 0.2);
  --text: #0f172a;
  --muted: #475569;
  --brand: #2563eb;
  --brand-strong: #1d4ed8;
  --ok: #0f766e;
  --danger: #ef4444;
  --shadow-lg: 0 30px 70px rgba(37, 99, 235, 0.18);
  --shadow-md: 0 18px 38px rgba(15, 23, 42, 0.1);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 12% -8%, rgba(191, 219, 254, 0.95), transparent 65%),
    radial-gradient(1050px 620px at 88% 10%, rgba(196, 181, 253, 0.52), transparent 67%),
    radial-gradient(900px 560px at 50% 110%, rgba(125, 211, 252, 0.35), transparent 72%),
    linear-gradient(165deg, var(--bg), var(--bg-deep));
  letter-spacing: 0.01em;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -2;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

body::before {
  top: -190px;
  left: -140px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.82), rgba(59, 130, 246, 0.2));
}

body::after {
  right: -180px;
  bottom: -220px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle at 30% 30%, rgba(224, 231, 255, 0.8), rgba(59, 130, 246, 0.14));
}

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

.container {
  width: min(1200px, calc(100% - 34px));
  margin: 0 auto;
}

.xy-topbar {
  position: sticky;
  top: 14px;
  z-index: 50;
  transition: transform 260ms ease;
}

.topbar-inner {
  margin-top: 14px;
  min-height: 66px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--glass-strong);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: var(--shadow-md);
  transition: all 260ms ease;
}

.xy-topbar.scrolled .topbar-inner {
  min-height: 58px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 138px;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background:
    linear-gradient(118deg, rgba(239, 68, 68, 0.98), rgba(249, 115, 22, 0.96) 52%, rgba(250, 204, 21, 0.94));
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow:
    0 16px 30px rgba(249, 115, 22, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.brand::before {
  content: "😊";
  position: absolute;
  right: -14px;
  top: -10px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  background: rgba(255, 255, 255, 0.87);
  color: #b45309;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-nav a {
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: #1e293b;
  font-size: 13px;
  font-weight: 700;
  transition: all 220ms ease;
}

.top-nav a:hover,
.top-nav a.active {
  background: rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.wechat-entry {
  min-width: 118px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.86);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
  transition: transform 180ms ease;
}

.wechat-entry:hover {
  transform: translateY(-1px);
}

.banner {
  margin-top: 24px;
  padding: 34px 34px 30px;
  border-radius: calc(var(--radius-xl) + 4px);
  border: 1px solid var(--line);
  background:
    linear-gradient(132deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.28)),
    radial-gradient(130% 130% at 88% -20%, rgba(59, 130, 246, 0.2), transparent 64%);
  backdrop-filter: blur(20px) saturate(165%);
  -webkit-backdrop-filter: blur(20px) saturate(165%);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  transform: translate3d(var(--bx, 0px), var(--by, 0px), 0);
  transition: transform 220ms ease;
}

.banner::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  right: -120px;
  top: -120px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.46), transparent 70%);
  pointer-events: none;
}

.banner .small {
  margin: 0;
  font-size: 13px;
  color: rgba(15, 23, 42, 0.82);
  font-weight: 700;
}

.banner h1 {
  margin: 10px 0 8px;
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 900;
}

.discover-prefix {
  color: #0f172a;
  margin-right: 10px;
}

.discover-focus {
  color: #1d4ed8;
  text-shadow: 0 8px 22px rgba(37, 99, 235, 0.28);
}

.banner p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 500;
}

.wuyou-highlight {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--brand-strong);
  font-weight: 800;
}

.toolbar {
  margin-top: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-md);
}

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tab {
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: #334155;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 220ms ease;
}

.tab:hover {
  transform: translateY(-1px);
}

.tab.active {
  background: linear-gradient(120deg, #1d4ed8, #2563eb 58%, #0ea5e9);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 14px 24px rgba(37, 99, 235, 0.28);
}

.search {
  width: min(390px, 100%);
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  color: #64748b;
}

.search input {
  border: 0;
  outline: 0;
  width: 100%;
  font-size: 13px;
  background: transparent;
}

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

.item {
  display: flex;
  flex-direction: column;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  backdrop-filter: blur(18px) saturate(168%);
  -webkit-backdrop-filter: blur(18px) saturate(168%);
  box-shadow: 0 20px 32px rgba(15, 23, 42, 0.08);
  transition: transform 240ms ease, box-shadow 240ms ease, opacity 320ms ease;
  position: relative;
  opacity: 0;
  transform: translateY(14px) scale(0.985);
}

.item::after {
  content: "";
  position: absolute;
  inset: -80% -50%;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.38), transparent 40%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.item:hover {
  transform: translateY(-3px) perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  box-shadow: 0 24px 42px rgba(15, 23, 42, 0.14);
}

.item:hover::after {
  opacity: 1;
}

.item.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: var(--stagger, 0ms);
}

.item.hidden {
  display: none;
}

.tag {
  height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 800;
  border-bottom-right-radius: 12px;
  letter-spacing: 0.04em;
}

.tag.auto {
  color: #065f46;
  background: rgba(110, 231, 183, 0.36);
}

.tag.manual {
  color: #9a3412;
  background: rgba(253, 230, 138, 0.44);
}

.cat-label {
  margin-left: auto;
  margin-right: 10px;
  margin-top: 8px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.66);
  color: #334155;
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
}

.cat-label.ai {
  color: #1e3a8a;
  border-color: rgba(59, 130, 246, 0.34);
  background: rgba(191, 219, 254, 0.44);
}

.cover {
  width: calc(100% - 18px);
  height: 186px;
  margin: 8px 9px 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
  overflow: hidden;
}

.cover-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.item h2 {
  margin: 10px 10px 6px;
  min-height: 40px;
  font-size: 14px;
  line-height: 1.42;
  font-weight: 760;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.item p {
  margin: 0 10px;
  min-height: 18px;
  color: #64748b;
  font-size: 11px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.foot {
  margin: 10px 10px 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.foot strong {
  color: #0f172a;
  font-size: 29px;
  line-height: 1;
  font-weight: 830;
  letter-spacing: -0.03em;
}

.foot span {
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
}

.btn-detail {
  margin: 10px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(120deg, #1d4ed8, #2563eb 58%, #0ea5e9);
  color: #fff;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 13px;
  font-weight: 780;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.26);
  transition: transform 180ms ease;
}

.btn-detail:hover {
  transform: translateY(-1px);
}

.trust {
  margin: 6px 0 40px;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--glass);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.trust h3 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.trust p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.trust-item {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.56);
  opacity: 0;
  transform: translateY(10px);
}

.trust-item.in-view {
  opacity: 1;
  transform: translateY(0);
  transition: transform 360ms ease, opacity 360ms ease;
  transition-delay: var(--stagger, 0ms);
}

.trust-icon {
  font-size: 20px;
}

.trust-item h4 {
  margin: 10px 0 6px;
  font-size: 16px;
}

.trust-item p {
  margin: 0;
  font-size: 13px;
}

/* detail page */
.detail-wrap {
  margin: 24px auto 34px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 14px;
}

.panel {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  backdrop-filter: blur(18px) saturate(168%);
  -webkit-backdrop-filter: blur(18px) saturate(168%);
  box-shadow: var(--shadow-md);
}

.product-main h1 {
  margin: 0 0 8px;
  font-size: clamp(30px, 4.3vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 860;
}

.price-line {
  margin: 0;
  color: #0f172a;
  font-size: clamp(40px, 5vw, 56px);
  line-height: 1;
  font-weight: 900;
}

.price-line del {
  margin-left: 8px;
  font-size: 19px;
  color: #64748b;
}

.meta-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  color: #334155;
  line-height: 1.9;
  font-size: 13px;
}

.hero-shot {
  margin-top: 10px;
  width: 100%;
  height: 420px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.72);
}

.hero-shot-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.desc-block {
  margin-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  padding-top: 12px;
}

.desc-block h2 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 820;
}

.desc-block p {
  margin: 0 0 6px;
  color: #334155;
  font-size: 13px;
  line-height: 1.8;
}

.detail-tags {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.detail-tags span {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.24);
  background: rgba(191, 219, 254, 0.32);
  color: #1e3a8a;
  font-size: 11px;
  font-weight: 700;
}

.seller-title {
  margin: 0;
  font-size: 21px;
  font-weight: 830;
}

.seller-card {
  margin-top: 10px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  padding: 14px;
}

.wechat-id {
  margin: 8px 0;
  color: var(--ok);
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.seller-card p {
  margin: 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.7;
}

.copy-tip {
  margin-top: 8px;
  color: #475569;
  font-size: 12px;
  line-height: 1.5;
}

.contact-btn {
  margin-top: 12px;
  width: 100%;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(120deg, #1d4ed8, #2563eb 58%, #0ea5e9);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.back {
  margin-top: 12px;
  display: inline-block;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 700;
}

.contact-link {
  text-decoration: none;
}

.site-footer {
  margin-top: 16px;
}

.footer-inner {
  min-height: 64px;
  margin-bottom: 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--glass-strong);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-md);
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0 18px;
  color: #475569;
  font-size: 12px;
}

.footer-inner strong {
  color: #0f172a;
  font-weight: 800;
}

.wechat-page {
  min-height: calc(100vh - 160px);
  display: grid;
  place-items: center;
  padding: 24px 0;
}

.wechat-card {
  width: min(680px, 100%);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-xl) + 2px);
  background: var(--glass-strong);
  backdrop-filter: blur(20px) saturate(165%);
  -webkit-backdrop-filter: blur(20px) saturate(165%);
  box-shadow: var(--shadow-lg);
  padding: 34px 24px;
  text-align: center;
}

.wechat-kicker {
  margin: 0;
  color: #1e3a8a;
  font-size: 13px;
  font-weight: 800;
}

.wechat-card h1 {
  margin: 10px 0 8px;
  font-size: clamp(34px, 5.4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.wechat-desc {
  margin: 0;
  color: #475569;
  font-size: 15px;
  line-height: 1.7;
}

.wechat-id-big {
  margin: 18px auto 0;
  width: fit-content;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.36);
  background: rgba(209, 250, 229, 0.6);
  color: #065f46;
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.copy-main-btn {
  margin-top: 16px;
  min-width: 250px;
  height: 46px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(120deg, #1d4ed8, #2563eb 58%, #0ea5e9);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.copy-tip.center {
  margin-top: 10px;
}

.copy-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.26);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  z-index: 120;
}

.copy-modal.show {
  opacity: 1;
  pointer-events: auto;
}

.copy-modal-card {
  width: min(420px, 100%);
  padding: 20px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px) saturate(165%);
  -webkit-backdrop-filter: blur(18px) saturate(165%);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.2);
  text-align: center;
  transform: translateY(8px) scale(0.98);
  transition: transform 220ms ease;
}

.copy-modal.show .copy-modal-card {
  transform: translateY(0) scale(1);
}

.copy-modal-card h2 {
  margin: 0;
  font-size: 25px;
  letter-spacing: -0.02em;
}

.copy-modal-card p {
  margin: 10px 0 0;
  color: #334155;
  font-size: 14px;
  line-height: 1.7;
}

.copy-modal-btn {
  margin-top: 14px;
  min-width: 160px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(120deg, #1d4ed8, #2563eb 58%, #0ea5e9);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.item,
.banner,
.toolbar,
.trust,
.panel,
.wechat-card {
  animation: fadeUp 460ms ease both;
}

@media (prefers-reduced-motion: reduce) {
  .item,
  .banner,
  .toolbar,
  .trust,
  .panel,
  .wechat-card,
  .trust-item,
  .topbar-inner {
    animation: none !important;
    transition: none !important;
  }

  .item {
    opacity: 1;
    transform: none;
  }

  .trust-item {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1180px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .topbar-inner {
    flex-wrap: wrap;
    justify-content: center;
    padding-bottom: 12px;
  }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .search {
    width: 100%;
  }

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

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

@media (max-width: 760px) {
  .container {
    width: min(1200px, calc(100% - 22px));
  }

  .xy-topbar {
    top: 8px;
  }

  .topbar-inner {
    margin-top: 8px;
    border-radius: 20px;
    gap: 8px;
  }

  .top-nav {
    width: 100%;
    justify-content: center;
  }

  .top-nav a {
    height: 34px;
    font-size: 12px;
    padding: 0 12px;
  }

  .wechat-entry {
    width: 100%;
    max-width: 230px;
  }

  .banner {
    margin-top: 18px;
    padding: 26px 20px 22px;
    border-radius: 24px;
  }

  .banner p {
    font-size: 14px;
  }

  .tabs {
    justify-content: center;
  }

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

  .cover {
    height: 168px;
  }

  .hero-shot {
    height: 320px;
  }

  .footer-inner {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .wechat-card h1 {
    font-size: 30px;
  }

  .wechat-id-big {
    font-size: 30px;
  }
}
