/* ==========================================================
   野序 YEXU Games — 官网样式
   高级暗黑 / 工业机能 黑 + 暖灰 + 琥珀微光
   禁止：赛博朋克、霓虹、蓝紫渐变、电竞 UI、大面积金色、过度动效
   ========================================================== */

:root {
  --bg: #11110F;
  --bg-2: #191916;
  --card: #20201C;
  --text: #F1EEE6;
  --text-dim: #9B978E;
  --amber: #C88A38;
  --rust: #8F4936;
  --hairline: rgba(241, 238, 230, 0.10);
  --amber-glow: rgba(200, 138, 56, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--amber); color: var(--bg); }

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px);
}
.container.narrow { max-width: 820px; }

/* ---------- 通用段落骨架 ---------- */
.section { padding: clamp(88px, 12vw, 160px) 0; position: relative; }

.section-index {
  font-size: 12px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.section-title {
  font-family: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  font-weight: 600;
  font-size: clamp(30px, 4.5vw, 52px);
  letter-spacing: 0.06em;
  line-height: 1.25;
  margin-bottom: 8px;
}

.section-subtitle-en {
  font-size: 13px;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 40px;
}

/* ---------- 页面进入动效：淡入 + 位移 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-line { animation: none !important; }
  .hero-grain { animation: none !important; }
}

/* ==========================================================
   Header
   ========================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(17,17,15,0.92), rgba(17,17,15,0.75) 70%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.4s;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px clamp(20px, 5vw, 56px);
  display: flex;
  align-items: center;
  gap: 40px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 38px; height: 38px;
  border-radius: 3px;
  overflow: hidden;
  background: #EFE9E0;
  display: grid; place-items: center;
  box-shadow: 0 1px 6px rgba(0,0,0,0.4);
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.22em;
}
.main-nav { display: flex; gap: 30px; margin-left: auto; }
.main-nav a {
  font-size: 14px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  transition: color 0.3s;
}
.main-nav a:hover { color: var(--text); }
.header-right { display: flex; align-items: center; gap: 22px; }
.lang-switch { font-size: 13px; color: var(--text-dim); }
.lang-switch a { transition: color 0.3s; }
.lang-switch a.active { color: var(--amber); }
.lang-sep { margin: 0 6px; opacity: 0.4; }
.follow-link {
  font-size: 14px;
  letter-spacing: 0.05em;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.3s, color 0.3s;
}
.follow-link:hover { border-color: var(--amber); color: var(--amber); }
.arrow { display: inline-block; transition: transform 0.3s var(--ease); }
a:hover > .arrow { transform: translateX(4px); }

@media (max-width: 860px) {
  .main-nav { display: none; }
  .header-right { margin-left: auto; }
}

/* ==========================================================
   01 Hero
   ========================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* 《人在三和》城市夜景：背影小比例构图 */
.hero-bg { position: absolute; inset: -40px; z-index: 0; }
.hero-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
/* 胶片颗粒：极慢漂移 */
.hero-grain {
  position: absolute; inset: -100px;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 14s steps(6) infinite;
  pointer-events: none;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); }
  20% { transform: translate(-24px,12px); }
  40% { transform: translate(18px,-20px); }
  60% { transform: translate(-12px,-16px); }
  80% { transform: translate(20px,14px); }
}
.hero-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 100% 80% at 50% 45%, transparent 40%, rgba(10,10,8,0.55) 100%),
              linear-gradient(to bottom, rgba(17,17,15,0.5), transparent 30%, transparent 60%, var(--bg));
}

/* 琥珀细线缓慢流动 */
.hero-line {
  position: absolute;
  left: 0; right: 0; bottom: 18%;
  height: 1px;
  z-index: 1;
  background: linear-gradient(to right,
    transparent 0%,
    var(--amber-glow) 30%,
    var(--amber) 50%,
    var(--amber-glow) 70%,
    transparent 100%);
  background-size: 220% 100%;
  opacity: 0.5;
  animation: lineflow 9s linear infinite;
}
@keyframes lineflow {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px);
  will-change: transform;
}
.hero-kicker {
  font-size: 13px;
  letter-spacing: 0.5em;
  color: var(--amber);
  margin-bottom: 26px;
}
.hero-title {
  font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
  font-weight: 600;
  font-size: clamp(34px, 6vw, 72px);
  line-height: 1.3;
  letter-spacing: 0.04em;
  margin-bottom: 22px;
  text-shadow: 0 2px 30px rgba(0,0,0,0.5);
}
.hero-sub {
  font-size: clamp(14px, 1.6vw, 17px);
  letter-spacing: 0.3em;
  color: var(--text-dim);
  margin-bottom: 46px;
}
.hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 30px;
  font-size: 14px;
  letter-spacing: 0.12em;
  border-radius: 2px;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}
.btn-primary {
  background: var(--amber);
  color: #14120c;
  font-weight: 600;
}
.btn-primary:hover { background: #d89a48; transform: translateY(-1px); }
.btn-ghost {
  border: 1px solid rgba(241,238,230,0.25);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--text-dim); background: rgba(241,238,230,0.05); }

/* 圆形播放按钮 */
.play-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(241,238,230,0.3);
  display: grid; place-items: center;
  margin-left: 6px;
  transition: border-color 0.3s, background 0.3s;
}
.play-btn:hover { border-color: var(--amber); background: rgba(200,138,56,0.08); }
.play-triangle {
  width: 0; height: 0;
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent var(--text);
  margin-left: 3px;
  transition: border-color 0.3s;
}
.play-btn:hover .play-triangle { border-left-color: var(--amber); }

.hero-scroll-hint {
  position: absolute;
  bottom: 34px; left: 50%;
  z-index: 2;
  width: 1px; height: 44px;
  background: rgba(241,238,230,0.15);
  overflow: hidden;
}
.hero-scroll-hint span {
  position: absolute; top: -50%;
  left: 0; width: 100%; height: 50%;
  background: var(--amber);
  animation: scrolldrop 2.4s var(--ease) infinite;
}
@keyframes scrolldrop {
  0% { top: -50%; }
  60%, 100% { top: 110%; }
}

/* ==========================================================
   02 Featured Game
   ========================================================== */
.featured-meta {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.tag {
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  border: 1px solid var(--hairline);
  padding: 5px 14px;
  border-radius: 2px;
}
.featured-info {
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--amber);
  margin-left: 8px;
}
.featured-intro {
  max-width: 640px;
  color: var(--text-dim);
  font-size: 17px;
  line-height: 2;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .card-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-top: 2px solid transparent;
  padding: 34px 30px;
  border-radius: 2px;
  transition: border-color 0.4s, transform 0.4s var(--ease);
}
.feature-card:hover { border-top-color: var(--amber); transform: translateY(-3px); }
.feature-card h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.feature-card p { color: var(--text-dim); font-size: 14.5px; line-height: 1.9; }

/* ==========================================================
   03 场景画廊
   ========================================================== */
.gallery-section { padding-bottom: 0; overflow: hidden; }
.gallery {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 44px clamp(20px, 5vw, 56px) 56px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }

.gallery-item {
  flex: 0 0 clamp(300px, 44vw, 560px);
  scroll-snap-align: start;
}
.gallery-img {
  width: 100%;
  aspect-ratio: 21 / 10;
  object-fit: cover;
  object-position: top center;
  background: var(--bg-2);
  border: 1px solid var(--hairline);
  border-radius: 2px;
  display: block;
  transition: transform 0.5s var(--ease);
}
.gallery-item:hover .gallery-img { transform: scale(1.02); }
.placeholder-note {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: rgba(155,151,142,0.5);
  text-transform: uppercase;
}
.gallery-item figcaption {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 2px 0;
  opacity: 0.35;
  transition: opacity 0.4s;
}
.gallery-item:hover figcaption { opacity: 1; }
.gallery-item .place {
  font-size: 15px;
  letter-spacing: 0.1em;
  font-family: "Noto Serif SC", "Songti SC", serif;
}
.gallery-item .time {
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}

/* 实机截图卡片（真实截图已接入） */

.text-link {
  display: inline-block;
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--text);
  border-bottom: 1px solid var(--amber);
  padding-bottom: 4px;
  transition: color 0.3s;
}
.text-link:hover { color: var(--amber); }

/* ==========================================================
   04 Games
   ========================================================== */
.games { background: var(--bg-2); }
.game-matrix {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}
@media (max-width: 760px) { .game-matrix { grid-template-columns: 1fr; } }

.game-card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 2px;
  overflow: hidden;
  transition: border-color 0.4s, transform 0.4s var(--ease);
}
.game-card:hover { border-color: rgba(200,138,56,0.4); transform: translateY(-3px); }
.game-card-art {
  aspect-ratio: 16 / 9;
  display: grid; place-items: center;
  position: relative;
  overflow: hidden;
}
.art-sanhe {
  background: url("../img/keyart-wide.jpg") center 28% / cover no-repeat;
}
.art-wilderness { background: #161613; }
.codename {
  font-family: "Noto Serif SC", serif;
  font-size: 15px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(241,238,230,0.28);
}
.game-card-body { padding: 24px 26px 26px; }
.game-card-body h3 {
  font-size: 18px;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.game-status {
  font-size: 12.5px;
  letter-spacing: 0.15em;
  color: var(--amber);
  text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
}
.dot-dim { background: var(--text-dim) !important; }
.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber-glow);
}
.game-year { font-size: 13px; color: var(--text-dim); letter-spacing: 0.2em; margin-top: 6px; }

/* ==========================================================
   05 About
   ========================================================== */
.about-title {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-weight: 600;
  font-size: clamp(30px, 4.6vw, 54px);
  letter-spacing: 0.08em;
  margin-bottom: 44px;
}
.about-body {
  color: var(--text-dim);
  font-size: 17px;
  line-height: 2.15;
  margin-bottom: clamp(56px, 8vw, 96px);
}
.about-body p + p { margin-top: 18px; }
.about-body p:nth-child(3) { color: var(--text); }

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  border-top: 1px solid var(--hairline);
  padding-top: 44px;
}
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; gap: 28px; } }
.principle-num {
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--amber);
}
.principle h3 {
  font-family: "Noto Serif SC", serif;
  font-size: 22px;
  letter-spacing: 0.14em;
  margin: 10px 0 10px;
}
.principle p { color: var(--text-dim); font-size: 14.5px; }

/* ==========================================================
   06 News
   ========================================================== */
.news-list { list-style: none; margin-top: 36px; border-top: 1px solid var(--hairline); }
.news-item {
  display: flex; align-items: center; gap: clamp(20px, 4vw, 48px);
  padding: 28px 4px;
  border-bottom: 1px solid var(--hairline);
  transition: background 0.3s;
}
.news-item:hover { background: rgba(241,238,230,0.02); }
.news-item time {
  font-size: 13px;
  letter-spacing: 0.15em;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.news-text h3 {
  font-size: 16.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}
.news-item:hover h3 a { color: var(--amber); transition: color 0.3s; }
.news-text p { font-size: 13.5px; color: var(--text-dim); }
.news-item .arrow { margin-left: auto; color: var(--text-dim); }

/* ==========================================================
   07 Careers
   ========================================================== */
.careers { background: var(--bg-2); }
.job-list { list-style: none; margin-top: 40px; border-top: 1px solid var(--hairline); }
.job {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 24px 4px;
  border-bottom: 1px solid var(--hairline);
  font-size: 16.5px;
  letter-spacing: 0.06em;
}
.job-note { font-size: 12.5px; letter-spacing: 0.15em; color: var(--text-dim); }
.careers-note {
  margin-top: 44px;
  color: var(--text-dim);
  font-size: 15.5px;
  line-height: 2;
}
.careers-note .text-link { margin-top: 12px; }

/* ==========================================================
   08 Contact
   ========================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 44px;
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 2px;
  padding: 34px 30px;
}
.contact-card h3 {
  font-size: 13px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
}
.contact-card p { color: var(--text-dim); font-size: 14.5px; margin-bottom: 14px; }
.contact-card > a {
  display: block;
  font-size: 15px;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  transition: color 0.3s;
}
.contact-card > a:hover { color: var(--amber); }
.social-links { display: flex; gap: 18px; flex-wrap: wrap; }
.social-links a {
  font-size: 14px;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 2px;
  transition: color 0.3s, border-color 0.3s;
}
.social-links a:hover { color: var(--amber); border-color: var(--amber); }

/* ==========================================================
   Footer
   ========================================================== */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 56px 0 44px;
  background: var(--bg);
}
.footer-inner {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
}
.footer-name {
  font-family: "Noto Serif SC", serif;
  font-size: 17px;
  letter-spacing: 0.14em;
}
.footer-slogan {
  font-size: 12.5px;
  letter-spacing: 0.25em;
  color: var(--text-dim);
  margin-top: 6px;
}
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a {
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  transition: color 0.3s;
}
.footer-nav a:hover { color: var(--text); }
.footer-copy {
  font-size: 12.5px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  width: 100%;
  margin-top: 10px;
  opacity: 0.7;
}
