:root {
  --bg: #1a140f;
  --bg2: #241c15;
  --panel: #3a2e24;
  --panel-edge: #6b5340;
  --ink: #fff6e8;
  --muted: #c4b09a;
  --line: rgba(255, 220, 170, 0.14);
  --lava: #ff5722;
  --lava-deep: #e03a0c;
  --gold: #ffc107;
  --gold-soft: #ffe082;
  --vine: #4caf50;
  --vine-deep: #2e7d32;
  --stone: #7a8794;
  --wood: #8b5a2b;
  --bone: #e8d5b5;
  --font-display: "ZCOOL KuaiLe", "ZCOOL XiaoWei", cursive;
  --font-body: "Noto Sans SC", sans-serif;
  --radius: 14px;
  --radius-sm: 10px;
  --max: 1080px;
  --chunk: 3px solid #2a2018;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  background-image:
    radial-gradient(ellipse 90% 50% at 50% -10%, rgba(255, 87, 34, 0.18), transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 40%, rgba(76, 175, 80, 0.08), transparent 45%),
    linear-gradient(180deg, #1a140f 0%, #120e0a 100%);
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.vine-left,
.vine-right {
  pointer-events: none;
  position: fixed;
  top: 0;
  bottom: 0;
  width: 28px;
  z-index: 45;
  opacity: 0.35;
  background:
    repeating-linear-gradient(
      180deg,
      transparent 0 18px,
      rgba(76, 175, 80, 0.35) 18px 22px,
      transparent 22px 40px
    );
}
.vine-left { left: 0; border-right: 2px dashed rgba(76, 175, 80, 0.25); }
.vine-right { right: 0; border-left: 2px dashed rgba(76, 175, 80, 0.25); }

@media (max-width: 900px) {
  .vine-left, .vine-right { display: none; }
}

a { color: var(--gold-soft); text-decoration: none; }
a:hover { color: var(--gold); }

/* —— 顶栏 —— */
.topnav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.55rem 1.25rem;
  background: linear-gradient(180deg, #3d2f24 0%, #2a2018 100%);
  border-bottom: 4px solid #1a120c;
  box-shadow: inset 0 -2px 0 rgba(255, 193, 7, 0.15);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--bone);
  flex-shrink: 0;
}
.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.45));
  transition: transform 0.25s ease;
}
.brand:hover .brand-logo { transform: rotate(-6deg) scale(1.06); }
.brand-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--gold-soft);
  text-shadow: 0 2px 0 #1a120c;
}

.topnav nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  flex: 1;
}
.topnav nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.25rem 0.45rem;
  border-radius: 8px;
}
.topnav nav a:hover {
  color: var(--ink);
  background: rgba(255, 193, 7, 0.12);
}

.nav-search {
  border: var(--chunk);
  background: linear-gradient(180deg, #5a4634 0%, #3a2e24 100%);
  color: var(--gold);
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 12px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.05rem;
  box-shadow: 0 3px 0 #1a120c;
}
.nav-search:hover { filter: brightness(1.1); }
.nav-search:active { transform: translateY(2px); box-shadow: 0 1px 0 #1a120c; }

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 6px solid #1a120c;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 35%, rgba(255, 193, 7, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 50% 75%, rgba(255, 87, 34, 0.28), transparent 50%),
    radial-gradient(ellipse 40% 30% at 15% 60%, rgba(76, 175, 80, 0.12), transparent 50%),
    linear-gradient(165deg, #2a1c12 0%, #1a140f 40%, #120e0a 100%);
  animation: heroPulse 10s ease-in-out infinite alternate;
}

@keyframes heroPulse {
  from { filter: brightness(1) saturate(1); }
  to { filter: brightness(1.08) saturate(1.12); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  text-align: center;
}

.hero-logo {
  display: block;
  width: min(520px, 88vw);
  height: auto;
  margin: 0 auto 1.25rem;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.55));
  animation: logoPop 1s cubic-bezier(0.22, 1, 0.36, 1) both, logoFloat 5s ease-in-out 1s infinite alternate;
}

@keyframes logoPop {
  from { opacity: 0; transform: scale(0.86) translateY(24px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes logoFloat {
  from { transform: translateY(0); }
  to { transform: translateY(-8px); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.8vw, 2.35rem);
  font-weight: 400;
  margin: 0 0 0.65rem;
  color: var(--bone);
  text-shadow: 0 3px 0 #1a120c, 0 0 24px rgba(255, 193, 7, 0.2);
  animation: riseIn 0.8s ease 0.2s both;
}

.hero-lead {
  color: var(--muted);
  max-width: 26em;
  margin: 0 auto 1.5rem;
  font-size: 1.02rem;
  animation: riseIn 0.8s ease 0.32s both;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  animation: riseIn 0.8s ease 0.42s both;
}

.hero-bone {
  width: min(220px, 50vw);
  height: 10px;
  margin: 2rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--bone), transparent);
  opacity: 0.45;
  position: relative;
}
.hero-bone::before,
.hero-bone::after {
  content: "";
  position: absolute;
  top: -6px;
  width: 18px;
  height: 18px;
  border-radius: 50% 50% 40% 40%;
  background: var(--bone);
  opacity: 0.7;
}
.hero-bone::before { left: 18%; }
.hero-bone::after { right: 18%; }

/* —— 按钮（石板/熔岩） —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.4rem;
  border-radius: 14px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  border: var(--chunk);
  transition: transform 0.15s, filter 0.15s;
  box-shadow: 0 4px 0 #1a120c;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #1a120c; }
.btn.primary {
  background: linear-gradient(180deg, #ff8a50 0%, var(--lava) 45%, var(--lava-deep) 100%);
  color: #fffaf2;
  text-shadow: 0 1px 0 rgba(0,0,0,0.35);
}
.btn.ghost {
  background: linear-gradient(180deg, #5a4634 0%, #3a2e24 100%);
  color: var(--gold-soft);
}

/* —— 章节 —— */
.section {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 3.75rem 1.5rem;
}
.section.alt {
  background:
    linear-gradient(180deg, rgba(90, 70, 52, 0.35) 0%, rgba(36, 28, 21, 0.9) 8%, rgba(36, 28, 21, 0.95) 92%, rgba(26, 20, 15, 0.2) 100%);
  width: 100%;
  max-width: none;
  border-top: 3px dashed rgba(76, 175, 80, 0.25);
  border-bottom: 3px dashed rgba(76, 175, 80, 0.25);
  box-sizing: border-box;
}
.section.alt > * {
  width: min(var(--max), 100%);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.section-head { margin-bottom: 1.75rem; max-width: 40rem; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  margin: 0 0 0.45rem;
  font-weight: 400;
  color: var(--gold-soft);
  text-shadow: 0 2px 0 #1a120c;
}
.section-head h2::before {
  content: "◆ ";
  color: var(--vine);
  font-size: 0.75em;
}
.section-head p { margin: 0; color: var(--muted); }

/* —— 卡片：木板感 —— */
.currency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.currency-card {
  background: linear-gradient(165deg, #4a3a2c 0%, #34281e 100%);
  border: var(--chunk);
  border-radius: var(--radius);
  padding: 1.2rem 1.15rem 1.05rem;
  cursor: pointer;
  box-shadow: 0 5px 0 #1a120c, inset 0 1px 0 rgba(255, 220, 170, 0.08);
  transition: transform 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
}
.currency-card::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--vine);
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.25);
  opacity: 0.7;
}
.currency-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}
.currency-card h3 {
  font-family: var(--font-display);
  margin: 0 0 0.45rem;
  font-size: 1.5rem;
  color: var(--gold);
  font-weight: 400;
}
.currency-card p { margin: 0 0 0.7rem; color: var(--muted); font-size: 0.94rem; }
.currency-card ul {
  margin: 0 0 0.85rem;
  padding-left: 1.1rem;
  color: var(--ink);
  font-size: 0.88rem;
}
.currency-card .more {
  color: var(--lava);
  font-size: 0.88rem;
  font-weight: 700;
  font-family: var(--font-display);
}

.chart-block,
.table-block,
.need-table-wrap {
  background: linear-gradient(180deg, #423428 0%, #30241c 100%);
  border: var(--chunk);
  border-radius: var(--radius);
  padding: 1.2rem 1.15rem 1.4rem;
  box-shadow: 0 5px 0 #1a120c;
  overflow: auto;
}

.chart-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.chart-head h3,
.table-block h3,
.need-table-wrap h3 {
  font-family: var(--font-display);
  margin: 0;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--bone);
}

.tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tab {
  border: 2px solid #2a2018;
  background: #2e241c;
  color: var(--muted);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 2px 0 #1a120c;
}
.tab.on {
  background: linear-gradient(180deg, #66bb6a 0%, var(--vine-deep) 100%);
  color: #fff;
  border-color: #1b3d1e;
}
.chart-note,
.table-note {
  color: var(--muted);
  font-size: 0.86rem;
  margin: 0 0 0.9rem;
}
.chart-wrap { position: relative; min-height: 280px; }

/* —— 时间线 —— */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 4px solid rgba(255, 87, 34, 0.45);
}
.timeline li {
  position: relative;
  padding: 0 0 1.6rem 1.5rem;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -11px;
  top: 0.35rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--lava);
  border: 3px solid #1a120c;
  box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.25);
}
.timeline strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  display: block;
  margin-bottom: 0.2rem;
  color: var(--gold-soft);
  font-weight: 400;
}
.timeline p { margin: 0.25rem 0; color: var(--muted); }

.kw {
  display: inline;
  margin: 0 0.12rem;
  padding: 0.08rem 0.4rem;
  border: 2px solid rgba(255, 193, 7, 0.35);
  background: rgba(255, 87, 34, 0.15);
  color: var(--gold-soft);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  border-radius: 8px;
}
.kw:hover {
  background: rgba(255, 193, 7, 0.22);
  color: var(--ink);
  border-color: var(--gold);
}

/* —— 路径步骤 —— */
.path { display: grid; gap: 0.9rem; }
.path-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.3rem 1rem;
  padding: 1.15rem 1.2rem;
  background: linear-gradient(120deg, #4a3a2c 0%, #34281e 100%);
  border: var(--chunk);
  border-radius: var(--radius);
  border-left: 6px solid var(--vine);
  box-shadow: 0 4px 0 #1a120c;
  transition: border-color 0.2s, transform 0.2s;
}
.path-step:hover {
  border-left-color: var(--lava);
  transform: translateX(3px);
}
.path-step .num {
  grid-row: span 3;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--lava);
  line-height: 1;
  text-shadow: 0 2px 0 #1a120c;
}
.path-step h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--gold-soft);
}
.path-step p { margin: 0; color: var(--muted); grid-column: 2; }

.hint-strip {
  margin-top: 1.4rem;
  padding: 1rem 1.15rem;
  background: rgba(76, 175, 80, 0.14);
  border: 3px solid rgba(76, 175, 80, 0.4);
  border-radius: var(--radius);
  color: var(--bone);
  box-shadow: 0 3px 0 #1a120c;
}

.play-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.85rem;
}
.play-card {
  text-align: left;
  background: linear-gradient(160deg, #4a3a2c 0%, #30241c 100%);
  border: var(--chunk);
  border-radius: var(--radius);
  padding: 1.05rem 1.1rem;
  cursor: pointer;
  color: inherit;
  font: inherit;
  box-shadow: 0 4px 0 #1a120c;
  transition: transform 0.2s, border-color 0.2s;
}
.play-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
}
.play-card h3 {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--bone);
}
.play-card .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: var(--vine-deep);
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  margin-bottom: 0.4rem;
  border: 2px solid #1b3d1e;
}
.play-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.cta-end { text-align: center; padding-bottom: 5rem; }
.cta-end h2 {
  font-family: var(--font-display);
  font-size: 2.1rem;
  margin: 0 0 1.4rem;
  font-weight: 400;
  color: var(--gold);
  text-shadow: 0 2px 0 #1a120c;
}
.three {
  display: grid;
  gap: 0.8rem;
  text-align: left;
  max-width: 36rem;
  margin: 0 auto;
}
.three p {
  margin: 0;
  padding: 1rem 1.15rem;
  background: linear-gradient(120deg, #4a3a2c, #34281e);
  border-radius: var(--radius);
  border: var(--chunk);
  color: var(--muted);
  box-shadow: 0 3px 0 #1a120c;
}
.three strong { color: var(--lava); font-family: var(--font-display); font-weight: 400; font-size: 1.15em; }

.foot {
  border-top: 4px solid #1a120c;
  padding: 1.6rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  background: #2a2018;
}

/* —— 弹层 —— */
.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 6, 4, 0.78);
  animation: fadeIn 0.2s ease;
}
.modal-panel {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(80vh, 720px);
  overflow: auto;
  background: linear-gradient(180deg, #4a3a2c 0%, #2e241c 100%);
  border: 4px solid #1a120c;
  border-radius: 18px;
  padding: 1.45rem 1.35rem 1.55rem;
  box-shadow: 0 12px 0 #0d0906, 0 0 0 3px rgba(255, 193, 7, 0.15);
  animation: popIn 0.28s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn {
  from { opacity: 0; transform: translateY(14px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
.modal-panel h2 {
  font-family: var(--font-display);
  margin: 0 2rem 0.85rem 0;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--gold);
}
.modal-body { color: var(--muted); }
.modal-body h4 {
  color: var(--bone);
  margin: 1rem 0 0.35rem;
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 400;
}
.modal-body ul { margin: 0.25rem 0 0; padding-left: 1.15rem; }
.modal-body p { margin: 0.4rem 0; }
.modal-body .routes {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.modal-body .route {
  padding: 0.65rem 0.75rem;
  background: rgba(0, 0, 0, 0.22);
  border-radius: var(--radius-sm);
  border: 2px solid rgba(255, 220, 170, 0.12);
}
.modal-body .route strong { color: var(--lava); display: block; margin-bottom: 0.15rem; }
.modal-x {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  border: var(--chunk);
  background: #3a2e24;
  color: var(--gold);
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
  box-shadow: 0 2px 0 #1a120c;
}
.modal-x:hover { background: var(--lava); color: #fff; }

.search-panel input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: var(--chunk);
  background: #241c15;
  color: var(--ink);
  font: inherit;
  margin-bottom: 0.75rem;
}
.search-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 50vh;
  overflow: auto;
}
.search-panel li button {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  color: var(--bone);
  padding: 0.55rem 0.4rem;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}
.search-panel li button:hover { background: rgba(255, 87, 34, 0.15); }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 560px;
}
.data-table th,
.data-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.55rem 0.65rem;
  text-align: left;
  vertical-align: top;
}
.data-table th {
  color: var(--gold-soft);
  font-weight: 700;
  background: rgba(0, 0, 0, 0.28);
  position: sticky;
  top: 0;
}
.data-table tr:hover td { background: rgba(255, 87, 34, 0.08); }
.data-table .cell-link {
  border: none;
  background: none;
  color: var(--gold);
  font: inherit;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
  text-align: left;
  border-bottom: 2px dashed rgba(255, 193, 7, 0.45);
}
.data-table .cell-link:hover { color: var(--lava); }

/* 活动时间表：第二列类型略强调 */
#scheduleMount .data-table td:nth-child(2) {
  color: var(--vine);
  font-weight: 700;
  white-space: nowrap;
}
#scheduleMount .data-table td:nth-child(3) {
  color: var(--gold-soft);
  font-weight: 600;
}

.need-table-wrap .data-table { min-width: 480px; }

.flow {
  margin: 0.5rem 0 0.75rem;
  padding-left: 1.2rem;
  color: var(--ink);
}
.flow li { margin: 0.35rem 0; }
.modal-body .tip {
  margin-top: 0.75rem;
  padding: 0.55rem 0.7rem;
  background: rgba(76, 175, 80, 0.16);
  border-radius: var(--radius-sm);
  border: 2px solid rgba(76, 175, 80, 0.35);
  color: var(--bone);
  font-size: 0.9rem;
}

@media (max-width: 720px) {
  .topnav nav { display: none; }
  .hero { min-height: 85vh; }
  .brand-text { display: none; }
  .path-step { grid-template-columns: 1fr; }
  .path-step .num { grid-row: auto; }
}
