/* 电脑与课堂投影：横向书廊，按可用屏幕高度分配空间。 */
@media (min-width: 1024px) {
  :root {
    --desktop-width: min(1680px, calc(100% - 96px));
    --desktop-gallery-height: clamp(330px, calc(100svh - 470px), 510px);
  }

  .site-header {
    width: min(1760px, calc(100% - 96px));
    max-width: none;
    height: 88px;
    padding: 0;
  }
  .page { width: var(--desktop-width); max-width: none; padding: 0; }
  .main-nav a { min-width: 124px; font-size: 15px; }
  .reader-label { font-size: 14px; }
  .header-actions { gap: 15px; }
  .site-footer {
    width: min(1760px, calc(100% - 96px));
    max-width: none;
    padding: 14px 0 18px;
    font-size: 11px;
  }
  .footer-center, .site-footer .source-link { font-size: 11px; }

  /* 首页保留左右构图，入口栏跟随窗口高度。 */
  .home-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 430px;
    height: calc(100svh - 265px);
    max-height: 840px;
    gap: 36px;
  }
  .hero-copy { padding-bottom: 12px; }
  .hero-copy h1 { font-size: clamp(48px, 4.25vw, 82px); line-height: 1.5; }
  .hero-description { font-size: clamp(14px, 1vw, 18px); }
  .hero-copy .eyebrow { font-size: 11px; }
  .hero-buttons .button { font-size: 15px; min-height: 54px; padding-inline: 28px; }
  .hero-buttons .text-link { font-size: 14px; }
  .hero-footnote { font-size: 12px; }
  .home-art { height: 520px; margin-left: 0; transform: scale(1); transform-origin: center; }
  .home-paths { padding: 19px 10px; margin: 0 0 10px; }
  .home-paths h2 { font-size: 19px; }
  .home-paths p { font-size: 12px; }
  .home-paths .path-number { font-size: 33px; }
  .art-label { font-size: 15px; }
  .art-label small { font-size: 11px; }

  /* 推荐页用横向空间容纳书籍与选中信息，避免纵向堆叠。 */
  .recommend-page .section-heading { padding-top: 20px; margin-bottom: 14px; }
  .recommend-page .section-heading h1 { font-size: clamp(32px, 2.5vw, 48px); margin: 9px 0 6px; }
  .section-heading > p:not(.eyebrow) { font-size: 14px; }
  .recommend-page .eyebrow { font-size: 11px; }
  .revealed {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(235px, 17vw, 310px);
    column-gap: clamp(26px, 3vw, 56px);
    align-items: center;
  }
  .batch-line { grid-column: 1 / -1; font-size: 12px; gap: 12px; margin: 0 0 3px; }
  .batch-line .source-link { font-size: 12px; }
  .book-gallery {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    max-width: none;
    height: var(--desktop-gallery-height);
    margin: 0;
  }
  .gallery-card {
    height: calc(var(--desktop-gallery-height) - 38px);
    width: calc((var(--desktop-gallery-height) - 38px) * 2 / 3);
    left: calc(50% - (var(--desktop-gallery-height) - 38px) / 3);
    top: 17px;
  }
  .gallery-card .cover-title { font-size: clamp(25px, 2vw, 38px); }
  .gallery-card .cover-lettering { top: 24px; left: 23px; }
  .gallery-card .cover-kicker { font-size: 8px; letter-spacing: 2px; }
  .gallery-card .cover-subtitle { font-size: 9px; }
  .gallery-card .cover-imprint { font-size: 8px; }
  .gallery-arrow { width: 46px; height: 46px; }
  .gallery-arrow.previous { left: 0; }
  .gallery-arrow.next { right: 0; }
  .selected-summary {
    grid-column: 2;
    grid-row: 2;
    min-height: 0;
    padding: 24px 0 24px 28px;
    border-left: 1px solid rgba(63, 100, 120, .22);
    text-align: left;
  }
  .selected-summary h2 { font-size: clamp(25px, 1.9vw, 36px); letter-spacing: 1px; }
  .selected-meta { justify-content: flex-start; flex-wrap: wrap; font-size: 14px; gap: 12px; margin: 14px 0 23px; }
  .selected-meta .category-label { font-size: 12px; }
  .selected-meta > span:nth-child(2), .selected-meta > span:nth-child(3) { flex-basis: 100%; }
  .selected-summary .local-actions { flex-direction: column; align-items: flex-start; gap: 12px; }
  .selected-summary .local-action { font-size: 13px; padding: 8px 18px; min-width: 154px; justify-content: center; }
  .selected-summary .local-action svg { width: 16px; height: 16px; }
  .gallery-dots { grid-column: 1; grid-row: 3; margin: 0 0 4px; }
  .recommend-tools { grid-column: 1 / -1; font-size: 11px; margin: 4px 0 12px; }
  .recommend-tools .text-link { font-size: 12px; }
  .recommend-story { max-width: none; width: 100%; margin: 8px 0 0; padding: 19px 28px; }
  .story-intro h2 { font-size: 19px; }
  .story-intro p, .inline-link { font-size: 12px; }
  #feedback-story { max-width: 500px; }
  #feedback-story > summary { font-size: 13px; }
  .feedback-metrics span, .feedback-metrics small { font-size: 11px; }
  .feedback-details .data-caution { font-size: 12px; }
  .page-note { font-size: 11px; margin: 11px 0 8px; }
  .unrevealed { min-height: 0; padding: 10px 0 20px; }
  .sealed-books { height: clamp(285px, calc(100svh - 440px), 400px); margin-bottom: 10px; pointer-events: none; }
  .roll-button { min-width: 320px; min-height: 54px; font-size: 15px; }
  .roll-note { font-size: 12px; }

  /* 风向榜充分使用横向空间；扩大主要文字与点击区域。 */
  .trends-heading { padding-top: 24px; margin-bottom: 24px; }
  .trends-heading h1 { font-size: clamp(35px, 2.7vw, 50px); }
  .trends-heading > div > p:not(.eyebrow) { font-size: 14px; }
  .trends-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: clamp(30px, 3.5vw, 68px); }
  .trend-tabs { padding-inline: 34px; gap: 36px; }
  .trend-tabs button { font-size: 15px; padding-block: 20px 18px; }
  .trend-content { padding: 24px 34px; }
  .trends-panel { min-height: 0; }
  .panel-heading h2 { font-size: 28px; }
  .mini-label { font-size: 10px; }
  .pill { font-size: 11px; }
  .hot-list-heading { font-size: 12px; }
  .hot-row-button { padding: 15px 12px; }
  .hot-index { font-size: 26px; }
  .hot-name { font-size: 23px; min-width: 100px; }
  .hot-value { font-size: 28px; }
  .hot-value small { font-size: 12px; }
  .hot-description, .category-books button { font-size: 12px; }
  .trend-content > .data-caution, .trend-content > .source-link { font-size: 12px; }
  .panel-intro { font-size: 13px; }
  .stock-book h3 { font-size: 24px; }
  .stock-book p, .stock-amount span { font-size: 12px; }
  .stock-amount small { font-size: 10px; }
  .above-book h3 { font-size: 17px; }
  .above-book p, .above-book .above-count { font-size: 12px; }
  .above-cover { width: 48px; height: 70px; }
  .expand-button { font-size: 13px; }
  .trends-aside h2 { font-size: 32px; }
  .trends-aside > p:not(.eyebrow) { font-size: 13px; }
  .trends-aside > .text-link, .trends-aside > .source-link { font-size: 13px; }
  .snapshot-tag, .trends-aside .aside-small { font-size: 11px !important; }

  .book-dialog { width: min(900px, calc(100% - 60px)); }
  .detail-copy h2 { font-size: 33px; }
  .detail-caption { font-size: 14px; }
  .detail-data dt, .detail-local-note, .detail-copy .data-caution, .detail-copy .source-link { font-size: 12px; }
  .detail-copy .local-action { font-size: 13px; }
  .notification-dialog { width: 470px; }
  .notification-item p { font-size: 13px; }
  .notification-dialog > .data-caution, .snapshot-banner, .drawer-greeting { font-size: 12px; }
}

@media (min-width: 1600px) {
  .home-art { transform: scale(1.25); }
  .home-hero { gap: 70px; }
  .home-paths { padding-block: 25px; }
  .home-paths h2 { font-size: 22px; }
  .home-paths p { font-size: 14px; }
  .sealed-books { transform: scale(1.18); transform-origin: center top; }
}

/* 浏览器有工具栏的16:9笔记本也保留完整的核心操作区。 */
@media (min-width: 1024px) and (max-height: 900px) {
  .site-header { height: 72px; }
  .home-hero { height: calc(100svh - 210px); }
  .home-art { height: 470px; transform: scale(.92); }
  .hero-copy h1 { font-size: clamp(44px, 4vw, 65px); margin: 14px 0; }
  .hero-buttons { margin-block: 22px 18px; }
  .home-paths { padding-block: 15px; }
  .home-paths h2 { font-size: 17px; }
  .home-paths p { font-size: 11px; }
  .recommend-page .section-heading { padding-top: 7px; margin-bottom: 8px; }
  .recommend-page .section-heading h1 { font-size: 30px; line-height: 1.4; }
  .recommend-page .section-heading > p:not(.eyebrow) { font-size: 12px; }
  .batch-line, .batch-line .source-link { font-size: 11px; }
  .recommend-story { padding: 13px 23px; }
  .story-intro h2 { font-size: 17px; }
  .story-intro p, .inline-link { font-size: 11px; }
  .recommend-tools { margin-bottom: 7px; }
  .page-note { font-size: 10px; margin: 8px 0; }
  .trends-heading { padding-top: 12px; margin-bottom: 16px; }
  .trends-heading h1 { font-size: 34px; margin-block: 4px; }
  .trends-heading > div > p:not(.eyebrow) { font-size: 12px; }
  .trend-tabs button { padding-block: 14px; font-size: 14px; }
  .trend-content { padding: 18px 27px; }
  .panel-heading { margin-bottom: 12px; }
  .panel-heading h2 { font-size: 24px; }
  .hot-row-button { padding-block: 8px; }
  .hot-name { font-size: 20px; }
  .hot-value { font-size: 25px; }
  .trend-content > .data-caution { margin: 12px 0 8px; font-size: 11px; }
  .trend-content > .source-link { font-size: 11px; }
  .trends-aside { padding-top: 18px; }
  .trends-aside h2 { font-size: 28px; margin-bottom: 14px; }
  .aside-divider { margin-block: 24px 18px; }
  .site-footer { padding-block: 9px 13px; font-size: 10px; }
  .footer-center, .site-footer .source-link { font-size: 10px; }
}
