/* ============================================================
   拾一·夜集 — layout.css
   页面骨架 / 分区排版 / 响应式断点
   ============================================================ */

/* ------------------------------ 页头 ------------------------------ */
.site-head {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-head);
  background: transparent;
  transition: background var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease),
    backdrop-filter var(--t-mid) var(--ease);
  border-bottom: 1px solid transparent;
}

.site-head.is-scrolled {
  background: rgba(18, 16, 14, 0.86);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  border-bottom-color: var(--line);
}

.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 3vw, 2.5rem);
  height: var(--head-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex: none;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--red);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  border-radius: 4px;
  transform: rotate(-3deg);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  transition: transform var(--t-mid) var(--ease);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px dashed rgba(244, 236, 223, 0.45);
  border-radius: 2px;
}

.brand:hover .brand-mark {
  transform: rotate(2deg) scale(1.04);
}

.brand-text {
  display: grid;
  gap: 1px;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.2;
}

.brand-text small {
  font-family: var(--font-mono);
  font-size: 0.53rem;
  letter-spacing: 0.14em;
  color: var(--muted-2);
  line-height: 1.4;
}

.head-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.4vw, 2.2rem);
}

.head-nav a {
  position: relative;
  padding: 0.4rem 0;
  color: #cdc2b3;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  transition: color var(--t-fast) var(--ease);
}

.head-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-mid) var(--ease);
}

.head-nav a:hover,
.head-nav a.is-active {
  color: var(--paper);
}

.head-nav a:hover::after,
.head-nav a.is-active::after {
  transform: scaleX(1);
}

.head-tools {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: none;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--paper);
  border: 1px solid transparent;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.icon-btn:hover {
  border-color: var(--line-strong);
  background: rgba(244, 236, 223, 0.05);
}

.head-coupon {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 38px;
  padding: 0 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: #e0d5c6;
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease),
    background var(--t-fast) var(--ease);
}

.head-coupon svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
}

.head-coupon:hover {
  border-color: var(--red);
  color: var(--paper);
  background: var(--red-soft);
}

.cart-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}

.cart-btn svg {
  width: 20px;
  height: 20px;
}

.cart-btn:hover {
  transform: translateY(-2px);
  background: #fff9ee;
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -4px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--red);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.63rem;
  font-weight: 700;
  line-height: 19px;
  text-align: center;
  box-shadow: 0 0 0 3px var(--ink);
  transform: scale(0);
  transition: transform var(--t-fast) var(--ease-out);
}

.cart-count.has-items {
  transform: scale(1);
}

.cart-count.is-bump {
  animation: pop 0.42s var(--ease-out);
}

.scroll-progress {
  height: 2px;
  background: transparent;
}

.scroll-progress i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--red);
  transition: width 80ms linear;
}

/* ------------------------------ 首屏 ------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--head-h) + clamp(2.5rem, 6vw, 4.6rem));
  padding-bottom: clamp(4.5rem, 9vw, 8rem);
  min-height: 100svh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(52% 62% at 88% 12%, rgba(232, 69, 44, 0.3), transparent 64%),
    radial-gradient(46% 52% at 6% 92%, rgba(227, 180, 92, 0.12), transparent 66%),
    linear-gradient(180deg, #15110e 0%, var(--ink) 58%, #13100d 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(244, 236, 223, 0.035) 1px, transparent 1px);
  background-size: 100% 88px;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  pointer-events: none;
}

.hero-atmos {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-ghost {
  position: absolute;
  right: -3vw;
  bottom: -6vh;
  font-family: var(--font-num);
  font-size: min(42vw, 560px);
  line-height: 0.78;
  letter-spacing: -0.035em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 236, 223, 0.1);
  transform: rotate(-4deg);
  user-select: none;
  white-space: nowrap;
}

.hero-ring {
  position: absolute;
  top: 12%;
  right: 34%;
  width: clamp(180px, 22vw, 300px);
  aspect-ratio: 1;
  border: 1px dashed rgba(244, 236, 223, 0.16);
  border-radius: 50%;
}

.hero-dash {
  position: absolute;
  left: 0;
  bottom: 18%;
  width: 42%;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(244, 236, 223, 0.22) 0 6px, transparent 6px 14px);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(330px, 0.8fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.hero-copy {
  max-width: 720px;
}

.hero-title {
  margin-top: 1.35rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.9rem, 6.2vw, 5.7rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero-title em {
  position: relative;
  font-style: normal;
  color: var(--red);
  padding-inline: 0.04em;
  background: linear-gradient(transparent 68%, rgba(232, 69, 44, 0.18) 68%);
}

.hero-lead {
  max-width: 33em;
  margin-top: 1.7rem;
  color: #cdc2b3;
  font-size: clamp(0.96rem, 1.4vw, 1.06rem);
  line-height: 1.95;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: clamp(2.4rem, 4.5vw, 3.4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.hero-stats li {
  display: grid;
  gap: 0.15rem;
}

.hero-stats b {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--font-num);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1;
  letter-spacing: 0.01em;
}

.hero-stats b small {
  font-family: var(--font-sans);
  font-size: 0.66rem;
  color: var(--gold);
  letter-spacing: 0;
}

.hero-stats span {
  color: var(--muted-2);
  font-size: 0.73rem;
  letter-spacing: 0.1em;
}

/* —— 首屏票根 —— */
.hero-ticket {
  justify-self: end;
  width: 100%;
  max-width: 430px;
}

.ticket-date {
  margin-top: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: #7d7061;
  text-transform: uppercase;
}

.hero-seal {
  position: absolute;
  right: clamp(1.3rem, 4vw, 4rem);
  bottom: clamp(2.2rem, 6vh, 4.6rem);
  z-index: 3;
  width: clamp(78px, 8vw, 112px);
  color: var(--gold);
  opacity: 0.82;
  transform: rotate(-8deg);
}

.hero-seal svg {
  width: 100%;
  height: auto;
  animation: spin-slow 32s linear infinite;
}

.hero-seal text {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 2.6px;
  fill: currentColor;
}

.hero-seal circle {
  opacity: 0.5;
}

.hero-scroll {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(1.8rem, 4vh, 2.6rem);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  transition: color var(--t-fast) var(--ease);
}

.hero-scroll svg {
  width: 16px;
  height: 16px;
  animation: rise 1.6s var(--ease) infinite alternate;
}

.hero-scroll:hover {
  color: var(--paper);
}

/* ------------------------------ 跑马灯 ------------------------------ */
.ticker-wrap {
  position: relative;
  z-index: 3;
  margin-top: clamp(-2.2rem, -3vw, -1.4rem);
  overflow-x: clip;
  overflow-y: visible;
}

.ticker {
  position: relative;
  padding: 0.78rem 0;
  background: var(--red);
  color: var(--ink);
  border-block: 1px solid rgba(0, 0, 0, 0.25);
  transform: rotate(-1.1deg) scale(1.02);
  overflow: hidden;
  box-shadow: 0 18px 40px -24px rgba(232, 69, 44, 0.8);
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  width: max-content;
  animation: marquee 34s linear infinite;
  will-change: transform;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-track span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.94rem;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.ticker-track i {
  font-style: normal;
  font-size: 0.8rem;
  opacity: 0.65;
}

/* ------------------------------ 通用分区 ------------------------------ */
.section {
  position: relative;
  padding: clamp(4rem, 8vw, 7rem) 0;
  border-top: 1px solid var(--line);
}

.section > .wrap {
  position: relative;
  z-index: 2;
}

/* ------------------------------ 领券区 ------------------------------ */
.coupon-sec {
  position: relative;
  padding: clamp(3.4rem, 6vw, 5rem) 0 clamp(2.6rem, 4vw, 3.6rem);
}

.coupon-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

/* ------------------------------ 秒杀区 ------------------------------ */
.flash-sec {
  border-top: 1px solid var(--line);
}

.flash-sec::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(46% 60% at 92% 24%, rgba(232, 69, 44, 0.13), transparent 70%);
  pointer-events: none;
}

.session {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 0.7rem 0 0.4rem;
  flex: none;
}

.session-copy {
  display: grid;
  gap: 0.2rem;
  text-align: right;
}

.session-copy span {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
}

.session-copy b {
  color: var(--paper);
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.session-copy small {
  color: var(--muted-2);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
}

.flash-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.flash-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.6rem;
  color: var(--muted-2);
  font-size: 0.73rem;
  letter-spacing: 0.03em;
}

.flash-note svg {
  width: 13px;
  height: 13px;
  color: var(--gold);
  flex: none;
}

/* ------------------------------ 好物区 ------------------------------ */
.goods-sec {
  overflow: hidden;
}

.goods-sec::after {
  content: "GOODS";
  position: absolute;
  right: -1.5rem;
  top: 2.4rem;
  z-index: 0;
  font-family: var(--font-num);
  font-size: clamp(5rem, 12vw, 10rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 236, 223, 0.06);
  pointer-events: none;
  user-select: none;
}

.goods-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.goods-utils {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.2rem;
}

.empty-state {
  padding: 4.5rem 1.5rem;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(244, 236, 223, 0.02);
}

.empty-mark {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 1rem;
  border: 1px solid var(--red);
  border-radius: 50%;
  color: var(--red);
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.empty-state h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.02em;
}

.empty-state p {
  margin: 0.5rem 0 1.4rem;
  color: var(--muted);
  font-size: 0.88rem;
}

/* ------------------------------ 凑单计算（纸质浅色带） ------------------------------ */
.math-sec {
  background: var(--paper);
  color: var(--ink);
  border-top: 0;
  padding: clamp(5rem, 9vw, 8rem) 0;
  overflow: hidden;
}

.math-sec::before {
  content: "300-50";
  position: absolute;
  left: -2rem;
  bottom: -3rem;
  font-family: var(--font-num);
  font-size: clamp(7rem, 19vw, 16rem);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(23, 19, 16, 0.07);
  pointer-events: none;
  user-select: none;
}

.math-edge {
  position: absolute;
  left: 0;
  right: 0;
  height: 14px;
  background-image: radial-gradient(circle at 7px 50%, var(--ink) 0 6.4px, transparent 7px);
  background-size: 14px 14px;
  background-repeat: repeat-x;
  pointer-events: none;
  z-index: 3;
}

.math-edge--top {
  top: -7px;
}

.math-edge--bottom {
  bottom: -7px;
}

.math-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.math-copy .sec-eyebrow {
  color: #74644f;
}

.math-title {
  margin-top: 0.7rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.7rem, 6vw, 4.9rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.math-title em {
  font-style: normal;
  color: var(--red);
}

.math-copy .sec-lead {
  margin-top: 1.4rem;
  color: #6a5c4b;
}

.tier-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2.4rem;
}

.tier-list li {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  padding: 0.75rem 1.1rem;
  border: 1px solid var(--line-ink);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.28);
  transition: background var(--t-mid) var(--ease), color var(--t-mid) var(--ease),
    border-color var(--t-mid) var(--ease), transform var(--t-mid) var(--ease);
}

.tier-list li b {
  font-family: var(--font-num);
  font-weight: 400;
  font-size: 1.45rem;
  line-height: 1;
}

.tier-list li span {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: #695a48;
}

.tier-list li.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -14px rgba(23, 19, 16, 0.7);
}

.tier-list li.is-active span {
  color: var(--gold);
}

.calc-receipt {
  justify-self: end;
  width: 100%;
  max-width: 500px;
  transform: rotate(-0.7deg);
}

/* ------------------------------ 转盘区 ------------------------------ */
.wheel-sec::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(42% 55% at 76% 46%, rgba(227, 180, 92, 0.12), transparent 70%),
    radial-gradient(34% 44% at 14% 80%, rgba(232, 69, 44, 0.1), transparent 70%);
  pointer-events: none;
}

.wheel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.wheel-copy .sec-lead {
  margin-top: 1.4rem;
}

.wheel-rules {
  display: grid;
  gap: 0.9rem;
  margin-top: 2.2rem;
  max-width: 31em;
}

.wheel-rules li {
  display: flex;
  gap: 0.9rem;
  color: #c3b7a8;
  font-size: 0.86rem;
  line-height: 1.7;
  padding-bottom: 0.9rem;
  border-bottom: 1px dashed var(--line);
}

.wheel-rules span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--red);
  padding-top: 0.25rem;
  letter-spacing: 0.08em;
}

.wheel-status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.8rem;
  padding: 0.55rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  font-size: 0.78rem;
  color: var(--muted);
}

.wheel-status b {
  color: var(--gold);
  font-family: var(--font-mono);
}

.wheel-status__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse-ring 2.4s infinite;
}

.wheel-stage {
  position: relative;
  width: min(100%, 500px);
  margin-inline: auto;
  padding: 16px;
  border: 1px dashed rgba(244, 236, 223, 0.2);
  border-radius: 50%;
}

.wheel-stage::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1px solid rgba(244, 236, 223, 0.07);
  pointer-events: none;
}

#wheelCanvas {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55));
}

.wheel-pointer {
  position: absolute;
  top: -2px;
  left: 50%;
  z-index: 3;
  width: 30px;
  height: 46px;
  transform: translateX(-50%);
  background: var(--paper);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.4));
}

.wheel-pointer::after {
  content: "";
  position: absolute;
  inset: 4px 6px auto;
  height: 26px;
  background: var(--red);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
}

.wheel-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  display: grid;
  place-content: center;
  justify-items: center;
  width: clamp(76px, 16%, 104px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--red);
  color: var(--paper);
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 6px var(--ink), 0 14px 30px rgba(0, 0, 0, 0.4);
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}

.wheel-hub:hover:not(:disabled) {
  transform: translate(-50%, -50%) scale(1.05);
  background: var(--red-deep);
}

.wheel-hub:active:not(:disabled) {
  transform: translate(-50%, -50%) scale(0.97);
}

.wheel-hub:disabled {
  cursor: not-allowed;
  background: #4a3f35;
}

.wheel-hub__main {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  line-height: 1;
}

.wheel-hub__sub {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.2em;
  opacity: 0.7;
  margin-top: 2px;
}

.wheel-result {
  min-height: 2.6em;
  margin-top: 1.4rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.03em;
  transition: color var(--t-mid) var(--ease);
}

.wheel-result.is-win {
  color: var(--gold);
  font-weight: 700;
}

/* ------------------------------ 服务 / FAQ ------------------------------ */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}

.service-card {
  padding: 2rem 1.6rem 2.2rem;
  border-right: 1px solid var(--line);
  transition: background var(--t-mid) var(--ease);
}

.service-card:last-child {
  border-right: 0;
}

.service-card:hover {
  background: rgba(244, 236, 223, 0.03);
}

.service-card svg {
  width: 26px;
  height: 26px;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.service-card p {
  margin-top: 0.5rem;
  color: var(--muted-2);
  font-size: 0.81rem;
  line-height: 1.8;
}

.faq {
  display: grid;
  grid-template-columns: 0.38fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: clamp(3rem, 6vw, 5rem);
  align-items: start;
}

.faq-head {
  display: grid;
  gap: 0.4rem;
}

.faq-head h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 900;
  letter-spacing: 0.02em;
}

.faq-head span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--muted-2);
}

.faq-item {
  border-top: 1px solid var(--line);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.15rem 0;
  cursor: pointer;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  list-style: none;
  transition: color var(--t-fast) var(--ease);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--gold);
}

.faq-icon {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform var(--t-mid) var(--ease);
}

.faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] .faq-icon::after {
  transform: translate(-50%, -50%) rotate(0);
}

.faq-item p {
  padding: 0 2rem 1.35rem 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.9;
  animation: fade-in 0.4s var(--ease);
}

/* ------------------------------ 页脚 ------------------------------ */
.site-foot {
  position: relative;
  overflow: hidden;
  padding-top: clamp(4rem, 8vw, 6rem);
  background: var(--ink-2);
  border-top: 1px solid var(--line);
}

.foot-top {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.9fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: end;
}

.foot-slogan {
  margin-top: 1.2rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.2rem, 4.8vw, 3.8rem);
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.foot-slogan em {
  font-style: normal;
  color: var(--red);
}

.foot-coords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  color: var(--muted-2);
}

.foot-sub h3 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 700;
}

.sub-form {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.3rem;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 0.5rem;
  transition: border-color var(--t-fast) var(--ease);
}

.sub-form:focus-within {
  border-color: var(--gold);
}

.sub-form.is-error {
  border-color: var(--red);
  animation: shake-x 0.32s var(--ease);
}

.sub-form input {
  flex: 1;
  min-width: 0;
  padding: 0.55rem 0;
  background: transparent;
  border: 0;
  color: var(--paper);
  font-size: 0.9rem;
}

.sub-form input:focus-visible {
  outline: none;
}

.foot-hint {
  margin-top: 0.8rem;
  color: var(--muted-2);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
}

.foot-mid {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-top: clamp(3rem, 5vw, 4.5rem);
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
}

.foot-links a {
  color: var(--muted);
  font-size: 0.82rem;
  transition: color var(--t-fast) var(--ease);
}

.foot-links a:hover {
  color: var(--paper);
}

.foot-copy {
  text-align: right;
  color: var(--muted-2);
  font-size: 0.7rem;
  line-height: 1.9;
}

.foot-ghost {
  margin-top: clamp(1.5rem, 3vw, 3rem);
  margin-bottom: -0.06em;
  font-family: var(--font-num);
  font-size: clamp(7rem, 27vw, 24rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 236, 223, 0.09);
  user-select: none;
  pointer-events: none;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.8fr);
  }

  .hero-seal {
    display: none;
  }
}

@media (max-width: 1000px) {
  .head-nav {
    display: none;
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3.2rem;
  }

  .hero-ticket {
    justify-self: start;
    max-width: 480px;
  }

  .hero-copy {
    max-width: 640px;
  }

  .hero-ghost {
    font-size: min(52vw, 420px);
    opacity: 0.7;
  }

  .flash-grid {
    grid-template-columns: 1fr;
  }

  .math-grid,
  .wheel-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .calc-receipt {
    justify-self: start;
    max-width: 560px;
  }

  .wheel-stage {
    width: min(100%, 440px);
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card:nth-child(2) {
    border-right: 0;
  }

  .service-card:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .foot-top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .foot-slogan {
    font-size: clamp(2.2rem, 6vw, 3.2rem);
  }

  .faq {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .faq-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
  }
}

@media (max-width: 860px) {
  .coupon-row {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .sec-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .sec-note {
    text-align: left;
    padding-bottom: 0;
    max-width: 28em;
  }

  .session {
    width: 100%;
    justify-content: space-between;
    padding: 0;
    border-top: 1px dashed var(--line);
    padding-top: 0.9rem;
  }

  .session-copy {
    text-align: left;
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }

  .goods-tools {
    flex-direction: column;
    align-items: stretch;
    gap: 0.9rem;
  }

  .goods-utils {
    width: 100%;
  }

  .search-box {
    flex: 1;
    width: auto;
    min-width: 0;
  }

  .foot-mid {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.6rem;
  }

  .foot-copy {
    text-align: left;
  }
}

@media (max-width: 700px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
  }
}

@media (max-width: 680px) {
  :root {
    --head-h: 66px;
  }

  .head-coupon {
    display: none;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    font-size: 0.88rem;
  }

  .hero {
    padding-top: calc(var(--head-h) + 2.2rem);
    padding-bottom: 4.5rem;
  }

  .hero-title {
    font-size: clamp(2.5rem, 10.5vw, 3.6rem);
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem 1rem;
  }

  .hero-seal,
  .hero-scroll {
    display: none;
  }

  .ticker-wrap {
    margin-top: -1.5rem;
  }

  .ticker {
    padding: 0.6rem 0;
    transform: rotate(-1.4deg) scale(1.03);
  }

  .ticker-track span {
    font-size: 0.82rem;
  }

  .section {
    padding: 3.6rem 0;
  }

  .math-sec {
    padding: 4.6rem 0;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 1.6rem 0.2rem;
  }

  .service-card:last-child {
    border-bottom: 0;
  }

  .wheel-stage {
    width: min(100%, 360px);
  }

  .faq {
    margin-top: 2.5rem;
  }

  .site-foot {
    padding-bottom: 5rem;
  }

  .sub-form {
    flex-wrap: wrap;
    border-bottom: 0;
    padding-bottom: 0;
  }

  .sub-form input {
    flex-basis: 100%;
    border-bottom: 1px solid var(--line-strong);
  }

  .sub-form .btn {
    width: 100%;
    justify-content: center;
  }

  .foot-coords {
    gap: 0.4rem 1.4rem;
  }
}

@media (max-width: 480px) {
  .hero-ticket {
    padding-inline: 1.15rem;
  }

  .hero-cta .btn {
    flex: 1;
    justify-content: center;
    min-width: 140px;
  }

  .sort-box {
    margin-left: auto;
  }

  .sort-box select {
    padding: 0 1.9rem 0 0.8rem;
    font-size: 0.75rem;
  }

  .product-grid {
    gap: 0.75rem;
  }

  .calc-amount {
    font-size: 2.6rem;
  }

  .foot-ghost {
    font-size: 42vw;
  }
}
