/* India Ally Yono Game — 版式与 yono1 区分：杂志首页、顶栏双行、应用「单页」居中、页脚双栏 */
:root {
  --content-max: 820px;
  --catalog-max: 700px;
  --bg-page: #070b14;
  --bg-elevated: #101827;
  --bg-card: #141d2f;
  --bg-muted: #1c2739;
  --accent: #38bdf8;
  --accent-hot: #f472b6;
  --accent-warm: #fbbf24;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --border: #2d3b52;
  --radius: 16px;
  --header-offset: 108px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.hub-india {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg-page);
  background-image:
    radial-gradient(ellipse 900px 400px at 20% -5%, rgba(56, 189, 248, 0.12), transparent 55%),
    radial-gradient(ellipse 700px 350px at 95% 20%, rgba(244, 114, 182, 0.08), transparent 50%);
}

body.hub-india a {
  color: var(--accent);
}

body.hub-india a:hover {
  color: #7dd3fc;
}

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

/* ——— 顶栏：品牌行 + 桌面横向导航 ——— */
.hub-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(7, 11, 20, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.hub-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px;
  max-width: 100%;
}

.hub-header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
}

.hub-header__logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  flex-shrink: 0;
  object-fit: cover;
}

.hub-header__name {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hub-header__burger.nav-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-muted);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
}

.hub-header__burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

body.nav-open .hub-header__burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.nav-open .hub-header__burger span:nth-child(2) {
  opacity: 0;
}
body.nav-open .hub-header__burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hub-header__nav.site-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 0 18px 14px;
}

body.nav-open .hub-header__nav.site-nav {
  display: block;
}

.hub-header__nav-inner.nav-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 6px 0;
}

.hub-header__nav-inner a {
  display: block;
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
}

.hub-header__nav-inner a:last-child {
  border-bottom: none;
}

.hub-header__nav-inner a:hover,
.hub-header__nav-inner a:focus-visible {
  color: var(--accent);
  background: rgba(56, 189, 248, 0.06);
}

.hub-header__nav-inner a.active {
  color: var(--accent-hot);
  font-weight: 700;
}

@media (min-width: 880px) {
  .hub-header__burger {
    display: none;
  }

  .hub-header__nav.site-nav {
    display: block !important;
    position: static;
    border: none;
    box-shadow: none;
    padding: 0 18px 12px;
    background: transparent;
  }

  body.nav-open .hub-header__nav.site-nav {
    display: block !important;
  }

  .hub-header__nav-inner.nav-drawer-links {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    padding: 0;
    border-top: 1px solid var(--border);
    margin: 0 -18px;
    padding: 10px 18px 4px;
  }

  .hub-header__nav-inner a {
    border: none;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    background: var(--bg-muted);
  }

  .hub-header__nav-inner a:hover {
    background: rgba(56, 189, 248, 0.15);
  }

  .hub-header__nav-inner a.active {
    background: rgba(244, 114, 182, 0.2);
    color: #fbcfe8;
  }
}

/* ——— 主区域 ——— */
.main-shell {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: calc(var(--header-offset) + 8px) 18px 48px;
}

.main-shell--home {
  --header-offset: 118px;
}

.main-shell--detail {
  max-width: 560px;
}

.main-shell--sheet {
  max-width: 720px;
}

@media (min-width: 880px) {
  .main-shell--home {
    --header-offset: 132px;
  }
}

/* ——— 首页：杂志布局 ——— */
.layout-magazine {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.home-masthead {
  text-align: left;
  padding: 8px 4px 4px;
  border-left: 3px solid var(--accent-hot);
  padding-left: 18px;
}

.home-masthead__eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.home-masthead__title {
  margin: 0 0 12px;
  font-size: clamp(1.45rem, 4vw, 1.85rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
}

.home-masthead__lede {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 38rem;
}

.home-alert {
  padding: 16px 18px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(244, 114, 182, 0.12) 0%, var(--bg-card) 55%);
  border: 1px solid rgba(244, 114, 182, 0.35);
  border-left-width: 4px;
}

.home-alert__label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-hot);
}

.home-alert__text {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.home-feed {
  padding: 18px 16px 20px;
}

.home-feed__toolbar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 600px) {
  .home-feed__toolbar {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
  }
}

.home-feed__h {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 800;
}

.home-feed__hint {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.home-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-filter-tab {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-muted);
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
}

.home-filter-tab.is-active {
  background: linear-gradient(135deg, var(--accent) 0%, #0ea5e9 100%);
  color: #0c1220;
  border-color: transparent;
}

.catalog-feed {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: var(--catalog-max);
  margin: 0 auto;
}

.home-list-empty {
  margin-top: 16px;
  padding: 16px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  border: 1px dashed var(--border);
  border-radius: 12px;
}

/* ——— 首页卡片：竖条通栏 CTA ——— */
.catalog-tile {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.catalog-tile__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 14px 0;
  min-height: 0;
}

.catalog-tag {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
}

.catalog-tag--pick {
  background: rgba(56, 189, 248, 0.2);
  color: #7dd3fc;
}

.catalog-tag--new {
  background: rgba(244, 114, 182, 0.2);
  color: #f9a8d4;
}

.catalog-tile__core {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 14px 16px 16px;
}

.catalog-tile__icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.catalog-tile__copy {
  flex: 1;
  min-width: 0;
}

.catalog-tile__name {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
}

.catalog-tile__meta {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  font-size: 12px;
}

.catalog-tile__meta dt {
  margin: 0;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.catalog-tile__meta dd {
  margin: 2px 0 0;
  color: var(--accent-warm);
  font-weight: 600;
}

.catalog-tile__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 16px;
  margin: 0;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.15) 0%, rgba(244, 114, 182, 0.12) 100%);
  border-top: 1px solid var(--border);
  color: var(--text);
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  letter-spacing: 0.03em;
}

.catalog-tile__cta:hover,
.catalog-tile__cta:focus-visible {
  background: rgba(56, 189, 248, 0.25);
  color: #fff;
}

.catalog-tile__cta-arrow {
  font-size: 18px;
  opacity: 0.85;
}

/* ——— 通用卡片 / 文章页 ——— */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.page-prose {
  padding: 22px 20px;
}

.page-prose h1 {
  margin-top: 0;
  font-size: 26px;
}

.page-prose h2 {
  margin-top: 1.35em;
  font-size: 17px;
  color: var(--accent);
}

.sheet-page {
  border-top: 3px solid var(--accent);
}

.contact-block .label {
  font-weight: 600;
  color: var(--text-muted);
}

/* ——— 应用详情：居中 mast + 胶囊统计 ——— */
.app-sheet {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.app-sheet__mast {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 8px 8px 4px;
}

.app-sheet__icon {
  width: 100px;
  height: 100px;
  border-radius: 24px;
  border: 2px solid var(--border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.app-sheet__h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.15;
}

.app-sheet__sub {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  max-width: 22rem;
}

.app-sheet__blurb {
  padding: 16px 18px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
}

.app-sheet__blurb p {
  margin: 0;
}

.app-stat-pills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.app-stat-pills__item {
  flex: 1 1 auto;
  min-width: calc(50% - 8px);
  max-width: 100%;
  padding: 12px 14px;
  background: var(--bg-muted);
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 13px;
}

@media (min-width: 480px) {
  .app-stat-pills__item {
    min-width: calc(25% - 8px);
    max-width: none;
  }
}

.app-stat-pills__k {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.app-stat-pills__v {
  font-weight: 800;
  color: var(--text);
}

.app-sheet__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.chip {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.chip--gold {
  background: rgba(251, 191, 36, 0.15);
  border-color: rgba(251, 191, 36, 0.4);
  color: var(--accent-warm);
}

.btn-cta-primary {
  display: block;
  text-align: center;
  padding: 17px 20px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  color: #0c1220;
  background: linear-gradient(135deg, var(--accent-warm) 0%, #f59e0b 100%);
  box-shadow: 0 8px 28px rgba(251, 191, 36, 0.35);
}

.btn-cta-primary:hover,
.btn-cta-primary:focus-visible {
  filter: brightness(1.06);
}

.app-sheet__trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.app-sheet__trust img {
  border-radius: 50%;
}

/* ——— Q&A ——— */
.qa-acc {
  padding: 18px 16px 20px;
}

.qa-acc__heading {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 800;
}

.qa-acc__stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.qa-acc__item {
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-muted);
}

.faq-q.qa-acc__btn {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-family: inherit;
}

.faq-q.qa-acc__btn::after {
  content: "+";
  font-size: 18px;
  color: var(--accent-hot);
  flex-shrink: 0;
}

.faq-q.qa-acc__btn[aria-expanded="true"]::after {
  content: "−";
}

.faq-a.qa-acc__panel {
  padding: 0 16px 14px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.faq-a[hidden] {
  display: none !important;
}

/* ——— Related strip（原 more apps）——— */
.related-strip {
  margin-top: 8px;
  padding: 20px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.related-strip__head {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.related-strip__title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 800;
}

.related-strip__sub {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.related-strip__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.related-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  text-decoration: none;
  color: var(--text);
}

.related-card:hover,
.related-card:focus-visible {
  border-color: var(--accent);
  background: rgba(56, 189, 248, 0.08);
}

.related-card__icon-wrap {
  display: flex;
}

.related-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--border);
  object-fit: cover;
}

.related-card__label {
  font-size: 14px;
  font-weight: 700;
}

.related-card__go {
  color: var(--accent);
  font-size: 18px;
  font-weight: 700;
}

/* ——— 页脚 ——— */
.hub-footer {
  margin-top: 32px;
  padding: 28px 18px 40px;
  border-top: 1px solid var(--border);
  background: #050810;
}

.hub-footer__inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.hub-footer__cols {
  display: grid;
  gap: 22px;
}

@media (min-width: 640px) {
  .hub-footer__cols {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }
}

.hub-footer__notice h2 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hub-footer__notice p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.hub-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hub-footer__nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
}

.hub-footer__nav a:hover {
  color: var(--accent);
}

.hub-footer__tg {
  margin: 14px 0 0;
  font-size: 14px;
}

.hub-footer__copy {
  margin: 22px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}

body.nav-open {
  overflow: hidden;
}

@media (max-width: 879px) {
  body.nav-open .hub-header__nav.site-nav {
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }
}
