/* ============================================================
   湘江牌局 · 长沙麻将
   中式暗调 / 牌面视觉 / 宋体为主
   ============================================================ */

:root {
  --ink: #0a0908;
  --ink-2: #14110e;
  --ink-3: #1e1a16;
  --paper: #ece3d2;
  --paper-dim: #b9ad97;
  --lacquer: #8c1c13;
  --lacquer-bright: #c0392b;
  --gold: #c9a24a;
  --gold-dim: #8a6f33;
  --jade: #2f6b4f;
  --tile: #f2e9d8;
  --tile-edge: #cdbfa4;
  --line: rgba(201, 162, 74, 0.22);
  --serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 纸张颗粒 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a { color: inherit; }

/* ---------------- 导航 ---------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(10, 9, 8, 0.92), rgba(10, 9, 8, 0));
  backdrop-filter: blur(6px);
}

.nav-inner {
  width: min(1180px, 92vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  color: var(--gold);
  flex: none;
}

.brand-text {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 1.14rem;
  letter-spacing: 0.08em;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text em {
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.34em;
  color: var(--paper-dim);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
}

.nav-links a {
  text-decoration: none;
  color: var(--paper-dim);
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.28s ease;
}

.nav-links a:hover { color: var(--paper); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  color: var(--gold) !important;
  border: 1px solid var(--gold-dim);
  padding: 0.44rem 1.1rem !important;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}

.nav-cta:hover {
  background: var(--gold);
  color: var(--ink) !important;
}

.nav-cta::after { display: none; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 8rem 0 5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("images/hero-street.jpg");
  background-size: cover;
  background-position: center 40%;
  transform: scale(1.06);
  animation: heroDrift 26s ease-in-out infinite alternate;
}

@keyframes heroDrift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to   { transform: scale(1.13) translate3d(-1.5%, -1%, 0); }
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(10, 9, 8, 0.95) 0%, rgba(10, 9, 8, 0.82) 38%, rgba(10, 9, 8, 0.35) 72%, rgba(10, 9, 8, 0.55) 100%),
    radial-gradient(ellipse at 20% 60%, rgba(140, 28, 19, 0.28), transparent 62%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.42em;
  color: var(--gold);
  margin-bottom: 1.9rem;
  opacity: 0;
  animation: rise 0.9s 0.15s ease forwards;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(3.4rem, 10vw, 8.2rem);
  line-height: 0.98;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.7);
}

.hero-title .line {
  display: block;
  opacity: 0;
  animation: rise 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title .line:nth-child(1) { animation-delay: 0.3s; }
.hero-title .line:nth-child(2) {
  animation-delay: 0.46s;
  color: var(--gold);
}

.hero-lede {
  max-width: 34em;
  margin-top: 2rem;
  font-size: 1.02rem;
  color: #ded4c2;
  opacity: 0;
  animation: rise 1s 0.62s ease forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.4rem;
  opacity: 0;
  animation: rise 1s 0.78s ease forwards;
}

.btn {
  display: inline-block;
  padding: 0.86rem 2rem;
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  border-radius: 2px;
  transition: transform 0.18s ease, background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--lacquer);
  color: #fff4e6;
  font-weight: 700;
  box-shadow: 0 10px 30px -12px rgba(192, 57, 43, 0.9);
}

.btn-primary:hover {
  background: var(--lacquer-bright);
  transform: translateY(-2px);
}

.btn-ghost {
  border: 1px solid rgba(201, 162, 74, 0.5);
  color: var(--gold);
}

.btn-ghost:hover {
  border-color: var(--gold);
  background: rgba(201, 162, 74, 0.1);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.6rem;
  margin-top: 3.6rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  opacity: 0;
  animation: rise 1s 0.94s ease forwards;
}

.hero-stats dt {
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}

.hero-stats dd {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--paper-dim);
  margin-top: 0.5rem;
}

/* Hero 麻将牌装饰 */
.hero-tiles {
  position: absolute;
  right: 4vw;
  bottom: 8vh;
  z-index: 2;
  display: flex;
  gap: 0.7rem;
  opacity: 0;
  animation: rise 1.2s 1.05s ease forwards;
}

.tile {
  width: clamp(46px, 5vw, 66px);
  aspect-ratio: 0.72;
  background: linear-gradient(160deg, #f6eedd, #e3d7bd);
  border-radius: 6px;
  border: 1px solid var(--tile-edge);
  box-shadow:
    0 14px 26px -12px rgba(0, 0, 0, 0.9),
    inset 0 -3px 0 rgba(160, 145, 118, 0.45),
    inset 0 1px 0 #fffdf7;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(1.3rem, 1.7vw, 1.9rem);
  color: var(--jade);
  animation: floatTile 5.5s ease-in-out infinite;
}

.tile:nth-child(2) { animation-delay: 0.6s; color: var(--lacquer); }
.tile:nth-child(3) { animation-delay: 1.2s; color: var(--lacquer); }
.tile:nth-child(4) { animation-delay: 1.8s; }

@keyframes floatTile {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-9px) rotate(-1.2deg); }
}

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

/* ---------------- 通用 section ---------------- */
.section {
  padding: 7.5rem 0;
  position: relative;
}

.section-head {
  width: min(1180px, 92vw);
  margin: 0 auto 3.6rem;
}

.kicker {
  font-size: 0.74rem;
  letter-spacing: 0.44em;
  color: var(--gold);
  margin-bottom: 1.1rem;
}

.section h2 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(1.75rem, 3.6vw, 2.85rem);
  line-height: 1.28;
  letter-spacing: 0.01em;
  max-width: 22em;
}

.section-lede {
  margin-top: 1.3rem;
  max-width: 46em;
  color: #c8bda9;
  font-size: 0.98rem;
}

/* ---------------- 规则 ---------------- */
.rules {
  background:
    radial-gradient(ellipse at 12% 0%, rgba(140, 28, 19, 0.16), transparent 55%),
    var(--ink-2);
  border-top: 1px solid rgba(201, 162, 74, 0.12);
  border-bottom: 1px solid rgba(201, 162, 74, 0.12);
}

.rule-grid {
  width: min(1180px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: rgba(201, 162, 74, 0.16);
  border: 1px solid rgba(201, 162, 74, 0.16);
}

.rule-card {
  background: var(--ink-2);
  padding: 2.3rem 2rem 2.5rem;
  position: relative;
  transition: background 0.3s;
}

.rule-card:hover { background: #191510; }

.rule-no {
  font-family: var(--serif);
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  color: var(--gold-dim);
  display: block;
  margin-bottom: 1.5rem;
}

.rule-card h3 {
  font-family: var(--serif);
  font-size: 1.24rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: var(--paper);
}

.rule-card p {
  font-size: 0.92rem;
  color: #a99e8b;
  line-height: 1.85;
}

.rule-note {
  width: min(1180px, 92vw);
  margin: 2.4rem auto 0;
  display: flex;
  gap: 1.4rem;
  align-items: flex-start;
  padding: 1.5rem 1.8rem;
  border-left: 2px solid var(--lacquer);
  background: rgba(140, 28, 19, 0.09);
}

.note-label {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--lacquer-bright);
  white-space: nowrap;
  padding-top: 0.3rem;
}

.rule-note p {
  font-size: 0.9rem;
  color: #bdb2a0;
}

/* ---------------- 牌型 ---------------- */
.hands { background: var(--ink); }

.hand-list {
  width: min(1180px, 92vw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.hand-row {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  align-items: center;
  padding: 2.4rem 0;
  border-top: 1px solid rgba(201, 162, 74, 0.14);
}

.hand-row:last-child { border-bottom: 1px solid rgba(201, 162, 74, 0.14); }

.hand-visual {
  display: flex;
  gap: 5px;
  padding: 1rem;
  background: linear-gradient(150deg, #17130f, #0e0c0a);
  border: 1px solid rgba(201, 162, 74, 0.18);
  border-radius: 3px;
}

.mini-tile {
  flex: 1;
  aspect-ratio: 0.74;
  background: linear-gradient(160deg, #f6eedd, #e5dac2);
  border-radius: 3px;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 900;
  font-size: 0.98rem;
  color: var(--jade);
  box-shadow: inset 0 -2px 0 rgba(160, 145, 118, 0.4);
  transition: transform 0.25s ease;
}

.hand-row:hover .mini-tile { transform: translateY(-4px); }

.mini-tile:nth-child(2) { transition-delay: 0.03s; }
.mini-tile:nth-child(3) { transition-delay: 0.06s; }

.mini-tile.t-dot { color: var(--lacquer); }
.mini-tile.t-tiao { color: #1f4f8a; }
.mini-tile:last-child {
  background: transparent;
  border: 1px dashed rgba(201, 162, 74, 0.35);
  color: var(--gold-dim);
  box-shadow: none;
  font-size: 1.1rem;
}

.hand-text h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
}

.hand-text p {
  margin-top: 0.7rem;
  font-size: 0.94rem;
  color: #a99e8b;
  max-width: 40em;
}

.tag {
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  padding: 0.22rem 0.6rem;
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  border-radius: 1px;
  transform: translateY(-3px);
}

/* ---------------- 文化 ---------------- */
.culture {
  background:
    linear-gradient(to bottom, var(--ink-2), #100d0a);
  border-top: 1px solid rgba(201, 162, 74, 0.12);
}

.culture-inner {
  width: min(1180px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4.5rem;
  align-items: center;
}

.culture-text h2 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(1.75rem, 3.4vw, 2.7rem);
  line-height: 1.3;
  margin-bottom: 1.8rem;
}

.culture-text p {
  font-size: 0.97rem;
  color: #bdb2a0;
  margin-bottom: 1.2rem;
  max-width: 38em;
}

.culture-text strong { color: var(--gold); font-weight: 600; }

.culture-list {
  list-style: none;
  margin-top: 2.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.culture-list li {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}

.culture-list svg {
  width: 26px;
  height: 26px;
  color: var(--gold);
  flex: none;
  margin-top: 0.2rem;
}

.culture-list h4 {
  font-family: var(--serif);
  font-size: 1.04rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.culture-list p {
  font-size: 0.88rem;
  color: #948a78;
  margin: 0;
}

.culture-figure {
  position: relative;
}

.culture-figure img {
  border-radius: 3px;
  filter: saturate(0.85) contrast(1.05) brightness(0.92);
  box-shadow: 0 40px 70px -40px rgba(0, 0, 0, 0.95);
}

.culture-figure::before {
  content: "";
  position: absolute;
  inset: -14px -14px 14px 14px;
  border: 1px solid rgba(201, 162, 74, 0.28);
  border-radius: 3px;
  pointer-events: none;
}

.culture-figure figcaption {
  margin-top: 1.1rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--gold-dim);
  text-align: right;
}

/* ---------------- 入门 ---------------- */
.learn { background: var(--ink); }

.steps {
  width: min(1180px, 92vw);
  margin: 0 auto;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.6rem;
  counter-reset: s;
}

.steps li {
  padding-top: 1.8rem;
  border-top: 2px solid var(--lacquer);
  position: relative;
}

.step-no {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 900;
  color: rgba(201, 162, 74, 0.3);
  line-height: 1;
  display: block;
  margin-bottom: 1rem;
}

.steps h3 {
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.steps p {
  font-size: 0.9rem;
  color: #a99e8b;
}

/* ---------------- Join ---------------- */
.join {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(140, 28, 19, 0.35), transparent 62%),
    var(--ink-3);
  border-top: 1px solid rgba(201, 162, 74, 0.16);
  text-align: center;
  padding: 8rem 0;
}

.join-inner {
  width: min(760px, 92vw);
  margin: 0 auto;
}

.join h2 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  letter-spacing: 0.04em;
}

.join-lede {
  margin: 1.5rem auto 0;
  max-width: 34em;
  color: #c8bda9;
  font-size: 0.98rem;
}

.join-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.6rem;
}

.join-note {
  margin-top: 2rem;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  color: #7d7466;
}

/* ---------------- Footer ---------------- */
.footer {
  background: #070606;
  border-top: 1px solid rgba(201, 162, 74, 0.14);
  padding: 3rem 0;
}

.footer-inner {
  width: min(1180px, 92vw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem 3rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.footer-brand strong {
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.footer-brand span {
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  color: #6c6457;
}

.footer-note {
  font-size: 0.76rem;
  color: #6c6457;
  max-width: 42em;
  line-height: 1.9;
}

/* ---------------- 滚动揭示 ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-in { opacity: 1; transform: none; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 900px) {
  .nav-links { gap: 1.1rem; font-size: 0.82rem; }
  .nav-links a:not(.nav-cta):nth-child(4) { display: none; }

  .hero { padding-top: 7rem; min-height: 92svh; }
  .hero-tiles { bottom: 4vh; right: 5vw; opacity: 0.5; }
  .hero-stats { gap: 1.8rem; }

  .hand-row {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
  .hand-visual { max-width: 340px; }

  .culture-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .culture-figure::before { inset: -10px -10px 10px 10px; }
}

@media (max-width: 620px) {
  .nav-links { display: none; }
  .hero-title { font-size: clamp(3rem, 17vw, 4.4rem); }
  .hero-lede { font-size: 0.94rem; }
  .hero-tiles { display: none; }
  .section { padding: 4.6rem 0; }
  .rule-grid { grid-template-columns: 1fr; }
  .rule-note { flex-direction: column; gap: 0.6rem; }
  .steps { grid-template-columns: 1fr; }
  .btn { width: 100%; text-align: center; }
  .join-actions { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
