/* 开服纸质礼券：独立券面、透明撕口与领取票根，仅作用于活动页。 */
.activity-page .coupon-claim-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 22px;
}
.activity-page .coupon-claim-card {
  --coupon-paper: #fcfbf5;
  --coupon-edge: #d9dfce;
  --coupon-ink: #2f785d;
  --coupon-muted: #667660;
  --coupon-fold: #b9c6ae;
  min-width: 0;
  color: var(--ad-ink, #20382d);
  overflow-wrap: anywhere;
  filter: drop-shadow(0 2px 0 rgba(57, 77, 45, .1)) drop-shadow(0 7px 10px rgba(39, 60, 40, .08));
}
.activity-page .coupon-ticket-head,
.activity-page .coupon-ticket-stub {
  position: relative;
  isolation: isolate;
  border: 1px solid var(--coupon-edge);
  background: var(--coupon-paper);
}
.activity-page .coupon-ticket-head {
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  background-image: linear-gradient(135deg, rgba(255,255,255,.82), transparent 72%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.activity-page .coupon-ticket-head::before,
.activity-page .coupon-ticket-stub::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: url("../../img/home-refinement/fine-paper-grain.webp?v=20260927a") repeat;
  background-size: 768px 768px;
  mix-blend-mode: multiply;
  opacity: .16;
  pointer-events: none;
}
.activity-page .coupon-ticket-head::after {
  content: "";
  position: absolute;
  inset: 6px 6px 0;
  border: 1px solid rgba(133,155,114,.16);
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
  pointer-events: none;
}
.activity-page .coupon-ticket-tear {
  position: relative;
  height: 20px;
  background: linear-gradient(to bottom, var(--coupon-paper) 0 50%, #faf9f1 50% 100%);
  -webkit-mask: radial-gradient(circle at 0 50%, transparent 9px, #000 9.75px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 50%, transparent 9px, #000 9.75px) right / 51% 100% no-repeat;
  mask: radial-gradient(circle at 0 50%, transparent 9px, #000 9.75px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 50%, transparent 9px, #000 9.75px) right / 51% 100% no-repeat;
}
.activity-page .coupon-ticket-tear::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 17px;
  right: 17px;
  border-top: 1px dashed var(--coupon-fold);
  box-shadow: 0 1px 0 rgba(255,255,255,.8);
}
.activity-page .coupon-ticket-stub {
  border-top: 0;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(180deg, #faf9f1, #f5f5ea);
  box-shadow: inset 0 -2px 0 rgba(196,204,181,.25);
}
.activity-page .coupon-claim-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 17px 22px 0;
  font-size: 11px;
  line-height: 1.5;
}
.activity-page .coupon-claim-kind {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--coupon-muted);
  letter-spacing: .04em;
}
.activity-page .coupon-claim-kind .icon-svg { width: 14px; height: 14px; }
.activity-page .coupon-claim-state {
  flex-shrink: 0;
  padding: 4px 9px;
  border: 3px double #a3b494;
  border-radius: 5px;
  color: #476d49;
  background: rgba(226,237,213,.5);
  font-size: 10px;
  font-weight: 550;
  letter-spacing: .08em;
  transform: rotate(-5deg);
}
.activity-page .coupon-claim-main {
  display: grid;
  grid-template-columns: minmax(76px, 100px) minmax(0, 1fr);
  align-items: center;
  gap: 19px;
  min-height: 133px;
  padding: 15px 22px 19px;
}
.activity-page .coupon-claim-face {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 3px;
  min-width: 0;
  padding-right: 12px;
  border-right: 1px dashed var(--coupon-fold);
  color: var(--coupon-ink);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 0 rgba(255,255,255,.7);
}
.activity-page .coupon-claim-face strong {
  max-width: 100%;
  font-size: clamp(42px, 3.5vw, 54px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -2px;
}
.activity-page .coupon-face-prefix,
.activity-page .coupon-face-unit { font-size: 14px; line-height: 1.5; }
.activity-page .coupon-claim-face .coupon-face-compact { font-size: 24px; letter-spacing: -1px; }
.activity-page .coupon-claim-face .coupon-face-text { font-size: 23px; line-height: 1.5; letter-spacing: -.5px; }
.activity-page .coupon-claim-copy { min-width: 0; }
.activity-page .coupon-claim-title { margin: 0 0 8px; font-size: 16px; line-height: 1.5; font-weight: 550; color: inherit; }
.activity-page .coupon-claim-scope,
.activity-page .coupon-claim-use { margin: 0; color: var(--coupon-muted); font-size: 11px; line-height: 1.8; }
.activity-page .coupon-claim-use { margin-top: 5px; }
.activity-page .coupon-claim-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 22px 15px;
}
.activity-page .coupon-claim-window {
  flex: 1;
  min-width: 0;
  margin: 0;
  color: #61715f;
  font-size: 11px;
  line-height: 1.8;
}
.activity-page .coupon-claim-window > span { display: block; margin-bottom: 3px; color: #798573; font-size: 10px; letter-spacing: .06em; }
.activity-page .coupon-claim-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  flex-shrink: 0;
  border: 1px solid #b8c9ac;
  border-radius: 7px;
  background: linear-gradient(180deg, #fffef8, #eaf0df);
  box-shadow: inset 0 1px 0 #fff, 0 2px 0 #d0dac4, 0 3px 5px rgba(50,70,40,.05);
  color: var(--ad-green, #2f785d);
  font-size: 12px;
  font-weight: 550;
  text-decoration: none;
}
.activity-page .coupon-claim-link:hover { background: linear-gradient(180deg, #f7fbee, #e4edda); color: #255f49; }
.activity-page .coupon-claim-link:focus-visible,
.activity-page .coupon-claim-rules > summary:focus-visible { outline: 2px solid var(--ad-green, #2f785d); outline-offset: 4px; }
.activity-page .coupon-claim-rules { margin: 0 15px; border-top: 1px solid #e1e5d6; }
.activity-page .coupon-claim-rules > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 9px 7px;
  list-style: none;
  color: #718069;
  font-size: 11px;
  line-height: 1.5;
}
.activity-page .coupon-claim-rules > summary::-webkit-details-marker { display: none; }
.activity-page .coupon-rules-toggle { display: grid; place-items: center; width: 19px; height: 19px; border: 1px solid #d8dfcc; border-radius: 50%; font-size: 13px; transition: transform .15s ease; }
.activity-page .coupon-claim-rules[open] .coupon-rules-toggle { transform: rotate(45deg); }
.activity-page .coupon-claim-rules dl { margin: 0; padding: 3px 7px 0; }
.activity-page .coupon-claim-rules dl > div { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 8px; padding: 7px 0; }
.activity-page .coupon-claim-rules dt,
.activity-page .coupon-claim-rules dd { margin: 0; font-size: 11px; font-weight: 400; line-height: 1.8; }
.activity-page .coupon-claim-rules dt { color: #718069; }
.activity-page .coupon-claim-rules dd { color: var(--ad-ink, #20382d); }
.activity-page .coupon-rule-note { margin: 0; padding: 9px 7px 18px; color: #718069; font-size: 11px; line-height: 1.8; }
.activity-page .coupon-claim-card.is-featured { --coupon-paper: #2e7056; --coupon-edge: #b7c8ab; --coupon-ink: #fffdf0; --coupon-muted: #e0ecdc; --coupon-fold: #90ad88; }
.activity-page .coupon-claim-card.is-featured .coupon-ticket-head { border-color: #2e7056; color: #fffdf0; background-image: linear-gradient(125deg, rgba(92,150,105,.32), transparent 80%); box-shadow: inset 0 1px 0 rgba(255,255,255,.22); }
.activity-page .coupon-claim-card.is-featured .coupon-ticket-head::after { border-color: rgba(221,236,205,.23); }
.activity-page .coupon-claim-card.is-featured .coupon-claim-face { text-shadow: 0 2px 0 rgba(12,51,32,.22); }
.activity-page .coupon-claim-card.is-featured .coupon-claim-state { border-color: #d2e4b6; color: #e8f2d4; background: rgba(218,238,182,.07); }
.activity-page .coupon-claim-card.is-featured .coupon-claim-link { border-color: #286b4f; background: linear-gradient(180deg, #3d8667, #2d7054); box-shadow: inset 0 1px 0 rgba(255,255,255,.23), 0 2px 0 #20583e, 0 3px 6px rgba(37,77,45,.14); color: #fff; }
.activity-page .coupon-claim-card.is-featured .coupon-claim-link:hover { background: linear-gradient(180deg, #34785b, #286348); }
.activity-page .coupon-claim-card.is-upcoming .coupon-claim-state { border-color: #c5b68b; background: #f5efd9; color: #7d693a; }
.activity-page .coupon-claim-card:is(.is-ended, .is-sold_out, .is-unknown) .coupon-claim-state { border-color: #b8bcb0; background: #eeefe8; color: #747969; }
.activity-page .coupon-claim-notice,
.activity-page .coupon-claim-loading {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 145px;
  padding: 25px 28px;
  border: 1px solid var(--ad-line, #dfe7df);
  border-radius: var(--ad-radius, 12px);
  background: #f5f8f2;
}
.activity-page .coupon-claim-notice h3 { margin: 0 0 7px; color: var(--ad-ink, #20382d); font-size: 16px; font-weight: 500; line-height: 1.5; }
.activity-page .coupon-claim-notice p { margin: 0; color: var(--ad-muted, #65766c); font-size: 13px; line-height: 1.8; }
.activity-page .coupon-retry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--ad-line, #dfe7df);
  border-radius: 8px;
  background: #fff;
  color: var(--ad-green, #2f785d);
  font: inherit;
  font-size: 12px;
  flex-shrink: 0;
}
.activity-page .coupon-retry:hover { border-color: var(--ad-green, #2f785d); }
.activity-page .coupon-claim-loading { justify-content: center; gap: 9px; color: var(--ad-muted, #65766c); font-size: 13px; }
.activity-page .coupon-loading-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ad-green, #2f785d); flex-shrink: 0; }
@media (max-width: 1050px) {
  .activity-page .coupon-claim-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .activity-page .coupon-claim-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .activity-page .coupon-claim-main { grid-template-columns: 90px minmax(0, 1fr); gap: 17px; min-height: 123px; }
  .activity-page .coupon-claim-face strong { font-size: 48px; }
  .activity-page .coupon-claim-face .coupon-face-compact { font-size: 23px; }
  .activity-page .coupon-claim-face .coupon-face-text { font-size: 23px; }
  .activity-page .coupon-claim-notice { align-items: flex-start; flex-direction: column; gap: 15px; padding: 22px; }
  .activity-page .coupon-claim-notice p { font-size: 12px; }
}
@media (max-width: 360px) {
  .activity-page .coupon-claim-main { grid-template-columns: 80px minmax(0, 1fr); gap: 13px; }
  .activity-page .coupon-claim-top,
  .activity-page .coupon-claim-main,
  .activity-page .coupon-claim-foot { padding-left: 17px; padding-right: 17px; }
  .activity-page .coupon-claim-rules { margin-inline: 10px; }
  .activity-page .coupon-claim-face { padding-right: 8px; }
  .activity-page .coupon-claim-face strong { font-size: 44px; }
  .activity-page .coupon-claim-face .coupon-face-compact { font-size: 21px; }
  .activity-page .coupon-claim-face .coupon-face-text { font-size: 21px; }
  .activity-page .coupon-claim-title { font-size: 15px; }
  .activity-page .coupon-claim-foot { gap: 10px; }
  .activity-page .coupon-claim-link { padding-inline: 10px; gap: 6px; font-size: 11px; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .activity-page .coupon-claim-link { transition: transform .15s ease, box-shadow .15s ease; }
  .activity-page .coupon-claim-link:active { transform: translateY(2px); box-shadow: inset 0 1px 3px rgba(30,65,38,.15); }
}
@media (prefers-reduced-motion: reduce) {
  .activity-page .coupon-rules-toggle { transition: none; }
}
