/* ============================================================
   移动端小屏排版层 —— 最后加载，只在窄屏生效
   目标：在小分辨率手机上压缩标题占屏、提高正文可读性、
   减少首屏空白，让一屏能看到更多内容。桌面端不受影响。
   ============================================================ */

/* ---------------- 一、手机常规尺寸（≤680px） ---------------- */
@media (max-width:680px){

  /* --- 1. 基础字号与行高 --- */
  html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
  body{font-size:15px;line-height:1.72}

  /* --- 2. 标题层级：整体降一档，禁止巨幅标题 --- */
  h1{font-size:25px!important;line-height:1.3!important;letter-spacing:0!important;font-weight:600}
  h2{font-size:20px!important;line-height:1.42!important;letter-spacing:0!important}
  h3{font-size:17px!important;line-height:1.45!important}
  h4,h5,h6{font-size:15px!important;line-height:1.5!important}

  /* 首页主标题 */
  .home-title{font-size:27px!important;line-height:1.24!important;margin:14px 0 16px}
  .home-title em{letter-spacing:.02em}
  /* AI 画廊 */
  .aig-hero h1{font-size:31px!important;line-height:1.1!important}
  .aig-detail-copy h1,.aig-empty h1{font-size:24px!important;line-height:1.32!important}
  /* 中国现当代 */
  .cnx-hero-title{font-size:26px!important;line-height:1.3!important}
  .cnx-profile-main h1,.cn-profile h1{font-size:26px!important;line-height:1.25!important}
  /* 当代作品墙 */
  .cw-hero h1{font-size:32px!important;line-height:1.1!important}
  /* 镇馆之宝 */
  .tr-title{font-size:28px!important;line-height:1.2!important}
  .tr-dintro h1{font-size:25px!important;line-height:1.3!important}
  /* 展讯 */
  .ex-title{font-size:26px!important;line-height:1.25!important}
  .ex-detail-copy h1{font-size:23px!important;line-height:1.35!important}
  /* AI 导览 / 搜索 / 流派 / 艺术家 / 时间线等通用大标题 */
  .ag-hero-copy h1{font-size:25px!important;line-height:1.35!important;letter-spacing:.01em}
  .sp-hero h1{font-size:24px!important;line-height:1.35!important}
  .d-h1,.page-head h1,.mv-hero h1,.at-hero .info h1,.es-hero h1,.special-hero h1,.hero h1,
  .tl-body h2,.dual-hero .d-h1,.cnx-head h2,.fai-hero h1,.fai-gallery-cta h2{
    font-size:24px!important;line-height:1.32!important;letter-spacing:0!important;
  }
  /* 章节小标题（列表页、卡片头、正文小标题统一收敛） */
  .sec-head h2,.home-sec-head h2,.d-sec-head h2,.home-line h3,.hi-col h3,
  .d-prose h2,.prose h2,.cn-body h2,.cnx-prose h2,.cnx-related-head h2,.cg-sec-head h2,
  .cg-text h2,.cg-outro h2,.tr-prose h2,.tr-plaque h2,.tr-body h2,.ex-pane h2,
  .ag-section-heading h2,.ag-continue-head h2,.ag-identity h2,.aig-meta h2,
  .sp-result-head h2,.sp-none h2,.sp-empty h2{font-size:19px!important;line-height:1.45!important}

  /* 首页每日版 / 大号装饰标题 */
  .daily-masthead h2{font-size:27px!important;line-height:1.15!important}
  .dl-copy h2{font-size:23px!important;line-height:1.3!important}

  /* --- 3. 导语、摘要、正文 --- */
  .hero p.lead,.home-lead,.aig-deck,.ag-hero-copy p,.sp-hero p,.cw-hero p,
  .ex-hero p,.tr-hero p,.cnx-hero p,.fai-hero p{font-size:14.5px!important;line-height:1.72!important}
  .prose,.d-prose,.cnx-prose,.tr-prose,.ex-body,.cg-text,.es-body,.ag-body{font-size:15px;line-height:1.8}
  .bigquote{font-size:15.5px!important;line-height:1.75;padding:14px 16px;margin:18px 0}
  .crit p{font-size:14px}
  .v-ana{font-size:13.5px;line-height:1.8}

  /* --- 4. 英雄区纵向留白压缩 --- */
  .hero,.special-hero{padding:26px 0 24px}
  .home-hero-grid{padding-top:26px!important;padding-bottom:26px!important;gap:24px!important}
  .aig-hero{padding:22px 0 20px!important}
  .ex-hero .wrap{padding-top:24px!important;padding-bottom:22px!important}
  .cn-hero .wrap{padding-top:26px!important;padding-bottom:24px!important}
  .d-hero .d-wrap,.tl-hero .d-wrap{padding-top:24px!important;padding-bottom:22px!important}
  .cg-hero .d-wrap{padding-top:24px!important;padding-bottom:22px!important}
  .es-hero{padding:24px 0 22px!important}
  .mv-hero{padding:18px 0 22px!important}
  .at-hero{padding:18px 0 24px!important;gap:18px!important}
  .ex-detail-hero{padding:22px 0 24px!important}
  .tr-dhero{padding-top:0}
  .sp-hero{padding:22px 0 20px!important}
  .cnx-hero{padding:0}
  .cw-hero{padding:24px 0 22px!important}
  .fai-hero{min-height:0!important;padding-top:24px!important;padding-bottom:22px!important}

  /* --- 5. 栏目纵向节奏 --- */
  .home-sec{padding:32px 0 28px!important}
  .home-sec-head{margin-bottom:16px!important;gap:8px!important}
  .list-wrap{padding:24px 0 40px}
  .aig-index{padding:20px 0 0}
  .aig-pager{padding:28px 0 32px;margin-top:28px}
  .tr-grid,.ex-grid,.artist-grid,.aig-grid,.cnx-artist-grid{gap:18px 14px!important}
  .sec-head{margin-bottom:16px}
  .d-sec-head{margin-bottom:14px}

  /* --- 6. 左右留白 --- */
  .wrap,.site-inner{padding-left:16px;padding-right:16px}
  .d-wrap,.aig-wrap,.tr-wrap,.cnx-wrap,.cw-wrap,.sp-wrap,.fai-wrap{padding-left:16px!important;padding-right:16px!important}

  /* --- 7. 数字/统计/元信息 --- */
  .stat b,.home-stats b{font-size:23px!important}
  .aig-hero-stats b{font-size:21px!important}
  .aig-hero-stats div{min-width:0;padding-left:10px}
  .stat span,.home-stats span{font-size:9.5px;letter-spacing:.1em}
  .v-title{font-size:19px}

  /* --- 8. 顶部导航更薄 --- */
  header.site .site-inner{padding-top:8px;padding-bottom:6px;gap:6px}
  .brand{font-size:16.5px!important}
  .brand-logo{width:28px;height:28px}
  .ai-open{font-size:11.5px;padding:6px 9px}
  .nav-toggle,.search-open{width:38px;height:38px}

  /* --- 9. 卡片内文字 --- */
  .cnx-card h3{font-size:18px!important;white-space:normal!important;text-overflow:clip!important;overflow:visible!important}
  .aig-meta h2{font-size:17px!important;line-height:1.4!important}
  .aig-artist{font-size:12px}
  .ex-card h3,.tr-card h3,.artist-card .name{line-height:1.4}

  /* --- 10. 图片区与首屏收益 --- */
  .at-hero .portrait{width:100%;max-width:220px}
  /* 艺术家详情：手机端先标题后封面，封面按可视高度收缩，避免整屏只剩一张图 */
  .d-hero .d-detail{display:flex;flex-direction:column;gap:14px}
  .d-hero .d-detail>.cover{order:2;max-width:100%}
  .d-hero .d-detail>.cover img{width:auto;max-width:100%;max-height:44vh;margin:0 auto;object-fit:contain}
  .aig-detail-visual{position:static}
  .aig-detail-grid{gap:22px}
  /* 与 16px 内容边距一致的出血条 */
  .cw-toolbar{margin-left:-16px;margin-right:-16px;padding-left:16px;padding-right:16px}
  /* 搜索框：缩小输入字号，避免占位提示被按钮切掉 */
  .sp-form{gap:8px;margin-top:20px}
  .sp-form input.sp-q{font-size:15px!important}
  .sp-form button{padding:9px 13px;font-size:12px}
  .sp-stats b{font-size:22px!important}
  .sp-main{padding-top:26px;padding-bottom:48px}
}

/* ---------------- 二、超小屏（≤380px，含 320/360） ---------------- */
@media (max-width:380px){
  body{font-size:14.5px;line-height:1.7}
  h1{font-size:23px!important}
  .home-title{font-size:24px!important;line-height:1.26!important}
  .aig-hero h1{font-size:27px!important}
  .cw-hero h1{font-size:28px!important}
  .tr-title{font-size:25px!important}
  .cnx-hero-title{font-size:23px!important}
  h2{font-size:18.5px!important}
  .home-lead,.hero p.lead,.aig-deck{font-size:14px!important}
  .wrap,.site-inner,.d-wrap,.aig-wrap,.tr-wrap,.cnx-wrap,.cw-wrap,.sp-wrap,.fai-wrap{padding-left:14px!important;padding-right:14px!important}
  .brand{font-size:15.5px!important}
  .brand small{display:none}
  .cw-toolbar{margin-left:-14px;margin-right:-14px;padding-left:14px;padding-right:14px}
}

/* ---------------- 三、横屏手机（高度很小） ---------------- */
@media (max-width:900px) and (max-height:480px){
  .hero,.home-hero-grid,.aig-hero,.sp-hero,.ex-hero .wrap,.cn-hero .wrap{padding-top:16px!important;padding-bottom:16px!important}
  .fai-hero{min-height:0!important}
}
