/* ============================================================
   天赐 TIANCI · 设计系统
   视觉语汇：深海军夜幕 / 青色电光 / 精密网格 / 票券打孔 / 印章
   配色取自品牌 Logo：#1b2240 底 · #2fd4e0 青 · #e8495a 红
   ============================================================ */

:root {
  /* 空间层次 */
  --void: #060912;
  --night: #0a0f1e;
  --night-2: #0e1426;
  --panel: #111829;
  --panel-2: #161f36;
  --panel-3: #1c2744;

  /* 墨色文字 */
  --text: #eaf0fb;
  --text-2: #a2adc8;
  --text-3: #66708c;

  /* 品牌色 */
  --cyan: #35d6e2;
  --cyan-bright: #6ff0f9;
  --cyan-deep: #14828c;
  --red: #e8495a;
  --red-bright: #ff6b7a;
  --navy: #1b2240;

  /* 线 */
  --line: rgba(142, 168, 220, 0.17);
  --line-soft: rgba(142, 168, 220, 0.09);
  --line-bright: rgba(53, 214, 226, 0.42);

  /* 光 */
  --glow-cyan: 0 0 24px -6px rgba(53, 214, 226, 0.5);
  --glow-red: 0 0 24px -6px rgba(232, 73, 90, 0.45);
  --shadow-card: 0 24px 60px -30px rgba(0, 0, 0, 0.95), 0 2px 8px -4px rgba(0, 0, 0, 0.6);
  --shadow-lift: 0 34px 80px -34px rgba(0, 0, 0, 1), 0 0 0 1px var(--line-bright);

  --mono: "JetBrains Mono", "Cascadia Mono", "SF Mono", Consolas, "Courier New", monospace;
  --serif: "Songti SC", "Source Han Serif SC", "Noto Serif SC", Georgia, "Times New Roman", SimSun, serif;
  --sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;

  --radius: 4px;
  --radius-lg: 8px;
  --maxw: 1160px;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  background-color: var(--night);
  background-image:
    radial-gradient(ellipse 60% 42% at 12% -6%, rgba(53, 214, 226, 0.13), transparent 62%),
    radial-gradient(ellipse 52% 38% at 92% 2%, rgba(232, 73, 90, 0.09), transparent 62%),
    radial-gradient(ellipse 90% 60% at 50% 110%, rgba(27, 34, 64, 0.85), transparent 70%),
    linear-gradient(180deg, #0a0f1e 0%, #070b16 55%, #060912 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--cyan);
  color: #04121a;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--void);
}

::-webkit-scrollbar-thumb {
  background: #232f4d;
  border-radius: 10px;
  border: 2px solid var(--void);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--cyan-deep);
}

a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.18s, color 0.18s;
}

a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0;
  text-wrap: balance;
  color: var(--text);
}

p {
  margin: 0;
}

code,
.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 26px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ------------------------------------------------------------ 动效 */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes stampIn {
  0% {
    opacity: 0;
    transform: rotate(-9deg) scale(1.5);
  }
  60% {
    opacity: 0.95;
    transform: rotate(-9deg) scale(0.97);
  }
  100% {
    opacity: 0.9;
    transform: rotate(-9deg) scale(1);
  }
}

@keyframes scanline {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(230%);
  }
}

@keyframes breathe {
  0%,
  100% {
    opacity: 0.09;
    transform: rotate(-6deg) scale(1);
  }
  50% {
    opacity: 0.14;
    transform: rotate(-6deg) scale(1.02);
  }
}

@keyframes pulseDot {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

.reveal {
  animation: rise 0.66s cubic-bezier(0.22, 0.72, 0.24, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .hero-seal,
  .hero-mark,
  .key-slab::after {
    animation: none !important;
  }
  * {
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ------------------------------------------------------------ 页头 */
.site-head {
  border-bottom: 1px solid var(--line);
  background: rgba(8, 12, 24, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-head::after {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(53, 214, 226, 0.55),
    rgba(232, 73, 90, 0.28),
    transparent
  );
  opacity: 0.65;
}

.head-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 0 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  min-width: 0;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  flex: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.09), 0 6px 18px -8px rgba(53, 214, 226, 0.6);
  transition: box-shadow 0.25s, transform 0.25s;
}

.brand:hover .brand-logo {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(53, 214, 226, 0.45), 0 10px 24px -8px rgba(53, 214, 226, 0.75);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.brand-mark {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--text);
  white-space: nowrap;
}

.brand-sub {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--text-3);
  text-transform: uppercase;
  white-space: nowrap;
  margin-top: 2px;
}

.head-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.head-nav a,
.head-nav button {
  border: 1px solid transparent;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  border-radius: var(--radius);
  color: var(--text-2);
  background: transparent;
  cursor: pointer;
  font-family: var(--sans);
  transition: color 0.16s, border-color 0.16s, background 0.16s;
}

.head-nav a:hover,
.head-nav button:hover {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
}

.head-nav a.is-active {
  color: var(--cyan);
  border-color: rgba(53, 214, 226, 0.42);
  background: rgba(53, 214, 226, 0.08);
}

/* ------------------------------------------------------------ 公告条 */
.notice-strip {
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(90deg, rgba(53, 214, 226, 0.09), transparent 65%);
  font-size: 12.5px;
  color: var(--text-2);
  overflow: hidden;
}

.notice-strip .wrap {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-top: 7px;
  padding-bottom: 7px;
}

.notice-tag {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  color: var(--cyan);
  border: 1px solid rgba(53, 214, 226, 0.5);
  padding: 1px 6px;
  border-radius: 2px;
  flex: none;
}

/* ------------------------------------------------------------ 首屏 */
.hero {
  padding: 62px 0 46px;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(142, 168, 220, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(142, 168, 220, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 86% 96% at 34% 28%, #000 4%, transparent 76%);
  mask-image: radial-gradient(ellipse 86% 96% at 34% 28%, #000 4%, transparent 76%);
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--cyan);
  opacity: 0.7;
}

.hero h1 {
  font-size: clamp(36px, 6.4vw, 66px);
  line-height: 1.05;
  letter-spacing: -0.012em;
  max-width: 15ch;
  text-shadow: 0 0 60px rgba(53, 214, 226, 0.12);
}

.hero h1 em {
  font-style: normal;
  color: var(--cyan);
  position: relative;
  white-space: nowrap;
}

.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.08em;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  opacity: 0.55;
}

.hero-lead {
  margin-top: 22px;
  max-width: 54ch;
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.82;
}

.hero-stats {
  display: flex;
  gap: 0;
  margin-top: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(22, 31, 54, 0.9), rgba(14, 20, 38, 0.9));
  width: fit-content;
  max-width: 100%;
  box-shadow: var(--shadow-card);
  flex-wrap: wrap;
  overflow: hidden;
}

.hero-stat {
  padding: 15px 28px;
  border-right: 1px solid var(--line-soft);
  min-width: 132px;
  position: relative;
}

.hero-stat:last-child {
  border-right: 0;
}

.hero-stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(53, 214, 226, 0.45), transparent);
}

.hero-stat b {
  display: block;
  font-family: var(--mono);
  font-size: 27px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--cyan);
  text-shadow: 0 0 22px rgba(53, 214, 226, 0.35);
}

.hero-stat span {
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.12em;
}

/* 右侧品牌图形 */
.hero-art {
  position: absolute;
  right: 8px;
  top: -6px;
  width: 326px;
  height: 326px;
  pointer-events: none;
  z-index: 0;
}

.hero-mark {
  width: 100%;
  height: 100%;
  opacity: 0.13;
  filter: none;
  -webkit-mask-image: radial-gradient(circle at 50% 48%, #000 30%, rgba(0, 0, 0, 0.5) 58%, transparent 78%);
  mask-image: radial-gradient(circle at 50% 48%, #000 30%, rgba(0, 0, 0, 0.5) 58%, transparent 78%);
  animation: breathe 11s ease-in-out infinite;
}

.hero-seal {
  position: absolute;
  right: -10px;
  bottom: 2px;
  width: 102px;
  height: 102px;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--cyan);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: 0.16em;
  opacity: 0.9;
  animation: stampIn 0.8s cubic-bezier(0.3, 0.8, 0.3, 1) both;
  text-shadow: 0 0 16px rgba(53, 214, 226, 0.6);
  box-shadow: inset 0 0 26px -8px rgba(53, 214, 226, 0.55), 0 0 30px -14px rgba(53, 214, 226, 0.8);
  backdrop-filter: blur(2px);
}

.hero-seal::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(53, 214, 226, 0.5);
  border-radius: 50%;
}

.hero-seal small {
  display: block;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.24em;
  margin-top: 5px;
  opacity: 0.85;
}

@media (max-width: 980px) {
  .hero-art {
    display: none;
  }
}

/* ------------------------------------------------------------ 区段标题 */
.section {
  padding: 62px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 34px;
  position: relative;
}

.section-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 108px;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(53, 214, 226, 0.7);
}

.section-head h2 {
  font-size: clamp(23px, 3.4vw, 32px);
  letter-spacing: 0.01em;
}

.section-head .kicker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 7px;
  opacity: 0.85;
}

.section-head .side {
  font-size: 12px;
  color: var(--text-3);
  text-align: right;
  flex: none;
}

/* ------------------------------------------------------------ 商品票券 */
.ticket-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 26px;
  align-items: stretch;
}

.ticket {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background:
    linear-gradient(180deg, rgba(28, 39, 68, 0.55), rgba(14, 20, 38, 0.92)),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: transform 0.26s cubic-bezier(0.22, 0.72, 0.24, 1), box-shadow 0.26s,
    border-color 0.26s;
  overflow: visible;
}

.ticket::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(53, 214, 226, 0.5), transparent);
  opacity: 0.55;
  transition: opacity 0.26s;
}

.ticket:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(53, 214, 226, 0.38);
}

.ticket:hover::before {
  opacity: 1;
}

.ticket-notch {
  position: absolute;
  width: 15px;
  height: 15px;
  background: var(--night);
  border: 1px solid var(--line);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.ticket-notch.left {
  left: -8px;
  clip-path: inset(0 0 0 50%);
}

.ticket-notch.right {
  right: -8px;
  clip-path: inset(0 50% 0 0);
}

.ticket-top {
  position: relative;
  padding: 22px 24px 17px;
  border-bottom: 1px dashed var(--line);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.ticket-index {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-3);
  letter-spacing: 0.16em;
  padding-top: 5px;
  flex: none;
}

.ticket-title {
  font-size: 21px;
  line-height: 1.28;
  padding-right: 66px;
  letter-spacing: 0.01em;
}

.ticket-sub {
  margin-top: 7px;
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.62;
  padding-right: 8px;
}

.ticket-badge {
  position: absolute;
  top: 21px;
  right: 20px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  padding: 2px 7px;
  border-radius: 2px;
  background: rgba(10, 15, 30, 0.72);
  z-index: 1;
}

.ticket-body {
  padding: 17px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.feature-list li {
  font-size: 13px;
  color: var(--text-2);
  display: flex;
  gap: 10px;
  align-items: baseline;
  line-height: 1.58;
}

.feature-list li::before {
  content: "▸";
  font-size: 9px;
  color: var(--cyan);
  flex: none;
  opacity: 0.9;
}

.ticket-foot {
  padding: 17px 24px 21px;
  border-top: 1px dashed var(--line);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.ticket-foot .btn {
  flex: none;
}

.ticket-foot .price-block + .price-note {
  margin-top: 6px;
}

.price-block {
  display: flex;
  align-items: baseline;
  gap: 9px;
  flex-wrap: wrap;
}

.price-now {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--cyan);
  text-shadow: 0 0 26px rgba(53, 214, 226, 0.4);
}

.price-now .cur {
  font-size: 14px;
  margin-right: 1px;
  opacity: 0.8;
}

.price-was {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-3);
  text-decoration: line-through;
}

.price-note {
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.07em;
}

/* ------------------------------------------------------------ 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #4ee4ef, #21b3bf);
  color: #04121a;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 10px 26px -12px rgba(53, 214, 226, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: transform 0.16s, box-shadow 0.16s, background 0.16s, color 0.16s,
    border-color 0.16s;
  white-space: nowrap;
}

.btn:hover {
  color: #04121a;
  background: linear-gradient(180deg, #7df4fc, #35d6e2);
  box-shadow: 0 14px 34px -12px rgba(53, 214, 226, 1), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 14px -8px rgba(53, 214, 226, 0.8);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border-color: var(--line);
  box-shadow: none;
}

.btn-ghost:hover {
  color: var(--cyan);
  background: rgba(53, 214, 226, 0.09);
  border-color: rgba(53, 214, 226, 0.5);
  box-shadow: none;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 12.5px;
}

.btn-jade {
  background: linear-gradient(180deg, #3ee0b6, #17a58c);
  color: #04140f;
  box-shadow: 0 10px 26px -12px rgba(62, 224, 182, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-jade:hover {
  background: linear-gradient(180deg, #6bf0cd, #2ec8a8);
  color: #04140f;
  box-shadow: 0 14px 34px -12px rgba(62, 224, 182, 1);
}

.btn-block {
  width: 100%;
}

/* ------------------------------------------------------------ 交付方式 */
.legend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(22, 31, 54, 0.8), rgba(11, 16, 30, 0.9));
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.legend-cell {
  padding: 26px 24px;
  border-right: 1px solid var(--line-soft);
  position: relative;
  transition: background 0.22s;
}

.legend-cell:hover {
  background: rgba(53, 214, 226, 0.035);
}

.legend-cell:last-child {
  border-right: 0;
}

.legend-cell::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(53, 214, 226, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.22s;
}

.legend-cell:hover::before {
  opacity: 1;
}

.legend-cell .num {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--cyan);
  opacity: 0.85;
}

.legend-cell h3 {
  font-size: 17px;
  margin: 9px 0 9px;
  letter-spacing: 0.02em;
}

.legend-cell p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.72;
}

@media (max-width: 720px) {
  .legend-cell {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .legend-cell:last-child {
    border-bottom: 0;
  }
}

/* ------------------------------------------------------------ 面板 */
.panel {
  background: linear-gradient(180deg, rgba(24, 33, 58, 0.62), rgba(13, 18, 34, 0.92));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 27px;
  position: relative;
}

.panel-tight {
  padding: 18px 20px;
}

.panel-title {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 11px;
}

.panel-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

/* ------------------------------------------------------------ 表单 */
.field {
  display: block;
  margin-bottom: 16px;
}

.field > span {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-2);
  margin-bottom: 7px;
}

.field .hint {
  font-size: 11.5px;
  color: var(--text-3);
  margin-top: 6px;
  letter-spacing: 0.02em;
}

input:not([type]),
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="datetime-local"],
input[type="file"],
input[type="color"],
select,
textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text);
  background: rgba(6, 9, 18, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 13px;
  outline: none;
  transition: border-color 0.16s, box-shadow 0.16s, background 0.16s;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-3);
}

input.mono,
textarea.mono {
  font-family: var(--mono);
  letter-spacing: 0.05em;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(53, 214, 226, 0.6);
  background: rgba(6, 9, 18, 0.95);
  box-shadow: 0 0 0 3px rgba(53, 214, 226, 0.12);
}

input:not([type]):focus {
  border-color: rgba(53, 214, 226, 0.6);
}

input[type="color"] {
  padding: 4px;
  height: 40px;
  cursor: pointer;
}

textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.6;
}

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%),
    linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% + 1px), calc(100% - 13px) calc(50% + 1px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
  cursor: pointer;
}

select option {
  background: var(--panel-2);
  color: var(--text);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 620px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* SKU 选择 */
.sku-list {
  display: grid;
  gap: 10px;
}

.sku-option {
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--line);
  background: rgba(6, 9, 18, 0.45);
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}

.sku-option:hover {
  border-color: rgba(53, 214, 226, 0.35);
}

.sku-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.sku-option .dot {
  width: 15px;
  height: 15px;
  border: 1px solid var(--text-3);
  border-radius: 50%;
  flex: none;
  position: relative;
  background: transparent;
}

.sku-option .dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(53, 214, 226, 0.8);
  transform: scale(0);
  transition: transform 0.16s;
}

.sku-option:has(input:checked) {
  border-color: rgba(53, 214, 226, 0.62);
  background: rgba(53, 214, 226, 0.07);
  box-shadow: 0 0 0 1px rgba(53, 214, 226, 0.2), inset 0 0 26px -12px rgba(53, 214, 226, 0.7);
}

.sku-option:has(input:checked) .dot::after {
  transform: scale(1);
}

.sku-option .sku-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

.sku-option .sku-meta {
  font-size: 11.5px;
  color: var(--text-3);
  margin-top: 3px;
  letter-spacing: 0.03em;
}

.sku-option .sku-price {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  flex: none;
  color: var(--cyan);
}

.sku-option.is-soldout {
  opacity: 0.42;
  cursor: not-allowed;
}

/* ------------------------------------------------------------ 授权码展示 */
.key-slab {
  position: relative;
  border: 1px solid rgba(53, 214, 226, 0.34);
  background:
    radial-gradient(ellipse 70% 120% at 0% 0%, rgba(53, 214, 226, 0.16), transparent 60%),
    linear-gradient(180deg, #0a1220, #05080f);
  color: var(--text);
  border-radius: var(--radius);
  padding: 19px 21px;
  overflow: hidden;
  box-shadow: inset 0 0 40px -18px rgba(53, 214, 226, 0.8), 0 12px 34px -22px rgba(0, 0, 0, 1);
}

.key-slab::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(53, 214, 226, 0.14), transparent);
  animation: scanline 4.2s ease-in-out infinite;
  pointer-events: none;
}

.key-value {
  font-family: var(--mono);
  font-size: clamp(15px, 3.4vw, 22px);
  letter-spacing: 0.16em;
  word-break: break-all;
  line-height: 1.42;
  color: var(--cyan-bright);
  text-shadow: 0 0 22px rgba(53, 214, 226, 0.55);
}

.key-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(53, 214, 226, 0.6);
  margin-bottom: 9px;
}

.copy-row {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 13px;
  flex-wrap: wrap;
}

.copy-row .btn {
  background: transparent;
  color: var(--cyan);
  border-color: rgba(53, 214, 226, 0.45);
}

.copy-row .btn:hover {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04121a;
}

.card-secret {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.09em;
  padding: 13px 15px;
  background: rgba(6, 9, 18, 0.72);
  border: 1px dashed rgba(53, 214, 226, 0.34);
  border-radius: var(--radius);
  word-break: break-all;
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--cyan-bright);
}

.card-secret button {
  margin-left: auto;
  flex: none;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 3px 9px;
  cursor: pointer;
  color: var(--text-2);
  transition: all 0.16s;
}

.card-secret button:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* ------------------------------------------------------------ 状态标签 */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 100px;
  border: 1px solid currentColor;
  white-space: nowrap;
}

.pill::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  animation: pulseDot 2.4s ease-in-out infinite;
}

.pill-pending {
  color: #e0b062;
}

.pill-paid {
  color: var(--cyan);
}

.pill-delivered {
  color: var(--cyan);
  background: rgba(53, 214, 226, 0.09);
}

.pill-closed,
.pill-refunded {
  color: var(--text-3);
}

/* ------------------------------------------------------------ 表格 */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(20, 28, 48, 0.6), rgba(9, 13, 26, 0.9));
  box-shadow: var(--shadow-card);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th {
  text-align: left;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 500;
  padding: 12px 15px;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 9, 18, 0.55);
  white-space: nowrap;
}

td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
  color: var(--text-2);
}

td strong {
  color: var(--text);
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr {
  transition: background 0.14s;
}

tbody tr:hover {
  background: rgba(53, 214, 226, 0.04);
}

td.num,
th.num {
  text-align: right;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------ 提示 */
.toast-host {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-items: center;
  pointer-events: none;
}

.toast {
  font-size: 13px;
  padding: 11px 20px;
  border-radius: var(--radius);
  background: rgba(16, 24, 43, 0.97);
  border: 1px solid var(--line);
  color: var(--text);
  box-shadow: 0 18px 44px -16px rgba(0, 0, 0, 1), 0 0 0 1px rgba(53, 214, 226, 0.14);
  animation: rise 0.3s ease both;
  max-width: min(86vw, 480px);
  backdrop-filter: blur(10px);
}

.toast.err {
  border-color: rgba(232, 73, 90, 0.6);
  color: #ffd9dd;
  box-shadow: 0 18px 44px -16px rgba(0, 0, 0, 1), 0 0 22px -8px rgba(232, 73, 90, 0.6);
}

.toast.ok {
  border-color: rgba(53, 214, 226, 0.6);
  color: var(--cyan-bright);
  box-shadow: 0 18px 44px -16px rgba(0, 0, 0, 1), 0 0 22px -8px rgba(53, 214, 226, 0.6);
}

/* ------------------------------------------------------------ 弹层 */
.modal-host {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(3, 5, 12, 0.72);
  backdrop-filter: blur(6px);
  animation: fade 0.22s both;
}

.modal-host.is-open {
  display: flex;
}

.modal {
  background: linear-gradient(180deg, #131b30, #0b1120);
  border: 1px solid rgba(53, 214, 226, 0.28);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 1), 0 0 60px -30px rgba(53, 214, 226, 0.5);
  width: min(580px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  padding: 28px;
  animation: rise 0.32s cubic-bezier(0.22, 0.72, 0.24, 1) both;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.modal-head h3 {
  font-size: 21px;
  letter-spacing: 0.02em;
}

.modal-close {
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  color: var(--text-2);
  flex: none;
  transition: all 0.16s;
}

.modal-close:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* ------------------------------------------------------------ 杂项 */
.divider-dashed {
  border: 0;
  border-top: 1px dashed var(--line);
  margin: 22px 0;
}

.barcode {
  height: 38px;
  width: 100%;
  max-width: 300px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--cyan) 0 2px,
    transparent 2px 4px,
    var(--cyan) 4px 5px,
    transparent 5px 9px,
    var(--cyan) 9px 12px,
    transparent 12px 14px,
    var(--cyan) 14px 15px,
    transparent 15px 20px
  );
  opacity: 0.42;
}

.empty-state {
  text-align: center;
  padding: 58px 20px;
  color: var(--text-3);
}

.empty-state .big {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--text-2);
  margin-bottom: 9px;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-block {
  display: flex;
  gap: 11px;
  align-items: center;
  justify-content: center;
  padding: 52px 20px;
  color: var(--text-3);
  font-size: 13px;
  letter-spacing: 0.12em;
}

/* ------------------------------------------------------------ 页脚 */
.site-foot {
  border-top: 1px solid var(--line);
  margin-top: 46px;
  padding: 38px 0 46px;
  background: linear-gradient(180deg, rgba(8, 12, 24, 0.5), rgba(4, 6, 14, 0.85));
  position: relative;
}

.site-foot::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(53, 214, 226, 0.4), transparent);
}

.foot-grid {
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
}

.foot-brand {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--text);
}

.foot-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-3);
  align-items: center;
}

.foot-links a {
  border-bottom: 1px solid transparent;
  color: var(--text-2);
}

.foot-links a:hover {
  border-bottom-color: var(--cyan);
  color: var(--cyan);
}

.foot-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--text-3);
  margin-top: 26px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}

/* ------------------------------------------------------------ 工具类 */
.stack {
  display: grid;
  gap: 16px;
}

.stack-sm {
  display: grid;
  gap: 10px;
}

.row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.row-between {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.muted {
  color: var(--text-3);
}

.small {
  font-size: 12px;
}

.center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}
.mt-1 {
  margin-top: 8px;
}
.mt-2 {
  margin-top: 16px;
}
.mt-3 {
  margin-top: 24px;
}
.mt-4 {
  margin-top: 34px;
}

.hide {
  display: none !important;
}

@media (max-width: 720px) {
  .wrap {
    padding: 0 16px;
  }
  .hero {
    padding: 38px 0 30px;
  }
  .hero-stats {
    width: 100%;
  }
  .hero-stat {
    flex: 1;
    padding: 12px 15px;
    min-width: 0;
  }
  .hero-stat b {
    font-size: 21px;
  }
  .section {
    padding: 42px 0;
  }
  .ticket-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .panel {
    padding: 21px 17px;
  }
  .head-inner {
    gap: 10px;
    flex-wrap: wrap;
  }
  .head-nav {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }
  .brand-mark {
    font-size: 19px;
  }
}

/* ============================================================
   商品页 / 订单页 / 后台 页面级布局
   ============================================================ */

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 32px;
  align-items: start;
  padding: 28px 0 66px;
}

@media (max-width: 940px) {
  .product-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .buy-box {
    position: static !important;
    order: -1;
  }
}

.buy-box {
  position: sticky;
  top: 84px;
}

.crumb {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  font-size: 12px;
  color: var(--text-3);
  border: 0;
  margin-bottom: 20px;
  letter-spacing: 0.08em;
}

.crumb:hover {
  color: var(--cyan);
  border: 0;
}

.product-title {
  font-size: clamp(27px, 4.6vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.005em;
}

.product-sub {
  margin-top: 11px;
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.72;
  max-width: 56ch;
}

.product-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 17px;
  font-size: 12px;
  color: var(--text-3);
}

.prose p {
  margin-bottom: 14px;
  color: var(--text-2);
  line-height: 1.84;
  font-size: 14px;
}

.prose p:last-child {
  margin-bottom: 0;
}

.faq-item {
  border-bottom: 1px dashed var(--line);
  padding: 13px 0;
}

.faq-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.faq-item summary {
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  list-style: none;
  display: flex;
  gap: 10px;
  align-items: baseline;
  color: var(--text);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "Q";
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--cyan);
  border: 1px solid rgba(53, 214, 226, 0.5);
  border-radius: 2px;
  padding: 0 4px;
  flex: none;
  line-height: 1.6;
}

.faq-item .faq-a {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 9px;
  padding-left: 27px;
  line-height: 1.74;
}

.summary-lines {
  display: grid;
  gap: 9px;
  font-size: 13px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-2);
}

.summary-line.total {
  border-top: 1px dashed var(--line);
  padding-top: 12px;
  margin-top: 4px;
  font-weight: 700;
  color: var(--text);
  font-size: 15px;
  align-items: baseline;
}

.summary-line.total b {
  font-family: var(--mono);
  font-size: 23px;
  letter-spacing: -0.03em;
  color: var(--cyan);
  text-shadow: 0 0 24px rgba(53, 214, 226, 0.4);
}

.summary-line .discount {
  color: var(--cyan);
  font-family: var(--mono);
}

.coupon-row {
  display: flex;
  gap: 8px;
}

.coupon-row input {
  flex: 1;
  text-transform: uppercase;
}

/* 支付 / 结果 */
.pay-block {
  border: 1px solid var(--line);
  background: rgba(6, 9, 18, 0.6);
  border-radius: var(--radius);
  padding: 17px 19px;
  margin-top: 4px;
}

.pay-amount {
  font-family: var(--mono);
  font-size: 31px;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--cyan);
  text-shadow: 0 0 26px rgba(53, 214, 226, 0.4);
}

.pay-method {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 15px 0;
}

.pay-method label {
  border: 1px solid var(--line);
  background: rgba(6, 9, 18, 0.6);
  border-radius: var(--radius);
  padding: 8px 14px;
  font-size: 12.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-2);
  transition: all 0.16s;
}

.pay-method input {
  position: absolute;
  opacity: 0;
}

.pay-method label:has(input:checked) {
  border-color: rgba(53, 214, 226, 0.6);
  background: rgba(53, 214, 226, 0.12);
  color: var(--cyan);
}

.delivery-result {
  display: grid;
  gap: 15px;
}

.manual-pay {
  font-size: 13px;
  line-height: 1.82;
  color: var(--text-2);
}

.manual-pay dl {
  margin: 11px 0 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 7px 15px;
}

.manual-pay dt {
  font-size: 11.5px;
  color: var(--text-3);
  letter-spacing: 0.09em;
  align-self: center;
}

.manual-pay dd {
  margin: 0;
  font-family: var(--mono);
  word-break: break-all;
  font-size: 13px;
  color: var(--cyan-bright);
}

/* 订单页 */
.order-layout {
  max-width: 800px;
  margin: 0 auto;
  padding: 38px 0 66px;
}

.search-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.search-bar .field {
  margin-bottom: 0;
  flex: 1;
  min-width: 180px;
}

/* 后台 */
.admin-shell {
  display: grid;
  grid-template-columns: 212px minmax(0, 1fr);
  gap: 0;
  min-height: calc(100vh - 64px);
  border-top: 1px solid var(--line-soft);
}

@media (max-width: 860px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }
  .admin-side {
    position: static !important;
    display: flex;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 9px !important;
    gap: 4px;
  }
  .admin-side .nav-group-title {
    display: none;
  }
  .admin-side button {
    white-space: nowrap;
  }
}

.admin-side {
  border-right: 1px solid var(--line-soft);
  padding: 22px 12px;
  position: sticky;
  top: 64px;
  align-self: start;
  background: linear-gradient(180deg, rgba(14, 20, 38, 0.7), rgba(6, 9, 18, 0.5));
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nav-group-title {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 15px 11px 7px;
}

.admin-side button {
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 13px;
  font-family: var(--sans);
  color: var(--text-2);
  cursor: pointer;
  display: flex;
  gap: 8px;
  align-items: center;
  transition: all 0.16s;
}

.admin-side button:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-soft);
  color: var(--text);
}

.admin-side button.is-active {
  background: linear-gradient(90deg, rgba(53, 214, 226, 0.18), rgba(53, 214, 226, 0.05));
  color: var(--cyan);
  border-color: rgba(53, 214, 226, 0.42);
  box-shadow: inset 2px 0 0 var(--cyan);
}

.admin-side .badge-count {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10px;
  opacity: 0.7;
}

.admin-main {
  padding: 28px 28px 66px;
  min-width: 0;
}

@media (max-width: 620px) {
  .admin-main {
    padding: 18px 14px 50px;
  }
}

.admin-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  position: relative;
}

.admin-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 92px;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(53, 214, 226, 0.7);
}

.admin-head h2 {
  font-size: 25px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 15px;
  margin-bottom: 28px;
}

.kpi {
  background: linear-gradient(180deg, rgba(26, 36, 63, 0.7), rgba(11, 16, 30, 0.9));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.kpi::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  opacity: 0.5;
}

.kpi .label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
}

.kpi .value {
  font-family: var(--mono);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-top: 7px;
  line-height: 1.1;
  color: var(--text);
}

.kpi .sub {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 5px;
}

.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 17px;
}

.toolbar input,
.toolbar select {
  width: auto;
  min-width: 130px;
  font-size: 13px;
  padding: 7px 11px;
}

.toolbar .spacer {
  flex: 1;
}

.login-gate {
  max-width: 384px;
  margin: 9vh auto;
  padding: 0 20px;
}

.tag-mini {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 1px 6px;
  color: var(--text-3);
  white-space: nowrap;
}

.row-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.link-btn {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0 0 1px;
  font-size: 12px;
  font-family: var(--sans);
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.16s;
}

.link-btn:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.link-btn.danger:hover {
  color: var(--red-bright);
  border-bottom-color: var(--red-bright);
}

.pager {
  display: flex;
  gap: 9px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 15px;
  font-size: 12px;
  color: var(--text-3);
}

.truncate {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.json-view {
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.62;
  background: rgba(4, 7, 14, 0.85);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 260px;
  overflow-y: auto;
  color: var(--text-2);
}

/* ============================================================
   图文解说 · 列表卡片 / 站内文章页 / 直链下载
   ============================================================ */

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
  gap: 14px;
}

.guide-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 17px 18px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(6, 9, 18, 0.5);
  border-bottom: 1px solid var(--line);
  transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.guide-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: var(--cyan);
  opacity: 0;
  transition: opacity 0.2s;
}

.guide-card:hover {
  border-color: rgba(53, 214, 226, 0.45);
  background: rgba(53, 214, 226, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -26px rgba(0, 0, 0, 1);
  color: var(--text);
  border-bottom-color: rgba(53, 214, 226, 0.45);
}

.guide-card:hover::before {
  opacity: 1;
}

.guide-kind {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  opacity: 0.85;
  display: flex;
  align-items: center;
  gap: 6px;
}

.guide-kind::before {
  content: "◈";
  font-size: 8px;
}

.guide-card h4 {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.4;
  color: var(--text);
}

.guide-card p {
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.62;
  margin: 0;
}

.guide-go {
  margin-top: auto;
  padding-top: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--cyan);
  opacity: 0.9;
}

/* 直链下载框 */
.dl-box {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border: 1px solid rgba(62, 224, 182, 0.32);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(62, 224, 182, 0.1), rgba(6, 9, 18, 0.5));
  margin-bottom: 18px;
}

.dl-box .dl-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.dl-box .dl-info strong {
  font-size: 13.5px;
  color: var(--text);
  word-break: break-all;
}

.dl-box .dl-info .small {
  font-size: 11.5px;
  color: var(--text-3);
}

.dl-box .btn {
  flex: none;
}

/* 站内文章页 */
.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 268px;
  gap: 40px;
  align-items: start;
  padding: 30px 0 70px;
  max-width: 1060px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .guide-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .guide-aside {
    position: static !important;
    order: 2;
  }
}

.guide-aside {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 16px;
}

.guide-hero {
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
  margin-bottom: 28px;
  position: relative;
}

.guide-hero::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 96px;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(53, 214, 226, 0.7);
}

.guide-hero h1 {
  font-size: clamp(25px, 4.2vw, 36px);
  line-height: 1.22;
  margin-top: 10px;
}

.guide-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--text-3);
}

.guide-meta .dot-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-3);
  opacity: 0.6;
}

.guide-cover {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 26px;
  display: block;
}

/* Markdown 正文 */
.md-body {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-2);
}

.md-body > *:first-child {
  margin-top: 0;
}

.md-body h2 {
  font-family: var(--serif);
  font-size: 23px;
  color: var(--text);
  margin: 40px 0 14px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}

.md-body h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 52px;
  height: 1px;
  background: rgba(53, 214, 226, 0.75);
}

.md-body h3 {
  font-family: var(--serif);
  font-size: 18.5px;
  color: var(--text);
  margin: 30px 0 11px;
}

.md-body h4 {
  font-size: 15.5px;
  color: var(--text);
  margin: 24px 0 9px;
}

.md-body p {
  margin: 0 0 16px;
}

.md-body ul,
.md-body ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.md-body li {
  margin-bottom: 8px;
  line-height: 1.82;
}

.md-body ul li::marker {
  color: var(--cyan);
}

.md-body ol li::marker {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 12px;
}

.md-body blockquote {
  margin: 20px 0;
  padding: 12px 18px;
  border-left: 2px solid var(--cyan);
  background: rgba(53, 214, 226, 0.06);
  color: var(--text-2);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.md-body code {
  font-family: var(--mono);
  font-size: 12.5px;
  background: rgba(53, 214, 226, 0.12);
  color: var(--cyan-bright);
  padding: 1px 6px;
  border-radius: 3px;
}

.md-body .md-code {
  margin: 20px 0;
  padding: 15px 17px;
  background: rgba(4, 7, 14, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 12.5px;
  line-height: 1.7;
}

.md-body .md-code code {
  background: none;
  color: var(--text-2);
  padding: 0;
  font-size: 12.5px;
}

.md-body img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 20px 0;
  display: block;
}

.md-body a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(53, 214, 226, 0.4);
}

.md-body a:hover {
  border-bottom-color: var(--cyan);
}

.md-body strong {
  color: var(--text);
  font-weight: 600;
}

/* 侧栏 */
.aside-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(24, 33, 58, 0.55), rgba(11, 16, 30, 0.9));
  padding: 17px 18px;
}

.aside-title {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
}

.aside-link {
  display: flex;
  gap: 9px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line-soft);
  font-size: 13px;
  color: var(--text-2);
  border-left: 0;
  border-right: 0;
  border-top: 0;
  line-height: 1.55;
}

.aside-link:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.aside-link:hover {
  color: var(--cyan);
}

.aside-link.is-current {
  color: var(--cyan);
  font-weight: 600;
}

.aside-link.is-current::before {
  content: "▸";
  color: var(--cyan);
  font-size: 10px;
}

@media (max-width: 720px) {
  .guide-grid {
    grid-template-columns: 1fr;
  }
  .guide-layout {
    padding: 22px 0 54px;
  }
  .md-body {
    font-size: 14.5px;
    line-height: 1.85;
  }
  .md-body h2 {
    font-size: 20px;
  }
}

/* ============================================================
   后台 · 收款确认卡片
   ============================================================ */

.pay-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

.pay-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(24, 33, 58, 0.6), rgba(10, 15, 30, 0.92));
  box-shadow: var(--shadow-card);
  padding: 17px 19px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  position: relative;
  overflow: hidden;
}

.pay-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gold, #e0b062);
  opacity: 0.7;
}

.pay-card.is-urgent {
  border-color: rgba(232, 73, 90, 0.5);
}

.pay-card.is-urgent::before {
  background: var(--red);
  opacity: 1;
  box-shadow: 0 0 12px rgba(232, 73, 90, 0.8);
}

.pay-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}

.pay-card-amount {
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--cyan);
  text-shadow: 0 0 24px rgba(53, 214, 226, 0.35);
}

.pay-card.is-urgent .pay-card-amount {
  color: var(--red-bright);
  text-shadow: 0 0 24px rgba(232, 73, 90, 0.45);
}

.pay-card-rows {
  display: grid;
  gap: 7px;
  font-size: 12.5px;
}

.pay-card-rows .summary-line {
  font-size: 12.5px;
  align-items: baseline;
}

.pay-card-rows .summary-line > span:first-child {
  color: var(--text-3);
  flex: none;
  min-width: 62px;
}

.pay-card-rows .summary-line > span:last-child {
  text-align: right;
  word-break: break-all;
}

.pay-note {
  color: var(--cyan-bright);
  font-weight: 600;
}

.pay-card-actions {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  margin-top: auto;
}

@media (max-width: 620px) {
  .pay-card-grid {
    grid-template-columns: 1fr;
  }
  .pay-card-rows .summary-line > span:first-child {
    min-width: 56px;
  }
}

/* ============================================================
   首页 · 技术支持联系条
   ============================================================ */

.contact-bar {
  margin-top: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(24, 33, 58, 0.55), rgba(11, 16, 30, 0.9));
  box-shadow: var(--shadow-card);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.contact-bar::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(53, 214, 226, 0.8);
}

.contact-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: none;
}

.contact-kicker {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--cyan);
  opacity: 0.85;
}

.contact-title {
  font-family: var(--serif);
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}

.contact-items {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  background: rgba(6, 9, 18, 0.55);
  border-radius: var(--radius);
  padding: 8px 12px;
  transition: border-color 0.18s, background 0.18s;
}

.contact-item:hover {
  border-color: rgba(53, 214, 226, 0.45);
  background: rgba(53, 214, 226, 0.06);
}

.contact-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
}

.contact-value {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  border: 0;
}

.contact-value:hover {
  color: var(--cyan);
  border: 0;
}

.contact-copy {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  padding: 2px 6px;
  color: var(--text-3);
  cursor: pointer;
  transition: all 0.16s;
}

.contact-copy:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.contact-note {
  width: 100%;
  margin: 0;
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.6;
}

.foot-contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
}

.foot-contact b {
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}

.foot-contact:hover b {
  color: var(--cyan);
}

@media (max-width: 720px) {
  .contact-bar {
    gap: 14px;
    padding: 17px 16px;
  }
  .contact-items {
    margin-left: 0;
    width: 100%;
  }
  .contact-item {
    flex: 1 1 auto;
    justify-content: space-between;
  }
}
