/* Chinese editorial layer for Fleeting Dreams Studio */

.zh-site {
  --zh-ink: #173c3b;
  --zh-ink-deep: #102f34;
  --zh-paper: #fffaf0;
  --zh-paper-deep: #f2e8d4;
  --zh-cinnabar: #b54936;
  --zh-jade: #447867;
  --zh-gold: #b58a3b;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #f8f1e5;
}

.zh-site h1,
.zh-site h2,
.zh-site h3,
.zh-site h4,
.zh-site .brand,
.zh-site .col-title {
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 9px 14px;
  color: #fff;
  background: var(--zh-ink-deep);
  border-radius: 6px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.zh-site .site-header {
  background: rgba(255, 250, 240, 0.9);
  border-bottom-color: rgba(181, 138, 59, 0.22);
}

.zh-site .brand {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.zh-site .brand-text {
  display: grid;
  gap: 1px;
  line-height: 1;
}

.zh-site .brand small {
  color: var(--color-muted);
  font-family: "Inter", sans-serif;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.zh-home-hero {
  position: relative;
  overflow: hidden;
  min-height: 700px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 15% 14%, rgba(222, 146, 151, 0.2), transparent 30%),
    radial-gradient(circle at 82% 20%, rgba(65, 120, 103, 0.2), transparent 32%),
    linear-gradient(145deg, #fffaf0 0%, #f4ead7 100%);
}

.zh-home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.25;
  background-image: radial-gradient(rgba(104, 83, 51, 0.18) 0.6px, transparent 0.6px);
  background-size: 8px 8px;
  pointer-events: none;
}

.zh-home-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 44px;
  align-items: center;
  padding: 70px 0 78px;
}

.zh-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--zh-cinnabar);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.zh-kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.zh-home-hero h1,
.zh-detail-hero h1 {
  font-size: clamp(3rem, 6vw, 5.7rem);
  letter-spacing: -0.045em;
}

.zh-home-hero h1 span {
  display: block;
  color: var(--zh-jade);
}

.zh-home-hero h1 {
  font-size: clamp(2.4rem, 3.8vw, 3rem);
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.zh-home-lede {
  max-width: 600px;
  margin: 26px 0 30px;
  color: #645d54;
  font-size: 1.12rem;
}

.zh-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.zh-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  color: #fffaf0;
  background: var(--zh-ink);
  border: 1px solid var(--zh-ink);
  border-radius: 999px;
  font-weight: 700;
}

.zh-button:hover,
.zh-button:focus-visible {
  color: #fff;
  background: var(--zh-cinnabar);
  border-color: var(--zh-cinnabar);
  transform: translateY(-2px);
}

.zh-button-secondary {
  color: var(--zh-ink);
  background: transparent;
  border-color: rgba(23, 60, 59, 0.34);
}

.zh-button-secondary:hover,
.zh-button-secondary:focus-visible {
  color: var(--zh-ink);
  background: rgba(255, 250, 240, 0.76);
  border-color: var(--zh-ink);
}

.worlds-stage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.world-card {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: var(--zh-paper);
  border: 1px solid rgba(118, 91, 50, 0.16);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(44, 40, 34, 0.1);
}

.world-art {
  display: block;
  aspect-ratio: 2 / 3;
  border: 0;
}

.world-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.world-art:focus-visible {
  outline: 3px solid var(--zh-ink);
  outline-offset: -5px;
}

.world-caption {
  padding: 16px 18px 18px;
}

.world-genre {
  display: block;
  margin-bottom: 3px;
  color: #70665c;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.world-caption a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 0;
  color: var(--zh-ink);
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.4;
}

.world-caption a span {
  color: var(--zh-jade);
  font-family: sans-serif;
  font-size: 1.1rem;
}

.world-caption a:hover,
.world-caption a:focus-visible {
  color: var(--zh-cinnabar);
}

.domestic-flower-preview {
  margin: 0;
  text-align: center;
}

.domestic-flower-preview img {
  display: block;
  width: min(100%, 280px);
  height: auto;
  margin: 0 auto;
  border: 1px solid rgba(111, 138, 99, 0.24);
  border-radius: 4px;
  box-shadow: 0 18px 40px rgba(29, 45, 42, 0.12);
}

.domestic-flower-preview figcaption {
  margin-top: 14px;
  color: var(--color-muted);
}

.domestic-flower-channels {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.domestic-flower-channels .wechat-code {
  flex-shrink: 0;
}

.domestic-flower-channels p {
  margin: 0;
}

.zh-section-intro {
  display: grid;
  grid-template-columns: minmax(220px, 0.62fr) minmax(0, 1.38fr);
  gap: 52px;
  align-items: end;
  margin-bottom: 42px;
}

.zh-section-intro p {
  max-width: 680px;
  margin: 0;
  color: var(--color-muted);
  font-size: 1.05rem;
}

.zh-games {
  background: #fffaf0;
}

.game-stories {
  display: grid;
  gap: 26px;
}

.game-story {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
  gap: 54px;
  align-items: center;
  padding: 58px;
  border: 1px solid rgba(111, 138, 99, 0.24);
  border-radius: 26px;
  background: linear-gradient(135deg, #eef4e6, #fff9ed 60%);
}

.game-story-shanhai {
  color: #f7edda;
  background:
    radial-gradient(circle at 86% 10%, rgba(190, 58, 43, 0.24), transparent 28%),
    linear-gradient(135deg, #102f34, #183f42);
  border-color: rgba(201, 162, 75, 0.3);
}

.game-story-copy {
  position: relative;
  z-index: 1;
}

.game-story-copy h3 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.game-story-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.game-story-heading h3 {
  margin: 0;
}

.game-story-heading img {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.game-story-copy p {
  color: var(--color-muted);
  font-size: 1.03rem;
}

.game-story-shanhai h3,
.game-story-shanhai p,
.game-story-shanhai .game-facts dt,
.game-story-shanhai .game-facts dd {
  color: #f7edda;
}

.game-story-shanhai p,
.game-story-shanhai .game-facts dt {
  opacity: 0.76;
}

.game-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
  margin: 26px 0 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(111, 138, 99, 0.24);
}

.game-facts div {
  min-width: 0;
}

.game-facts dt {
  color: var(--color-muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.game-facts dd {
  margin: 5px 0 0;
  color: var(--zh-ink);
  font-weight: 700;
}

.game-story-visual {
  position: relative;
  min-width: 0;
}

.game-story-visual > img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 56px rgba(29, 45, 42, 0.2);
}

.zh-studio {
  position: relative;
  overflow: hidden;
  background: #f3e8d5;
  border-top: 1px solid rgba(181, 138, 59, 0.2);
}

.zh-studio-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 70px;
}

.zh-studio-grid p {
  color: #625b52;
  font-size: 1.08rem;
}

.zh-contact-line {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(181, 138, 59, 0.28);
}

/* Chinese game details */

.zh-detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 660px;
  display: flex;
  align-items: center;
  background: var(--zh-paper);
}

.zh-detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 250, 240, 0.98) 0%, rgba(255, 250, 240, 0.92) 45%, rgba(255, 250, 240, 0.55) 100%),
    var(--detail-background, none) center / cover;
}

.zh-petal-hero {
  --detail-background: url(img/season_spring.jpg);
}

.zh-shanhai-hero {
  color: #f6ead4;
  background: var(--zh-ink-deep);
}

.zh-shanhai-hero::before {
  background:
    linear-gradient(90deg, rgba(11, 38, 42, 0.98) 0%, rgba(11, 38, 42, 0.9) 46%, rgba(11, 38, 42, 0.26) 100%),
    url(img/zhenshanhai-hero.jpg) 72% center / cover;
}

.zh-detail-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.72fr);
  gap: 64px;
  align-items: center;
  padding: 78px 0;
}

.zh-detail-copy {
  max-width: 690px;
}

.zh-detail-copy h1 {
  margin-bottom: 20px;
}

.zh-detail-copy .hero-lede {
  margin-bottom: 30px;
}

.zh-shanhai-hero h1,
.zh-shanhai-hero .hero-lede {
  color: #f6ead4;
}

.zh-shanhai-hero .hero-lede {
  opacity: 0.82;
}

.zh-shanhai-hero .zh-button-secondary {
  color: #f6ead4;
  border-color: rgba(246, 234, 212, 0.5);
}

.zh-shanhai-hero .zh-button-secondary:hover,
.zh-shanhai-hero .zh-button-secondary:focus-visible {
  color: #fff;
  background: rgba(246, 234, 212, 0.12);
  border-color: #f6ead4;
}

.detail-mark {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 22px;
}

.detail-mark img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border: 4px solid rgba(255, 250, 240, 0.8);
  border-radius: 19px;
  box-shadow: var(--shadow-soft);
}

.detail-mark span {
  color: var(--zh-gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.detail-hero-visual {
  justify-self: end;
  width: min(100%, 340px);
}

.detail-hero-visual img {
  width: 100%;
  display: block;
  border: 8px solid rgba(255, 250, 240, 0.86);
  border-radius: 30px;
  box-shadow: 0 30px 72px rgba(16, 47, 52, 0.3);
  transform: rotate(2deg);
}

.zh-shanhai-hero .detail-hero-visual {
  width: min(100%, 440px);
}

.zh-shanhai-hero .detail-hero-visual img {
  height: 550px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 70% center;
  border-color: rgba(242, 232, 212, 0.35);
  transform: rotate(0);
}

.feature-flow {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 64px;
  align-items: start;
}

.feature-flow-list {
  counter-reset: features;
  display: grid;
}

.feature-flow-item {
  counter-increment: features;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--color-line);
}

.feature-flow-item::before {
  content: "0" counter(features);
  color: var(--zh-cinnabar);
  font-family: Georgia, serif;
  font-size: 0.9rem;
  font-weight: 700;
}

.feature-flow-item h3 {
  margin-bottom: 8px;
}

.feature-flow-item p {
  margin: 0;
  color: var(--color-muted);
}

.zh-gallery {
  background: #fff9ee;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.zh-screen-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.zh-screen-grid figure {
  min-width: 0;
  margin: 0;
}

.zh-screen-grid img {
  width: 100%;
  aspect-ratio: 9 / 16;
  display: block;
  object-fit: cover;
  object-position: center top;
  border: 6px solid #fffdf7;
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(50, 47, 42, 0.13);
}

.zh-screen-grid figcaption {
  margin-top: 10px;
  color: var(--color-muted);
  font-size: 0.86rem;
  text-align: center;
}

.channel-section {
  background: #f3e9d7;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.channel-card {
  min-height: 230px;
  padding: 26px;
  background: rgba(255, 250, 240, 0.82);
  border: 1px solid rgba(181, 138, 59, 0.28);
  border-radius: 18px;
}

.channel-card h3 {
  margin: 8px 0 12px;
}

.channel-card p {
  color: var(--color-muted);
}

.channel-label {
  color: var(--zh-cinnabar);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.channel-card .wechat-code {
  margin-top: 14px;
}

.channel-card .official-store-badge {
  margin-top: 12px;
}

.channel-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-weight: 700;
}

.channel-pending {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--color-muted);
  font-weight: 700;
}

.zh-legal-note {
  padding: 34px 0;
  background: #fffaf0;
  border-top: 1px solid var(--color-line);
}

.zh-legal-note p {
  margin: 0;
  color: var(--color-muted);
}

.zh-site .site-footer {
  background: var(--zh-ink-deep);
}

@media (max-width: 940px) {
  .zh-site .header-inner {
    min-height: 70px;
    flex-direction: row;
    align-items: center;
    padding: 0;
  }

  .zh-site .nav {
    width: auto;
    margin-left: auto;
    overflow: visible;
  }

  .zh-site .nav > a:not(.nav-mobile-primary) {
    display: none;
  }

  .zh-home-grid,
  .game-story,
  .zh-detail-grid,
  .feature-flow,
  .zh-studio-grid {
    grid-template-columns: 1fr;
  }

  .zh-home-grid {
    gap: 34px;
  }

  .worlds-stage {
    width: min(100%, 600px);
    justify-self: center;
  }

  .game-story {
    padding: 44px;
  }

  .game-story-visual {
    order: -1;
  }

  .zh-detail-grid {
    gap: 36px;
  }

  .detail-hero-visual {
    justify-self: start;
    width: min(76%, 320px);
  }

  .zh-shanhai-hero .detail-hero-visual {
    width: min(100%, 540px);
  }

  .zh-screen-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .zh-site .brand {
    font-size: 1.18rem;
  }

  .zh-site .brand small {
    display: none;
  }

  .zh-site .nav {
    gap: 9px;
    font-size: 0.86rem;
  }

  .zh-site .language-switch {
    gap: 5px;
    margin: 0;
    padding: 1px 8px;
  }

  .zh-home-hero {
    min-height: auto;
  }

  .zh-home-grid {
    padding: 62px 0 70px;
  }

  .zh-home-hero h1,
  .zh-detail-hero h1 {
    font-size: clamp(2.55rem, 13vw, 4rem);
  }

  .zh-home-hero h1 {
    font-size: clamp(2rem, 7.5vw, 2.75rem);
  }

  .zh-home-lede {
    font-size: 1rem;
  }

  .worlds-stage {
    gap: 12px;
  }

  .world-card {
    border-radius: 10px;
  }

  .world-caption {
    padding: 12px;
  }

  .world-genre {
    font-size: 0.65rem;
    letter-spacing: 0;
  }

  .world-caption a {
    font-size: 1.2rem;
  }

  .zh-section-intro {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .game-story {
    gap: 30px;
    padding: 28px 22px;
    border-radius: 18px;
  }

  .game-story-visual,
  .game-story-visual > img {
    min-height: 0;
    height: auto;
  }

  .game-facts {
    grid-template-columns: 1fr;
  }

  .zh-detail-hero {
    min-height: auto;
  }

  .zh-detail-hero::before {
    background:
      linear-gradient(180deg, rgba(255, 250, 240, 0.93), rgba(255, 250, 240, 0.99)),
      var(--detail-background, none) center / cover;
  }

  .zh-shanhai-hero::before {
    background:
      linear-gradient(180deg, rgba(11, 38, 42, 0.86), rgba(11, 38, 42, 0.99)),
      url(img/zhenshanhai-hero.jpg) 68% center / cover;
  }

  .zh-detail-grid {
    padding: 58px 0 62px;
  }

  .detail-hero-visual,
  .zh-shanhai-hero .detail-hero-visual {
    width: 100%;
  }

  .detail-hero-visual img {
    height: 520px;
    max-height: 520px;
    object-fit: cover;
    object-position: center top;
    border-radius: 22px;
    transform: none;
  }

  .zh-shanhai-hero .detail-hero-visual img {
    height: 460px;
  }

  .feature-flow {
    gap: 28px;
  }

  .zh-screen-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .channel-grid {
    grid-template-columns: 1fr;
  }
}
