/* =========================================================
   骏马通信 · 商品详情
   ========================================================= */

:root {
  --bg: #f7f5f1;
  --surface: #ffffff;
  --ink: #181a1e;
  --ink-soft: #3f434b;
  --muted: #7c807f;
  --muted-light: #a3a5a2;
  --line: #ece8e1;
  --accent: #ff5b2e;
  --accent-deep: #e8481b;
  --accent-soft: #fff0e9;
  --green: #0d9b6c;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-number: "DIN Alternate", "Bahnschrift", "Arial Narrow", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(900px 600px at 92% -8%, rgba(255, 205, 177, 0.5) 0%, transparent 58%),
    radial-gradient(780px 620px at -8% 28%, rgba(216, 229, 255, 0.46) 0%, transparent 55%),
    #eeebe5;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font: inherit;
  border: 0;
  cursor: pointer;
}

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

svg {
  display: block;
}

[hidden] {
  display: none !important;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

::selection {
  color: #fff;
  background: var(--accent);
}

.detail-shell {
  position: relative;
  width: 100%;
  max-width: 560px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  box-shadow: 0 0 0 1px rgba(53, 44, 34, 0.035), 0 30px 100px rgba(48, 39, 28, 0.14);
}

/* ---------- Header ---------- */

.detail-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 60px;
  background: rgba(247, 245, 241, 0.9);
  border-bottom: 1px solid rgba(232, 227, 219, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
}

.detail-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 100%;
  padding: 0 16px;
}

.back-home {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 33px;
  padding: 0 10px 0 7px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.back-home:hover {
  color: var(--accent-deep);
  background: #fff;
  border-color: #f1c7b8;
}

.back-home .icon {
  width: 14px;
  height: 14px;
}

.detail-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.detail-brand strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  color: #fff;
  background:
    radial-gradient(circle at 72% 22%, rgba(255, 136, 86, 0.95), transparent 46%),
    linear-gradient(145deg, #2c2e33, #101114);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -1px;
  box-shadow: 0 5px 12px rgba(20, 20, 24, 0.14);
}

.brand-mark.has-logo {
  padding: 3px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
}

.brand-mark.has-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 7px;
}

/* ---------- Main ---------- */

.detail-main {
  padding: 14px 16px calc(104px + env(safe-area-inset-bottom));
}

.detail-hero-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 12px 36px rgba(35, 29, 22, 0.06);
}

.detail-hero-media {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background:
    radial-gradient(80% 100% at 100% 0%, rgba(255, 198, 162, 0.28), transparent 58%),
    #f3f0ea;
  container-type: inline-size;
}

.detail-hero-media > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-fallback {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  padding: 18px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(110% 120% at 100% 0%, #c889ff 0%, transparent 56%),
    linear-gradient(145deg, #8a5cff 0%, #6a2fd0 52%, #b22c92 100%);
  border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.hero-fallback.tone-red {
  background:
    radial-gradient(110% 120% at 100% 0%, #ffb08d 0%, transparent 56%),
    linear-gradient(145deg, #ff6755 0%, #df1e1c 55%, #a80f13 100%);
}

.hero-fallback.tone-green {
  background:
    radial-gradient(110% 120% at 100% 0%, #91f0c4 0%, transparent 56%),
    linear-gradient(145deg, #42cf99 0%, #079966 55%, #006b48 100%);
}

.hero-fallback.tone-blue {
  background:
    radial-gradient(110% 120% at 100% 0%, #9bc4ff 0%, transparent 56%),
    linear-gradient(145deg, #4d91ff 0%, #1261d8 55%, #073a9e 100%);
}

.hero-fallback.tone-purple {
  background:
    radial-gradient(110% 120% at 100% 0%, #c889ff 0%, transparent 56%),
    linear-gradient(145deg, #8a5cff 0%, #6a2fd0 52%, #b22c92 100%);
}

.hero-fallback::before {
  content: "";
  position: absolute;
  top: -54px;
  right: -38px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  box-shadow: 0 0 0 30px rgba(255, 255, 255, 0.045);
}

.hero-fallback > *:not(.hero-sim-watermark) {
  position: relative;
  z-index: 1;
}

.hero-fallback-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hero-carrier {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.hero-carrier b {
  padding: 3px 6px;
  color: rgba(255, 255, 255, 0.94);
  background: rgba(255, 255, 255, 0.17);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  font-family: var(--font-number);
  font-size: 9px;
  letter-spacing: 0.02em;
}

.hero-5g {
  padding: 4px 9px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-family: var(--font-number);
  font-size: 10px;
  font-weight: 700;
}

.hero-fallback-title {
  display: -webkit-box;
  flex-shrink: 0;
  margin-top: 12px;
  overflow: hidden;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.02em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hero-fallback-main {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-shrink: 0;
  gap: 10px;
  margin-top: 18px;
}

.hero-flow {
  min-width: 0;
}

.hero-flow strong {
  display: block;
  font-family: var(--font-number);
  font-size: clamp(48px, 15vw, 74px);
  font-weight: 850;
  line-height: 0.84;
  letter-spacing: -0.08em;
  white-space: nowrap;
}

.hero-flow small {
  display: block;
  margin-top: 8px;
  font-size: 10px;
  font-weight: 550;
  letter-spacing: 0.04em;
  opacity: 0.72;
}

.hero-price {
  display: flex;
  align-items: baseline;
  flex: 0 0 auto;
  padding-bottom: 3px;
  white-space: nowrap;
}

.hero-price span {
  margin-right: 2px;
  font-family: var(--font-number);
  font-size: 17px;
  font-weight: 700;
}

.hero-price strong {
  font-family: var(--font-number);
  font-size: 36px;
  font-weight: 850;
  line-height: 0.85;
  letter-spacing: -0.05em;
}

.hero-price small {
  margin-left: 3px;
  font-size: 10px;
  opacity: 0.75;
}

.hero-chips {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
}

.hero-chip {
  padding: 6px 9px;
  color: rgba(255, 255, 255, 0.94);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 550;
  line-height: 1.2;
}

.hero-chip.accent {
  color: #3b236d;
  background: rgba(255, 255, 255, 0.94);
  border-color: transparent;
  font-weight: 700;
}

.hero-fallback-foot {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 8.5px;
  font-weight: 550;
  opacity: 0.88;
}

.hero-official {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex: 0 0 auto;
  padding: 5px 8px;
  color: #3b236d;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 750;
  opacity: 1;
}

.hero-official .icon {
  width: 11px;
  height: 11px;
}

.hero-sim-watermark {
  position: absolute;
  right: -8px;
  bottom: 34px;
  color: rgba(255, 255, 255, 0.07);
  font-family: var(--font-number);
  font-size: 132px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.08em;
  transform: rotate(-8deg);
  pointer-events: none;
  user-select: none;
}

@supports (width: 1cqw) {
  .hero-fallback {
    padding: clamp(14px, 4.8cqw, 24px);
  }

  .hero-fallback-title {
    margin-top: clamp(8px, 3cqw, 16px);
    font-size: clamp(16px, 5cqw, 30px);
  }

  .hero-fallback-main {
    gap: clamp(6px, 2cqw, 12px);
    margin-top: clamp(10px, 4cqw, 22px);
  }

  .hero-flow strong {
    font-size: clamp(46px, 21cqw, 120px);
  }

  .hero-flow small {
    font-size: clamp(8px, 2.6cqw, 12px);
  }

  .hero-price span {
    font-size: clamp(12px, 4cqw, 20px);
  }

  .hero-price strong {
    font-size: clamp(28px, 10cqw, 50px);
  }

  .hero-price small {
    font-size: clamp(8px, 2.7cqw, 12px);
  }

  .hero-carrier {
    font-size: clamp(10px, 3.2cqw, 15px);
  }

  .hero-5g {
    font-size: clamp(9px, 2.7cqw, 12px);
  }

  .hero-chips {
    gap: clamp(4px, 1.5cqw, 8px);
    padding-top: clamp(8px, 3cqw, 14px);
  }

  .hero-chip {
    padding: clamp(5px, 2cqw, 8px) clamp(7px, 2.8cqw, 12px);
    font-size: clamp(8px, 2.5cqw, 12px);
  }

  .hero-fallback-foot {
    font-size: clamp(8px, 2.3cqw, 11px);
  }
}

.detail-hero-content {
  padding: 18px 18px 19px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent-deep);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.hero-kicker::before {
  content: "";
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
}

.detail-hero-content h1 {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 24px;
  font-weight: 850;
  line-height: 1.3;
  letter-spacing: -0.055em;
}

.detail-hero-content > p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.65;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 13px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  height: 23px;
  padding: 0 8px;
  color: var(--ink-soft);
  background: #f7f4ef;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 8.5px;
  font-weight: 600;
}

.hero-tag.accent {
  color: var(--accent-deep);
  background: var(--accent-soft);
  border-color: #ffe0d3;
}

/* ---------- Sections ---------- */

.detail-section {
  margin-top: 16px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding: 0 2px;
}

.section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 1.3;
}

.section-heading span {
  color: var(--muted-light);
  font-size: 8.5px;
}

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

.detail-stat {
  position: relative;
  padding: 14px 8px 13px;
  overflow: hidden;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 15px;
}

.detail-stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 25px;
  height: 3px;
  background: linear-gradient(90deg, #ff9a70, var(--accent));
  border-radius: 0 0 4px 4px;
  transform: translateX(-50%);
}

.detail-stat-label {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
}

.detail-stat-value {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-family: var(--font-number);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}

.detail-stat:nth-child(1) .detail-stat-value {
  color: var(--accent-deep);
}

.detail-card {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 17px;
}

.feature-list {
  display: flex;
  flex-direction: column;
}

.feature-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 10.5px;
  line-height: 1.6;
}

.feature-row + .feature-row {
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid #f3f0eb;
}

.feature-row .check {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--green);
  background: #eaf8f2;
  border-radius: 50%;
}

.feature-row .check .icon {
  width: 9px;
  height: 9px;
  stroke-width: 2.5;
}

.feature-row small {
  display: block;
  margin-top: 1px;
  color: var(--muted-light);
  font-size: 8.5px;
  line-height: 1.5;
}

.feature-age {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f3f0eb;
  color: var(--muted);
  font-size: 9px;
}

.feature-age b {
  color: #a9441f;
  font-weight: 700;
}

.detail-gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-gallery img {
  width: 100%;
  height: auto;
  background: #f2efe9;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.trust-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 15px 5px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 17px;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 5px;
  text-align: center;
}

.trust-item + .trust-item {
  border-left: 1px solid #f2efea;
}

.trust-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 9px;
}

.trust-icon .icon {
  width: 15px;
  height: 15px;
}

.trust-item strong {
  color: var(--ink-soft);
  font-size: 9.5px;
  font-weight: 700;
}

.trust-item small {
  color: var(--muted-light);
  font-size: 7.5px;
  line-height: 1.35;
}

/* ---------- Loading / error ---------- */

.detail-skeleton {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: #eae6df;
  border-radius: 12px;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.62), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  to { transform: translateX(100%); }
}

.sk-hero {
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 22px;
}

.sk-line {
  width: 48%;
  height: 17px;
  border-radius: 7px;
}

.sk-line.wide {
  width: 73%;
  height: 25px;
  margin-top: 4px;
}

.sk-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 9px;
}

.sk-stats .skeleton {
  height: 76px;
  border-radius: 15px;
}

.detail-error {
  padding: 60px 22px;
  text-align: center;
}

.detail-error-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  color: var(--muted-light);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.detail-error-icon .icon {
  width: 22px;
  height: 22px;
}

.detail-error h1 {
  margin: 0;
  color: var(--ink);
  font-size: 19px;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.detail-error p {
  margin: 7px 0 20px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.6;
}

.detail-error a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 43px;
  padding: 0 19px;
  color: #fff;
  background: linear-gradient(135deg, #ff7042, #f54a1c);
  border-radius: 11px;
  font-size: 11.5px;
  font-weight: 700;
}

/* ---------- Apply notice ---------- */

.detail-notice {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.detail-notice-mask {
  position: absolute;
  inset: 0;
  background: rgba(22, 19, 16, 0.56);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.detail-notice-panel {
  position: relative;
  width: 100%;
  max-width: 400px;
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  padding: 24px 22px 20px;
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 28px 80px rgba(25, 20, 15, 0.28);
  animation: notice-in 0.24s ease-out both;
}

@keyframes notice-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.detail-notice-eyebrow {
  display: block;
  color: var(--accent);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.17em;
  line-height: 1.4;
}

.detail-notice-panel h2 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 25px;
  font-weight: 850;
  letter-spacing: -0.055em;
  line-height: 1.2;
}

.detail-notice-product {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.5;
}

.detail-notice-text {
  margin-top: 14px;
  padding: 14px 15px;
  color: #51463e;
  background: #fbf7f2;
  border: 1px solid #f0e7de;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.8;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.detail-notice-close {
  width: 100%;
  height: 47px;
  margin-top: 16px;
  color: #fff;
  background: linear-gradient(135deg, #ff6f40, #f5481b);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(245, 73, 26, 0.2);
  font-size: 14px;
  font-weight: 750;
}

body.notice-open {
  overflow: hidden;
}

/* ---------- Fixed claim bar ---------- */

.claim-bar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 60;
  width: 100%;
  max-width: 560px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(247, 245, 241, 0.92);
  border-top: 1px solid rgba(232, 227, 219, 0.8);
  box-shadow: 0 -12px 30px rgba(35, 29, 22, 0.07);
  transform: translateX(-50%);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
}

.claim-bar-inner {
  display: flex;
  align-items: center;
  gap: 9px;
}

.claim-contact-btn {
  display: flex;
  flex: 0 0 108px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 52px;
  color: var(--accent-deep);
  background: #fff;
  border: 1.5px solid #ffd8c8;
  border-radius: 13px;
  box-shadow: 0 5px 14px rgba(193, 76, 37, 0.06);
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s, border-color 0.2s;
}

.claim-contact-btn:hover {
  background: #fff7f2;
  border-color: #ffc3ad;
}

.claim-contact-btn .icon {
  width: 16px;
  height: 16px;
}

.claim-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex: 1;
  min-width: 0;
  height: 52px;
  color: #fff;
  background: linear-gradient(135deg, #ff6f40, #f5481b);
  border-radius: 13px;
  box-shadow: 0 9px 22px rgba(245, 73, 26, 0.24);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.claim-btn:hover {
  filter: saturate(110%);
  box-shadow: 0 11px 26px rgba(245, 73, 26, 0.3);
  transform: translateY(-1px);
}

.claim-btn .icon {
  width: 16px;
  height: 16px;
}

/* ---------- Embedded application ---------- */

body.apply-open {
  overflow: hidden;
}

.apply-overlay {
  position: fixed;
  inset: 0;
  z-index: 85;
  background: transparent;
}

.apply-overlay[hidden] {
  display: none;
}

.apply-overlay iframe {
  display: block;
  width: 100%;
  height: 100%;
  background: transparent;
  border: 0;
}

/* ---------- Contact modal ---------- */

body.contact-open {
  overflow: hidden;
}

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

.contact-modal[hidden] {
  display: none;
}

.contact-mask {
  position: absolute;
  inset: 0;
  background: rgba(22, 19, 16, 0.56);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.contact-panel {
  position: relative;
  width: 100%;
  max-width: 360px;
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  padding: 24px 22px 20px;
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 28px 80px rgba(25, 20, 15, 0.28);
  animation: notice-in 0.24s ease-out both;
}

.contact-close {
  position: absolute;
  top: 13px;
  right: 13px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
}

.contact-eyebrow {
  display: block;
  color: var(--accent);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.17em;
  line-height: 1.4;
}

.contact-panel h2 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 25px;
  font-weight: 850;
  letter-spacing: -0.055em;
  line-height: 1.2;
}

.contact-text {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.contact-qr-frame {
  display: grid;
  place-items: center;
  width: 176px;
  height: 176px;
  margin: 16px auto 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.contact-qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.contact-qr-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--muted-light);
  font-size: 9px;
}

.contact-qr-placeholder .icon {
  width: 34px;
  height: 34px;
  color: var(--accent);
  opacity: 0.55;
}

.contact-wechat-line {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
  color: var(--muted-light);
  font-size: 9px;
}

.contact-wechat-line b {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 750;
}

.contact-wechat-line small {
  font-size: 8px;
}

.contact-done {
  width: 100%;
  height: 45px;
  margin-top: 15px;
  color: #fff;
  background: linear-gradient(135deg, #ff6f40, #f5481b);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(245, 73, 26, 0.2);
  font-size: 14px;
  font-weight: 750;
}

@media (max-width: 360px) {
  .claim-contact-btn {
    flex-basis: 96px;
    font-size: 13px;
  }

  .claim-btn {
    font-size: 17px;
  }

  .contact-panel {
    padding: 22px 18px 18px;
  }

  .contact-qr-frame {
    width: 156px;
    height: 156px;
  }
}

.page-toast {
  position: fixed;
  left: 50%;
  bottom: 86px;
  z-index: 80;
  max-width: calc(100vw - 44px);
  padding: 10px 15px;
  color: #fff;
  background: rgba(24, 24, 27, 0.92);
  border-radius: 999px;
  font-size: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 0.2s, transform 0.2s;
}

.page-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Responsive ---------- */

@media (max-width: 390px) {
  .detail-main {
    padding-left: 14px;
    padding-right: 14px;
  }

  .detail-hero-content {
    padding: 16px 15px 17px;
  }

  .detail-hero-content h1 {
    font-size: 22px;
  }

  .detail-stat {
    padding: 12px 5px;
  }

  .detail-stat-value {
    font-size: 18px;
  }

  .claim-bar {
    padding-left: 14px;
    padding-right: 14px;
  }

  .claim-btn {
    height: 48px;
    font-size: 14px;
  }
}

@media (max-width: 350px) {
  .detail-brand strong {
    max-width: 90px;
  }

  .back-home {
    padding-right: 8px;
    font-size: 10px;
  }

  .detail-hero-content h1 {
    font-size: 20px;
  }

  .detail-stat-value {
    font-size: 17px;
  }

  .trust-item small {
    display: none;
  }
}

@media (min-width: 600px) {
  body {
    padding: 26px 0;
  }

  .detail-shell {
    min-height: calc(100vh - 52px);
    min-height: calc(100dvh - 52px);
    border-radius: 26px;
    overflow: visible;
    box-shadow: 0 34px 100px rgba(48, 39, 28, 0.16), 0 0 0 1px rgba(53, 44, 34, 0.045);
  }

  .detail-header {
    border-radius: 26px 26px 0 0;
  }

  .claim-bar {
    bottom: 26px;
    border-radius: 16px;
    border: 1px solid rgba(232, 227, 219, 0.9);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
