/* 首页 — 一屏布局：封面叠标题 + 引言 + 菜单 */

#screen-home {
  --home-gold: #d4af37;
  --home-gold-light: #f9e596;
  --home-cream: #f4ecd8;
  --home-title-font: 'Ma Shan Zheng', 'ZCOOL XiaoWei', var(--font-serif-cn);
  --home-hero-h: clamp(200px, 38dvh, 280px);
  display: grid;
  grid-template-rows: var(--home-hero-h) minmax(0, 1fr);
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  background: #0a0606;
}

/* ─── 封面 + 标题叠层 ─── */
#screen-home .home-hero {
  position: relative;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  background: #120a08;
}

#screen-home .home-hero__cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  filter: brightness(0.94) saturate(1.06) contrast(1.02);
}

#screen-home .home-hero__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 4, 4, 0.25) 0%, rgba(8, 4, 4, 0.08) 35%, rgba(8, 4, 4, 0.72) 72%, rgba(10, 6, 6, 0.98) 100%),
    radial-gradient(ellipse 80% 50% at 50% 30%, transparent 25%, rgba(0, 0, 0, 0.4) 100%);
}

#screen-home .home-header {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  text-align: center;
  padding: 0 12px 10px;
}

#screen-home .home-title-en {
  margin: 0 0 2px;
  font-family: 'Cormorant Garamond', var(--font-serif-en);
  font-size: clamp(0.62rem, 2.6vw, 0.75rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.38em;
  text-indent: 0.38em;
  text-transform: uppercase;
  color: rgba(249, 229, 150, 0.78);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
}

#screen-home .home-title {
  margin: 0;
  line-height: 1.05;
}

#screen-home .home-title__main {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.02em;
  font-family: var(--home-title-font);
  font-size: clamp(1.85rem, 8.8vw, 2.45rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  white-space: nowrap;
  background: linear-gradient(
    165deg,
    #fffef5 0%,
    #f9e596 35%,
    #d4af37 65%,
    #aa8b2e 88%,
    #f4ecd8 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 18px rgba(212, 175, 55, 0.35));
}

#screen-home .home-title__anna {
  letter-spacing: 0.1em;
}

#screen-home .home-title__mid {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.4em;
  font-weight: 600;
  font-style: italic;
  -webkit-text-fill-color: #f9e596;
  color: #f9e596;
  transform: translateY(-0.1em);
}

#screen-home .home-title__karenina {
  letter-spacing: 0.08em;
}

#screen-home .home-title-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}

#screen-home .home-title-ornament__line {
  flex: 1;
  max-width: 56px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(249, 229, 150, 0.75), transparent);
}

#screen-home .home-title-ornament__gem {
  font-size: 8px;
  color: var(--home-gold-light);
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
}

/* ─── 下半区：引言 + 菜单（占满剩余高度，不滚动） ─── */
#screen-home .home-content {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 6px 12px max(8px, env(safe-area-inset-bottom));
  overflow: hidden;
}

#screen-home .home-quote {
  flex-shrink: 0;
  margin: 0 0 8px;
  padding: 8px 12px;
  text-align: center;
  border-radius: 6px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  background: linear-gradient(165deg, rgba(30, 20, 14, 0.8) 0%, rgba(18, 10, 6, 0.9) 100%);
}

#screen-home .home-quote-line {
  margin: 0;
  font-family: var(--font-serif-cn);
  font-size: clamp(11px, 3.2vw, 12.5px);
  font-style: italic;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: rgba(244, 236, 216, 0.8);
}

#screen-home .home-quote-line::before {
  content: '「';
  color: rgba(212, 175, 55, 0.5);
  margin-right: 0.12em;
}

#screen-home .home-quote-line::after {
  content: '」';
  color: rgba(212, 175, 55, 0.5);
  margin-left: 0.12em;
}

#screen-home .home-menu-shell {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 7px;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.52);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(212, 175, 55, 0.16),
    0 8px 28px rgba(0, 0, 0, 0.45);
  background: rgba(6, 4, 3, 0.25);
}

#screen-home .home-menu {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-radius: 5px;
  overflow: hidden;
  isolation: isolate;
  background: #120a08;
}

#screen-home .home-menu-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

#screen-home .home-menu-bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.78) contrast(1.02);
}

#screen-home .home-menu-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      165deg,
      rgba(4, 3, 2, 0.28) 0%,
      rgba(4, 3, 2, 0.42) 55%,
      rgba(2, 2, 2, 0.52) 100%
    ),
    radial-gradient(
      ellipse 80% 60% at 14% 8%,
      rgba(212, 175, 55, 0.1) 0%,
      transparent 55%
    );
}

#screen-home .menu-card {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 0 10px 0 8px;
  border: none;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

#screen-home .menu-card + .menu-card {
  border-top: 1px solid rgba(212, 175, 55, 0.22);
}

#screen-home .menu-card:hover,
#screen-home .menu-card:focus-visible {
  background: rgba(212, 175, 55, 0.12);
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.18);
  outline: none;
}

#screen-home .menu-card:active {
  background: rgba(0, 0, 0, 0.22);
}

#screen-home .menu-portrait {
  position: relative;
  flex-shrink: 0;
  width: clamp(40px, 11vw, 48px);
  height: clamp(40px, 11vw, 48px);
}

#screen-home .menu-portrait__ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(212, 175, 55, 0.7);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  background: #1a1008;
}

#screen-home .menu-portrait__ring img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

#screen-home .menu-portrait__badge {
  position: absolute;
  left: 50%;
  bottom: -2px;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #f9e596, #aa8b2e);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #2b2118;
}

#screen-home .menu-portrait__badge svg {
  width: 10px;
  height: 10px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#screen-home .menu-card__text {
  flex: 1;
  min-width: 0;
  padding-right: 4px;
}

#screen-home .menu-card__title {
  font-family: var(--font-serif-cn);
  font-size: clamp(13px, 3.6vw, 14.5px);
  font-weight: 700;
  color: var(--home-cream);
  line-height: 1.25;
  letter-spacing: 0.03em;
  margin: 0;
}

#screen-home .menu-card__sub {
  font-family: var(--font-serif-cn);
  font-size: clamp(10px, 2.8vw, 10.5px);
  color: rgba(212, 180, 131, 0.68);
  margin: 2px 0 0;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-shadow:
    1px 1px 2px rgba(20, 20, 20, 0.85),
    0 1px 3px rgba(10, 10, 10, 0.65),
    1px 2px 4px rgba(0, 0, 0, 0.45);
}

#screen-home .menu-card__arrow {
  flex-shrink: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(18px, 5vw, 20px);
  font-weight: 600;
  color: rgba(212, 175, 55, 0.6);
  line-height: 1;
}

#screen-home .menu-card:hover .menu-card__arrow,
#screen-home .menu-card:focus-visible .menu-card__arrow {
  color: var(--home-gold-light);
}

@media (max-height: 700px) {
  #screen-home {
    --home-hero-h: clamp(175px, 34dvh, 230px);
  }

  #screen-home .home-title__main {
    font-size: clamp(1.65rem, 8vw, 2rem);
  }

  #screen-home .home-quote {
    margin-bottom: 6px;
    padding: 6px 10px;
  }

  #screen-home .home-menu-shell {
    padding: 6px;
  }
}

@media (max-height: 620px) {
  #screen-home {
    --home-hero-h: clamp(155px, 32dvh, 200px);
  }

  #screen-home .home-title-ornament {
    margin-top: 4px;
  }

  #screen-home .menu-portrait {
    width: 36px;
    height: 36px;
  }
}
