/*!
 * 万能墙（lhuiye.cn） — SPDX-License-Identifier: LicenseRef-Proprietary
 * Copyright (c) 2026 辉夜 <18759765356@163.com> 保留所有权利
 * 第三方组件保留各自许可（见 THIRD_PARTY_NOTICES.md）
 */
/* ==========================================================================
   【大屏补正】≥1440px（笔记本外接屏 / 2K / 4K / 横屏大平板）
   --------------------------------------------------------------------------
   大屏的问题不是"放不下"，而是"内容被拉得太宽、行太长、页面显得空"。
   本层做三件事：① 限制正文阅读宽度；② 让卡片网格多排一列；
   ③ 放大媒体与英雄区，让大屏看起来是"为它设计的"而不是"被拉伸的"。
   ========================================================================== */

@media (min-width: 1440px) {

    /* ---------- 正文阅读宽度：超过 ~78 个字符会明显降低可读性 ---------- */
    body.page-detail main, body.page-profile main { max-width: 1180px; margin-left: auto; margin-right: auto; }
    body.page-detail .post-card .post-content, body.page-detail .cmt-body { max-width: 900px; }

    /* ---------- 多列卡片：大屏多排一列，减少纵向滚动 ---------- */
    body.page-contest .ct-grid { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
    body.page-food .food-grid, body.page-listings .listing-grid,
    body.page-events .event-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
    body.page-music .music-library-list { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
    body.page-about .contest-showcase-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }

    /* ---------- 首页信息流：卡片内边距与媒体九宫格随宽度放大 ---------- */
    body.page-index #postsContainer .post-card { padding: 20px 22px; }
    body.page-index .pc-media[data-count="1"] img,
    body.page-index .pc-media[data-count="2"] img { max-height: 460px; }

    /* ---------- 英雄区/统计卡：大屏显示更多信息而非更大的空白 ---------- */
    body.page-hero .hero-banner { max-height: 420px; }
    body.page-about .container .stat-card, body.page-about .container .uptime-card { padding: 22px 24px; }

    /* ---------- 讨论区：大屏允许更宽松的行距与更大的头像 ---------- */
    .cmt { padding: 15px 14px; }
    .cmt-avatar { flex-basis: 42px; width: 42px; height: 42px; }
    .cmt-body { font-size: 15px; line-height: 1.85; }
}

/* 超宽屏（≥1800）：再限一次正文宽度，避免出现"一行 200 字符" */
@media (min-width: 1800px) {
    body.page-detail .post-card .post-content, body.page-detail .cmt-body { max-width: 980px; }
    body .container { margin-left: auto; margin-right: auto; }
}
