/* ============================================================
   无双工作室 · 门户首页样式
   基调：中性暗色，融合两作主题（宣纸米黄 / 黑金），不做偏袒
   ============================================================ */

:root {
  --bg-0: #121110;
  --bg-1: #191715;
  --bg-2: #211e1a;
  --bg-3: #2b2721;

  --line: rgba(217, 192, 138, .14);
  --line-strong: rgba(217, 192, 138, .34);

  --text-0: #F4EFE5;
  --text-1: #CFC7B6;
  --text-2: #9C9484;
  --text-3: #6E6759;

  /* 主色：中性描金（两作共享） */
  --gold: #D9C08A;
  --gold-2: #B8974F;
  --gold-soft: rgba(217, 192, 138, .12);
  --gold-glow: rgba(217, 192, 138, .34);

  /* 问询长生：宣纸青玉 */
  --ink-theme: #6FA698;
  --ink-theme-soft: rgba(111, 166, 152, .14);

  /* 王朝更替：黑金赤 */
  --gold-theme: #C9A45C;
  --gold-theme-soft: rgba(201, 164, 92, .14);

  --radius: 14px;
  --radius-l: 20px;
  --shadow: 0 22px 54px -22px rgba(0, 0, 0, .82);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --nav-h: 70px;

  --font-serif: "KaiTi", "STKaiti", "楷体", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  background: var(--bg-0);
  color: var(--text-1);
  font-family: var(--font-sans);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--gold); color: #1a1611; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--gold-2), var(--ink-theme));
  border-radius: 10px;
  border: 2px solid var(--bg-0);
}

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

/* ---------- 入场动画 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-delay="1"] { transition-delay: .1s; }
[data-delay="2"] { transition-delay: .2s; }
[data-delay="3"] { transition-delay: .3s; }
[data-delay="4"] { transition-delay: .4s; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .06em;
  transition: all .3s var(--ease);
  border: 1px solid transparent;
}
.btn__icon { width: 18px; height: 18px; flex: none; }
.btn--primary {
  background: linear-gradient(140deg, var(--gold), #EBD9AE 50%, var(--gold-2));
  color: #22190a;
  box-shadow: 0 8px 26px -10px var(--gold-glow);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -10px var(--gold-glow);
  filter: brightness(1.06);
}
.btn--lg { padding: 15px 34px; font-size: 16px; }

/* ============================================================
   导航
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(18, 17, 16, .86);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.nav__inner {
  height: 100%;
  width: min(1280px, 94vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__logo { display: flex; align-items: center; gap: 12px; }
.nav__logo-mark {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 8px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: #22190a;
  background: linear-gradient(140deg, var(--gold), var(--gold-2));
  box-shadow: 0 6px 20px -8px var(--gold-glow);
  flex: none;
}
.nav__logo-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--text-0);
  line-height: 1.15;
  letter-spacing: .12em;
}
.nav__logo-text em {
  font-style: normal;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: .13em;
  opacity: .8;
  margin-top: 1px;
}
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__link {
  font-size: 14.5px;
  color: var(--text-2);
  position: relative;
  padding: 4px 0;
  transition: color .25s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1.5px;
  background: linear-gradient(90deg, var(--gold), var(--ink-theme));
  transition: width .3s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--text-0); }
.nav__link:hover::after, .nav__link.is-active::after { width: 100%; }

/* ============================================================
   首屏
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 140px 0 100px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 68% 56% at 50% 38%, rgba(217, 192, 138, .1), transparent 68%),
    radial-gradient(ellipse 50% 50% at 18% 82%, rgba(111, 166, 152, .1), transparent 70%),
    radial-gradient(ellipse 50% 50% at 84% 78%, rgba(201, 164, 92, .1), transparent 70%);
  pointer-events: none;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: .62;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}
.hero__glow--a {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(111, 166, 152, .18), transparent 68%);
  top: -14%; left: -8%;
  animation: floatA 18s ease-in-out infinite;
}
.hero__glow--b {
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(201, 164, 92, .18), transparent 68%);
  bottom: -18%; right: -10%;
  animation: floatB 22s ease-in-out infinite;
}
@keyframes floatA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(52px, 44px) scale(1.12); }
}
@keyframes floatB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-60px, -38px) scale(1.1); }
}

.hero__inner { position: relative; z-index: 2; width: min(880px, 92vw); }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 18px;
  border-radius: 100px;
  border: 1px solid var(--line-strong);
  background: rgba(18, 17, 16, .5);
  backdrop-filter: blur(10px);
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--text-1);
  margin-bottom: 32px;
}
.hero__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(217, 192, 138, .5); }
  70% { box-shadow: 0 0 0 9px rgba(217, 192, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 192, 138, 0); }
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(48px, 9.5vw, 112px);
  font-weight: 700;
  letter-spacing: .14em;
  text-indent: .14em;
  line-height: 1.1;
  margin-bottom: 26px;
  background: linear-gradient(178deg, #FFF8E6 6%, var(--gold) 48%, var(--gold-2) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 30px rgba(217, 192, 138, .38));
}

.hero__slogan {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2.6vw, 28px);
  color: var(--text-0);
  letter-spacing: .22em;
  text-indent: .22em;
  margin-bottom: 20px;
}

.hero__desc {
  font-size: 15px;
  color: var(--text-2);
  line-height: 2.05;
  margin-bottom: 42px;
}

.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero__scroll {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  z-index: 2;
}
.hero__scroll-line {
  width: 1px; height: 44px;
  background: linear-gradient(180deg, transparent, var(--gold));
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  top: -44px; left: 0;
  width: 100%; height: 44px;
  background: linear-gradient(180deg, transparent, var(--ink-theme));
  animation: scrollDown 2.2s ease-in-out infinite;
}
@keyframes scrollDown {
  0% { top: -44px; }
  100% { top: 44px; }
}
.hero__scroll-text { font-size: 10px; letter-spacing: .34em; color: var(--text-3); }

/* ============================================================
   通用区块
   ============================================================ */
.section { padding: clamp(76px, 9.5vw, 124px) 0; position: relative; }

.sec-head { text-align: center; margin-bottom: clamp(42px, 6vw, 66px); }
.sec-head__tag {
  display: inline-block;
  font-size: 11.5px;
  letter-spacing: .4em;
  text-indent: .4em;
  color: var(--ink-theme);
  margin-bottom: 14px;
}
.sec-head__title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4.4vw, 46px);
  font-weight: 700;
  color: var(--text-0);
  letter-spacing: .12em;
  margin-bottom: 16px;
}
.sec-head__sub {
  font-size: 15px;
  color: var(--text-2);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.95;
}

/* ============================================================
   游戏作品
   ============================================================ */
.games { background: linear-gradient(180deg, var(--bg-0), var(--bg-1) 50%, var(--bg-0)); }

.games__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
  transition: transform .45s var(--ease), border-color .45s, box-shadow .45s;
}
.game-card:hover { transform: translateY(-8px); }

.game-card--ink:hover {
  border-color: rgba(111, 166, 152, .45);
  box-shadow: 0 30px 62px -30px rgba(111, 166, 152, .4);
}
.game-card--gold:hover {
  border-color: rgba(201, 164, 92, .45);
  box-shadow: 0 30px 62px -30px rgba(201, 164, 92, .4);
}

/* 整卡可点击，覆盖层铺满 */
.game-card__link { position: absolute; inset: 0; z-index: 5; }

.game-card__art {
  position: relative;
  height: 230px;
  overflow: hidden;
}
.game-card__art img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease);
}
.game-card:hover .game-card__art img { transform: scale(1.06); }
.game-card__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(33, 30, 26, .1) 40%, var(--bg-2) 100%);
}

.game-card__badge {
  position: absolute;
  top: 18px; left: 18px;
  z-index: 2;
  font-size: 12px;
  letter-spacing: .14em;
  padding: 6px 14px;
  border-radius: 100px;
  backdrop-filter: blur(8px);
}
.game-card--ink .game-card__badge {
  color: #A8DDD0;
  border: 1px solid rgba(111, 166, 152, .42);
  background: rgba(15, 26, 24, .6);
}
.game-card--gold .game-card__badge {
  color: var(--gold-theme);
  border: 1px solid rgba(201, 164, 92, .42);
  background: rgba(26, 20, 10, .6);
}

.game-card__body {
  padding: 26px 30px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.game-card__title {
  font-family: var(--font-serif);
  font-size: 27px;
  font-weight: 700;
  color: var(--text-0);
  letter-spacing: .16em;
  margin-bottom: 4px;
}
.game-card__en {
  font-size: 10.5px;
  letter-spacing: .3em;
  color: var(--text-3);
  margin-bottom: 16px;
}
.game-card__desc {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.95;
  margin-bottom: 22px;
}

.game-card__meta {
  margin-bottom: 20px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.game-card__meta li {
  display: flex;
  gap: 12px;
  font-size: 13.5px;
  line-height: 2.1;
}
.game-card__meta b {
  flex: none;
  width: 3.2em;
  font-weight: 500;
  color: var(--text-3);
}
.game-card__meta span { color: var(--text-1); }

.game-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 24px;
}
.game-card__tags span {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 4px;
  color: var(--text-2);
  background: rgba(244, 239, 229, .05);
  border: 1px solid var(--line);
}

.game-card__go {
  margin-top: auto;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .04em;
  transition: color .3s;
}
.game-card--ink .game-card__go { color: var(--ink-theme); }
.game-card--gold .game-card__go { color: var(--gold-theme); }
.game-card:hover .game-card__go { color: var(--gold); }

/* ============================================================
   关于我们
   ============================================================ */
.about { background: var(--bg-0); }

.about__text {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.about__lead {
  font-family: var(--font-serif);
  font-size: clamp(19px, 2.5vw, 25px);
  color: var(--text-0);
  line-height: 1.9;
  margin-bottom: 22px;
  letter-spacing: .04em;
}
.about__lead b { color: var(--gold); font-weight: 700; }
.about__text p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 2.05;
  margin-bottom: 16px;
}
.about__text p b { color: var(--text-0); font-weight: 600; }

.about__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 52px;
}
.stat {
  background: var(--bg-1);
  padding: 28px 20px;
  text-align: center;
}
.stat b {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .06em;
  margin-bottom: 4px;
}
.stat span { font-size: 12.5px; color: var(--text-3); letter-spacing: .1em; }

/* ============================================================
   联系我们
   ============================================================ */
.contact { background: linear-gradient(180deg, var(--bg-0), var(--bg-1) 55%, var(--bg-0)); }

.contact__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 34px 24px;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--line);
  text-align: center;
  transition: all .4s var(--ease);
  position: relative;
  overflow: hidden;
}
.contact-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--ink-theme));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}
.contact-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  background: var(--bg-3);
}
.contact-card:hover::after { transform: scaleX(1); }

.contact-card__icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 10px;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid rgba(217, 192, 138, .22);
}
.contact-card__icon svg { width: 23px; height: 23px; }
.contact-card h3 {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-0);
  letter-spacing: .08em;
}
.contact-card p { font-size: 13.5px; color: var(--text-2); }

.contact__note {
  margin-top: 28px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-3);
}

/* ============================================================
   页脚
   ============================================================ */
.footer {
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  padding: 52px 0 38px;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.footer__brand { display: flex; align-items: center; gap: 14px; text-align: left; }
.footer__brand b {
  display: block;
  font-family: var(--font-serif);
  color: var(--text-0);
  font-size: 19px;
  letter-spacing: .12em;
}
.footer__brand p { font-size: 13px; color: var(--text-3); }
.footer__links { display: flex; gap: 26px; flex-wrap: wrap; justify-content: center; }
.footer__links a { font-size: 13.5px; color: var(--text-2); transition: color .3s; }
.footer__links a:hover { color: var(--gold); }
.footer__copy { font-size: 12.5px; color: var(--text-3); }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 900px) {
  .games__grid { grid-template-columns: 1fr; }
  .about__stats { grid-template-columns: repeat(2, 1fr); }
  .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav__links { gap: 18px; }
  .nav__logo-text em { display: none; }
  .hero__desc br { display: none; }
  .game-card__art { height: 190px; }
  .game-card__body { padding: 24px 22px 28px; }
}

@media (max-width: 480px) {
  .nav__link { font-size: 13.5px; }
  .about__stats { grid-template-columns: 1fr; }
  .btn--lg { padding: 13px 26px; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
