:root {
  --blue: #08a8e6;
  --blue-dark: #078ed8;
  --orange: #ff7733;
  --pink: #ff4f73;
  --text: #50555b;
  --muted: #9ca2a8;
  --bg: #f3f5f7;
  --card: #fff;
  --border: #eceff2;
  --shadow: 0 8px 28px rgba(23, 43, 77, 0.08);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

/* 电脑端网页整体缩小一级 */
@media (min-width: 721px) {
  html {
    zoom: 0.85;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    16px/1.65 "Microsoft YaHei",
    "PingFang SC",
    Arial,
    sans-serif;
}
body.menu-open {
  overflow: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
img {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 86px;
  padding: 0 max(28px, calc((100% - 1500px) / 2));
  display: flex;
  align-items: center;
  gap: 48px;
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid #eee;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.site-header.on-hero {
  position: absolute;
  width: 100%;
  color: #fff;
  background: transparent;
  box-shadow: none;
  border: 0;
}
.site-header.on-hero.scrolled {
  position: fixed;
  color: var(--text);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.logo {
  white-space: nowrap;
  color: #111;
  font-size: 32px;
  font-style: italic;
  font-weight: 1000;
  letter-spacing: 10px;
}
.logo span {
  display: none;
}
.on-hero:not(.scrolled) .logo {
  color: #fff;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  margin: auto;
  height: 100%;
}
.main-nav > a {
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-size: 18px;
  position: relative;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--blue);
}
.main-nav a.active::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  border-radius: 0 0 5px 5px;
  background: var(--blue);
}
.header-actions {
  flex: none;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 42px;
}

.header-actions button {
  padding: 0;
  line-height: 1;
}

.member-menu {
  position: relative;
  flex: none;
}

.header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #525960;
}

.header-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f1f2f4;
  transition:
    color 0.2s,
    background 0.2s,
    transform 0.2s;
}

.header-icon:hover {
  color: var(--blue);
  transform: translateY(-1px);
}

.search-button {
  background: transparent;
}

.search-glyph,
.moon-glyph {
  position: relative;
  display: block;
  flex: none;
  color: currentColor;
}

.search-glyph {
  width: 19px;
  height: 19px;
}

.search-glyph::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  width: 11px;
  height: 11px;
  border: 1.8px solid currentColor;
  border-radius: 50%;
}

.search-glyph::after {
  content: "";
  position: absolute;
  right: 1px;
  bottom: 2px;
  width: 7px;
  height: 1.8px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: right center;
}

.moon-glyph {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: currentColor;
  -webkit-mask: radial-gradient(
    circle at 68% 34%,
    transparent 0 43%,
    #000 46%
  );
  mask: radial-gradient(circle at 68% 34%, transparent 0 43%, #000 46%);
}

.auth-entry,
.member-button {
  height: 40px;
  padding: 0 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 20px;
  color: #fff;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition:
    filter 0.2s,
    transform 0.2s;
}

.auth-entry:hover,
.member-button:hover {
  color: #fff;
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.auth-entry {
  min-width: 98px;
  border: 0;
  background: linear-gradient(135deg, #25cb70, #15a95b);
  box-shadow: 0 7px 18px rgba(21, 169, 91, 0.25);
  cursor: pointer;
}

.member-button {
  min-width: 112px;
  background: linear-gradient(120deg, #4d4e52, #27272a);
}

.member-crown {
  color: #ff8a36;
  font-size: 18px;
  line-height: 1;
}

.site-header.on-hero:not(.scrolled) .header-icon {
  color: #fff;
  background: transparent;
}

.site-header.on-hero:not(.scrolled) .member-button {
  background: rgba(34, 34, 38, 0.78);
}

.dark .header-icon {
  color: #d9dde1;
  background: #30343a;
}

.dark .search-button {
  background: transparent;
}

.member-pop {
  visibility: hidden;
  opacity: 0;
  transform: translateY(8px);
  position: absolute;
  right: 0;
  top: 50px;
  z-index: 120;
  padding: 18px;
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.16);
  transition: 0.2s;
}
.member-menu:hover .member-pop {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}
.member-pop {
  width: 330px;
}
.member-pop article {
  padding: 17px;
  border-radius: 8px;
  color: #fff;
  margin-bottom: 12px;
}
.member-pop article:last-child {
  margin-bottom: 0;
}
.member-pop .arich {
  background: linear-gradient(135deg, #64617e, #34354e);
}
.member-pop h3 {
  margin: 0;
}
.member-pop p {
  margin: 5px 0 10px;
  font-size: 14px;
}
.member-pop article a {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 18px;
  background: #fff;
  color: #5b5146;
}
.mobile-menu-button,
.mobile-mask {
  display: none;
}

.hero {
  height: 625px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #062ba8 url("../images/hero-bg.png") center/cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(4, 16, 80, 0.12), rgba(4, 10, 58, 0.2));
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(860px, 90%);
  text-align: center;
  transform: translateY(-38px);
}
.hero h1 {
  margin: 0 0 7px;
  font-size: 36px;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.22);
}
.hero p {
  margin: 0;
  font-size: 20px;
}
.hero-search {
  width: min(760px, 100%);
  height: 54px;
  display: flex;
  margin: 34px auto 0;
  border-radius: 40px;
  overflow: hidden;
  background: rgba(240, 243, 255, 0.92);
  box-shadow: 0 10px 30px rgba(5, 20, 91, 0.18);
}
.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 30px;
  background: transparent;
  font-size: 18px;
}
.hero-search button {
  width: 70px;
  border: 0;
  background: transparent;
  font-size: 25px;
}
.hero-tags a,
.hot-words a {
  display: inline-block;
  margin: 4px;
  padding: 4px 11px;
  border-radius: 5px;
  background: #f1f2f4;
  color: #777;
}

.home-ad-strip {
  position: relative;
  z-index: 5;
  width: min(1500px, calc(100% - 64px));
  margin: -50px auto 0;
}
.home-ad-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.home-ad-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 18px;
  min-height: 100px;
  align-items: center;
  gap: 12px;
  padding: 15px 15px 15px 17px;
  border: 1px solid rgba(227, 233, 241, 0.9);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 13px 35px rgba(25, 43, 75, 0.13);
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    border-color 0.2s;
}
.home-ad-card:hover {
  transform: translateY(-4px);
  border-color: rgba(239, 48, 56, 0.4);
  box-shadow: 0 18px 40px rgba(201, 34, 42, 0.2);
}
.home-ad-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background: #ffe9e9;
  color: #ef3038;
  font-size: 25px;
  font-weight: 900;
}
.home-ad-slot-2 .home-ad-icon,
.home-ad-slot-3 .home-ad-icon,
.home-ad-slot-4 .home-ad-icon,
.home-ad-slot-5 .home-ad-icon {
  background: #ffe9e9;
  color: #ef3038;
}
.home-ad-copy {
  min-width: 0;
}
.home-ad-copy strong,
.home-ad-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-ad-copy strong {
  color: #d92831;
  font-size: 18px;
}
.home-ad-copy small {
  margin-top: 2px;
  color: #8d949b;
  font-size: 14px;
}
.home-ad-arrow {
  color: #ef3038;
  font-size: 27px;
  line-height: 1;
}

.container {
  width: min(1500px, calc(100% - 64px));
  margin: auto;
  padding: 34px 0;
}
.inner-space {
  padding-top: 30px;
  min-height: 70vh;
}
.list-tabs {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 18px;
}
.list-tabs > div:first-child {
  display: flex;
  gap: 25px;
  align-items: center;
}
.list-tabs > div:first-child a.active {
  padding: 3px 13px;
  border-radius: 18px;
  background: var(--blue);
  color: #fff;
}
.sort-links {
  color: #aaa;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.product-card {
  overflow: hidden;
  border-radius: 11px;
  background: var(--card);
  box-shadow: var(--shadow);
  transition: 0.25s;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 34px rgba(23, 43, 77, 0.15);
}
.product-cover {
  display: block;
  height: 245px;
  position: relative;
  overflow: hidden;
  background: #dfe6ee;
}
.product-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.3s;
}
.product-card:hover .product-cover img {
  transform: scale(1.035);
}
.heat {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 2px 9px;
  border-radius: 5px;
  background: #ff4567;
  color: #fff;
  font-weight: 700;
}
.pin-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 2px 9px;
  border-radius: 5px;
  background: linear-gradient(135deg, #ff9f1c, #ff6b1a);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(255, 107, 26, 0.26);
}
.product-body {
  padding: 12px;
}
.product-title {
  display: block;
  height: 50px;
  overflow: hidden;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.38;
}
.labels {
  display: flex;
  gap: 5px;
  margin: 8px 0;
  overflow: hidden;
  white-space: nowrap;
}
.labels > * {
  padding: 2px 7px;
  border-radius: 5px;
  background: #f1f2f4;
  color: #999;
  font-size: 13px;
  font-style: normal;
}
.labels b {
  background: var(--orange);
  color: #fff;
}
.labels a {
  background: #e8f5ff;
  color: #109ce8;
}
.meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #aaa;
  font-size: 13px;
}
.mini-avatar {
  display: inline-grid;
  place-items: center;
  width: 23px;
  height: 23px;
  margin-right: 4px;
  border-radius: 50%;
  background: #edf3f7;
  color: #f0a000;
  font-style: normal;
}
.pagination {
  display: flex;
  justify-content: center;
  gap: 7px;
  padding: 35px 0;
}
.pagination a,
.pagination span {
  padding: 7px 13px;
  border-radius: 4px;
  background: #e9ebed;
  color: #777;
}
.pagination a.active {
  background: var(--blue);
  color: #fff;
}
.category-hero {
  padding: 45px;
  margin-bottom: 25px;
  border-radius: 12px;
  text-align: center;
  background: linear-gradient(120deg, #e9f8ff, #f8efff);
}
.category-hero small {
  letter-spacing: 3px;
  color: var(--blue);
}
.category-hero h1 {
  margin: 4px 0;
  font-size: 34px;
}
.search-panel,
.result-panel {
  padding: 28px;
  margin-bottom: 24px;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}
.search-panel form {
  max-width: 730px;
  margin: auto;
}
.search-panel label {
  color: #999;
}
.search-panel form div {
  display: flex;
  align-items: center;
  height: 58px;
  margin-top: 8px;
  padding: 0 8px 0 18px;
  overflow: hidden;
  border: 2px solid #18a9eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(8, 168, 230, 0.12);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.search-panel form div:focus-within {
  border-color: #078ed8;
  box-shadow:
    0 0 0 4px rgba(8, 168, 230, 0.12),
    0 8px 22px rgba(8, 168, 230, 0.16);
}

.search-panel input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #30343a;
  font-size: 17px;
}

.search-panel input::placeholder {
  color: #a0a6ad;
}

.search-panel button {
  flex: 0 0 46px;
  width: 46px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: #18a9eb;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

.search-panel button:hover {
  background: #078ed8;
}
.result-panel nav {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid #eee;
}
.result-panel nav b {
  padding: 0 3px 12px;
  color: var(--blue);
  border-bottom: 2px solid var(--blue);
}
.result-panel nav span {
  color: #999;
}
.result-panel strong {
  color: var(--blue);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1055px) 390px;
  justify-content: center;
  gap: 20px;
}
.detail-main,
.author-sidebar {
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}
.detail-main {
  padding: 36px;
}

/* 宽屏商品页：主体始终居中，卖家名片独立放在右侧 */
@media (min-width: 1501px) {
  .container.detail-layout {
    width: min(1875px, calc(100% - 32px));
    grid-template-columns: 390px minmax(0, 1055px) 390px;
  }

  .detail-layout .detail-main {
    grid-column: 2;
  }

  .detail-layout .author-sidebar {
    grid-column: 3;
  }
}

.detail-title {
  margin: 0;
  font-size: 28px;
}
.author-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 0;
  border-bottom: 1px solid #eee;
}
.avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #eef3f6;
  color: #f3a400;
}
.avatar.big {
  width: 100px;
  height: 100px;
  border: 8px solid #fff;
  font-size: 32px;
}
.author-line > div {
  display: flex;
  flex-direction: column;
  margin-right: auto;
}
.author-line small {
  color: #999;
}
.author-line button {
  border: 0;
  padding: 7px 13px;
  border-radius: 4px;
  background: #eaf5ff;
  color: var(--blue);
}
.detail-stats {
  color: #999;
}
.purchase-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 400px) minmax(0, 1fr);
  align-items: start;
  margin: 25px 0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
}

.purchase-card > img {
  width: 100%;
  height: auto;
  max-height: 460px;
  margin: 0 auto;
  object-fit: contain;
}
.purchase-card > div {
  position: static;
  min-width: 0;
  padding: 22px;
}

.purchase-card em {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  padding: 4px 12px;
  border-radius: 6px;
  background: #ff5974;
  color: #fff;
  font-style: normal;
  line-height: 1.4;
  white-space: nowrap;
}
.purchase-card h2 {
  padding-right: 55px;
  font-size: 18px;
}
.purchase-card p {
  color: #aaa;
}
.price {
  display: block;
  color: var(--pink);
  font-size: 45px;
  line-height: 1.2;
}
.price small {
  font-size: 14px;
}
.discount {
  display: inline-block;
  margin-top: 15px;
  padding: 6px 10px;
  background: #f4f4f4;
  color: #888;
}
.buy-now {
  display: block;
  width: 160px;
  margin: 25px 0 10px auto;
  padding: 10px;
  border: 0;
  border-radius: 5px;
  background: #37adf3;
  color: #fff;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}
.manual-payment-timer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 18px;
  align-items: center;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid #dceaf7;
  border-radius: 12px;
  background: #f3f9fe;
}
.manual-payment-timer > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.manual-payment-timer > div:last-of-type {
  text-align: right;
}
.manual-payment-timer span {
  color: #71808f;
  font-size: 11px;
  font-weight: 700;
}
.manual-payment-timer code {
  overflow-wrap: anywhere;
  color: #405264;
  font-size: 13px;
}
.manual-payment-timer strong {
  color: #ed3d58;
  font-size: 25px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.manual-payment-timer > small {
  grid-column: 1 / -1;
  color: #81909f;
  font-size: 11px;
}
.manual-payment-timer.expired {
  border-color: #f2d5d0;
  background: #fff4f2;
}
.manual-payment-timer.submitted {
  border-color: #cfe8dc;
  background: #effbf6;
}
.manual-payment-timer.submitted strong {
  color: #078153;
  font-size: 18px;
}
.manual-payment-amount {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  margin: 18px 0 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #effbf6;
}
.manual-payment-amount > span {
  grid-column: 1;
  color: #748078;
  font-size: 12px;
}
.manual-payment-amount strong {
  grid-column: 1;
  color: #09a368;
  font-size: 27px;
  line-height: 1.25;
}
.manual-payment-amount strong small {
  font-size: 13px;
}
.manual-payment-amount > b {
  grid-column: 2;
  grid-row: 1 / 3;
  padding: 5px 9px;
  border-radius: 14px;
  background: #d9f5e8;
  color: #078153;
  font-size: 12px;
}
.manual-payment-qr-wrap {
  display: grid;
  width: min(100%, 320px);
  min-height: 214px;
  margin: 0 auto;
  place-items: center;
  padding: 12px;
  border: 1px solid #e5eaf0;
  border-radius: 14px;
  background: #fff;
}
.manual-payment-qr-wrap img {
  display: block;
  width: 210px;
  height: 210px;
  object-fit: contain;
}
.manual-payment-qr-empty {
  color: #a1a9b1;
  font-size: 14px;
}
.manual-payment-address {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 14px;
}
.manual-payment-address > span {
  grid-column: 1 / -1;
  color: #697581;
  font-size: 12px;
  font-weight: 700;
}
.manual-payment-address code {
  min-width: 0;
  padding: 11px 12px;
  overflow-wrap: anywhere;
  border-radius: 9px;
  background: #f3f6f8;
  color: #3b4651;
  font-size: 12px;
  line-height: 1.45;
}
.manual-payment-address button {
  min-width: 86px;
  border: 0;
  border-radius: 9px;
  background: #e9f6fd;
  color: #078ed5;
  font-weight: 700;
  cursor: pointer;
}
.manual-payment-address button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}
.manual-payment-warning {
  margin: 13px 0;
  padding: 10px 12px;
  border-radius: 9px;
  background: #fff8e8;
  color: #8e6d25;
  font-size: 12px;
  line-height: 1.65;
}
.manual-payment-notice {
  width: 100%;
  min-height: 48px;
  padding: 11px 16px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #28a9ee, #168fdb);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(30, 158, 226, 0.25);
}
.manual-payment-notice:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  box-shadow: none;
}
.manual-payment-result {
  min-height: 20px;
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}
.manual-payment-result.success {
  color: #078153;
}
.manual-payment-result.error {
  color: #d92d20;
}
.manual-payment-owned,
.manual-payment-unavailable,
.manual-payment-submitted,
.manual-payment-expired {
  margin-top: 18px;
  padding: 24px;
  border-radius: 12px;
  text-align: center;
}
.manual-payment-expired[hidden] {
  display: none;
}
.manual-payment-owned {
  background: #effbf6;
}
.manual-payment-submitted {
  background: #eef8fe;
}
.manual-payment-unavailable {
  background: #fff4f2;
}
.manual-payment-expired {
  background: #fff4f2;
}
.manual-payment-owned strong {
  color: #078153;
  font-size: 18px;
}
.manual-payment-submitted strong {
  color: #078ed5;
  font-size: 18px;
}
.manual-payment-unavailable strong,
.manual-payment-expired strong {
  color: #d92d20;
  font-size: 18px;
}
.manual-payment-owned p,
.manual-payment-unavailable p,
.manual-payment-submitted p,
.manual-payment-expired p {
  margin: 7px 0 15px;
  color: #718078;
  font-size: 13px;
}
.manual-payment-owned a,
.manual-payment-unavailable a,
.manual-payment-submitted a,
.manual-payment-expired a {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 8px;
  background: #078ed5;
  color: #fff;
  font-weight: 700;
}
.dark .manual-payment-address code {
  background: #343a41;
  color: #d7dce1;
}
.dark .manual-payment-timer {
  border-color: #384a5a;
  background: #25323d;
}
.dark .manual-payment-timer code {
  color: #d7dce1;
}
.dark .manual-payment-amount {
  background: #20352d;
}
.dark .manual-payment-qr-wrap {
  border-color: #3a4148;
  background: #fff;
}
.dark .manual-payment-warning {
  background: #3a3220;
  color: #e6c679;
}
.dark .manual-payment-owned {
  background: #20352d;
}
.dark .manual-payment-submitted {
  background: #253742;
}
.dark .manual-payment-unavailable,
.dark .manual-payment-expired,
.dark .manual-payment-timer.expired {
  background: #3b2826;
}
.dark .manual-payment-timer.submitted {
  background: #20352d;
}
@media (max-width: 520px) {
  .manual-payment-timer {
    gap: 8px 12px;
    padding: 12px;
  }
  .manual-payment-timer strong {
    font-size: 22px;
  }
  .manual-payment-qr-wrap {
    min-height: 194px;
  }
  .manual-payment-qr-wrap img {
    width: 190px;
    height: 190px;
  }
  .manual-payment-address {
    grid-template-columns: 1fr;
  }
  .manual-payment-address button {
    min-height: 42px;
  }
}
body.payment-modal-open {
  overflow: hidden;
}
.two-step-payment-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 800;
  place-items: center;
  padding: 20px;
  overflow-y: auto;
  background: rgba(24, 31, 39, 0.66);
  backdrop-filter: blur(3px);
}
.two-step-payment-modal.open {
  display: grid;
}
.payment-confirm-dialog,
.usdt-payment-dialog {
  position: relative;
  width: min(500px, 100%);
  overflow: hidden;
  border: 1px solid #e5e9ed;
  border-radius: 12px;
  background: #fff;
  color: #303943;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}
.usdt-payment-dialog {
  width: min(710px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}
.payment-modal-close {
  position: absolute;
  right: 13px;
  top: 10px;
  z-index: 3;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}
.usdt-payment-dialog .payment-modal-close {
  background: #f0f3f5;
  color: #73808b;
}
.payment-modal-back {
  position: absolute;
  left: 15px;
  top: 15px;
  z-index: 3;
  padding: 7px 10px;
  border: 0;
  border-radius: 7px;
  background: #f0f3f5;
  color: #71808f;
  font-weight: 700;
  cursor: pointer;
}
.payment-confirm-head {
  display: grid;
  min-height: 150px;
  place-content: center;
  text-align: center;
  background:
    radial-gradient(circle at 78% -20%, rgba(255, 255, 255, 0.2) 0 36%, transparent 37%),
    radial-gradient(circle at 40% 130%, rgba(255, 255, 255, 0.12) 0 42%, transparent 43%),
    linear-gradient(145deg, #4cb9f2, #2d97ee);
  color: #fff;
}
.payment-confirm-head > span {
  font-size: 35px;
  line-height: 1;
}
.payment-confirm-head h2 {
  margin: 15px 0 0;
  font-size: 22px;
}
.payment-confirm-body {
  padding: 18px 20px 20px;
}
.payment-confirm-product {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  line-height: 1.55;
}
.payment-confirm-product > span {
  flex: 0 0 auto;
  padding: 2px 7px;
  border-radius: 4px;
  background: #ff5974;
  color: #fff;
  font-size: 12px;
}
.payment-confirm-product strong {
  font-size: 15px;
  font-weight: 600;
}
.payment-confirm-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-top: 14px;
  padding: 13px 18px;
  border-radius: 11px;
  background: #f6f6f6;
}
.payment-confirm-price > span,
.payment-method-label {
  color: #999;
}
.payment-confirm-price strong {
  color: #4b535b;
  font-size: 24px;
  font-weight: 500;
  white-space: nowrap;
}
.payment-confirm-price small {
  font-size: 13px;
  font-weight: 400;
}
.payment-method-label {
  margin: 13px 0 8px;
  font-size: 14px;
}
.payment-method-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.payment-method-options.single-method {
  grid-template-columns: 1fr;
}
.payment-method-options button {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid #e6e9ec;
  border-radius: 6px;
  background: #fff;
  color: #535c64;
  font-size: 15px;
}
.payment-method-options button.active {
  border-color: #169ff0;
  box-shadow: inset 0 0 0 1px rgba(22, 159, 240, 0.08);
}
.payment-method-options button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}
.payment-method-options button > small {
  font-size: 10px;
}
.usdt-method-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
}
.usdt-method-icon {
  background: #27a17c;
}
.payment-confirm-submit {
  width: 100%;
  min-height: 47px;
  margin-top: 20px;
  padding: 11px 15px;
  border: 0;
  border-radius: 24px;
  background: linear-gradient(90deg, #ff7460, #ff3038);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}
.payment-confirm-submit:disabled {
  cursor: wait;
  opacity: 0.7;
}
.payment-confirm-result {
  min-height: 18px;
  margin: 8px 0 -4px;
  font-size: 12px;
  text-align: center;
}
.payment-confirm-result.success {
  color: #078153;
}
.payment-confirm-result.error {
  color: #d92d20;
}
.usdt-payment-head {
  padding: 31px 65px 19px;
  text-align: center;
}
.usdt-payment-head > small {
  color: #999;
  font-size: 13px;
}
.usdt-payment-head h2 {
  max-width: 530px;
  margin: 8px auto;
  overflow: hidden;
  color: #59626a;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.usdt-payment-head > strong {
  display: block;
  color: #4b535b;
  font-size: 24px;
  font-weight: 500;
}
.usdt-payment-head > strong small {
  font-size: 13px;
  font-weight: 400;
}
.usdt-payment-dialog .manual-payment-timer {
  margin: 0 24px 15px;
}
.usdt-payment-dialog .manual-payment-qr-wrap {
  width: 100%;
  min-height: 220px;
  padding: 4px 12px 14px;
  border: 0;
  border-radius: 0;
}
.usdt-payment-dialog .manual-payment-qr-wrap img {
  width: 210px;
  height: 210px;
}
.payment-important-notice {
  padding: 9px 22px 12px;
  background: #e1f8fc;
  text-align: center;
}
.payment-important-notice h3 {
  margin: 0 0 10px;
  color: #ff4848;
  font-size: 16px;
}
.payment-important-notice p {
  margin: 6px 0;
  color: #46515a;
  font-size: 13px;
  line-height: 1.55;
}
.payment-important-notice strong {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  background: #fff;
  color: #ff3038;
  font-size: 16px;
}
.usdt-payment-dialog .manual-payment-address {
  margin: 0;
  padding: 15px 22px;
  border-top: 1px solid #d9edf0;
  background: #e1f8fc;
}
.usdt-payment-dialog .manual-payment-address > span {
  color: #37424b;
  text-align: center;
}
.usdt-payment-dialog .manual-payment-address code {
  background: #fff;
  color: #e32f36;
  text-align: center;
}
.usdt-payment-dialog .manual-payment-notice {
  width: calc(100% - 44px);
  margin: 16px 22px 0;
}
.usdt-payment-dialog .manual-payment-result {
  margin: 9px 22px 15px;
}
.usdt-payment-dialog .manual-payment-expired {
  margin: 20px 22px;
}
.manual-payment-expired button {
  padding: 9px 16px;
  border: 0;
  border-radius: 8px;
  background: #078ed5;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.dark .payment-confirm-dialog,
.dark .usdt-payment-dialog {
  border-color: #3a4148;
  background: #23272c;
  color: #e6e9ed;
}
.dark .payment-confirm-price,
.dark .payment-method-options button {
  border-color: #3d444b;
  background: #30363c;
  color: #e0e4e8;
}
.dark .usdt-payment-head h2,
.dark .usdt-payment-head > strong {
  color: #e0e4e8;
}
.dark .payment-important-notice,
.dark .usdt-payment-dialog .manual-payment-address {
  border-color: #34494d;
  background: #273b3f;
}
.dark .payment-important-notice p,
.dark .usdt-payment-dialog .manual-payment-address > span {
  color: #d5dce0;
}
@media (max-width: 600px) {
  .two-step-payment-modal {
    align-items: end;
    padding: 0;
  }
  .payment-confirm-dialog,
  .usdt-payment-dialog {
    width: 100%;
    max-height: 94vh;
    border-radius: 16px 16px 0 0;
  }
  .payment-confirm-head {
    min-height: 120px;
  }
  .payment-confirm-body {
    padding: 16px 14px 18px;
  }
  .payment-confirm-price {
    padding: 11px 13px;
  }
  .payment-confirm-price strong {
    font-size: 20px;
  }
  .payment-method-options {
    gap: 8px;
  }
  .payment-method-options button {
    min-height: 61px;
    padding: 8px;
  }
  .usdt-method-icon {
    width: 34px;
    height: 34px;
    font-size: 20px;
  }
  .usdt-payment-head {
    padding: 55px 18px 15px;
  }
  .usdt-payment-head h2 {
    max-width: 100%;
  }
  .usdt-payment-dialog .manual-payment-timer {
    margin: 0 12px 12px;
  }
  .usdt-payment-dialog .manual-payment-qr-wrap {
    min-height: 190px;
  }
  .usdt-payment-dialog .manual-payment-qr-wrap img {
    width: 180px;
    height: 180px;
  }
  .payment-important-notice {
    padding: 9px 12px 11px;
  }
  .usdt-payment-dialog .manual-payment-address {
    padding: 13px 12px;
  }
  .usdt-payment-dialog .manual-payment-notice {
    width: calc(100% - 24px);
    margin: 14px 12px 0;
  }
  .usdt-payment-dialog .manual-payment-result {
    margin-right: 12px;
    margin-left: 12px;
  }
}
.services {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  clear: both;
  color: #999;
  font-size: 12px;
}
.extract {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  padding: 8px;
  background: #f7f7f7;
  color: #aaa;
}
.content h2 {
  display: table;
  margin-top: 35px;
  padding-bottom: 3px;
  border-bottom: 2px solid var(--blue);
}
.content p {
  font-size: 17px;
  white-space: normal;
}
.resource-description {
  margin: 18px 0 30px;
  color: var(--text);
  font-size: 17px;
  line-height: 2;
  white-space: normal;
  word-break: break-word;
}
.content .gallery {
  display: block;
  width: 100%;
}

.content .gallery-group {
  display: grid;
  align-items: start;
  gap: 10px;
  width: 100%;
  margin-bottom: 10px;
}

/* 竖图自动排在前面，桌面端最多6列，并按数量均匀分行 */
.content .gallery-portrait {
  grid-template-columns: repeat(var(--gallery-columns, 6), minmax(0, 1fr));
}

/* 横图自动排在后面，桌面端最多5列，并按数量均匀分行 */
.content .gallery-landscape {
  grid-template-columns: repeat(var(--gallery-columns, 5), minmax(0, 1fr));
}

.content .gallery-group:last-child {
  margin-bottom: 0;
}

.content .gallery-group > button {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #f4f5f8;
  line-height: 0;
  cursor: pointer;
}

.content .gallery-group > button > img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
}
.copyright {
  color: #aaa !important;
}
.the-end {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  color: #aaa;
  margin: 25px;
}
.the-end span {
  width: 190px;
  height: 1px;
  background: #eee;
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-list > * {
  padding: 5px 12px;
  border-radius: 18px;
  background: #f1f2f4;
  color: #888;
}
.tag-list a {
  color: var(--blue);
  background: #e9f5ff;
}
.author-sidebar {
  height: max-content;
  overflow: hidden;
  text-align: center;
}
.seller-card-cover {
  display: grid;
  place-items: center;
  width: 100%;
  height: 195px;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 25%, rgba(57, 189, 248, 0.45), transparent 34%),
    linear-gradient(135deg, #101828, #344054);
  color: rgba(255, 255, 255, 0.88);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 8px;
}
.seller-card-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.author-sidebar .avatar {
  margin: -52px auto 10px;
  position: relative;
}
.author-sidebar .seller-avatar {
  overflow: hidden;
}
.author-sidebar .seller-avatar.has-image {
  background: #fff;
}
.author-sidebar .seller-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.author-sidebar h2 .tg-username {
  display: inline-block;
  margin-left: 10px;
  color: var(--blue);
  font-size: 16px;
  font-weight: 600;
}
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  padding: 30px;
  background: rgba(0, 0, 0, 0.88);
  place-items: center;
}
.lightbox.open {
  display: grid;
}
.lightbox img {
  width: auto;
  height: auto;
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}
.lightbox button {
  position: absolute;
  right: 25px;
  top: 20px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 40px;
}

.member-page {
  text-align: center;
}
.member-page > div {
  display: grid;
  grid-template-columns: minmax(0, 380px);
  justify-content: center;
  gap: 25px;
}
.member-page article {
  padding: 28px;
  border-radius: 14px;
  color: #fff;
  text-align: left;
  box-shadow: var(--shadow);
}
.member-page .arich {
  background: linear-gradient(135deg, #63617b, #34354f);
}
.member-page article > span {
  float: right;
  font-size: 70px;
  opacity: 0.25;
}
.member-page article strong {
  font-size: 35px;
}
.member-page article button {
  padding: 8px 22px;
  border: 0;
  border-radius: 20px;
  background: #fff;
}
.member-page article button:disabled {
  cursor: default;
  opacity: 0.78;
}
.form-card,
.auth-page form {
  max-width: 900px;
  margin: auto;
  padding: 30px;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}
.form-card label,
.auth-page label {
  display: flex;
  flex-direction: column;
  margin: 12px 0;
  font-weight: 700;
}
.form-card input,
.form-card select,
.form-card textarea,
.auth-page input {
  padding: 11px;
  border: 1px solid #d8dce0;
  border-radius: 7px;
  background: #f8f9fa;
}
.form-card textarea {
  min-height: 180px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.form-card > button,
.auth-page form > button {
  padding: 10px 25px;
  border: 0;
  border-radius: 7px;
  background: var(--blue);
  color: #fff;
}
.auth-page form {
  max-width: 450px;
  text-align: center;
}
.auth-page .avatar {
  margin: auto;
}
.auth-page label {
  text-align: left;
}
.auth-page form > button {
  width: 100%;
}
.auth-page form > div {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  color: var(--blue);
}
.auth-page {
  position: relative;
  min-height: calc(100vh - 86px);
  display: grid;
  place-items: center;
  padding: 55px 16px;
  background:
    linear-gradient(rgba(5, 20, 72, 0.72), rgba(11, 29, 82, 0.72)),
    url("../images/hero-bg.png") center/cover fixed;
}

.auth-page .auth-dialog {
  position: relative;
  z-index: 2;
  width: min(430px, 100%);
  max-width: 430px;
  margin: 0;
  padding: 36px 38px 32px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 14px;
  background: linear-gradient(145deg, #f2efff, #e8f9f8);
  text-align: left;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.auth-close {
  position: absolute;
  right: 17px;
  top: 9px;
  color: #a6abb4;
  font-size: 29px;
  line-height: 1;
}

.auth-page .auth-dialog > .auth-symbol {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 0 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #08a8e6, #6656e8);
  color: #fff;
  font-size: 25px;
}

.auth-dialog h1 {
  display: inline-block;
  margin: 3px 0 0;
  padding-bottom: 7px;
  border-bottom: 4px solid var(--blue);
  color: #4f555d;
  font-size: 33px;
  line-height: 1.2;
}

.auth-switch {
  margin: 6px 0 22px;
  color: #7e858d;
}

.auth-page .auth-dialog label {
  display: block;
  margin: 14px 0;
  font-weight: 400;
  text-align: left;
}

.auth-dialog label > span {
  display: block;
  margin-bottom: 4px;
  color: #9299a2;
  font-size: 14px;
}

.auth-page .auth-dialog input:not([type="range"]) {
  width: 100%;
  height: 44px;
  padding: 0 2px;
  border: 0;
  border-bottom: 1px solid #cfd6de;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: #4e555d;
}

.auth-page .auth-dialog input:not([type="range"]):focus {
  border-bottom: 2px solid var(--blue);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 46px !important;
}

.password-field button {
  position: absolute;
  right: 0;
  top: 0;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: #969da5;
  font-size: 18px;
}

.password-tip {
  margin: -2px 0 12px;
  color: #8d949d;
  font-size: 12px;
}

.auth-page .auth-dialog > .auth-submit {
  width: 100%;
  height: 46px;
  margin-top: 14px;
  padding: 0;
  border: 0;
  border-radius: 25px;
  background: linear-gradient(90deg, #52df62, #58bb5f);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.auth-links {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  color: var(--blue);
  font-size: 14px;
}

.verify-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 15px;
  background: rgba(0, 0, 0, 0.58);
}

.verify-overlay.open {
  display: flex;
}

.verify-dialog {
  position: relative;
  width: min(425px, 100%);
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
}

.verify-close {
  position: absolute;
  right: 13px;
  top: 9px;
  z-index: 2;
  border: 0;
  background: transparent;
  color: #ff792e;
  font-size: 27px;
}

.verify-dialog header {
  padding: 25px 20px 19px;
  text-align: center;
  background: linear-gradient(135deg, #fff3e8, #ffead9);
}

.verify-dialog header b {
  display: block;
  color: #ff720d;
  font-size: 33px;
}

.verify-dialog header h2 {
  margin: 4px 0 0;
  color: #ff720d;
  font-size: 19px;
}

.verify-picture {
  position: relative;
  height: 210px;
  margin: 30px 36px 14px;
  overflow: hidden;
  border-radius: 7px;
  background:
    linear-gradient(rgba(20, 35, 65, 0.16), rgba(20, 35, 65, 0.16)),
    url("../images/hero-bg.png") center/cover;
}

.verify-picture::after {
  content: "";
  position: absolute;
  right: 28px;
  top: 80px;
  width: 48px;
  height: 48px;
  border: 3px dashed rgba(255, 255, 255, 0.9);
  border-radius: 8px;
}

.verify-picture i {
  position: absolute;
  left: 12px;
  top: 82px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #ff8c35;
  color: #fff;
  font-style: normal;
  font-size: 23px;
}

.verify-slider {
  --verify-progress: 0%;
  position: relative;
  height: 52px;
  margin: 0 36px 30px;
  overflow: hidden;
  border: 1px solid #e3e5e8;
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    #e7f8eb var(--verify-progress),
    #f4f5f6 var(--verify-progress)
  );
}

.verify-slider > i {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 52px;
  height: 50px;
  border-right: 1px solid #dfe2e5;
  background: #fff;
  color: #8b9299;
  font-style: normal;
  font-size: 32px;
}

.verify-slider > span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #969ca3;
}

.verify-slider input {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: grab;
}

/* USDT 订单支付 */
.payment-page {
  max-width: 1180px;
}

.payment-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.payment-heading span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
}

.payment-heading h1 {
  margin: 5px 0 2px;
  font-size: 30px;
}

.payment-heading p {
  margin: 0;
  color: var(--muted);
}

.payment-heading > a {
  padding: 10px 16px;
  border-radius: 8px;
  background: #eaf6ff;
  color: var(--blue);
  font-weight: 700;
}

.payment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: 20px;
}

.payment-main-card,
.payment-status-card {
  border: 1px solid #e8edf2;
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 12px 38px rgba(24, 39, 75, 0.08);
}

.payment-main-card {
  padding: 24px;
}

.payment-product {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eef1f4;
}

.payment-product img {
  width: 78px;
  height: 66px;
  border-radius: 11px;
  object-fit: cover;
}

.payment-product small,
.payment-product h2,
.payment-product p {
  display: block;
  margin: 0;
}

.payment-product small {
  color: var(--muted);
  font-size: 12px;
}

.payment-product h2 {
  margin: 5px 0;
  overflow: hidden;
  font-size: 17px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-product p {
  color: #08a866;
  font-size: 13px;
  font-weight: 700;
}

.payment-product > strong {
  color: #39424e;
  font-size: 18px;
}

.payment-amount {
  position: relative;
  margin: 22px 0 14px;
  padding: 23px 148px 23px 22px;
  border: 1px solid #caeedc;
  border-radius: 14px;
  background: linear-gradient(135deg, #f2fff8, #f8fffc);
}

.payment-amount > span {
  display: block;
  color: #53616e;
  font-size: 13px;
  font-weight: 700;
}

.payment-amount strong {
  display: block;
  margin: 5px 0;
  color: #05a966;
  font-size: 36px;
  line-height: 1.15;
}

.payment-amount strong small {
  font-size: 15px;
}

.payment-amount p {
  margin: 0;
  color: #76818b;
  font-size: 12px;
}

.payment-amount button,
.payment-address button {
  border: 0;
  border-radius: 8px;
  background: #e0f8ec;
  color: #078d59;
  font-weight: 700;
  cursor: pointer;
}

.payment-amount button {
  position: absolute;
  right: 20px;
  top: 50%;
  width: 108px;
  height: 42px;
  transform: translateY(-50%);
}

.payment-address {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px;
  gap: 10px;
  padding: 18px;
  border: 1px solid #e4e8ec;
  border-radius: 14px;
}

.payment-address > div {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.payment-address span {
  color: #4b5662;
  font-weight: 700;
}

.payment-address b {
  padding: 3px 8px;
  border-radius: 12px;
  background: #effaf5;
  color: #07945b;
  font-size: 12px;
}

.payment-address code {
  min-width: 0;
  padding: 11px 12px;
  overflow: hidden;
  border-radius: 8px;
  background: #f5f7f9;
  color: #3f4853;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-methods {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid #e4e8ec;
  border-radius: 14px;
}

.payment-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 6px;
  background: #f5f7f9;
}

.payment-tabs button {
  height: 42px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #67717c;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.payment-tabs button.active {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 3px 10px rgba(24, 39, 75, 0.08);
}

.payment-method-pane {
  min-height: 260px;
  padding: 26px;
  text-align: center;
}

.payment-method-pane[hidden] {
  display: none;
}

.wallet-mark {
  display: grid;
  width: 60px;
  height: 60px;
  margin: 0 auto 12px;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #18b675, #0c9360);
  color: #fff;
  font-size: 27px;
}

.payment-method-pane h3 {
  margin: 8px 0;
  font-size: 18px;
}

.payment-method-pane p {
  margin: 0 auto 18px;
  color: var(--muted);
  font-size: 13px;
}

.open-wallet {
  display: inline-grid;
  min-width: 190px;
  height: 44px;
  padding: 0 22px;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(135deg, #10b86e, #07975a);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(8, 158, 95, 0.22);
}

.wallet-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-top: 14px;
}

.wallet-options a {
  padding: 6px 9px;
  border-radius: 14px;
  background: #f1f4f6;
  color: #5d6872;
  font-size: 12px;
}

.payment-qr {
  display: block;
  width: 178px;
  height: 178px;
  margin: 0 auto 12px;
  padding: 8px;
  border: 1px solid #e0e5e9;
  border-radius: 12px;
  background: #fff;
  object-fit: contain;
}

.qr-empty {
  display: grid;
  width: 178px;
  height: 178px;
  margin: 0 auto 12px;
  place-items: center;
  border: 1px dashed #cad2d9;
  border-radius: 12px;
  background: #f7f9fa;
  color: #9099a2;
}

.payment-status-card {
  position: sticky;
  top: 90px;
  padding: 22px;
}

.payment-timer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 17px;
  border-bottom: 1px solid #eef1f4;
}

.payment-timer span {
  color: #65707b;
  font-size: 13px;
}

.payment-timer b {
  color: #ef405e;
  font-size: 21px;
  letter-spacing: 1px;
}

.payment-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.payment-progress li {
  position: relative;
  color: #a0a8b0;
  text-align: center;
}

.payment-progress li::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 13px;
  z-index: 0;
  height: 2px;
  background: #e5e8eb;
}

.payment-progress li:first-child::before {
  left: 50%;
}

.payment-progress li:last-child::before {
  right: 50%;
}

.payment-progress i {
  position: relative;
  z-index: 1;
  display: grid;
  width: 28px;
  height: 28px;
  margin: auto;
  place-items: center;
  border-radius: 50%;
  background: #eef1f3;
  color: #9aa2aa;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

.payment-progress span {
  display: block;
  margin-top: 7px;
  font-size: 11px;
}

.payment-progress li.active {
  color: #078f5a;
}

.payment-progress li.active::before {
  background: #42c994;
}

.payment-progress li.active i {
  background: #14aa6c;
  color: #fff;
}

.payment-state {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border-radius: 12px;
  background: #fff8eb;
}

.payment-state > span {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 50%;
  background: #ffb53e;
  color: #fff;
}

.payment-state b,
.payment-state p {
  display: block;
  margin: 0;
}

.payment-state p {
  margin-top: 3px;
  color: #8c7652;
  font-size: 12px;
}

.payment-state.success {
  background: #edfdf5;
}

.payment-state.success > span {
  background: #0eaa69;
}

.payment-state.success p {
  color: #5d7c6c;
}

.payment-state.closed {
  background: #f4f5f6;
}

.payment-state.closed > span {
  background: #8e969f;
}

.check-payment {
  width: 100%;
  height: 44px;
  margin: 14px 0;
  border: 0;
  border-radius: 9px;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.check-payment:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.delivery-box {
  padding: 16px;
  border: 1px solid #bcebd6;
  border-radius: 12px;
  background: #f1fcf7;
}

.delivery-box[hidden] {
  display: none;
}

.delivery-box h3,
.delivery-box p {
  margin: 0 0 8px;
}

.delivery-box p,
.delivery-box span {
  color: #657b70;
  font-size: 12px;
}

.delivery-box a {
  display: grid;
  height: 40px;
  margin: 11px 0 7px;
  place-items: center;
  border-radius: 8px;
  background: #0ca868;
  color: #fff;
  font-weight: 800;
}

.delivery-box span {
  display: block;
  text-align: center;
}

.payment-safety {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #eef1f4;
}

.payment-safety b {
  font-size: 13px;
}

.payment-safety p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.profile-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
}
.profile-layout > aside,
.profile-layout > section {
  padding: 25px;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}
.profile-layout > aside {
  text-align: center;
}
.profile-layout > aside .avatar {
  margin: auto;
}
.profile-layout > aside a {
  display: block;
  padding: 10px;
  border-radius: 7px;
}
.profile-layout > aside a.active {
  background: #eaf6ff;
  color: var(--blue);
}
.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.profile-stats article {
  padding: 20px;
  border-radius: 8px;
  background: #f7f9fb;
}
.profile-stats b,
.profile-stats span {
  display: block;
}
.profile-stats b {
  font-size: 25px;
  color: var(--blue);
}
.order-list article {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px;
  border-bottom: 1px solid #eee;
}
.order-list article div {
  flex: 1;
}
.order-list small {
  display: block;
  color: #aaa;
}
.download-link {
  display: inline-block;
  margin-top: 7px;
  color: var(--blue);
}
.order-list span {
  padding: 3px 10px;
  border-radius: 14px;
  background: #fff6e6;
  color: #d98000;
}

footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  padding: 45px max(35px, calc((100% - 1500px) / 2));
  background: linear-gradient(110deg, #46464a, #292426);
  color: #aaa;
}
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  padding-top: 90px;
  background: rgba(0, 0, 0, 0.5);
}
.search-overlay.open {
  display: block;
}
.search-dialog {
  width: min(850px, calc(100% - 30px));
  margin: auto;
  padding: 25px;
  border-radius: 13px;
  background: #fff;
  position: relative;
}
.search-dialog > button {
  position: absolute;
  right: 14px;
  top: 8px;
  border: 0;
  background: transparent;
  font-size: 25px;
}
.search-dialog form {
  max-width: 720px;
  margin: auto;
}
.search-dialog form div {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 58px;
  margin-top: 12px;
  padding: 0 7px 0 18px;
  box-sizing: border-box;
  overflow: hidden;
  border: 3px solid #08a8e6;
  border-radius: 14px;
  background: #f0fbff;
  box-shadow:
    0 0 0 4px rgba(8, 168, 230, 0.12),
    0 8px 22px rgba(8, 168, 230, 0.22);
}

.search-dialog input {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #303842;
  font-size: 18px;
}

.search-dialog input::placeholder {
  color: #78848f;
  opacity: 1;
}

.search-dialog form button {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #08a8e6;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}
.flash {
  position: fixed;
  top: 95px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 250;
  padding: 10px 22px;
  border-radius: 7px;
  background: #ecfdf3;
  color: #067647;
  box-shadow: var(--shadow);
}
.flash.error {
  background: #fff1f3;
  color: #c01048;
}

.dark {
  --bg: #16181c;
  --card: #23262b;
  --text: #e6e8eb;
  --border: #34383d;
}
.dark .site-header:not(.on-hero),
.dark .on-hero.scrolled,
.dark .search-panel,
.dark .result-panel,
.dark .detail-main,
.dark .author-sidebar,
.dark .payment-main-card,
.dark .payment-status-card,
.dark .form-card,
.dark .auth-page form,
.dark .profile-layout > aside,
.dark .profile-layout > section {
  background: #23262b;
}
.dark .home-ad-card {
  border-color: #363c43;
  background: rgba(35, 38, 43, 0.97);
}
.dark .home-ad-copy strong {
  color: #e6e8eb;
}
.dark .home-ad-copy small,
.dark .home-ad-arrow {
  color: #9da4ac;
}
.dark .payment-product,
.dark .payment-timer,
.dark .payment-safety {
  border-color: #363a40;
}
.dark .payment-amount,
.dark .payment-state.success,
.dark .delivery-box {
  border-color: #285546;
  background: #20332c;
}
.dark .payment-address,
.dark .payment-methods {
  border-color: #383d43;
}
.dark .payment-address code,
.dark .payment-tabs,
.dark .wallet-options a,
.dark .qr-empty {
  background: #30343a;
  color: #d8dce0;
}
.dark .payment-tabs button.active {
  background: #3a3f45;
}
.dark .payment-product > strong {
  color: #e6e8eb;
}
.dark input,
.dark textarea,
.dark select {
  color: #eee;
  background: #30343a;
}

@media (max-width: 1180px) {
  .site-header {
    gap: 16px;
    padding: 0 18px;
  }
  .main-nav {
    gap: 14px;
  }
  .main-nav > a {
    font-size: 15px;
  }
  .member-menu {
    display: none;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .author-sidebar {
    display: none;
  }
  .payment-layout {
    grid-template-columns: 1fr;
  }
  .payment-status-card {
    position: static;
  }
  .content .gallery-portrait {
    grid-template-columns: repeat(var(--gallery-tablet-columns, 4), minmax(0, 1fr));
  }
  .content .gallery-landscape {
    grid-template-columns: repeat(var(--gallery-tablet-columns, 2), minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .home-ad-strip {
    width: calc(100% - 28px);
    overflow: hidden;
  }
  .home-ad-track {
    display: flex;
    gap: 10px;
    padding-bottom: 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .home-ad-track::-webkit-scrollbar {
    display: none;
  }
  .home-ad-card {
    flex: 0 0 270px;
    scroll-snap-align: start;
  }
}

@media (max-width: 720px) {
  .payment-page {
    width: calc(100% - 20px);
  }
  .payment-heading {
    align-items: flex-start;
  }
  .payment-heading h1 {
    font-size: 25px;
  }
  .payment-heading p {
    font-size: 13px;
  }
  .payment-heading > a {
    flex: 0 0 auto;
    padding: 8px 10px;
    font-size: 12px;
  }
  .payment-main-card,
  .payment-status-card {
    padding: 15px;
    border-radius: 14px;
  }
  .payment-product {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 11px;
  }
  .payment-product img {
    width: 60px;
    height: 56px;
  }
  .payment-product h2 {
    font-size: 15px;
  }
  .payment-product > strong {
    grid-column: 2;
    font-size: 16px;
  }
  .payment-amount {
    padding: 18px;
  }
  .payment-amount strong {
    font-size: 31px;
  }
  .payment-amount button {
    position: static;
    width: 100%;
    height: 40px;
    margin-top: 14px;
    transform: none;
  }
  .payment-address {
    grid-template-columns: 1fr;
    padding: 15px;
  }
  .payment-address code {
    overflow-wrap: anywhere;
    text-overflow: clip;
    white-space: normal;
  }
  .payment-address button {
    height: 40px;
  }
  .payment-method-pane {
    min-height: 245px;
    padding: 22px 14px;
  }
  .payment-progress span {
    font-size: 10px;
  }
  .auth-page .auth-dialog {
    padding: 24px 18px;
  }

  .content .gallery-portrait {
    grid-template-columns: repeat(var(--gallery-mobile-columns, 2), minmax(0, 1fr));
  }
  .content .gallery-landscape {
    grid-template-columns: repeat(var(--gallery-mobile-columns, 1), minmax(0, 1fr));
  }

.verify-picture {
  margin-right: 18px;
  margin-left: 18px;
}

.verify-slider {
  margin-right: 18px;
  margin-left: 18px;
}
  .search-panel form div {
    height: 52px;
    padding-left: 14px;
    border-radius: 10px;
  }

  .search-panel input {
    font-size: 16px;
  }

  .search-panel button {
    width: 42px;
    height: 38px;
    flex-basis: 42px;
  }
  .site-header,
  .site-header.on-hero,
  .site-header.on-hero.scrolled {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    width: 100%;
    height: 62px;
    padding: 0 14px;
    gap: 10px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    z-index: 120;
  }
  .dark .site-header,
  .dark .site-header.on-hero,
  .dark .site-header.on-hero.scrolled {
    background: #23262b;
  }
  .logo,
  .on-hero:not(.scrolled) .logo {
    margin-right: auto;
    color: #111;
    font-size: 21px;
    letter-spacing: 5px;
  }
  .dark .logo,
  .dark .on-hero:not(.scrolled) .logo {
    color: #fff;
  }
  .mobile-menu-button {
    display: block;
    order: -1;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 9px;
    background: #f1f2f4;
    color: #4d5359;
    font-size: 23px;
  }
  .main-nav {
    position: fixed;
    left: -290px;
    top: 0;
    bottom: 0;
    z-index: 140;
    width: 280px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 4px;
    margin: 0;
    padding: 78px 18px 25px;
    overflow-y: auto;
    background: #fff;
    color: #50555b;
    box-shadow: 12px 0 36px rgba(0, 0, 0, 0.2);
    transition: left 0.25s;
    pointer-events: auto;
    touch-action: manipulation;
  }
  .dark .main-nav {
    background: #23262b;
    color: #eee;
  }
  .menu-open .main-nav {
    left: 0;
  }
  .main-nav > a {
    display: flex;
    height: auto;
    padding: 11px 13px;
    border-radius: 7px;
    font-size: 16px;
    pointer-events: auto;
    touch-action: manipulation;
  }
  .main-nav a.active::before {
    display: none;
  }
  .mobile-mask {
    display: block;
    visibility: hidden;
    opacity: 0;
    position: fixed;
    inset: 0;
    z-index: 110;
    background: rgba(0, 0, 0, 0.48);
    pointer-events: none;
    transition: 0.2s;
  }
  .menu-open .mobile-mask {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }
  .header-actions {
    gap: 5px;
  }

  .member-menu {
    display: none;
  }

  .header-icon {
    width: 36px;
    height: 36px;
    color: #4f565d;
    background: #f1f2f4;
  }

  .site-header.on-hero:not(.scrolled) .header-icon {
    color: #4f565d;
    background: #f1f2f4;
  }

  .auth-entry {
    min-width: 84px;
    height: 36px;
    padding: 0 12px;
    font-size: 13px;
  }

  .hero {
    height: 545px;
    padding: 80px 14px 20px;
    background-position: 55% center;
  }
  .hero-content {
    width: 100%;
    transform: translateY(-18px);
  }
  .hero h1 {
    font-size: 27px;
    line-height: 1.35;
  }
  .hero p {
    max-width: 340px;
    margin: auto;
    font-size: 15px;
  }
  .hero-search {
    width: min(520px, 100%);
    height: 48px;
    margin: 25px auto 0;
  }
  .hero-search input {
    padding: 0 18px;
    font-size: 16px;
  }
  .hero-search button {
    width: 54px;
    font-size: 23px;
  }
  .home-ad-strip {
    width: calc(100% - 20px);
    margin-top: -40px;
  }
  .home-ad-card {
    flex-basis: 250px;
    min-height: 88px;
    grid-template-columns: 46px minmax(0, 1fr) 16px;
    gap: 10px;
    padding: 12px;
  }
  .home-ad-icon {
    width: 46px;
    height: 46px;
    font-size: 22px;
  }
  .home-ad-copy strong {
    font-size: 16px;
  }
  .home-ad-copy small {
    font-size: 13px;
  }
  .hero-tags {
    max-height: 72px;
    overflow: hidden;
  }
  .hero-tags a {
    font-size: 13px;
    padding: 3px 8px;
  }
  .container {
    width: calc(100% - 20px);
    padding: 22px 0;
  }
  .inner-page .container {
    padding-top: 82px;
  }
  .list-tabs {
    gap: 10px;
    overflow-x: auto;
    white-space: nowrap;
  }
  .list-tabs > div:first-child a:not(.active) {
    display: none;
  }
  .sort-links {
    font-size: 12px;
  }
  .product-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .product-cover {
    height: 220px;
  }
  .product-title {
    height: auto;
    min-height: 48px;
    font-size: 16px;
  }
  .meta {
    font-size: 12px;
  }
  .pagination {
    justify-content: flex-start;
    overflow-x: auto;
  }
  .category-hero,
  .search-panel,
  .result-panel {
    padding: 18px 14px;
  }
  .detail-main {
    padding: 16px 12px;
  }
  .detail-title {
    font-size: 22px;
    line-height: 1.45;
  }
  .author-line {
    flex-wrap: wrap;
  }
  .author-line > div {
    min-width: 120px;
  }
  .detail-stats {
    width: 100%;
    font-size: 13px;
  }
  .purchase-card {
    display: block;
    margin: 18px 0;
  }
  .purchase-card > img {
    height: 230px;
  }
  .purchase-card > div {
    padding: 17px 14px;
  }
  .purchase-card em {
  left: 10px;
  top: 10px;
}
  .purchase-card h2 {
    font-size: 17px;
  }
  .price {
    font-size: 34px;
  }
  .buy-now {
    width: 100%;
    margin: 20px 0 10px;
  }
  .services {
    line-height: 2;
  }
  .content p {
    font-size: 15px;
    line-height: 1.9;
  }
  .resource-description {
    font-size: 15px;
    line-height: 1.9;
  }
  .the-end span {
    width: 70px;
  }
  .member-page > div {
    grid-template-columns: 1fr;
  }
  .form-card,
  .auth-page form {
    padding: 20px 15px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .profile-layout {
    grid-template-columns: 1fr;
  }
  .profile-stats {
    grid-template-columns: 1fr;
  }
  footer {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 32px 18px 85px;
    font-size: 13px;
  }
  .search-overlay {
    padding-top: 72px;
  }
}

/*
 * 手机版首页整理：参考紧凑的双列入口与双列商品布局，
 * 保留固定顶部快捷栏和抽屉导航，避免横向内容溢出。
 */
@media (max-width: 720px) {
  body {
    overflow-x: hidden;
    background: #f4f6f8;
  }

  .site-header,
  .site-header.on-hero,
  .site-header.on-hero.scrolled {
    height: calc(64px + env(safe-area-inset-top));
    padding:
      env(safe-area-inset-top)
      12px
      0;
    gap: 7px;
    border: 0;
    box-shadow: 0 5px 22px rgba(16, 40, 78, 0.09);
  }

  .mobile-menu-button {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    font-size: 22px;
  }

  .logo,
  .on-hero:not(.scrolled) .logo {
    display: flex;
    min-width: 0;
    align-items: center;
    margin-right: auto;
    color: #111;
    font-size: 20px;
    letter-spacing: 4px;
  }

  .logo b {
    flex: 0 0 auto;
  }

  .logo span {
    display: block;
    min-width: 0;
    max-width: 92px;
    margin-left: 4px;
    overflow: hidden;
    color: #171a1f;
    font-size: 15px;
    font-style: italic;
    font-weight: 900;
    letter-spacing: 1px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .dark .logo span {
    color: #fff;
  }

  .main-nav {
    padding-top: calc(82px + env(safe-area-inset-top));
  }

  .header-actions {
    gap: 4px;
  }

  .header-icon {
    width: 34px;
    height: 34px;
  }

  .auth-entry {
    min-width: 80px;
    height: 36px;
    padding: 0 10px;
    font-size: 13px;
  }

  .home-page .hero {
    height: calc(558px + env(safe-area-inset-top));
    padding:
      calc(84px + env(safe-area-inset-top))
      16px
      86px;
    background-position: 55% center;
  }

  .home-page .hero-content {
    width: 100%;
    transform: translateY(-10px);
  }

  .home-page .hero h1 {
    max-width: 360px;
    margin: 0 auto 11px;
    font-size: 27px;
    line-height: 1.35;
  }

  .home-page .hero p {
    max-width: 350px;
    font-size: 15px;
    line-height: 1.75;
  }

  .home-page .hero-search {
    height: 52px;
    margin-top: 26px;
    border: 1px solid rgba(255, 255, 255, 0.48);
    box-shadow: 0 12px 34px rgba(1, 26, 114, 0.24);
  }

  .home-page .home-ad-strip {
    width: calc(100% - 24px);
    margin-top: -58px;
  }

  .home-page .home-ad-track {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
  }

  .home-page .home-ad-card {
    min-width: 0;
    min-height: 86px;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 9px;
    padding: 11px;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(25, 43, 75, 0.1);
  }

  .home-page .home-ad-slot-5,
  .home-page .home-ad-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .home-page .home-ad-icon {
    width: 44px;
    height: 44px;
    font-size: 21px;
  }

  .home-page .home-ad-copy strong {
    font-size: 15px;
  }

  .home-page .home-ad-copy small {
    margin-top: 1px;
    font-size: 12px;
  }

  .home-page .home-ad-arrow {
    display: none;
  }

  .home-page .container {
    width: calc(100% - 24px);
    padding: 24px 0 30px;
  }

  .home-page .list-tabs {
    display: block;
    margin-bottom: 14px;
    padding: 11px 11px 9px;
    overflow: hidden;
    border: 1px solid #e9edf2;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(25, 43, 75, 0.06);
    white-space: normal;
  }

  .home-page .list-tabs > div:first-child {
    gap: 4px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .home-page .list-tabs > div:first-child::-webkit-scrollbar {
    display: none;
  }

  .home-page .list-tabs > div:first-child a,
  .home-page .list-tabs > div:first-child a:not(.active) {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 34px;
    padding: 5px 10px;
    border-radius: 18px;
    font-size: 14px;
  }

  .home-page .list-tabs > div:first-child a.active {
    padding: 5px 12px;
    box-shadow: 0 5px 13px rgba(8, 168, 230, 0.21);
  }

  .home-page .sort-links {
    margin-top: 8px;
    padding: 8px 3px 0;
    border-top: 1px solid #eef1f4;
    font-size: 12px;
    line-height: 1.5;
  }

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

  .home-page .product-card {
    border: 1px solid #e9edf2;
    border-radius: 13px;
    box-shadow: 0 7px 22px rgba(25, 43, 75, 0.07);
  }

  .home-page .product-cover {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .home-page .product-body {
    padding: 9px;
  }

  .home-page .product-title {
    display: -webkit-box;
    height: 42px;
    min-height: 42px;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .home-page .labels {
    margin: 6px 0 0;
    gap: 4px;
  }

  .home-page .labels > * {
    padding: 2px 5px;
    font-size: 10px;
  }

  .home-page .labels > *:nth-child(n + 3) {
    display: none;
  }

  .home-page .heat,
  .home-page .pin-badge {
    top: 6px;
    padding: 2px 6px;
    font-size: 10px;
  }

  .home-page .heat {
    right: 6px;
  }

  .home-page .pin-badge {
    left: 6px;
  }

  .dark .home-page .list-tabs {
    border-color: #363c43;
    background: #23262b;
  }

  .dark .home-page .sort-links {
    border-top-color: #363c43;
  }
}

@media (max-width: 390px) {
  .logo span {
    max-width: 72px;
    font-size: 14px;
  }

  .auth-entry {
    min-width: 76px;
    padding: 0 8px;
    font-size: 12px;
  }
}


/* 商品页：确认支付 + QR支付弹窗 */
.pay-popup-open {
  overflow: hidden;
}

.pay-popup-overlay[hidden] {
  display: none !important;
}

.pay-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  padding: 24px;
  place-items: center;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(3px);
}

.pay-confirm-dialog,
.pay-popup-card {
  position: relative;
  width: min(460px, 100%);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.pay-popup-close {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 2;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  font-size: 24px;
  line-height: 1;
}

.pay-confirm-dialog {
  padding: 34px 32px 28px;
  text-align: center;
}

.pay-confirm-icon {
  display: grid;
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  place-items: center;
  border-radius: 50%;
  background: #eaf4ff;
  color: #2686ee;
  font-size: 28px;
  font-weight: 800;
}

.pay-confirm-dialog h2 {
  margin: 0;
  color: #172033;
  font-size: 25px;
}

.pay-confirm-dialog p {
  margin: 14px 0 8px;
  overflow: hidden;
  color: #475569;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pay-confirm-dialog strong {
  display: block;
  color: #ff4f6d;
  font-size: 30px;
}

.pay-confirm-dialog small {
  display: block;
  margin-top: 8px;
  color: #94a3b8;
}

.pay-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 26px;
}

.pay-confirm-actions button {
  height: 46px;
  border: 1px solid #dbe3ec;
  border-radius: 10px;
  background: #fff;
  color: #64748b;
  font-weight: 700;
}

.pay-confirm-actions button.primary {
  border-color: #2088f3;
  background: #2088f3;
  color: #fff;
}

.pay-confirm-actions button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.pay-popup-card {
  padding: 28px 30px 26px;
}

.pay-popup-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-right: 38px;
}

.pay-popup-card > header span {
  color: #16a765;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.8px;
}

.pay-popup-card > header h2 {
  margin: 4px 0 0;
  color: #172033;
  font-size: 26px;
}

.pay-popup-countdown {
  text-align: right;
}

.pay-popup-countdown small {
  display: block;
  color: #94a3b8;
  font-size: 12px;
}

.pay-popup-countdown b {
  display: block;
  margin-top: 3px;
  color: #ff4f65;
  font-size: 25px;
  letter-spacing: 1px;
}

.pay-popup-amount,
.pay-popup-address {
  position: relative;
  margin-top: 20px;
  padding: 15px 76px 15px 16px;
  border: 1px solid #e3e9f0;
  border-radius: 12px;
  background: #f8fafc;
}

.pay-popup-amount > span,
.pay-popup-address > span {
  display: block;
  color: #8491a1;
  font-size: 12px;
}

.pay-popup-amount strong {
  display: block;
  margin-top: 3px;
  color: #1988ef;
  font-size: 30px;
  line-height: 1.25;
  word-break: break-all;
}

.pay-popup-address code {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
  color: #334155;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.5;
}

.pay-popup-amount button,
.pay-popup-address button {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 54px;
  height: 34px;
  border: 1px solid #8cc4ff;
  border-radius: 8px;
  background: #fff;
  color: #2386ef;
  font-size: 13px;
  transform: translateY(-50%);
}

.pay-popup-qr {
  display: block;
  width: 210px;
  height: 210px;
  margin: 22px auto 10px;
  padding: 8px;
  border: 1px solid #e5eaf0;
  border-radius: 12px;
  background: #fff;
  object-fit: contain;
}

.pay-popup-tip,
.pay-popup-status {
  margin: 0;
  text-align: center;
}

.pay-popup-tip {
  color: #64748b;
  font-size: 13px;
}

.pay-popup-status {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 9px;
  background: #eff7ff;
  color: #2879cf;
  font-size: 13px;
}

.pay-popup-card.is-paid .pay-popup-status {
  background: #eafaf1;
  color: #168b52;
}

.pay-popup-card.is-expired .pay-popup-status {
  background: #f1f3f5;
  color: #7b8490;
}

/* 无JavaScript时的简洁支付页：不显示钱包入口 */
.simple-payment-page {
  max-width: 680px;
}

.simple-payment-card {
  padding: 30px;
  border: 1px solid #e5eaf0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 45px rgba(22, 34, 60, 0.08);
}

.simple-payment-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.simple-payment-card > header span {
  color: #18a966;
  font-size: 13px;
  font-weight: 800;
}

.simple-payment-card > header h1 {
  margin: 4px 0 0;
  color: #172033;
  font-size: 30px;
}

.simple-payment-time {
  text-align: right;
}

.simple-payment-time small {
  display: block;
  color: #94a3b8;
}

.simple-payment-time b {
  display: block;
  margin-top: 4px;
  color: #ff4f65;
  font-size: 27px;
}

.simple-payment-amount,
.simple-payment-address {
  position: relative;
  margin-top: 22px;
  padding: 16px 95px 16px 18px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

.simple-payment-amount > span,
.simple-payment-address > span {
  display: block;
  color: #8390a0;
  font-size: 13px;
}

.simple-payment-amount strong {
  display: block;
  margin-top: 4px;
  color: #1788ef;
  font-size: 34px;
}

.simple-payment-amount em {
  font-size: 15px;
  font-style: normal;
}

.simple-payment-address code {
  display: block;
  margin-top: 6px;
  overflow-wrap: anywhere;
  color: #334155;
  line-height: 1.55;
}

.simple-payment-amount button,
.simple-payment-address button {
  position: absolute;
  top: 50%;
  right: 14px;
  height: 38px;
  padding: 0 13px;
  border: 1px solid #8bc3ff;
  border-radius: 8px;
  background: #fff;
  color: #2386ef;
  transform: translateY(-50%);
}

.simple-payment-qr {
  display: block;
  width: 250px;
  height: 250px;
  margin: 25px auto 10px;
  padding: 8px;
  border: 1px solid #e5eaf0;
  border-radius: 14px;
  object-fit: contain;
}

.simple-payment-note {
  margin: 0 0 18px;
  color: #64748b;
  text-align: center;
}

@media (max-width: 720px) {
  .pay-popup-overlay {
    padding: 12px;
  }

  .pay-confirm-dialog,
  .pay-popup-card {
    border-radius: 15px;
  }

  .pay-confirm-dialog {
    padding: 30px 20px 22px;
  }

  .pay-popup-card {
    padding: 24px 18px 20px;
  }

  .pay-popup-card > header {
    gap: 10px;
  }

  .pay-popup-card > header h2 {
    font-size: 23px;
  }

  .pay-popup-countdown b {
    font-size: 22px;
  }

  .pay-popup-amount strong {
    font-size: 25px;
  }

  .pay-popup-qr {
    width: 190px;
    height: 190px;
  }

  .simple-payment-card {
    padding: 22px 16px;
  }

  .simple-payment-amount,
  .simple-payment-address {
    padding-right: 78px;
  }

  .simple-payment-qr {
    width: 220px;
    height: 220px;
  }
}


.buy-now-form,
.member-buy-form {
  display: contents;
}
.member-buy-form button {
  border: 0;
  cursor: pointer;
}
@media (max-width: 720px) {
  .member-page .arich { width: 100%; }
}


/* 手机版首页最终版：DMW居中头部、顶部搜索、五个入口和双列商品 */
.mobile-logo,
.mobile-account-link {
  display: none;
}

.home-support-strip {
  display: flex;
  width: min(1120px, calc(100% - 32px));
  min-height: 52px;
  margin: 22px auto 30px;
  padding: 9px 18px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 16px;
  background: #e2f3ff;
  color: #3894d4;
  font-size: 15px;
  font-weight: 600;
}
.home-support-strip i {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 50%;
  background: #42a9e9;
  color: #fff;
  font-style: normal;
}
.home-support-strip b { font-weight: 800; }

@media (max-width: 720px) {
  .site-header,
  .site-header.on-hero,
  .site-header.on-hero.scrolled {
    height: calc(84px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) 16px 0;
    background: linear-gradient(115deg, #d8e3ff, #eef0ff);
    box-shadow: none;
  }
  .mobile-menu-button {
    position: relative;
    z-index: 3;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #66717d;
    font-size: 26px;
  }
  .logo,
  .on-hero:not(.scrolled) .logo {
    position: absolute;
    left: 50%;
    top: calc(env(safe-area-inset-top) + 17px);
    z-index: 2;
    margin: 0;
    transform: translateX(-50%);
    color: #050505;
  }
  .desktop-logo { display: none; }
  .mobile-logo {
    display: block;
    color: #050505;
    font-size: 42px;
    font-style: italic;
    font-weight: 1000;
    line-height: 1;
    letter-spacing: 9px;
    transform: skew(-7deg);
  }
  .header-actions {
    position: relative;
    z-index: 3;
    margin-left: auto;
  }
  .theme-button,
  .auth-entry,
  .member-menu {
    display: none !important;
  }
  .search-button {
    width: 42px;
    height: 42px;
    background: transparent;
    color: #596579;
  }
  .mobile-account-link { display: flex; }

  .home-page .hero {
    height: 260px;
    padding: calc(92px + env(safe-area-inset-top)) 24px 0;
    background-position: center 48%;
  }
  .home-page .hero-content {
    width: 100%;
    transform: none;
  }
  .home-page .hero h1,
  .home-page .hero p {
    display: none;
  }
  .home-page .hero-search {
    width: 100%;
    height: 60px;
    margin: 0;
    border: 0;
    border-radius: 30px;
    background: rgba(245, 246, 255, 0.92);
    box-shadow: 0 10px 28px rgba(10, 30, 95, 0.2);
  }
  .home-page .hero-search input {
    padding-left: 22px;
    font-size: 18px;
  }
  .home-page .hero-search button {
    width: 58px;
    color: #344052;
    background: transparent;
    font-size: 28px;
  }

  .home-page .home-ad-strip {
    position: relative;
    z-index: 5;
    width: calc(100% - 32px);
    margin: -58px auto 0;
  }
  .home-page .home-ad-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .home-page .home-ad-card {
    min-height: 105px;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 15px;
    border: 0;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 7px 22px rgba(45, 58, 88, 0.08);
  }
  .home-page .home-ad-slot-5,
  .home-page .home-ad-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  .home-page .home-ad-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    font-size: 27px;
  }
  .home-page .home-ad-copy strong {
    font-size: 18px;
    line-height: 1.25;
  }
  .home-page .home-ad-copy small {
    max-width: 100%;
    margin-top: 8px;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .home-page .home-ad-arrow { display: none; }

  .home-support-strip {
    width: calc(100% - 32px);
    min-height: 58px;
    margin: 28px auto 0;
    padding: 10px 12px;
    justify-content: flex-start;
    border-radius: 16px;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
  }
  .home-support-strip span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .home-page > main.container {
    width: calc(100% - 32px);
    margin-top: 96px;
  }
  .home-page .list-tabs {
    margin-bottom: 16px;
    padding: 0 0 12px;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .home-page .list-tabs > div:first-child {
    display: grid;
    grid-template-columns: repeat(4, max-content);
    gap: 22px;
    overflow-x: auto;
  }
  .home-page .list-tabs a {
    padding: 8px 2px;
    font-size: 16px;
    white-space: nowrap;
  }
  .home-page .list-tabs a.active {
    padding: 8px 18px;
    border-radius: 22px;
    background: #16afd8;
    color: #fff;
  }
  .home-page .sort-links {
    width: 100%;
    margin-top: 13px;
    padding-top: 12px;
    border-top: 1px solid #e7eaee;
    color: #939ba5;
    font-size: 15px;
  }
  .home-page .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 390px) {
  .mobile-logo { font-size: 36px; letter-spacing: 7px; }
  .home-page .home-ad-card { grid-template-columns: 50px minmax(0, 1fr); padding: 12px; }
  .home-page .home-ad-icon { width: 50px; height: 50px; }
  .home-page .list-tabs > div:first-child { gap: 13px; }
}

/* 2026-08-01 手机版首页顶部紧凑版：仅缩小头部/搜索/入口/客服区，不影响商品卡片 */
@media (max-width: 720px) {
  .site-header,
  .site-header.on-hero,
  .site-header.on-hero.scrolled {
    height: calc(66px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) 12px 0;
  }

  .mobile-menu-button,
  .search-button {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    font-size: 23px;
  }

  .logo,
  .on-hero:not(.scrolled) .logo {
    top: calc(env(safe-area-inset-top) + 14px);
  }

  .mobile-logo {
    font-size: 34px;
    letter-spacing: 7px;
  }

  .home-page .hero {
    height: 205px;
    padding: calc(76px + env(safe-area-inset-top)) 20px 0;
  }

  .home-page .hero-search {
    height: 50px;
    border-radius: 25px;
  }

  .home-page .hero-search input {
    padding-left: 18px;
    font-size: 16px;
  }

  .home-page .hero-search button {
    width: 50px;
    font-size: 24px;
  }

  .home-page .home-ad-strip {
    width: calc(100% - 24px);
    margin-top: -42px;
  }

  .home-page .home-ad-track {
    gap: 10px;
  }

  .home-page .home-ad-card {
    min-height: 82px;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 9px;
    padding: 10px 11px;
    border-radius: 12px;
  }

  .home-page .home-ad-icon {
    width: 46px;
    height: 46px;
    font-size: 22px;
  }

  .home-page .home-ad-copy strong {
    font-size: 15px;
    line-height: 1.2;
  }

  .home-page .home-ad-copy small {
    margin-top: 3px;
    font-size: 12px;
    line-height: 1.3;
  }

  .home-support-strip {
    width: calc(100% - 24px);
    min-height: 46px;
    margin-top: 16px;
    padding: 7px 10px;
    gap: 8px;
    border-radius: 13px;
    font-size: 13px;
  }

  .home-support-strip i {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
    font-size: 13px;
  }

  .home-page > main.container {
    margin-top: 30px;
  }
}

@media (max-width: 390px) {
  .mobile-logo {
    font-size: 31px;
    letter-spacing: 6px;
  }

  .home-page .home-ad-card {
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 9px 10px;
  }

  .home-page .home-ad-icon {
    width: 42px;
    height: 42px;
    font-size: 20px;
  }
}
