/* 首页(2026-10-22 改版):先看剧,再看字。只给首页用,叠在 style.css 上。
   字体只有三级:--t1 标题 / --t2 区块标题与价格 / --t3 其余所有文字。没有渐变、没有 emoji。 */
body.home {
  --t1: clamp(32px, 5vw, 48px);
  --t2: 22px;
  --t3: 15px;
  --max: 1040px;
  font-size: var(--t3);
}
.home .logo { font-size: var(--t2); }
.home .nav { display: flex; align-items: center; gap: 20px; }
.home .nav a { margin: 0; font-size: var(--t3); }
.home .lang-switch { margin: 0; }
.home .lang-switch button { font-size: var(--t3); padding: 6px 12px; }

/* 首屏:左手机框 + 右标题 / 按钮 / 一行剧照 */
.h-hero { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 48px; align-items: center; padding: 24px 0 56px; }
.h-phone { width: 100%; border: 8px solid #2C2626; border-radius: 36px; background: #000; overflow: hidden; }
.h-phone img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; }
.h-phone.sm { border-width: 6px; border-radius: 28px; }
.h-copy { min-width: 0; }
.h-copy h1 { font-size: var(--t1); line-height: 1.1; margin: 0 0 24px; letter-spacing: -0.02em; }
.home .stores { margin: 0 0 28px; }
.home .store { font-size: var(--t3); padding: 12px 18px; }
.home .badge { font-size: var(--t3); }
.home .store.disabled .badge { margin-left: 4px; }
.h-strip { list-style: none; margin: 0; padding: 4px 0 12px; display: flex; gap: 12px; overflow-x: auto;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: #4A4242 transparent; }
.h-strip:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }
.h-strip li { flex: 0 0 160px; scroll-snap-align: start; }
.h-strip img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; background: var(--ink-2); }

/* 区块 */
.h-sec { padding: 8px 0 56px; }
.h-sec h2 { font-size: var(--t2); margin: 0 0 16px; letter-spacing: -0.01em; }

/* 正在热播 3×3(手机 2 列):只有片名 + 集数角标 */
.h-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.h-grid a { display: flex; flex-direction: column; gap: 8px; color: var(--ivory); text-decoration: none; }
.home .wrap .h-grid li a, .home .wrap .h-grid li a:hover { text-decoration: none; }
.h-grid a:hover .h-title, .h-grid a:focus-visible .h-title { color: var(--ember); }
.h-cover { position: relative; display: block; border-radius: 12px; overflow: hidden; background: var(--ink-2); }
.h-cover img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 22%; }
.h-eps { position: absolute; top: 8px; right: 8px; padding: 2px 10px; border-radius: 999px; background: rgba(20, 18, 18, 0.82); color: var(--ivory); font-size: var(--t3); line-height: 1.5; }
.h-title { font-weight: 600; line-height: 1.3; }

/* 三张截图,各一句 */
.h-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.h-shot { margin: 0; text-align: center; }
.h-shot .h-phone { max-width: 240px; margin: 0 auto 16px; }
.h-shot figcaption { font-size: var(--t2); font-weight: 600; line-height: 1.3; }

/* 价格(保留,下移):字号并入三级 */
.home .plans { padding-top: 24px; }
.home .plans h2 { font-size: var(--t2); margin: 24px 0 8px; }
.home .plans h3 { font-size: var(--t3); margin: 24px 0 4px; font-weight: 700; }
.home .plans-sub, .home .plans-note, .home .plan-meta, .home .plan-alt, .home .plan-offer, .home .plan-tag { font-size: var(--t3); }
.home .plan-price { font-size: var(--t2); }
.home .foot { font-size: var(--t3); }

/* 语言切换:行内文案只显示当前语言(.en / .zh / .ms 的显隐规则在 style.css) */
html[data-lang="en"] .home .zh, html[data-lang="en"] .home .ms { display: none; }

@media (max-width: 860px) {
  .h-hero { grid-template-columns: 1fr; gap: 28px; justify-items: stretch; padding-top: 8px; }
  .h-hero .h-phone { max-width: 220px; margin: 0 auto; }
  .h-copy h1 { text-align: center; }
  .home .stores { justify-content: center; }
  .h-shots { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 720px) {
  .h-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 480px) {
  .home .top { flex-wrap: wrap; gap: 8px 12px; }
  .home .nav { gap: 12px; flex-wrap: wrap; }
  .h-strip li { flex-basis: 136px; }
}
