﻿/* 裁决复古 */
:root {
  --bg: #cbb892;
  --ink: #1c1510;
  --ink-2: #3a2f24;
  --muted: #6e5c45;
  --line: rgba(120, 90, 40, 0.28);
  --gold: #d4af37;
  --gold-2: #f0d060;
  --gold-3: #8b7355;
  --crimson: #8f1d1d;
  --panel: rgba(247, 236, 210, 0.92);
  --panel-solid: #f7ecd2;
  --shadow: 0 18px 50px rgba(20, 12, 6, 0.28);
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --display: "STXingkai", "华文行楷", "KaiTi", "楷体", "Songti SC", serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-2);
  background: var(--bg);
}

img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--crimson); text-decoration: none; }
a:hover { color: #b42828; }

/* ===== Hero ===== */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 480px;
  max-height: 820px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px 72px;
  overflow: hidden;
  background:
    #1a1410 url("../image/hero-bg.png") center center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 8, 5, 0.35) 0%, rgba(12, 8, 5, 0.12) 38%, rgba(12, 8, 5, 0.45) 72%, var(--bg) 100%),
    radial-gradient(ellipse at 50% 42%, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.45) 100%);
  pointer-events: none;
}

.hero-brand {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 920px;
  animation: rise 0.75s ease both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #f3e6c8;
  background: rgba(20, 12, 8, 0.45);
  border: 1px solid rgba(212, 175, 55, 0.45);
  backdrop-filter: blur(4px);
}

.hero-badge span {
  color: #1a1208;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  padding: 2px 8px;
  letter-spacing: 0.08em;
  font-size: 12px;
}

.hero-logo {
  margin: 0;
  line-height: 0;
}

.hero-logo img {
  width: min(760px, 82vw);
  height: auto;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.55)) drop-shadow(0 2px 0 rgba(60, 40, 10, 0.35));
  animation: logo-in 0.85s ease both;
}

@keyframes logo-in {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-en {
  margin: 8px 0 0;
  font-size: clamp(11px, 1.4vw, 14px);
  font-weight: 600;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: rgba(243, 230, 200, 0.78);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.hero-slogan {
  margin: 14px 0 0;
  font-size: clamp(16px, 2.2vw, 22px);
  font-weight: 700;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  color: #fff8e8;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 0;
  margin: 18px 0 0;
  padding: 10px 8px;
  list-style: none;
  background: rgba(16, 10, 6, 0.42);
  border-top: 1px solid rgba(212, 175, 55, 0.35);
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
  backdrop-filter: blur(3px);
}

.hero-features li {
  margin: 0;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #e8d9b5;
  border-right: 1px solid rgba(212, 175, 55, 0.28);
}

.hero-features li:last-child { border-right: 0; }

.hero-actions {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 14px;
  margin-top: 28px;
  animation: rise 0.7s ease 0.18s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  height: 46px;
  padding: 0 28px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.18em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-gold {
  color: #1a1208;
  background: linear-gradient(180deg, var(--gold-2), var(--gold) 55%, #a88620);
  border-color: #7a6218;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.btn-gold:hover {
  color: #1a1208;
  filter: brightness(1.06);
  box-shadow: 0 10px 28px rgba(212, 175, 55, 0.35);
}

.btn-dark {
  color: #f6ecd2;
  background: rgba(22, 16, 10, 0.72);
  border-color: rgba(240, 208, 96, 0.55);
  backdrop-filter: blur(6px);
}

.btn-dark:hover {
  color: var(--gold-2);
  border-color: var(--gold-2);
}

/* ===== 次级导航 ===== */
.subnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(28, 21, 16, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.subnav-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 2px;
  padding: 0;
  min-height: 48px;
}

.subnav a,
.subnav-fav {
  color: #d9cbb0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 12px 14px;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s ease, background 0.2s ease;
}

.subnav a:hover,
.subnav-fav:hover {
  color: var(--gold-2);
  background: rgba(255, 255, 255, 0.04);
}

.subnav-fav {
  margin-left: 8px;
  color: var(--gold);
}

/* ===== 页面主体 ===== */
.page {
  width: min(1120px, calc(100% - 32px));
  margin: 28px auto 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 188px;
  gap: 22px;
  align-items: start;
  animation: rise 0.65s ease both;
}

.main {
  background: var(--panel);
  border: 1px solid rgba(139, 115, 85, 0.45);
  box-shadow: var(--shadow);
  padding: 28px 32px 36px;
}

.rail {
  position: sticky;
  top: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 12px;
  background: var(--panel);
  border: 1px solid rgba(139, 115, 85, 0.45);
  box-shadow: var(--shadow);
}

.rail-title {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--gold-3);
}

.rail a {
  display: block;
  line-height: 0;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.rail a:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.rail img { width: 160px; }

/* tip */
.tip {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  margin: 0 0 22px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--crimson);
  background: rgba(143, 29, 29, 0.07);
  border-left: 3px solid var(--crimson);
}

.tip a {
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold-3);
}

.tip a:hover { color: var(--crimson); }

/* spotlight */
.spotlight {
  text-align: center;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.spotlight-kicker {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 400;
  letter-spacing: 0.16em;
  color: var(--crimson);
  line-height: 1.2;
}

.spotlight-line {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.spotlight-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.spotlight-tags li {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.spotlight-tags li::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  vertical-align: middle;
  background: var(--gold);
  border-radius: 50%;
}

/* blocks */
.block {
  margin-bottom: 30px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
  animation: rise 0.55s ease both;
}

.block:nth-of-type(2) { animation-delay: 0.05s; }
.block:nth-of-type(3) { animation-delay: 0.1s; }
.block:nth-of-type(4) { animation-delay: 0.15s; }
.block:nth-of-type(5) { animation-delay: 0.2s; }

.block-end {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.block-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--crimson);
}

.block-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--crimson);
}

.block-head span {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold-3);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
  margin-bottom: 16px;
}

.intro-grid p {
  margin: 0;
  padding: 12px 14px;
  font-size: 14px;
  background: rgba(255, 252, 245, 0.55);
  border-left: 2px solid var(--gold);
}

.promise {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  background: rgba(143, 29, 29, 0.06);
  border: 1px solid rgba(143, 29, 29, 0.22);
}

.promise strong {
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--crimson);
}

.promise span {
  font-size: 14px;
  color: var(--ink-2);
}

.recharge-banner {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
  padding: 14px 16px;
  background: linear-gradient(90deg, rgba(28, 21, 16, 0.92), rgba(60, 42, 24, 0.88));
  color: #f3e6c8;
}

.recharge-banner em {
  flex: 0 0 auto;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold-2);
  padding-top: 2px;
}

.recharge-banner p {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  color: #f6ecd2;
}

.meta {
  margin: 0;
  display: grid;
  gap: 12px;
}

.meta > div {
  display: grid;
  grid-template-columns: 5.5em 1fr;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}

.meta > div:last-child { border-bottom: 0; padding-bottom: 0; }

.meta dt {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.meta dd {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
}

.lead-text {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--muted);
}

.class-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.class-grid article {
  padding: 16px 14px;
  background: rgba(255, 252, 245, 0.6);
  border-top: 3px solid var(--gold);
}

.class-grid h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--crimson);
}

.class-grid p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.7;
}

.advise {
  display: block;
  width: 100%;
  max-width: 675px;
  margin-top: 8px;
  border: 1px solid var(--line);
}

/* footer */
.footer {
  padding: 32px 16px 40px;
  background: linear-gradient(180deg, #1c1510, #0f0c09);
  color: #8d7d6a;
  text-align: center;
  font-size: 12px;
  line-height: 1.9;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
  margin-bottom: 12px;
}

.footer a { color: #a89880; }
.footer a:hover { color: var(--gold-2); }
.footer p { margin: 2px 0; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 920px) {
  .page {
    grid-template-columns: 1fr;
  }

  .rail {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .rail-title { width: 100%; text-align: center; }

  .class-grid { grid-template-columns: 1fr; }

  .intro-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero {
    aspect-ratio: auto;
    min-height: 520px;
    max-height: none;
    height: auto;
    padding: 40px 16px 36px;
    justify-content: center;
  }

  .hero-logo img {
    width: min(520px, 92vw);
  }

  .hero-features {
    gap: 6px 0;
  }

  .hero-features li {
    padding: 0 10px;
    font-size: 12px;
    border-right: 0;
  }

  .hero-features li:not(:last-child)::after {
    content: "/";
    margin-left: 10px;
    color: rgba(212, 175, 55, 0.45);
  }

  .hero-actions {
    width: 100%;
    justify-content: center;
    margin-top: 22px;
  }

  .btn {
    min-width: 0;
    flex: 1;
    padding: 0 12px;
    letter-spacing: 0.1em;
  }

  .main { padding: 20px 16px 28px; }

  .meta > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .recharge-banner {
    flex-direction: column;
    gap: 6px;
  }

  .subnav a,
  .subnav-fav {
    padding: 10px 8px;
    letter-spacing: 0.06em;
    font-size: 12px;
  }
}

/* ===== 充值弹窗 ===== */
body.modal-open {
  overflow: hidden;
}

.modal[hidden] {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(10, 7, 4, 0.72);
  backdrop-filter: blur(4px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  padding: 36px 28px 28px;
  text-align: center;
  background: linear-gradient(180deg, #f7ecd2 0%, #e8d5a8 100%);
  border: 1px solid rgba(139, 115, 85, 0.55);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  animation: rise 0.35s ease both;
}

.modal-x {
  position: absolute;
  top: 8px;
  right: 12px;
  border: 0;
  background: none;
  font-size: 28px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}

.modal-x:hover { color: var(--crimson); }

.modal-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--gold-3);
}

.modal-panel h2 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.45;
  color: var(--crimson);
}

.modal-desc {
  margin: 0 0 22px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.modal-actions .btn {
  min-width: 120px;
}

.modal-actions .btn-dark {
  color: var(--ink-soft);
  background: rgba(255, 252, 245, 0.85);
  border-color: var(--gold-3);
}

.modal-actions .btn-dark:hover {
  color: var(--crimson);
  border-color: var(--crimson);
}
