/* Wave-3 layouts (2026-10-22): landing ≈ 恰恰落地页 · community ≈ mama短评. Enqueued only on those two. */

/* —— landing: copy left | 16:9 picture right with a play ring, arrows; then download cards; about; rich footer —— */
body.layout-landing .xh-hero { background: var(--xh-elev); border: 1px solid var(--xh-line); min-height: 0; }
body.layout-landing .xh-hero-slide.is-active { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; padding: 40px 72px 56px 48px; }
body.layout-landing .xh-hero-bg { position: relative; order: 2; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; min-width: 0; }
body.layout-landing .xh-hero-shade { display: none; }
body.layout-landing .xh-hero-copy { min-height: 0; max-width: none; padding: 0; justify-content: center; }
body.layout-landing .xh-eyebrow { color: var(--xh-amber); font-weight: 700; font-size: 12px; }
body.layout-landing .xh-hero h1 { font-size: clamp(32px, 4vw, 52px); }
body.layout-landing .xh-hero .xh-cta { border-radius: 999px; padding: 12px 28px; background: var(--xh-amber); color: var(--xh-on-accent, #fff); }
body.layout-landing .xh-hero .xh-cta--ghost { background: transparent; color: var(--xh-text); border-color: var(--xh-line); }
.xh-hero-playring {
  position: absolute; z-index: 3; left: calc(50% + 16px); top: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%;
  background: rgba(0,0,0,.55); border: 2px solid rgba(255,255,255,.85); color: #fff; font-size: 18px; padding-left: 4px;
}
body.layout-landing .xh-hero-slide.is-active .xh-hero-playring { left: auto; right: calc(72px + 52.4% / 2 - 28px); } /* centre of the picture column */
.xh-hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 24px; line-height: 1; cursor: pointer;
}
.xh-hero-arrow:hover { background: var(--xh-amber); }
.xh-hero-arrow--l { left: 12px; } .xh-hero-arrow--r { right: 12px; }
body.layout-landing .xh-hero-dots { left: auto; right: 72px; bottom: 22px; }
/* download section */
.xh-land { margin: 36px 0 40px; }
.xh-land-head { text-align: center; margin-bottom: 26px; }
.xh-land-head .xh-kicker { display: block; color: var(--xh-amber); font-size: 12px; font-weight: 700; letter-spacing: .08em; margin-bottom: 10px; }
.xh-land-head h2 { margin: 0 0 10px; font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; letter-spacing: -.02em; }
.xh-land-head p { margin: 0; color: var(--xh-muted); font-size: 15px; }
.xh-land-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1040px; margin: 0 auto; }
.xh-land-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 24px; border-radius: 16px;
  background: var(--xh-elev); border: 1px solid var(--xh-line); color: inherit; min-height: 220px;
}
.xh-land-card.is-primary { border-color: var(--xh-amber); box-shadow: 0 0 0 1px var(--xh-amber) inset; }
.xh-land-card h3 { margin: 0; font-size: 20px; font-weight: 700; }
.xh-land-card p { margin: 0 0 auto; color: var(--xh-muted); font-size: 14px; }
.xh-land-card .xh-cta { align-self: stretch; justify-content: center; margin-top: 18px; border-radius: 10px; }
.xh-land-card.is-primary .xh-cta { background: var(--xh-amber); color: var(--xh-on-accent, #fff); }
.xh-land-card .xh-cta--ghost { color: var(--xh-text); border-color: var(--xh-line); }
.xh-land-qr { align-self: center; margin-top: 10px; padding: 8px; border-radius: 10px; background: #fff; }
.xh-land-qr canvas { display: block; width: 168px; height: 168px; }
.xh-land-trust { list-style: none; display: flex; justify-content: center; gap: 28px; margin: 26px 0 10px; padding: 0; font-size: 14px; color: var(--xh-muted); }
.xh-land-trust li::first-letter { color: #2eb872; }
.xh-land-web { text-align: center; margin: 0; font-size: 14px; color: var(--xh-muted); }
.xh-land-web a { color: var(--xh-amber); text-decoration: underline; text-underline-offset: 3px; }
/* about */
/* footer */
.xh-footer--landing { padding: 28px 0 32px; }
.xh-footer--landing .xh-brand { font-size: 17px; margin-bottom: 10px; }
.xh-footer-tag { margin: 0 0 14px; font-size: 14px; color: var(--xh-muted); }
.xh-footer-links { display: flex; gap: 20px; font-size: 13px; margin-bottom: 18px; }
.xh-footer-links a { color: var(--xh-muted); }
.xh-footer-links a:hover { color: var(--xh-text); }
.xh-footer-copy { margin: 0; padding-top: 16px; border-top: 1px solid var(--xh-line); font-size: 12px; color: var(--xh-muted); }
@media (max-width: 900px) {
  body.layout-landing .xh-hero-slide.is-active { grid-template-columns: 1fr; gap: 16px; padding: 18px 18px 44px; }
  body.layout-landing .xh-hero-bg { order: 0; }
  body.layout-landing .xh-hero-slide.is-active .xh-hero-playring { left: 50%; right: auto; top: calc(18px + (100vw - 36px) * 9 / 32); }
  body.layout-landing .xh-hero-dots { left: 18px; right: auto; bottom: 16px; }
  .xh-hero-arrow { display: none; }
  .xh-land-cards { grid-template-columns: 1fr; }
  .xh-land-card { min-height: 0; }
  .xh-land-trust { flex-direction: column; gap: 8px; align-items: center; }
}

/* —— community: light surface regardless of skin (accent still from the skin) —— */
body.layout-community {
  --xh-bg: #f5f6f8; --xh-elev: #ffffff; --xh-card: #ffffff; --xh-text: #1f2328; --xh-muted: #6b7280; --xh-line: #e6e8ec;
  background: var(--xh-bg); color: var(--xh-text);
}
body.layout-community .xh-wrap { max-width: none; padding: 0; }
.xh-cm-top {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 24px;
  padding: 10px 24px; background: var(--xh-elev); border-bottom: 1px solid var(--xh-line);
}
.xh-cm-top .xh-brand { font-size: 18px; }
.xh-cm-search { flex: 0 1 560px; max-width: 560px; background: var(--xh-bg); border: 1px solid var(--xh-line); border-radius: 999px; padding: 6px 6px 6px 14px; margin: 0 auto; }
.xh-cm-search input { color: var(--xh-text); }
.xh-cm-search input::placeholder { color: var(--xh-muted); }
.xh-cm-search button { border: 0; background: transparent; color: var(--xh-amber); font-weight: 600; font-size: 13px; padding: 4px 10px; cursor: pointer; }
.xh-cm-top .xh-acts-login { color: var(--xh-text); }
.xh-cm-body { display: grid; grid-template-columns: 180px minmax(0, 1fr) 280px; gap: 24px; max-width: 1240px; margin: 0 auto; padding: 20px 24px 32px; }
.xh-cm-rail { grid-column: 1; grid-row: 1; position: sticky; top: 70px; align-self: start; display: flex; flex-direction: column; gap: 4px; }
.xh-cm-body > .xh-main { grid-column: 2; grid-row: 1; min-width: 0; } /* the side column is printed before the feed in the markup */
.xh-cm-rail a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--xh-text); }
.xh-cm-rail a:hover { background: #eceef2; }
.xh-cm-rail a[aria-current="page"] { background: color-mix(in srgb, var(--xh-amber) 12%, #fff); color: var(--xh-amber); }
.xh-cm-rail .ap-i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.xh-cm-rail .ap-i .f { fill: currentColor; fill-opacity: .15; }
.xh-cm-side { grid-column: 3; grid-row: 1; position: sticky; top: 70px; align-self: start; display: flex; flex-direction: column; gap: 16px; }
.xh-cm-card { background: var(--xh-elev); border: 1px solid var(--xh-line); border-radius: 14px; padding: 18px; }
.xh-cm-card h3 { margin: 0 0 10px; font-size: 15px; font-weight: 700; }
.xh-cm-brandcard { text-align: center; }
.xh-cm-brandcard .xh-brand { justify-content: center; font-size: 18px; }
.xh-cm-brandcard p { margin: 8px 0 14px; font-size: 13px; color: var(--xh-muted); }
.xh-cm-cta { display: flex; justify-content: center; background: var(--xh-amber); color: var(--xh-on-accent, #fff); border-radius: 10px; }
.xh-cm-hot { list-style: none; margin: 0; padding: 0; }
.xh-cm-hot li { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 13px; }
.xh-cm-hot .n { width: 18px; font-weight: 700; color: var(--xh-muted); font-variant-numeric: tabular-nums; }
.xh-cm-hot .n.is-hot { color: var(--xh-amber); }
.xh-cm-hot a { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--xh-text); }
.xh-cm-hot small { color: var(--xh-muted); font-size: 11px; }
.xh-cm-news { list-style: none; margin: 0; padding: 0; }
.xh-cm-news li { padding: 6px 0; font-size: 13px; border-top: 1px solid var(--xh-line); }
.xh-cm-news li:first-child { border-top: 0; }
.xh-cm-news a { color: var(--xh-text); }
.xh-cm-tabs { display: flex; gap: 4px; padding: 4px; margin: 0 0 12px; background: var(--xh-elev); border: 1px solid var(--xh-line); border-radius: 10px; width: max-content; }
.xh-cm-tabs a { padding: 6px 28px; border-radius: 7px; font-size: 14px; color: var(--xh-muted); }
.xh-cm-tabs a[aria-current="page"] { background: color-mix(in srgb, var(--xh-amber) 12%, #fff); color: var(--xh-amber); font-weight: 600; }
.xh-cm-feed { background: var(--xh-elev); border: 1px solid var(--xh-line); border-radius: 14px; overflow: hidden; }
.xh-cm-post { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 20px; padding: 18px 20px; border-top: 1px solid var(--xh-line); }
.xh-cm-post:first-child { border-top: 0; }
.xh-cm-post-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.xh-cm-author { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.xh-cm-avatar { width: 20px; height: 20px; border-radius: 50%; overflow: hidden; background: var(--xh-amber); display: inline-flex; }
.xh-cm-avatar img { width: 100%; height: 100%; object-fit: cover; margin: 0; }
.xh-cm-author em { font-style: normal; font-size: 11px; color: var(--xh-amber); }
.xh-cm-post h3 { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.35; }
.xh-cm-post h3 a { color: var(--xh-text); }
.xh-cm-post h3 a:hover { color: var(--xh-amber); }
.xh-cm-post p { margin: 0; font-size: 14px; line-height: 1.65; color: #4b5563; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.xh-cm-meta { display: flex; gap: 14px; align-items: center; margin-top: auto; font-size: 12px; color: var(--xh-muted); }
.xh-cm-stats { margin-left: auto; display: flex; gap: 12px; }
.xh-cm-stats b { font-weight: 400; }
.xh-cm-thumb { display: block; width: 150px; aspect-ratio: 3/2; border-radius: 10px; overflow: hidden; background: #e9ebef; }
.xh-cm-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
body.layout-community .xh-all { margin: 18px 0 0; }
.xh-cm-more { color: var(--xh-text); border-color: var(--xh-line); background: var(--xh-elev); }
body.layout-community .xh-ad { background: var(--xh-elev); border: 1px solid var(--xh-line); }
body.layout-community .xh-ad .lab { background: #eceef2; color: var(--xh-muted); }
body.layout-community .xh-footer { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
body.layout-community .xh-qr { display: none; }
@media (max-width: 1100px) { .xh-cm-body { grid-template-columns: 64px minmax(0, 1fr); } .xh-cm-side { display: none; } .xh-cm-rail a span { display: none; } .xh-cm-rail a { justify-content: center; padding: 12px 0; } }
@media (max-width: 900px) {
  .xh-cm-top { flex-wrap: wrap; gap: 10px; padding: 10px 16px; }
  .xh-cm-search { order: 3; flex: 1 1 100%; max-width: none; }
  .xh-cm-body { display: block; padding: 12px 16px 24px; }
  .xh-cm-rail { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; margin-bottom: 12px; }
  .xh-cm-rail a { flex-shrink: 0; padding: 8px 12px; }
  .xh-cm-rail a span { display: inline; }
  .xh-cm-tabs { width: auto; }
  .xh-cm-tabs a { flex: 1; text-align: center; padding: 6px 0; }
  .xh-cm-post { grid-template-columns: minmax(0, 1fr) 96px; gap: 12px; padding: 14px; }
  .xh-cm-thumb { width: 96px; aspect-ratio: 1; }
  .xh-cm-post h3 { font-size: 16px; }
}
