/* 会员广告：GALACTIC PREMIUM */
.adx-membership .adx-stage {
  background:
    radial-gradient(ellipse at 50% -10%, rgba(255, 207, 66, .14), transparent 48%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 7px),
    linear-gradient(150deg, #2b0b38, #12051b 55%, #1d0928);
}

.adxm-wrap {
  position: relative;
  min-height: 100%;
  padding: clamp(16px, 3vw, 40px);
  overflow: hidden;
}

.adxm-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-conic-gradient(from 5deg at 50% 12%, rgba(255, 213, 95, .045) 0 5deg, transparent 5deg 15deg),
    repeating-linear-gradient(0deg, transparent 0 2px, rgba(0, 0, 0, .12) 2px 3px);
  animation: adxm-rays 36s linear infinite;
}

@keyframes adxm-rays { to { transform: rotate(360deg); } }

.adxm-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1100px;
  margin: 0 auto 15px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(255, 219, 117, .3);
}

.adxm-kicker {
  color: #d8b36b;
  font-family: var(--adx-mono);
  font-size: 9px;
  letter-spacing: .06em;
}

.adxm-live {
  color: #9ed57d;
  font-family: var(--adx-mono);
  font-size: 8px;
}

.adxm-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(230px, .7fr);
  gap: clamp(14px, 2.4vw, 28px);
  width: min(1100px, 100%);
  margin: 0 auto;
}

.adxm-pitch {
  position: relative;
  padding: clamp(18px, 3vw, 42px);
  color: #2a0b18;
  background:
    repeating-linear-gradient(0deg, rgba(91, 35, 12, .04) 0 1px, transparent 1px 5px),
    linear-gradient(155deg, #fff0c4, #f2d392 58%, #d6a553);
  border: 3px solid #1c0711;
  box-shadow: 10px 12px 0 rgba(0, 0, 0, .4), 0 0 50px rgba(255, 207, 66, .12);
  transform: rotate(-.4deg);
}

.adxm-pitch::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(80, 27, 10, .25);
  pointer-events: none;
}

.adxm-pitch::after {
  content: "";
  position: absolute;
  right: -7px;
  top: 23%;
  width: 30px;
  height: 31%;
  background: repeating-linear-gradient(0deg, #d6a553 0 3px, #f2d392 3px 7px);
  border: 2px solid #1c0711;
  transform: rotate(2deg);
}

.adxm-crown {
  position: absolute;
  right: 18px;
  top: 13px;
  color: #9b6511;
  font-size: clamp(40px, 5vw, 70px);
  line-height: 1;
  opacity: .22;
  transform: rotate(12deg);
}

.adxm-pitch h1 {
  position: relative;
  z-index: 2;
  margin: 0 0 2px;
  color: #a21337;
  font-family: var(--adx-serif);
  font-size: clamp(38px, 5.7vw, 76px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -.08em;
  text-shadow: 2px 2px 0 #fff1c6, 5px 5px 0 rgba(75, 17, 9, .12);
}

.adxm-sub {
  position: relative;
  z-index: 2;
  margin: 0 0 11px;
  color: #7d4b2e;
  font-family: var(--adx-serif);
  font-size: clamp(10px, 1.1vw, 13px);
}

.adxm-identity {
  position: relative;
  z-index: 2;
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 7px;
  color: #fff2d6;
  background: #2c0a16;
  font-family: var(--adx-serif);
  font-size: 10px;
  transform: skewX(-4deg);
}

.adxm-identity b {
  color: #ffe45d;
  font-size: 1.18em;
}

.adxm-identity em {
  color: #d8ad8e;
  font-style: normal;
  font-size: .78em;
}

.adxm-benefits {
  position: relative;
  z-index: 2;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  color: #442011;
  font-family: var(--adx-serif);
  font-size: 11px;
  line-height: 1.8;
}

.adxm-benefits li::before {
  content: "♛";
  margin-right: 5px;
  color: #9d6712;
  font-size: .78em;
}

.adxm-benefits small {
  color: #9a6c48;
  font-family: var(--adx-font);
  font-size: 8px;
}

.adxm-price {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin: 0 0 11px;
  color: #5c2d1c;
  font-family: var(--adx-mono);
  font-size: 9px;
}

.adxm-price strong {
  color: #b3152e;
  font-family: var(--adx-serif);
  font-size: clamp(29px, 3.3vw, 43px);
  line-height: 1;
  letter-spacing: -.04em;
}

.adxm-price small {
  color: #99673e;
  font-size: 7px;
}

.adxm-actions {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: stretch;
}

.adxm-button {
  min-height: 42px;
  padding: 7px 13px;
  border: 3px solid #24060c;
  color: #fff0cc;
  background: #a31a2d;
  box-shadow: 3px 3px 0 #24060c;
  font-family: var(--adx-font);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  transition: transform .08s, filter .12s;
  cursor: pointer;
}

.adxm-button:hover { filter: brightness(1.12) saturate(1.15); }
.adxm-button:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #24060c; }
.adxm-button--gold { color: #2b1003; background: linear-gradient(#ffe773, #f6bf34); }
.adxm-button--ghost { color: #5a2a1c; background: #f0ddac; }
.adxm-button--paper { color: #4c2414; background: #fff6d8; }
.adxm-primary { flex: 1 1 230px; font-size: 13px; }

.adxm-fine {
  position: relative;
  z-index: 2;
  max-width: 90%;
  margin: 9px 0 0;
  color: #966b49;
  font-family: var(--adx-serif);
  font-size: 7px;
  line-height: 1.5;
}

.adxm-side {
  position: relative;
  align-self: start;
  padding: 14px;
  color: #dac6d7;
  background:
    radial-gradient(ellipse at 80% 0, rgba(255, 207, 66, .14), transparent 55%),
    #1b0a22;
  border: 1px solid #634568;
  box-shadow: 7px 8px 0 rgba(0, 0, 0, .32);
}

.adxm-meter {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 6px;
  margin-bottom: 10px;
  color: #b195b4;
  font-family: var(--adx-serif);
  font-size: 9px;
}

.adxm-meter div {
  grid-column: 1 / -1;
  height: 8px;
  border: 1px solid #5d4265;
  background: #0e0613;
}

.adxm-meter i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #f32c91, #ffd94a);
  box-shadow: 0 0 8px rgba(255, 46, 166, .34);
}

.adxm-meter b {
  color: var(--adx-yellow);
  font-family: var(--adx-mono);
  font-size: 9px;
}

.adxm-quote {
  margin: 14px 0;
  padding: 10px 9px;
  color: #f2d9a4;
  background: #25122b;
  border-left: 3px solid #f7c13a;
  font-family: var(--adx-serif);
  font-size: 11px;
  line-height: 1.6;
}

.adxm-legal-mini {
  color: #856a87;
  font-family: var(--adx-serif);
  font-size: 7px;
  line-height: 1.6;
}

.adxm-feedback {
  min-height: 2.7em;
  margin-top: 12px;
  color: #f3b7cd;
  font-family: var(--adx-serif);
  font-size: 10px;
  line-height: 1.5;
}

.adxm-feedback.is-bad { color: #ff714f; }
.adxm-feedback.is-ok { color: #bfffa0; }

.adxm-dead {
  width: min(640px, 100%);
  margin: 8vh auto;
  padding: 28px;
  color: #e5d9d0;
  background: #0e0713;
  border: 2px solid #4a2e4c;
  text-align: center;
  box-shadow: 10px 12px 0 rgba(0, 0, 0, .35);
}

.adxm-dead-crown {
  margin-bottom: -8px;
  color: #5a3b4d;
  font-size: 70px;
  line-height: 1;
}

.adxm-dead h1 {
  margin: 0 0 8px;
  color: #c8a5a5;
  font-family: var(--adx-serif);
  font-size: clamp(28px, 4vw, 46px);
}

.adxm-dead p {
  color: #ad8e91;
  font-family: var(--adx-serif);
  font-size: 12px;
  line-height: 1.7;
}

.adxm-dead-small {
  color: #7b5b68 !important;
  font-size: 9px !important;
}

.adxm-dead .adxm-button { margin-top: 12px; }

.adxm-survey {
  position: fixed;
  inset: 0;
  z-index: 890;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(5, 1, 8, .74);
  backdrop-filter: blur(2px);
  animation: adxm-survey-in .18s ease-out both;
}

@keyframes adxm-survey-in { from { opacity: 0; } to { opacity: 1; } }

.adxm-survey-box {
  position: relative;
  width: min(470px, 100%);
  padding: 18px 17px 15px;
  color: #2b0b18;
  background:
    repeating-linear-gradient(0deg, rgba(91, 35, 12, .035) 0 1px, transparent 1px 5px),
    #f6e8ca;
  border: 3px solid #25070b;
  box-shadow: 8px 9px 0 rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .4);
  transform: rotate(-.25deg);
}

.adxm-survey-kicker {
  display: inline-block;
  padding: 2px 6px;
  color: #fff1ce;
  background: #8e1b2c;
  font-family: var(--adx-mono);
  font-size: 8px;
}

.adxm-survey-box h2 {
  margin: 9px 0 6px;
  color: #8f1723;
  font-family: var(--adx-serif);
  font-size: clamp(20px, 3vw, 30px);
  line-height: 1.3;
}

.adxm-survey-note {
  margin: 0 0 12px;
  color: #8a6a4c;
  font-family: var(--adx-serif);
  font-size: 9px;
  line-height: 1.6;
}

.adxm-survey-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.adxm-survey-close {
  position: absolute;
  right: 6px;
  top: 4px;
  width: 25px;
  height: 25px;
  color: #6f4c34;
  font-size: 17px;
}

.adxm-autonomy-bar {
  height: 9px;
  margin: 7px 0 13px;
  border: 1px solid #774c3d;
  background: #e5d0ad;
  overflow: hidden;
}

.adxm-autonomy-bar i {
  display: block;
  width: 99%;
  height: 100%;
  background: repeating-linear-gradient(90deg, #a70f27 0 9px, #f4bd3d 9px 18px);
  animation: adxm-autonomy 1.2s linear infinite;
}

@keyframes adxm-autonomy { to { transform: translateX(-18px); } }

.adxm-falling-x {
  display: grid;
  place-items: center;
  border: 2px solid #201015;
  border-radius: 2px;
  color: #f4ead8;
  background: #2b1330;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, .5);
  font-family: var(--adx-mono);
  font-size: 24px;
}

.adxm-falling-x small { display: none; }

.adxm-primary.is-targeted {
  position: relative;
  z-index: 3;
  animation: adxm-target-pulse .35s ease-in-out infinite alternate;
}

@keyframes adxm-target-pulse {
  to { filter: brightness(1.3); box-shadow: 0 0 22px rgba(255, 222, 76, .75), 3px 3px 0 #24060c; }
}

.adxm-primary.is-smashed {
  color: #a58c85 !important;
  background:
    repeating-linear-gradient(125deg, transparent 0 14px, rgba(255, 255, 255, .44) 14px 15px),
    #37252b !important;
  border-color: #160a0c !important;
  text-decoration: line-through;
  filter: saturate(.25);
  animation: adxm-smash .32s ease-out both;
}

.adxm-primary.is-smashed::after {
  content: "已取消";
  position: absolute;
  inset: 50% auto auto 50%;
  padding: 2px 7px;
  color: #fff2d6;
  background: #8e1b2c;
  border: 1px solid #2a0509;
  font-family: var(--adx-serif);
  font-size: 13px;
  font-weight: 900;
  transform: translate(-50%, -50%) rotate(-8deg);
}

@keyframes adxm-smash {
  0% { transform: translate(0, 0); }
  20% { transform: translate(4px, -2px) rotate(.5deg); }
  45% { transform: translate(-3px, 1px) rotate(-.5deg); }
  70% { transform: translate(2px, 0); }
  100% { transform: translate(0, 0); }
}

.adxm-primary.is-denied { animation: adxm-denied .25s linear 2; }
@keyframes adxm-denied { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }

.adxm-primary.is-calling { animation: adxm-call 1.3s ease-in-out infinite; }
@keyframes adxm-call { 0%,100% { filter: brightness(1); } 50% { filter: brightness(1.45); } }

.adxm-impact { animation: adxm-impact .4s ease-out; }
@keyframes adxm-impact {
  0% { transform: translate(0, 0); filter: brightness(1); }
  20% { transform: translate(-6px, 3px); filter: brightness(1.5); }
  40% { transform: translate(7px, -2px); }
  60% { transform: translate(-3px, 1px); }
  100% { transform: translate(0, 0); filter: brightness(1); }
}

body.adxm-screen-shake .browser-chrome,
body.adxm-screen-shake .adx-membership {
  animation: adxm-screen .36s linear;
}

@keyframes adxm-screen {
  0%, 100% { transform: translate(0, 0); }
  15% { transform: translate(-5px, 2px); }
  30% { transform: translate(5px, -3px); }
  45% { transform: translate(-3px, 1px); }
  60% { transform: translate(3px, 2px); }
  80% { transform: translate(-1px, 0); }
}

.adxm-legal-win {
  position: fixed;
  left: 50%;
  top: 30%;
  z-index: 960;
  width: min(410px, calc(100vw - 28px));
  padding: 9px 12px;
  color: #d7c2a7;
  background: rgba(15, 5, 12, .94);
  border: 1px solid #8e5e57;
  font-family: var(--adx-serif);
  font-size: 9px;
  line-height: 1.6;
  text-align: center;
  transform: translateX(-50%) rotate(-1deg);
  animation: adxm-legal-in .4s 0.1s both;
}

.adxm-legal-win small {
  display: block;
  margin-top: 3px;
  color: #f3b4cd;
  font-family: var(--adx-mono);
  font-size: 7px;
}

@keyframes adxm-legal-in {
  from { opacity: 0; transform: translate(-50%, 10px) rotate(-1deg); }
  to { opacity: 1; transform: translate(-50%, 0) rotate(-1deg); }
}

@media (max-width: 800px) {
  .adxm-wrap { padding: 13px 10px 20px; }
  .adxm-grid { grid-template-columns: 1fr; gap: 12px; }
  .adxm-top { margin-bottom: 10px; }
  .adxm-pitch { padding: 17px 14px 15px; }
  .adxm-pitch h1 { font-size: clamp(35px, 10vw, 54px); }
  .adxm-pitch::after { display: none; }
  .adxm-side { padding: 10px; }
  .adxm-meter { margin-bottom: 7px; }
  .adxm-quote { margin: 8px 0; padding: 7px; font-size: 10px; }
  .adxm-actions { flex-direction: column; }
  .adxm-primary { flex: none; width: 100%; }
  .adxm-button { width: 100%; }
  .adxm-survey-box { padding: 15px 12px 12px; }
  .adxm-survey-actions { flex-direction: column; }
  .adxm-legal-win { top: 24%; }
  .adxm-dead { margin: 4vh auto; padding: 20px 13px; }
}

body.mild .adxm-rays,
body.mild .adxm-autonomy-bar i,
body.mild .adxm-achievement-medal,
body.mild .adxm-impact,
body.mild .adxm-primary.is-targeted,
body.mild .adxm-primary.is-calling {
  animation: none !important;
}
