/**
 * @fileoverview 双十一 · 云服务年度回馈专题页样式。
 * 深色技术面板风：细网格底、冷灰光晕、砖红点题光带；
 * 包含顶部信息条、等宽数字头图、倒计时、票券式优惠卡、返利印章与活动细则。
 */

:root {
  --act-bg: #0f0d12;
  --act-bg-2: #14111a;
  --act-ink: #f2eef4;
  --act-ink-soft: rgba(242, 238, 244, 0.72);
  --act-ink-dim: rgba(242, 238, 244, 0.56);
  --act-brick: #c02b3a;
  --act-brick-soft: #f07565;
  --act-brick-deep: #7f1d2b;
  --act-line: rgba(242, 238, 244, 0.1);
  --act-line-strong: rgba(242, 238, 244, 0.2);
  --act-panel: rgba(255, 255, 255, 0.026);
  --act-panel-2: rgba(255, 255, 255, 0.05);
  --act-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", "Consolas", monospace;
  --act-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--act-sans);
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--act-ink);
  background: var(--act-bg);
  overflow-x: hidden;
}

a {
  color: var(--act-ink);
  text-decoration-color: rgba(242, 238, 244, 0.35);
  text-underline-offset: 3px;
}

a:hover {
  color: #fff;
  text-decoration-color: var(--act-brick-soft);
}

/* ---------- 背景层 ---------- */
.act-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: linear-gradient(180deg, var(--act-bg-2) 0%, var(--act-bg) 46%, #0a080d 100%);
}

.act-bg-grid {
  position: absolute;
  inset: -1px;
  background-image:
    linear-gradient(to right, rgba(242, 238, 244, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(242, 238, 244, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 10%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 10%, transparent 78%);
}

.act-bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
}

.act-bg-glow-a {
  top: -16rem;
  right: -8rem;
  width: 34rem;
  height: 34rem;
  background: radial-gradient(circle, rgba(192, 43, 58, 0.34), transparent 68%);
  animation: act-drift-a 22s ease-in-out infinite;
}

.act-bg-glow-b {
  bottom: -18rem;
  left: -10rem;
  width: 36rem;
  height: 36rem;
  background: radial-gradient(circle, rgba(120, 132, 158, 0.22), transparent 70%);
  animation: act-drift-b 26s ease-in-out infinite;
}

/* 双十一点题：右上到左下的一条暗红光带 */
.act-bg-band {
  position: absolute;
  top: -30%;
  left: 62%;
  width: 26rem;
  height: 160%;
  transform: rotate(24deg);
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(192, 43, 58, 0.14) 28%,
    rgba(224, 87, 75, 0.18) 48%,
    rgba(127, 29, 43, 0.12) 68%,
    transparent 100%
  );
  filter: blur(26px);
  opacity: 0.7;
}

/* ---------- 顶部信息条（静态，不滚动） ---------- */
.act-ticker {
  position: relative;
  z-index: 3;
  padding: 0.62rem 1.25rem;
  border-bottom: 1px solid var(--act-line);
  background: rgba(10, 8, 13, 0.72);
  backdrop-filter: blur(8px);
}

.act-ticker-track {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.6rem;
  max-width: 62rem;
  margin: 0 auto;
  font-family: var(--act-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--act-ink-soft);
}

.act-ticker-run {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.6rem;
}

.act-ticker-run + .act-ticker-run {
  display: none;
}

.act-ticker-run i {
  font-style: normal;
}

.act-ticker-run b {
  font-weight: 400;
  color: rgba(240, 117, 101, 0.8);
}

/* ---------- 顶栏 ---------- */
.act-top {
  position: relative;
  z-index: 2;
  max-width: 62rem;
  margin: 0 auto;
  padding: 1.1rem 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.act-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
  color: var(--act-ink-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}

.act-back svg {
  width: 15px;
  height: 15px;
}

.act-back:hover {
  color: var(--act-ink);
}

.act-top-badge {
  font-family: var(--act-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.62rem;
  border: 1px solid var(--act-line-strong);
  border-radius: 4px;
  color: var(--act-ink-soft);
}

/* ---------- 容器 ---------- */
.act-wrap {
  position: relative;
  z-index: 2;
  max-width: 62rem;
  margin: 0 auto;
  padding: 0 1.25rem 5rem;
}

/* ---------- 头图 ---------- */
.act-hero {
  padding: 3rem 0 0.5rem;
  max-width: 42rem;
}

.act-kicker {
  margin: 0 0 1.1rem;
  font-family: var(--act-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--act-ink-dim);
}

/* 等宽巨型数字：主视觉，与正文形成数量级差异 */
.act-num {
  position: relative;
  margin: 0;
  display: flex;
  align-items: baseline;
  font-family: var(--act-mono);
  font-size: clamp(4.2rem, 17vw, 8.4rem);
  font-weight: 200;
  line-height: 0.82;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 238, 244, 0.58);
  text-shadow: 0 8px 26px rgba(0, 0, 0, 0.55);
}

.act-num-i {
  display: inline-block;
  animation: act-reveal 0.9s cubic-bezier(0.22, 0.68, 0.24, 1) both;
}

.act-num-i:nth-child(1) { animation-delay: 0.05s; }
.act-num-i:nth-child(2) { animation-delay: 0.14s; }
.act-num-i:nth-child(4) { animation-delay: 0.26s; }
.act-num-i:nth-child(5) { animation-delay: 0.35s; }

.act-num-dot {
  display: inline-block;
  color: var(--act-brick-soft);
  -webkit-text-stroke: 0;
  animation: act-reveal 0.9s cubic-bezier(0.22, 0.68, 0.24, 1) 0.2s both;
}

/* 低频斜向扫光 */
.act-num-sweep {
  position: absolute;
  top: -10%;
  left: -30%;
  width: 18%;
  height: 120%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(240, 117, 101, 0.3) 45%,
    rgba(242, 238, 244, 0.42) 50%,
    rgba(240, 117, 101, 0.3) 55%,
    transparent 100%
  );
  filter: blur(6px);
  transform: skewX(-18deg);
  animation: act-sweep 7.5s ease-in-out 1.4s infinite;
  mix-blend-mode: screen;
  pointer-events: none;
}

/* 主标题：与 h2、正文形成清楚的阶梯 */
.act-title {
  margin: 1.5rem 0 0;
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  font-weight: 600;
  line-height: 1.26;
  letter-spacing: 0.01em;
  color: var(--act-ink);
}

.act-sub {
  margin: 0.75rem 0 0;
  max-width: 30rem;
  font-size: 0.9375rem;
  color: var(--act-ink-soft);
}

/* 规格胶囊 */
.act-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}

.act-specs li {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.42rem 0.78rem;
  border: 1px solid var(--act-line);
  border-radius: 4px;
  background: var(--act-panel);
}

.act-specs strong {
  font-family: var(--act-mono);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--act-brick-soft);
}

.act-specs span {
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
  color: var(--act-ink-soft);
}

/* 区块小标题 */
.act-section-title {
  margin: 0 0 0.7rem;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--act-ink);
}

/* ---------- 倒计时 ---------- */
.act-count {
  margin: 2.6rem 0 0;
  padding: 1.35rem 1.4rem 1.45rem;
  border: 1px solid var(--act-line);
  border-radius: 6px;
  background: linear-gradient(180deg, var(--act-panel-2), var(--act-panel));
}

.act-count-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  margin-bottom: 1rem;
}

.act-count-head h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.act-count-note {
  margin: 0;
  font-family: var(--act-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--act-ink-dim);
}

.act-clock {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.act-clock-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.85rem 0.3rem 0.6rem;
  border: 1px solid var(--act-line);
  border-radius: 4px;
  background: rgba(9, 7, 11, 0.66);
  overflow: hidden;
}

/* 中缝分隔线，模拟翻牌 */
.act-clock-cell::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 1px;
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 1px 0 rgba(242, 238, 244, 0.05);
}

.act-clock-num {
  font-family: var(--act-mono);
  font-size: clamp(1.7rem, 6.4vw, 2.5rem);
  font-weight: 200;
  line-height: 1;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  color: var(--act-ink);
}

.act-clock-unit {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--act-ink-dim);
}

.act-clock.is-over .act-clock-num {
  color: var(--act-ink-dim);
}

/* ---------- 优惠票券 ---------- */
.act-deals {
  margin: 2rem 0 0;
}

.act-deals-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.act-ticket {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 5.6rem;
  border: 1px solid var(--act-line);
  border-radius: 6px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  overflow: hidden;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.act-ticket:hover {
  transform: translateY(-3px);
  border-color: rgba(240, 117, 101, 0.4);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.36);
}

.act-ticket-main {
  padding: 1.25rem 1.25rem 1.15rem;
  min-width: 0;
}

/* 票根与主券之间的虚线 + 上下打孔缺口 */
.act-ticket-stub {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 1rem 0.4rem;
  border-left: 1px dashed rgba(242, 238, 244, 0.22);
  background: rgba(192, 43, 58, 0.07);
}

.act-ticket-stub::before,
.act-ticket-stub::after {
  content: "";
  position: absolute;
  left: -0.44rem;
  width: 0.86rem;
  height: 0.86rem;
  border-radius: 50%;
  background: var(--act-bg);
  border: 1px solid var(--act-line);
}

.act-ticket-stub::before {
  top: -0.44rem;
  clip-path: inset(50% 0 0 0);
}

.act-ticket-stub::after {
  bottom: -0.44rem;
  clip-path: inset(0 0 50% 0);
}

.act-stub-off {
  font-family: var(--act-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--act-ink-dim);
}

.act-stub-rate {
  font-family: var(--act-mono);
  font-size: 1.85rem;
  font-weight: 300;
  line-height: 1;
  color: var(--act-brick-soft);
  font-variant-numeric: tabular-nums;
}

.act-stub-rate small {
  font-size: 0.75rem;
  font-weight: 400;
  margin-left: 0.05rem;
}

.act-stub-tag {
  margin-top: 0.3rem;
  font-family: var(--act-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 0.1rem 0.34rem;
  border: 1px solid var(--act-line-strong);
  border-radius: 3px;
  color: var(--act-ink-soft);
}

.act-ticket-label {
  margin: 0;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: var(--act-ink-dim);
}

.act-ticket-desc {
  margin: 0.5rem 0 0;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--act-ink);
}

.act-ticket-foot {
  margin: 0.8rem 0 0;
  font-size: 0.8125rem;
  color: var(--act-ink-dim);
}

/* 优惠码槽 */
.act-code-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.95rem;
  padding: 0.4rem 0.4rem 0.4rem 0.85rem;
  border: 1px solid var(--act-line-strong);
  border-radius: 4px;
  background: rgba(8, 6, 10, 0.72);
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.5);
}

.act-code {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--act-mono);
  font-size: 1.125rem;
  letter-spacing: 0.04em;
  color: var(--act-ink);
  word-break: break-all;
  user-select: all;
}

.act-copy {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.44rem 0.75rem;
  border: 1px solid rgba(242, 238, 244, 0.24);
  border-radius: 3px;
  font-family: inherit;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--act-ink);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.act-copy-ic {
  width: 14px;
  height: 14px;
}

.act-copy:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(242, 238, 244, 0.4);
}

.act-copy:active {
  transform: translateY(1px);
}

/* 复制成功：细描边高亮，不撒花 */
.act-copy.is-done {
  color: #fff;
  border-color: rgba(240, 117, 101, 0.85);
  background: rgba(192, 43, 58, 0.26);
  box-shadow: 0 0 0 1px rgba(240, 117, 101, 0.2);
}

/* ---------- 充值返利 ---------- */
.act-rebate {
  display: flex;
  align-items: flex-start;
  gap: 1.3rem;
  margin: 2rem 0 0;
  padding: 1.35rem 1.4rem;
  border: 1px solid var(--act-line);
  border-radius: 6px;
  background: var(--act-panel);
}

.act-rebate-seal {
  flex: none;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  border: 1px solid rgba(240, 117, 101, 0.5);
  background: radial-gradient(circle at 50% 40%, rgba(192, 43, 58, 0.2), rgba(192, 43, 58, 0.03) 72%);
  animation: act-pulse 4.2s ease-in-out infinite;
}

.act-rebate-seal span {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--act-ink-soft);
}

.act-rebate-seal strong {
  font-family: var(--act-mono);
  font-size: 1.28rem;
  font-weight: 400;
  line-height: 1;
  color: var(--act-brick-soft);
}

.act-rebate-copy h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.act-rebate-copy p {
  margin: 0.55rem 0 0;
  font-size: 0.9375rem;
  color: var(--act-ink-soft);
}

.act-rebate-copy strong {
  color: var(--act-ink);
  font-weight: 600;
}

.act-rebate-note {
  font-size: 0.8125rem !important;
  color: var(--act-ink-dim) !important;
}

/* ---------- 活动细则 ---------- */
.act-rules {
  margin: 1.6rem 0 0;
  padding: 1.35rem 1.4rem;
  border: 1px solid var(--act-line);
  border-radius: 6px;
}

.act-rules h2 {
  margin: 0 0 0.7rem;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.act-rules ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.act-rules li {
  position: relative;
  padding-left: 1.05rem;
  font-size: 0.875rem;
  color: var(--act-ink-soft);
}

.act-rules li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.34rem;
  height: 1px;
  background: var(--act-brick-soft);
}

/* ---------- 页脚 ---------- */
.act-foot {
  margin: 2.2rem 0 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--act-line);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: var(--act-ink-dim);
}

/* ---------- 动画 ---------- */
@keyframes act-sweep {
  0%, 62% { left: -30%; opacity: 0; }
  70% { opacity: 0.9; }
  88%, 100% { left: 118%; opacity: 0; }
}

@keyframes act-reveal {
  from {
    opacity: 0;
    transform: translateY(0.24em);
    clip-path: inset(100% 0 0 0);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    clip-path: inset(-20% -20% -20% -20%);
  }
}

@keyframes act-drift-a {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-3rem, 2rem, 0) scale(1.06); }
}

@keyframes act-drift-b {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(3rem, -2rem, 0) scale(1.05); }
}

@keyframes act-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(192, 43, 58, 0.22); }
  50% { box-shadow: 0 0 0 10px rgba(192, 43, 58, 0); }
}

/* ---------- 响应式 ---------- */
@media (min-width: 720px) {
  .act-deals-grid {
    grid-template-columns: 1fr 1fr;
  }

  .act-hero {
    padding-top: 3.6rem;
  }
}

@media (max-width: 600px) {
  .act-top {
    padding-top: 0.9rem;
  }

  .act-hero {
    padding-top: 2.2rem;
  }

  .act-ticket {
    grid-template-columns: minmax(0, 1fr) 4.9rem;
  }

  .act-ticket-main {
    padding: 1.05rem 1rem 1rem;
  }

  .act-stub-rate {
    font-size: 1.55rem;
  }

  .act-rebate {
    flex-direction: column;
    gap: 0.9rem;
  }

  .act-clock {
    gap: 0.4rem;
  }

  .act-clock-cell {
    padding: 0.7rem 0.2rem 0.5rem;
  }

  .act-ticker-track {
    font-size: 0.6875rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .act-num-sweep,
  .act-num-i,
  .act-num-dot,
  .act-bg-glow,
  .act-rebate-seal {
    animation: none !important;
  }

  .act-num-sweep {
    opacity: 0;
  }
}
