/* WZY GamePlayer · 蛮荒录 — Personal Site */

:root {
  --bg-deep: #07070d;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(232, 197, 71, 0.08);
  --border: rgba(255, 255, 255, 0.1);
  --border-gold: rgba(232, 197, 71, 0.35);
  --gold: #e8c547;
  --gold-light: #f5d76e;
  --amber: #f5a623;
  --text: #eaeaea;
  --text-muted: #888;
  --purple: #1a0a2e;
  --blue: #16213e;
  --bili-pink: #fb7299;
  --radius: 14px;
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background 0.3s, backdrop-filter 0.3s;
}

.nav.scrolled {
  background: rgba(7, 7, 13, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.05rem;
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border-gold);
  object-fit: cover;
  background: #111;
}

.logo span {
  background: linear-gradient(90deg, var(--gold), var(--amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-cta {
  padding: 0.45rem 1rem;
  background: linear-gradient(135deg, var(--gold), var(--amber));
  color: #1a1200 !important;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 6rem 0 4rem;
  overflow: hidden;
}

.hero-bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  filter: brightness(0.4) saturate(1.08);
  transform: scale(1.04);
  transition: transform 10s ease-out;
  z-index: 0;
}

.hero:hover .hero-bg-layer { transform: scale(1.07); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(7,7,13,0.92) 0%, rgba(7,7,13,0.55) 45%, rgba(7,7,13,0.75) 100%),
    radial-gradient(ellipse 50% 60% at 75% 40%, rgba(232,197,71,0.07) 0%, transparent 60%);
  z-index: 0;
}

.hero::before, .hero::after { display: none; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  background: rgba(232, 197, 71, 0.1);
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  font-size: 0.82rem;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.15;
  margin-bottom: 0.8rem;
  letter-spacing: 0.05em;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--gold), var(--amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 2rem;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.stat-num {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--amber));
  color: #1a1200;
  box-shadow: 0 4px 20px rgba(232, 197, 71, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232, 197, 71, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--border-gold);
  background: var(--bg-card-hover);
}

.btn-bili {
  background: rgba(251, 114, 153, 0.15);
  color: var(--bili-pink);
  border: 1px solid rgba(251, 114, 153, 0.35);
}

.btn-bili:hover {
  background: rgba(251, 114, 153, 0.25);
}

.hero-visual {
  position: relative;
}

.hero-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-gold);
  box-shadow: 0 0 60px rgba(232,197,71,0.15), var(--shadow);
  aspect-ratio: 16/9;
  background: #111;
  cursor: pointer;
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card-glow {
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  box-shadow: inset 0 0 40px rgba(232,197,71,0.08);
  pointer-events: none;
  z-index: 2;
}

.hero-card-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1rem 0.8rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  font-size: 0.88rem;
  color: rgba(255,255,255,0.85);
  z-index: 3;
  letter-spacing: 0.05em;
}

.hero-card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 4;
}

.hero-visual:hover .hero-card-play { opacity: 1; }

/* ── Gallery Strip ── */
.gallery-strip {
  padding: 2.5rem 0 3rem;
  background: #050508;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.gallery-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.2rem;
  padding: 0 4vw;
}

.gallery-header h2 {
  font-size: 1.3rem;
  letter-spacing: 0.1em;
}

.gallery-scroll {
  display: flex;
  gap: 0.8rem;
  padding: 0 4vw;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.gallery-scroll::-webkit-scrollbar { display: none; }

.gallery-item {
  flex: 0 0 auto;
  width: min(400px, 72vw);
  scroll-snap-align: center;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
  transition: border-color 0.3s, transform 0.3s;
}

.gallery-item:hover {
  border-color: var(--border-gold);
  transform: scale(1.02);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 0.8rem 0.7rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  font-size: 0.82rem;
  color: rgba(255,255,255,0.8);
}

/* ── Platforms ── */
.platforms {
  padding: 5rem 0;
  background: linear-gradient(180deg, #050508, rgba(26,10,46,0.35), #050508);
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.platform-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  border: 1px solid var(--border);
  transition: all 0.35s;
  display: block;
}

.platform-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.platform-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.platform-card:hover img { transform: scale(1.08); }

.platform-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.2rem;
  background: linear-gradient(transparent 30%, rgba(0,0,0,0.88) 100%);
}

.platform-tag {
  display: inline-block;
  width: fit-content;
  padding: 0.2rem 0.6rem;
  background: rgba(232,197,71,0.15);
  border: 1px solid var(--border-gold);
  border-radius: 10px;
  font-size: 0.72rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.platform-overlay h3 {
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}

.platform-overlay p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.5rem;
}

.platform-arrow {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
}

/* ── Parallax ── */
.parallax-band {
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

.parallax-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5,5,8,0.6);
}

.parallax-band .band-text {
  position: relative;
  z-index: 1;
  text-align: center;
}

.parallax-band h3 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.parallax-band p {
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.15em;
}

/* ── Featured project ── */
.project-featured { margin-bottom: 1.5rem; }

.featured-banner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-gold);
  background: var(--bg-card);
  transition: box-shadow 0.3s;
  min-height: 320px;
}

.featured-banner:hover {
  box-shadow: 0 0 50px rgba(232,197,71,0.12), var(--shadow);
}

.featured-banner img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.featured-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-tag {
  display: inline-block;
  width: fit-content;
  padding: 0.25rem 0.7rem;
  background: rgba(232,197,71,0.12);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  font-size: 0.75rem;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.featured-content h3 { font-size: 1.5rem; margin-bottom: 0.3rem; }

.featured-sub {
  color: var(--gold);
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

.featured-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.project-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  opacity: 0.3;
  background: linear-gradient(135deg, var(--purple), var(--blue));
}

/* ── Video mosaic ── */
.videos-section {
  background: linear-gradient(180deg, var(--bg-deep), rgba(22,33,62,0.25), var(--bg-deep));
}

.video-mosaic {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.mosaic-main {
  grid-row: span 2;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-gold);
  cursor: pointer;
  position: relative;
}

.mosaic-main img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  transition: transform 0.5s;
}

.mosaic-main:hover img { transform: scale(1.04); }

.mosaic-side {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  position: relative;
}

.mosaic-side img {
  width: 100%;
  height: 100%;
  min-height: 140px;
  object-fit: cover;
  transition: transform 0.5s;
}

.mosaic-side:hover img { transform: scale(1.05); }

.mosaic-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1rem 0.7rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.88));
  font-size: 0.85rem;
}

.mosaic-label strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.mosaic-label span { color: var(--text-muted); font-size: 0.78rem; }

.videos-cta { text-align: center; margin-top: 2rem; }

/* ── About with bg ── */
.about-section {
  position: relative;
  overflow: hidden;
}

.about-bg {
  position: absolute;
  inset: 0;
  background: url("/assets/manhuanglu/web/concept-1920.jpg") center/cover no-repeat;
  filter: brightness(0.2);
  z-index: 0;
}

.about-section .container { position: relative; z-index: 1; }

.about-section .about-grid {
  background: rgba(7,7,13,0.75);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.play-icon {
  width: 64px;
  height: 64px;
  background: rgba(232, 197, 71, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #1a1200;
}

/* ── Sections ── */
section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-tag {
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: 0.08em;
}

.section-header p {
  color: var(--text-muted);
  margin-top: 0.6rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Projects ── */
.projects {
  background: linear-gradient(180deg, var(--bg-deep) 0%, rgba(26, 10, 46, 0.3) 50%, var(--bg-deep) 100%);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: var(--border-gold);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.project-card.featured {
  grid-column: span 1;
}

.project-cover {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  position: relative;
}

.project-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.project-card:hover .project-cover img {
  transform: scale(1.05);
}

.project-status {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  padding: 0.25rem 0.7rem;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 12px;
  font-size: 0.75rem;
  color: var(--gold);
  backdrop-filter: blur(4px);
}

.project-body {
  padding: 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
}

.project-sub {
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.project-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 1rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.project-tags span {
  padding: 0.2rem 0.6rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 600;
  transition: gap 0.2s;
}

.project-link:hover {
  gap: 0.6rem;
}

/* ── Videos ── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
}

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s;
}

.video-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.video-thumb {
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
  background: #111;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-duration {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  padding: 0.15rem 0.45rem;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 4px;
  font-size: 0.75rem;
}

.video-info {
  padding: 0.9rem 1rem 1.1rem;
}

.video-info h4 {
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 0.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── About ── */
.about-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  align-items: start;
}

.about-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 3px solid var(--border-gold);
  box-shadow: 0 0 30px rgba(232, 197, 71, 0.15);
}

.about-content h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.about-sign {
  color: var(--gold);
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
  font-style: italic;
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.highlight-item {
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.highlight-item strong {
  display: block;
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 0.2rem;
}

.highlight-item span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Footer ── */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-copy a {
  color: var(--text-muted);
}

.footer-copy a:hover {
  color: var(--gold);
}

/* ── Video Modal ── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.modal.open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  width: min(900px, 95vw);
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transform: scale(0.92);
  transition: transform 0.3s;
}

.modal.open .modal-box {
  transform: scale(1);
}

.modal-box iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.modal-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}

/* ── Animations ── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(7, 7, 13, 0.95);
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
  }

  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-stats { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-visual { order: -1; }

  .platform-grid { grid-template-columns: 1fr; }
  .platform-card { aspect-ratio: 16/9; }

  .featured-banner { grid-template-columns: 1fr; }
  .featured-banner img { min-height: 200px; }

  .video-mosaic { grid-template-columns: 1fr; }
  .mosaic-main { grid-row: span 1; }

  .parallax-band { background-attachment: scroll; min-height: 200px; }

  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-avatar { margin: 0 auto; }
  .about-highlights { grid-template-columns: 1fr; }
}
