/* 纵横四海 — 超前复古 Neo-Retro */

@font-face {
  font-family: "Alibaba PuHuiTi";
  src: url("/assets/fonts/AlibabaPuHuiTi-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Alibaba PuHuiTi";
  src: url("/assets/fonts/AlibabaPuHuiTi-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Alibaba PuHuiTi";
  src: url("/assets/fonts/AlibabaPuHuiTi-Medium.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --radius: 6px;
}

html { background: #0b0a09; scroll-behavior: smooth; }

body {
  font-family: "Alibaba PuHuiTi", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #cbb892;
  background: #0b0a09;
  overflow-x: hidden;
}

a { color: #e0c878; text-decoration: none; }
a:hover { color: #f3df9d; }
img { border: 0; max-width: 100%; height: auto; vertical-align: middle; }
ul, ol { list-style: none; }
b, strong { color: #f0dfb0; font-weight: 500; }

/* —— 顶栏：顶部完全透明，滚动后显示背景 —— */
.head {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  padding: 0.55rem clamp(1.2rem, 4vw, 3rem);
  background: none;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  box-sizing: border-box;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.head.is-scrolled {
  background: none;
  background-color: rgba(11, 10, 9, 0.94);
  border-bottom-color: #2a2318;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.brand img {
  display: block;
  width: auto;
  height: 52px;
  max-height: 52px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
}

.head-left {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.6rem;
  min-width: 0;
}

.nav {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav a {
  display: inline-block;
  margin-right: 1.55rem;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: #e8d6a8;
  line-height: 1;
  vertical-align: middle;
}

.nav a:last-child {
  margin-right: 0;
}

.nav a.is-active,
.nav a:hover { color: #f7e7b8; }

.nav-user {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: auto;
}

.nav-user > a {
  display: inline-block;
  margin-left: 1.15rem;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: rgba(203, 184, 146, 0.68);
  line-height: 1;
}

.nav-user > a:first-child {
  margin-left: 0;
}

.nav-user > a:hover {
  color: #e0c878;
}

.nav-account {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 0;
}

.nav-account__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.35rem 0;
  border: 0;
  background: none;
  color: rgba(203, 184, 146, 0.68);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1;
  cursor: pointer;
}

.nav-account.is-active .nav-account__trigger,
.nav-account:hover .nav-account__trigger,
.nav-account:focus-within .nav-account__trigger {
  color: #e0c878;
}

.nav-account__caret {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.7;
  transition: transform 0.15s ease;
}

.nav-account:hover .nav-account__caret,
.nav-account:focus-within .nav-account__caret {
  transform: rotate(180deg);
}

.nav-account__menu {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 50;
  min-width: 7.5rem;
  padding: 0;
  margin-top: 0.15rem;
  border: 1px solid rgba(184, 137, 60, 0.35);
  border-radius: var(--radius, 6px);
  background: #16120e;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  overflow: hidden;
}

/* 扩大可悬停区域，避免移入菜单时断开 */
.nav-account__menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -0.45rem;
  height: 0.45rem;
}

.nav-account:hover .nav-account__menu,
.nav-account:focus-within .nav-account__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-account__menu a,
.nav-account__menu button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.55rem 1rem;
  border: 0;
  background: none;
  color: rgba(203, 184, 146, 0.88);
  font: inherit;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2;
  box-sizing: border-box;
}

.nav-account__menu a:hover,
.nav-account__menu button:hover {
  color: #f0dfb0;
  background: rgba(184, 137, 60, 0.12);
}

.nav-account__logout {
  margin: 0;
  display: block;
}

.nav-dl {
  padding: 0.55rem 0.95rem !important;
  border: 1px solid rgba(224, 200, 120, 0.45);
  border-radius: var(--radius);
  color: #f0dfb0 !important;
}

.nav-dl:hover {
  background: rgba(224, 200, 120, 0.12);
}

/* —— 首屏：不对等构图 —— */
.hero {
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: 72px;
}

.hero-visual {
  position: relative;
  flex: 1.15;
  min-height: 70vh;
  overflow: hidden;
  background: #15120f;
  -webkit-user-select: none;
  user-select: none;
}

.hero-visual .hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  opacity: 0.78;
  transform: scale(1.05);
  animation: drift 28s ease-in-out infinite alternate;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 40%, #0b0a09 98%),
    linear-gradient(180deg, rgba(11, 10, 9, 0.15), rgba(11, 10, 9, 0.72));
}

.hero-copy {
  position: relative;
  z-index: 2;
  flex: 0.95;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4.5rem) clamp(1.4rem, 4vw, 3.5rem);
  background: #0b0a09;
}

.eyebrow {
  margin-bottom: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: #8a7350;
}

.hero-logo {
  width: min(280px, 70%);
  margin: 0 0 1.2rem;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.55));
  animation: rise 1s ease both;
}

.hero-copy h1 {
  margin-bottom: 1rem;
  font-size: clamp(1.7rem, 3.6vw, 2.7rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.08em;
  color: #f2e6c4;
  animation: rise 1s ease 0.08s both;
}

.lead {
  max-width: 22em;
  margin-bottom: 1.8rem;
  color: #a89470;
  letter-spacing: 0.06em;
  animation: rise 1s ease 0.16s both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
  margin-bottom: 2rem;
  animation: rise 1s ease 0.24s both;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-gold {
  background: linear-gradient(180deg, #8a6230 0%, #5a3c18 100%);
  border-color: #b8893c;
  border-radius: var(--radius);
  color: #fff2d0 !important;
}

.btn-gold:hover {
  background: linear-gradient(180deg, #9c7038 0%, #6a4820 100%);
  color: #fff8e4 !important;
}

.btn-line {
  border-color: rgba(203, 184, 146, 0.35);
  color: #dcc99a !important;
  background: transparent;
}

.btn-line:hover {
  border-color: rgba(240, 223, 176, 0.65);
  color: #f0dfb0 !important;
}

.btn-lg {
  padding: 1rem 2.2rem;
  font-size: 1rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  animation: rise 1s ease 0.32s both;
}

.hero-tags li {
  padding: 0.28rem 0.7rem;
  border: 1px solid rgba(138, 115, 80, 0.45);
  border-radius: var(--radius);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: #9a825c;
}

/* —— 滚动条：无缝连续循环 —— */
.ticker {
  border-top: 1px solid #2a2318;
  border-bottom: 1px solid #2a2318;
  background: #12100c;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
  will-change: transform;
}

.ticker-group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  padding: 0.85rem 0;
}

.ticker-group span {
  display: inline-block;
  padding: 0 2.2rem;
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  color: #7a6848;
}

.ticker-group span:before {
  content: "◆";
  margin-right: 2.2rem;
  color: #5a4a30;
  font-size: 0.55rem;
  vertical-align: middle;
}

/* —— 神兵展廊 —— */
.armory {
  padding: clamp(3.5rem, 8vw, 6rem) 0 4.5rem;
  overflow: visible;
}

.armory-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding: 0 clamp(1.2rem, 4vw, 3rem) 2rem;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.armory-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #f0dfb0;
}

.armory-note {
  max-width: 18em;
  font-size: 0.9rem;
  color: #8a7350;
  letter-spacing: 0.04em;
}

.armory-rail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0.5rem clamp(1.2rem, 4vw, 3rem) 2.8rem;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  box-sizing: border-box;
}

.armory-rail::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.armory-rail li {
  position: relative;
  flex: 1 0 180px;
  width: 180px;
  min-width: 168px;
  height: 400px;
  padding: 1.5rem 1rem 1.3rem;
  background: #14110e;
  border: 1px solid #2e261c;
  border-radius: var(--radius);
  box-sizing: border-box;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.armory-rail li:nth-child(even) {
  margin-top: 1.4rem;
}

.armory-rail li:hover {
  border-color: #8a6a32;
  transform: translateY(-0.3rem);
}

.armory-rail li:nth-child(even):hover {
  transform: translateY(-0.3rem);
}

.idx {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: #6a5a40;
}

.blade {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 260px;
  margin-bottom: 1rem;
  background:
    radial-gradient(ellipse at 50% 85%, rgba(160, 100, 30, 0.16), transparent 60%),
    #0c0a08;
  border: 1px solid #221c14;
  border-radius: var(--radius);
}

.blade img {
  max-height: 245px;
  width: auto;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.65));
}

.armory-rail strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: #e8d5a0;
}

.armory-rail em {
  display: block;
  margin-top: 0.2rem;
  font-style: normal;
  font-size: 0.75rem;
  color: #6a5a40;
}

/* —— 介绍：杂志对页 —— */
.lore {
  display: flex;
  max-width: 1280px;
  margin: 3rem auto 0;
  padding: 0 clamp(1.2rem, 4vw, 3rem) 4rem;
  gap: 0;
  border-top: 1px solid #2a2318;
  box-sizing: border-box;
}

.lore-quote {
  flex: 1.1;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 3vw, 3rem) clamp(2.5rem, 5vw, 4rem) 0;
  border-right: 1px solid #2a2318;
}

.lore-quote h2 {
  margin: 0.6rem 0 1.4rem;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.1em;
  color: #f0dfb0;
}

.lore-text {
  max-width: 28em;
  margin-bottom: 1.8rem;
  color: #a89470;
}

.lore-jobs {
  flex: 0.9;
  display: flex;
  flex-direction: column;
}

.lore-jobs article {
  flex: 1;
  padding: 1.6rem 0 1.6rem clamp(1.4rem, 3vw, 2.5rem);
  border-bottom: 1px solid #2a2318;
  transition: background 0.2s ease;
}

.lore-jobs article:last-child { border-bottom: 0; }

.lore-jobs article:hover {
  background: rgba(224, 200, 120, 0.04);
}

.lore-jobs span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: #8a6a32;
  margin-bottom: 0.35rem;
}

.lore-jobs h3 {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: #e8d5a0;
  margin-bottom: 0.3rem;
}

.lore-jobs p {
  font-size: 0.88rem;
  color: #8a7350;
}

/* —— 终章 CTA —— */
.finale {
  text-align: center;
  padding: 4.5rem 1.5rem 5rem;
  margin: 0 clamp(1.2rem, 4vw, 3rem) 2rem;
  border: 1px solid #2e261c;
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(140, 90, 30, 0.14), transparent 55%),
    #12100c;
}

.finale-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  color: #8a7350;
  margin-bottom: 0.7rem;
}

.finale h2 {
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  color: #f0dfb0;
  margin-bottom: 1.6rem;
}

/* —— 页脚 —— */
.foot {
  padding: 2.8rem clamp(1.2rem, 4vw, 3rem) 3.2rem;
  border-top: 1px solid #2a2318;
  background: #090807;
}

.foot-inner {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

.foot-brand {
  display: block;
  margin: 0 auto 1.4rem;
  width: 120px;
  height: auto;
  opacity: 0.9;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.45));
}

.foot-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.55rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  color: #8a7350;
}

.foot-meta span {
  color: #8a7350;
}

.foot-meta a {
  color: #8a7350;
  text-decoration: none;
  border-bottom: none;
}

.foot-meta a:hover {
  color: #cbb892;
  text-decoration: none;
  border-bottom: none;
}

.foot-health {
  max-width: 52em;
  margin: 0 auto;
  padding-top: 1.3rem;
  border-top: 1px solid #221c14;
  font-size: 0.72rem;
  line-height: 1.9;
  letter-spacing: 0.08em;
  color: #5a4a34;
}

.foot-health p {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem 0;
  margin: 0.15rem 0;
}

.foot-health span {
  display: inline-block;
  padding: 0 0.85rem;
}

/* —— 动效 —— */
@keyframes drift {
  from { transform: scale(1.05) translateY(0); }
  to { transform: scale(1.1) translateY(-1.8%); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* —— 响应式 —— */
@media screen and (max-width: 960px) {
  .brand img {
    height: 44px;
    max-height: 44px;
  }

  .head {
    min-height: 64px;
    padding: 0.45rem clamp(1rem, 4vw, 2rem);
  }

  .hero {
    flex-direction: column;
    padding-top: 64px;
  }

  .hero-visual {
    min-height: 42vh;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, transparent 35%, #0b0a09 96%),
      linear-gradient(90deg, rgba(11, 10, 9, 0.2), transparent 50%);
  }

  .armory-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .armory-rail li:nth-child(even) {
    margin-top: 0;
  }

  .armory-rail li:nth-child(even):hover {
    transform: translateY(-0.3rem);
  }

  .lore {
    flex-direction: column;
  }

  .lore-quote {
    border-right: 0;
    border-bottom: 1px solid #2a2318;
    padding-right: 0;
  }

  .lore-jobs article {
    padding-left: 0;
  }
}

@media screen and (max-width: 640px) {
  .nav a:not(.nav-dl) { display: none; }
  .nav-account { display: inline-flex; }
  .nav-user > a { margin-left: 1rem; }

  .foot-meta {
    flex-direction: column;
    gap: 0.45rem;
  }

  .foot-health span {
    width: 50%;
    padding: 0.2rem 0;
    box-sizing: border-box;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual .hero-bg,
  .hero-logo,
  .hero-copy h1,
  .lead,
  .hero-cta,
  .hero-tags,
  .ticker-track {
    animation: none !important;
  }
}
