@charset "utf-8";
/* =============================================================================
 * 烟台高新区「信息公开」栏目页 · 移动端适配补丁
 * 目标页：https://www.ytgxq.gov.cn/col/col21661/index.html
 *
 * 基准视口：iPhone 18 Pro Max 440 × 956 CSS px / DPR 3（物理 1320 × 2868）
 *           同尺寸机型：iPhone 16 / 17 Pro Max；横屏为 956 × 440。
 * 兼容范围：320 / 360 / 375 / 390 / 393 / 402 / 412 / 420 / 430 / 440 px 主流机型，
 *          大屏手机横屏与小平板上探到 1024px（3 列栅格）。
 *          ≥420px 单独设「大屏手机档」：留白、字号、卡片尺寸随宽度放大，
 *          避免在 440px 上仍沿用 402px 的紧凑尺度。
 * 实测验证：440×956 / 402×874 / 360×780 / 956×440 四档无头渲染，
 *           document.scrollWidth == 视口宽，所有区块右边界 ≤ 视口 - 18px，
 *           溢出元素计数 0；440 档 --yt-page-x=18px、正文 17px、栅格 2 列，
 *           横屏 956 档 --yt-page-x=24px、正文 18px、栅格 3 / 4 列。
 *
 * 使用方式（务必放在所有原有样式之后，越靠后越好）：
 *   <meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
 *   <link rel="stylesheet" href=".../common.css">
 *   <link rel="stylesheet" href=".../index.css">
 *   <link rel="stylesheet" href="ytgxq-mobile.css">   <!-- 本文件放最后 -->
 *
 * 说明：
 *  1) 原站使用 1200px 固定宽 + flex 子项 min-width:auto，是手机端横向裁切的
 *     根因；本表逐层解除固定宽、统一栅格，并用 body 前缀提升选择器权重。
 *  2) 原站部分规则带 !important、图片带内联 style，故对应覆盖也需 !important。
 *  3) 站点带「关怀模式 / 适老化」(.newStyle)，本表字号全部走 CSS 变量，
 *     文末只需覆盖变量即可自动放大，不会破坏大字体模式。
 *  4) 纯 CSS 无法修复「hover 才能切换栏目」的交互，配套 ytgxq-mobile-patch.js
 *     （可选，约 30 行）把一级/二级 tab、五公开展开改为点击触发。
 * ========================================================================== */

/* -----------------------------------------------------------------------------
 * 0. 设计变量（字号集中管理，便于适老化 / 换肤）
 * -------------------------------------------------------------------------- */
:root {
  --yt-blue:        #115db2;
  --yt-blue-deep:   #0c417c;
  --yt-blue-soft:   #edf7ff;
  --yt-blue-tint:   #e3effc;
  --yt-text:        #1f2329;
  --yt-muted:       #6b7280;
  --yt-subtle:      #8a94a6;
  --yt-line:        #e6e9ef;
  --yt-bg:          #f4f6f9;
  --yt-card:        #ffffff;

  --yt-page-x:      16px;   /* 页面左右安全边距 */
  --yt-gap:         10px;   /* 栅格间距 */
  --yt-radius:      12px;
  --yt-radius-sm:   9px;
  --yt-tap:         44px;   /* Apple HIG 最小触控目标 */

  --yt-safe-top:    env(safe-area-inset-top, 0px);
  --yt-safe-bottom: env(safe-area-inset-bottom, 0px);
  --yt-safe-left:   env(safe-area-inset-left, 0px);
  --yt-safe-right:  env(safe-area-inset-right, 0px);

  --yt-font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
             "Helvetica Neue", "Microsoft YaHei", "微软雅黑", sans-serif;

  --yt-fs-xs:   clamp(11px, 3.0vw, 12px);
  --yt-fs-sm:   clamp(12px, 3.3vw, 13px);
  --yt-fs-tab:  clamp(13px, 3.6vw, 14px);
  --yt-fs-body: clamp(15px, 4.0vw, 16px);
  --yt-fs-md:   clamp(16px, 4.2vw, 17px);
  --yt-fs-lg:   clamp(17px, 4.5vw, 19px);
  --yt-fs-xl:   clamp(19px, 5.2vw, 22px);
}

/* 主断点：手机竖屏 + 大屏手机横屏（440 宽机型横屏为 956px）+ 小平板。
 * 上限取 1024px 而非 768px，正是为了让 Pro Max 横屏不落回原站 1200px 固定宽。 */
@media screen and (max-width: 1024px) {

/* -----------------------------------------------------------------------------
 * 1. 全局：解除横向溢出、建立安全区与统一排版
 * -------------------------------------------------------------------------- */
html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  width: 100% !important;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;                 /* body 原为 100vw，含滚动条时会溢出 */
  background: var(--yt-bg);
  color: var(--yt-text);
  font-family: var(--yt-font) !important;
  font-size: var(--yt-fs-body) !important;
  line-height: 1.6;
  padding-top: var(--yt-safe-top);
  padding-bottom: var(--yt-safe-bottom);
  padding-left: var(--yt-safe-left);
  padding-right: var(--yt-safe-right);
}

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

body img,
body video,
body iframe,
body table { max-width: 100%; }

body img { height: auto; }

body a,
body button,
body input,
body label {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

body a { display: inline-block; }

body :focus-visible {
  outline: 2px solid var(--yt-blue);
  outline-offset: 2px;
}

/* 主容器：原为 1200px，媒体查询里退化成 90%，这里改为固定安全边距 */
body .container {
  width: 100% !important;
  max-width: 100%;
  margin: 0 auto 20px !important;
  padding-left: 0;
  padding-right: 0;
}

body .oldStyle { max-width: 100%; overflow-x: clip; }

/* 各区块的左右边距写在各自的 margin 简写里（见下文），避免被 !important 覆盖 */

/* -----------------------------------------------------------------------------
 * 2. 顶部蓝底 header（由 2303161329254170.js 用 document.write 注入）
 *    问题：logo 图是 1200px 宽幅横条，h1 作为 flex 子项被撑开 → 站点名被裁切。
 * -------------------------------------------------------------------------- */
body header {
  height: auto !important;
  padding: 10px 0 14px;
  background: var(--yt-blue) !important;
  border-bottom: 1px solid var(--yt-blue-deep);
}

body header .wrapper {
  width: 100% !important;
  max-width: 100%;
  height: auto !important;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 var(--yt-page-x);
  position: relative;
  justify-content: center;
}

body header .wrapper h1 {
  flex: 1 1 100%;
  min-width: 0;                        /* 关键：解除 flex 子项 min-width:auto */
  width: 100%;
  margin: 0;
  text-align: center;
}

body header .wrapper h1 a { display: block; width: 100%; }

body header .wrapper h1 a img {
  display: block;
  width: 90% !important;
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain;
}

/* 汉堡按钮：保证 ≥44px 触控区 */
body header .wrapper .menu {
  display: block !important;
  position: absolute;
  top: 2px;
  right: calc(4px + var(--yt-safe-right));
  z-index: 30;
  width: var(--yt-tap);
  height: var(--yt-tap);
  padding: 7px 0 0 !important;
  text-align: center;
  cursor: pointer;
}

body header .wrapper .menu img {
  width: 28px !important;
  height: 28px !important;
}

/* 展开后的移动导航 */
body header .media-nav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 25;
  padding: 52px var(--yt-page-x) 18px;
  background: var(--yt-blue);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
}

body header .media-nav li {
  line-height: var(--yt-tap);
  font-size: var(--yt-fs-md);
  border-bottom: 1px solid rgba(255, 255, 255, .18);
}

body header .media-nav li a { color: #fff; }

body header .media-nav .xxx {
  top: 30px;
  right: calc(8px + var(--yt-safe-right));
  width: var(--yt-tap);
  height: var(--yt-tap);
  line-height: var(--yt-tap);
  font-size: 26px;
  text-align: center;
}

/* 搜索框 */
body header .search {
  width: 100% !important;
  margin: 4px 0 0 !important;
  padding: 4px 6px !important;
  border-radius: var(--yt-radius-sm);
}

body header .search form { width: 100%; }

body header .search .int01 {
  width: calc(100% - 52px) !important;
  height: var(--yt-tap);
  font-size: var(--yt-fs-md) !important;
  background: transparent;
}

body header .search .bt01 {
  width: 44px !important;
  height: 36px !important;
  padding: 0 !important;
  background-size: 22px 22px;
  flex: 0 0 44px;
}

/* 桌面版导航 / 右侧工具条在手机上由原站隐藏，保持隐藏避免二次布局 */
body header .header-right,
body nav { display: none !important; }

/* -----------------------------------------------------------------------------
 * 3. 栏目标题（领导之窗 / 政府信息公开）
 * -------------------------------------------------------------------------- */
body .topContent {
  display: block !important;
  margin: 0 var(--yt-page-x) 18px !important;
}

body .topContent .Leadership,
body .topContent .GovInfo {
  width: 100% !important;
  height: auto;
  margin: 14px 0 0 !important;
  padding: 14px;
  background: var(--yt-card);
  border-radius: var(--yt-radius);
  box-shadow: 0 2px 10px rgba(23, 43, 77, .05);
}

body .topContent .title { margin-bottom: 4px; }

body .topContent .title p {
  font-size: var(--yt-fs-lg) !important;
  color: var(--yt-text);
}

body .topContent .title a { font-size: var(--yt-fs-sm); color: var(--yt-subtle); }

body .topContent .title .berfoTip {
  width: 4px;
  height: 17px;
  margin-right: 8px;
  border-radius: 2px;
  box-shadow: 2px 2px 0 0 #cfe0f0;
}

/* -----------------------------------------------------------------------------
 * 4. 领导之窗：原 Aimg(154px) + leadInfo(390px) 并排 → 右侧整块被裁
 * -------------------------------------------------------------------------- */
body .Leadership .hand {
  flex-wrap: wrap;
  align-items: flex-start;            /* 避免头像被拉伸到与右侧按钮等高，产生底部空白 */
  gap: 12px;
  margin-top: 14px !important;
  justify-content: flex-start !important;
}

body .Leadership .hand .Aimg {
  display: block;
  flex: 0 0 104px;
  width: 104px !important;
  height: auto !important;
  line-height: 0;
  border: 4px solid var(--yt-blue-soft);
  border-radius: var(--yt-radius-sm);
  overflow: hidden;
}

body .Leadership .hand .Aimg img {
  width: 100% !important;
  height: auto !important;
  display: block;
}

body .Leadership .hand .leadInfo {
  flex: 1 1 calc(100% - 116px);
  min-width: 0;
  width: auto !important;
  margin: 0 !important;
}

body .Leadership .hand .leadInfo > div { margin-bottom: 8px; }

body .Leadership .hand .leadInfo .leadName {
  display: inline-block !important;
  width: auto !important;
  font-size: var(--yt-fs-xl) !important;
  text-align: left;
}

body .Leadership .hand .leadInfo .leadName::before { height: 8px; }

body .Leadership .hand .leadInfo span {
  display: block;
  margin-left: 0 !important;
  font-size: var(--yt-fs-sm) !important;
  color: var(--yt-muted);
  line-height: 1.5;
}

body .Leadership .hand .leadInfo .diviWork {
  width: 100% !important;
  height: var(--yt-tap) !important;
  margin: 8px 0 0 !important;         /* 覆盖第一项的内联 margin-top:25px */
  line-height: var(--yt-tap) !important;
  font-size: var(--yt-fs-tab) !important;
  border-radius: var(--yt-radius-sm);
}

body .Leadership .hand .leadInfo .diviWork img { margin-right: 10px !important; width: 22px; height: 22px; }

body .Leadership .deputy {
  width: 100%;
  height: auto !important;
  min-height: var(--yt-tap);
  margin-top: 12px !important;
  padding: 8px 12px;
  line-height: 1.9;
  font-size: var(--yt-fs-sm);
  border-radius: var(--yt-radius-sm);
}

body .Leadership .deputy a { margin: 0 14px 0 0; min-height: 32px; }

/* -----------------------------------------------------------------------------
 * 5. 政府信息公开宫格：改为 2 列等宽卡片，文字完整显示
 * -------------------------------------------------------------------------- */
body .GovInfo .infoLi {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--yt-gap);
  margin-top: 12px !important;
  justify-content: stretch !important;
}

body .GovInfo .infoLi li {
  width: 100% !important;
  height: auto !important;
  min-height: 112px;
  margin: 0 !important;
  background: #f8fbff;
  border: 1px solid var(--yt-line);
  border-radius: var(--yt-radius-sm);
  box-shadow: none;
}

body .GovInfo .infoLi li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  min-height: 112px;
  padding: 12px 8px;
  font-size: var(--yt-fs-sm) !important;
  line-height: 1.4;
  color: var(--yt-blue) !important;
  text-align: center;
}

body .GovInfo .infoLi li a img { width: 40px; height: 40px; }

body .GovInfo .infoLi li a p { font-size: inherit; }

/* -----------------------------------------------------------------------------
 * 6. 五公开彩色卡片：原背景图 220px 固定 + hover 绝对定位下拉，手机上会溢出
 *    这里改成纯 CSS 渐变卡片 + 流内展开面板
 * -------------------------------------------------------------------------- */
body .partII {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--yt-gap);
  margin: 18px var(--yt-page-x) !important;
}

body .partII .partII_con {
  display: block;
  width: 100% !important;
  height: auto !important;
  min-height: 96px;
  margin: 0 !important;
  padding: 12px;
  position: relative;
  border-radius: var(--yt-radius);
  background-image: none !important;
  background-color: var(--yt-blue);
  overflow: visible;
  cursor: pointer;
}

body .partII .partII_con:nth-of-type(1) { background: linear-gradient(135deg, #2b7de0, #115db2) !important; }
body .partII .partII_con:nth-of-type(2) { background: linear-gradient(135deg, #f5a23c, #e07b18) !important; }
body .partII .partII_con:nth-of-type(3) { background: linear-gradient(135deg, #8f79e0, #6a4fc4) !important; }
body .partII .partII_con:nth-of-type(4) { background: linear-gradient(135deg, #35a9d6, #147fa8) !important; }
body .partII .partII_con:nth-of-type(5) { background: linear-gradient(135deg, #43b87f, #1f9260) !important; }

body .partII .partII_con .title {
  width: 100%;
  margin: 0 !important;
  font-size: var(--yt-fs-lg) !important;
  text-align: left;
}

body .partII .partII_con .line { display: none; }

body .partII .partII_con .ksList {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  justify-content: flex-start !important;
  margin-top: 4px;
}

body .partII .partII_con .ksList a {
  font-size: var(--yt-fs-xs) !important;
  opacity: .88;
}

/* 展开 / 收起按钮做成明确的点击区 */
body .partII .partII_con .unfoldBut,
body .partII .partII_con .closeBut {
  width: auto;
  min-height: 28px;
  line-height: 28px;
  font-size: var(--yt-fs-sm);
  text-align: right !important;
}

body .partII .partII_con .closeBut { display: none !important; }

body .partII .partII_con .expandTheList {
  position: static !important;        /* 原为 bottom:-240px 绝对定位，会飞出屏幕 */
  display: none;
  width: 100% !important;
  height: auto !important;
  margin-top: 10px;
  padding: 6px 0;
  background: var(--yt-card) !important;
  border: 1px solid var(--yt-line);
  border-radius: var(--yt-radius-sm);
  box-shadow: 0 6px 16px rgba(23, 43, 77, .10);
  z-index: 20;
}

body .partII .partII_con .expandTheList li {
  width: 100%;
  height: auto;
  margin: 0 !important;
  padding: 0 !important;
}

body .partII .partII_con .expandTheList a {
  display: block;
  min-height: var(--yt-tap);
  padding: 10px 12px 10px 26px !important;
  font-size: var(--yt-fs-tab) !important;
  color: var(--yt-text);
  line-height: 1.5;
  border-bottom: 1px solid var(--yt-line);
}

body .partII .partII_con .expandTheList li:last-child a { border-bottom: 0; }

body .partII .partII_con .expandTheList a::before { top: 19px; left: 12px; }

/* 桌面 hover / 键盘 focus / 触屏 .is-open 三态兼容 */
body .partII .partII_con:hover .expandTheList,
body .partII .partII_con:focus-within .expandTheList,
body .partII .partII_con.is-open .expandTheList { display: block !important; }

body .partII .partII_con.is-open .unfoldBut { display: none !important; }
body .partII .partII_con.is-open .closeBut  { display: block !important; }

/* -----------------------------------------------------------------------------
 * 7. 栏目切换 tab：原 21px 字号 + 一行硬排 → 改为可横滑 chips
 * -------------------------------------------------------------------------- */
body .partIII {
  display: block !important;
  margin: 18px var(--yt-page-x) !important;
}

body .partIII .sidesBox {
  width: 100% !important;
  margin: 0 0 16px !important;
  padding: 14px;
  background: var(--yt-card);
  border-radius: var(--yt-radius);
  box-shadow: 0 2px 10px rgba(23, 43, 77, .05);
}

body .partIII .sidesBox .level1Columns,
body .partIII .sidesBox .LevelColRight {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 0 0 10px !important;
  padding-bottom: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  justify-content: flex-start !important;
}

body .partIII .sidesBox .level1Columns::-webkit-scrollbar,
body .partIII .sidesBox .LevelColRight::-webkit-scrollbar,
body .partIII .sidesBox .level2Columns::-webkit-scrollbar { display: none; }

body .partIII .sidesBox .level1Columns li,
body .partIII .sidesBox .LevelColRight li {
  flex: 0 0 auto;
  font-size: var(--yt-fs-tab) !important;
}

body .partIII .sidesBox .level1Columns li a,
body .partIII .sidesBox .LevelColRight li a {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  font-size: var(--yt-fs-tab) !important;
  color: var(--yt-muted);
  border-radius: 999px;
  white-space: nowrap;
}

body .partIII .sidesBox .level1Columns .oneLevelSelected a,
body .partIII .sidesBox .LevelColRight .oneLevelSelected a {
  color: #fff !important;
  background: var(--yt-blue);
  font-weight: 700;
}

/* 原下划线是绝对定位 + 83px 背景图，在滚动容器里必然错位 */
body .oneLevelSelected::before { display: none !important; }

/* 二级栏目：原规则带 display:block!important / height:60px，需同权重覆盖 */
body .partIII .sidesBox .level2Columns.secondaryDisplay {
  display: flex !important;
  flex-wrap: nowrap;
  gap: 8px;
  height: auto !important;
  min-height: 38px;
  margin: 0 0 12px !important;
  padding-bottom: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

body .partIII .sidesBox .level2Columns li {
  flex: 0 0 auto;
  margin: 0 !important;
  font-size: var(--yt-fs-sm) !important;
}

body .partIII .sidesBox .level2Columns li a {
  display: block;
  min-height: 36px;
  padding: 8px 12px;
  font-size: var(--yt-fs-sm) !important;
  color: var(--yt-muted) !important;
  background: #f2f5fa;
  border-radius: 999px;
  white-space: nowrap;
}

body .partIII .sidesBox .level2Columns .secondaryChecked a,
body .partIII .sidesBox .level2Columns .secondaryChecked {
  color: var(--yt-blue) !important;
  background: var(--yt-blue-tint) !important;
  font-weight: 700;
}

/* -----------------------------------------------------------------------------
 * 8. 信息列表（核心阅读区）
 *    原：标题 nowrap 单行省略 + 日期在 ≤560px 被 display:none 隐藏。
 *    改：标题最多 2 行完整展示，日期移到标题下方并恢复显示。
 * -------------------------------------------------------------------------- */
body .partIII .sidesBox .listOfInformation li a,
body .partIII .sidesBox .listOnTheRight li a {
  display: flex !important;
  flex-wrap: wrap;
  align-items: flex-start;
  width: 100%;
  min-height: 64px;
  padding: 12px 0 12px 16px !important;
  font-size: var(--yt-fs-body) !important;
  line-height: 1.55;
  color: var(--yt-text);
  border-bottom: 1px solid var(--yt-line);
}

body .partIII .sidesBox .listOfInformation li:last-child a,
body .partIII .sidesBox .listOnTheRight li:last-child a { border-bottom: 0; }

body .partIII .sidesBox .listOfInformation li a::before,
body .partIII .sidesBox .listOnTheRight li a::before {
  top: 20px;
  width: 5px;
  height: 5px;
}

body .partIII .sidesBox .listOfInformation .InfoTitle,
body .partIII .sidesBox .listOnTheRight .InfoTitle {
  display: -webkit-box !important;
  flex: 1 1 100%;
  order: 1;
  width: 100% !important;
  max-width: 100%;
  white-space: normal !important;
  overflow: hidden !important;
  text-overflow: clip !important;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow-wrap: anywhere;
}

body .partIII .sidesBox .listOfInformation .infoTime,
body .partIII .sidesBox .listOnTheRight .infoTime {
  display: block !important;          /* 恢复 ≤560px 被隐藏的发布日期 */
  flex: 1 1 100%;
  order: 2;
  width: auto !important;
  margin-top: 4px;
  text-align: left !important;
  font-size: var(--yt-fs-xs) !important;
  color: var(--yt-subtle);
  font-variant-numeric: tabular-nums;
}

/* -----------------------------------------------------------------------------
 * 9. 重点领域公开 / 政务专题：解除固定高与内联 230×150
 * -------------------------------------------------------------------------- */
/* 原站这三个区块是 width:100%，若再叠加左右 margin 会二次撑宽 2×边距；
   width:auto 让 block 自动扣除 margin，才是真正的「满宽减留白」 */
body .partIV {
  display: block;
  width: auto !important;
  max-width: 100%;
  margin: 18px var(--yt-page-x) !important;
}
body .partIV img { width: 100% !important; height: auto !important; border-radius: var(--yt-radius-sm); }

body .partV {
  width: auto !important;
  max-width: 100%;
  height: auto !important;
  margin: 18px var(--yt-page-x) !important;
  padding: 16px 14px !important;
  background: var(--yt-card);
  border-radius: var(--yt-radius);
  box-shadow: 0 2px 10px rgba(23, 43, 77, .05);
}

body .partV .topTitle,
body .partVI .topTitle {
  position: static !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 0 14px !important;
  background: none !important;
  color: var(--yt-text) !important;
  font-size: var(--yt-fs-lg) !important;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
  border-left: 4px solid var(--yt-blue);
  padding-left: 10px;
}

body .partV .areasOfFocus {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--yt-gap);
  justify-content: stretch !important;
}

body .partV .areasOfFocus a {
  width: 100% !important;
  height: 60px !important;
  margin: 0 !important;
  padding: 0 8px;
  justify-content: flex-start;
  background: #f7f9fc;
  border: 1px solid var(--yt-line);
  border-radius: var(--yt-radius-sm);
  font-size: var(--yt-fs-sm) !important;
  line-height: 1.35;
  overflow: hidden;
}

body .partV .areasOfFocus a img {
  flex: 0 0 30px;
  width: 30px !important;
  height: 30px !important;
  margin: 0 8px 0 0 !important;
  object-fit: contain;
}

body .partVI { padding-top: 0 !important; }

body .container.partVI {
  width: auto !important;
  max-width: 100%;
  margin: 18px var(--yt-page-x) !important;
  padding: 16px 14px;
  background: var(--yt-card);
  border-radius: var(--yt-radius);
  box-shadow: 0 2px 10px rgba(23, 43, 77, .05);
}

body .partVI .thematicLists {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--yt-gap);
  justify-content: stretch !important;
}

body .partVI .thematicLists a {
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  border-radius: var(--yt-radius-sm);
  overflow: hidden;
}

body .partVI .thematicLists a img {
  display: block;
  width: 100% !important;             /* 覆盖内联 style="width:230px;height:150px" */
  height: auto !important;
  aspect-ratio: 23 / 15;
  object-fit: cover;
  border-radius: var(--yt-radius-sm);
}

/* -----------------------------------------------------------------------------
 * 10. 右侧浮窗：原站 ≤1199px 全部隐藏，导致手机端没有「回到顶部」
 *     改造成右下角 52px 圆形按钮，复用已有的 #backToTop
 * -------------------------------------------------------------------------- */
body .ycfczk { display: none !important; }

body .floatingWindowOnTheRight {
  display: block !important;
  position: fixed !important;
  right: calc(14px + var(--yt-safe-right));
  bottom: calc(18px + var(--yt-safe-bottom));
  width: 52px !important;
  height: 52px !important;
  padding: 0 !important;
  z-index: 999;
  background: var(--yt-blue) !important;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(17, 93, 178, .38);
  text-align: center;
}

body .floatingWindowOnTheRight > a,
body .floatingWindowOnTheRight > .closeFC { display: none !important; }

body .floatingWindowOnTheRight .backToTop {
  display: flex !important;           /* 覆盖原站 fadeIn 写入的 inline display */
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0 !important;
  color: #fff !important;
  font-size: var(--yt-fs-xs) !important;
  font-weight: 700;
  letter-spacing: .5px;
}

/* -----------------------------------------------------------------------------
 * 11. 触屏 / 无障碍细节
 * -------------------------------------------------------------------------- */
/* 触屏没有 hover，禁用所有 hover 态的加粗变色，避免点击后「粘住」 */
@media (hover: none) {
  body .partIII .sidesBox .listOfInformation li a:hover,
  body .partIII .sidesBox .listOnTheRight li a:hover,
  body .topContent .title a:hover,
  body .Leadership .deputy a:hover,
  body .Leadership .hand .leadInfo .diviWork:hover,
  body .partV .areasOfFocus a:hover,
  body .GovInfo .infoLi li:hover {
    font-weight: inherit;
    color: inherit;
    background-color: inherit;
    box-shadow: none;
    border-radius: inherit;
    transform: none;
  }
  body .GovInfo .infoLi li:hover .clImg { display: inline-block; }
  body .GovInfo .infoLi li:hover .cmImg { display: none !important; }
}

/* -----------------------------------------------------------------------------
 * 11.2 页底（由 2109190904061236.js 与 zhifu.gov.cn 外部脚本 document.write 注入）
 *      两处 .millia 都写死 1200px：竖屏被 .syshide 隐藏看不出来，
 *      但 440px 机型横屏 956px 宽时会顶出十几个溢出元素。注入的 <style>
 *      位于 body 尾部，故这里统一用 body 前缀 + !important 提权。
 * -------------------------------------------------------------------------- */
/* body .friendBg { padding: 16px var(--yt-page-x); } */
/* 
body .friendList,
body .foot .millia {
  width: 100% !important;
  max-width: 100%;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: flex-start !important;
  align-items: flex-start;
}

body .friendList li {
  padding-right: 0;
  font-size: var(--yt-fs-sm) !important;
}

body .friendList li::after { display: none; }
body .friendList li div { display: none !important; }  /* 依赖 hover 的下拉，触屏不可用 */

/* body .foot { padding: 24px var(--yt-page-x); }

body .foot .footInfo {
  flex: 1 1 100%;
  padding: 0 0 12px;
  border: 0;
  border-bottom: 1px solid #417dc1;
  font-size: var(--yt-fs-sm);
  line-height: 1.8;
}

body .foot .footImg { padding-right: 0; margin-bottom: 12px; }
body .foot .footInfo span,
body .foot .footInfo a { margin-right: 12px; font-size: var(--yt-fs-sm); }

body .foot .footEr { flex-wrap: wrap; gap: 12px; font-size: var(--yt-fs-xs); }
body .foot .footEr p { margin-left: 0; font-size: var(--yt-fs-xs); } */
/* body .foot .footEr p img { max-width: 88px; } * */

/* 页脚脚本自带的方块回顶部，与右下角圆形按钮重复 */
body #uper { display: none !important; }

body a:active { opacity: .72; }
body .partVI .thematicLists a:hover img { transform: none; box-shadow: none; }
}

/* -----------------------------------------------------------------------------
 * 12. 断点补充（按 440px 基准重新分档）
 * -------------------------------------------------------------------------- */

/* 12.1 超窄屏（iPhone SE / 老安卓 320–360px） */
@media screen and (max-width: 360px) {
  :root { --yt-page-x: 12px; --yt-gap: 8px; }
  body header .wrapper h1 a img { max-height: 44px; }
  body .Leadership .hand .Aimg { flex-basis: 88px; width: 88px !important; }
  body .Leadership .hand .leadInfo { flex-basis: calc(100% - 100px); }
  body .partII .partII_con { padding: 10px; }
  body .partV .areasOfFocus a { font-size: 11px !important; }
}

/* 12.2 大屏手机档（420–768px，含基准 440 × 956）
      402px 上合适的 16px 正文 / 16px 边距，在 440px 上会显得偏紧偏小，
      这一档把留白、字号、头像与卡片高度整体放大一档，仍保持 2 列栅格。 */
@media screen and (min-width: 420px) and (max-width: 768px) {
  :root {
    --yt-page-x: 18px;
    --yt-gap: 12px;
    --yt-radius: 14px;
    --yt-fs-xs:   clamp(12px, 3.0vw, 13px);
    --yt-fs-sm:   clamp(13px, 3.3vw, 14px);
    --yt-fs-tab:  clamp(14px, 3.6vw, 15px);
    --yt-fs-body: clamp(16px, 4.0vw, 17px);
    --yt-fs-md:   clamp(17px, 4.2vw, 18px);
    --yt-fs-lg:   clamp(19px, 4.5vw, 20px);
    --yt-fs-xl:   clamp(21px, 5.2vw, 23px);
  }

  /* 站名横幅：440px 下自然宽约 404px，限制最大高度防止图被拉得过高 */
  body header .wrapper h1 a img { max-height: 74px; }

  body .topContent .Leadership,
  body .topContent .GovInfo { padding: 16px; }

  body .Leadership .hand .Aimg { flex-basis: 116px; width: 116px !important; }
  body .Leadership .hand .leadInfo { flex-basis: calc(100% - 128px); }

  body .GovInfo .infoLi li,
  body .GovInfo .infoLi li a { min-height: 120px; }
  body .GovInfo .infoLi li a img { width: 44px; height: 44px; }

  body .partII .partII_con { min-height: 104px; padding: 14px; }
  body .partV .areasOfFocus a { height: 64px !important; }
  body .partV .areasOfFocus a img { flex-basis: 34px; width: 34px !important; height: 34px !important; }
}

/* 12.3 小屏手机横屏（640–768px 宽、高度较矮）：减少纵向堆叠 */
@media screen and (min-width: 640px) and (max-width: 768px) and (orientation: landscape) {
  :root { --yt-page-x: 20px; }
  body .GovInfo .infoLi,
  body .partII { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  body .partV .areasOfFocus,
  body .partVI .thematicLists { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}

/* 12.4 大屏手机横屏 / 小平板（769–1024px）
      440px 机型横屏 = 956 × 440，正好落在这里。若主断点仍停在 768px，
      这一档会退回原站 1200px 固定宽布局，因此主体样式已上调到 1024px，
      此处只负责把栅格从 2 列提到 3 / 4 列并放大留白。 */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  :root {
    --yt-page-x: 24px;
    --yt-gap: 14px;
    --yt-fs-xs:   13px;
    --yt-fs-sm:   14px;
    --yt-fs-tab:  15px;
    --yt-fs-body: 18px;
    --yt-fs-md:   19px;
    --yt-fs-lg:   21px;
    --yt-fs-xl:   24px;
  }
  /* 容器保持 100% 宽，左右留白统一由 --yt-page-x 控制，避免双重缩进 */
  body .container { width: 100% !important; }
  body .container.partVI { width: auto !important; }

  body header .wrapper h1 a img { max-height: 82px; }
  body .Leadership .hand .Aimg { flex-basis: 128px; width: 128px !important; }
  body .Leadership .hand .leadInfo { flex-basis: calc(100% - 140px); }

  body .GovInfo .infoLi,
  body .partII { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  body .partV .areasOfFocus,
  body .partVI .thematicLists { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }

  body .GovInfo .infoLi li,
  body .GovInfo .infoLi li a { min-height: 128px; }
  body .partII .partII_con { min-height: 108px; }
  body .partV .areasOfFocus a { height: 68px !important; }
}

/* -----------------------------------------------------------------------------
 * 13. 关怀模式 / 适老化（站点切换为 .newStyle 时）
 *     只覆盖变量，字号自动放大，不与站点原有的大字规则硬碰硬
 * -------------------------------------------------------------------------- */
.newStyle {
  --yt-fs-xs:   16px;
  --yt-fs-sm:   18px;
  --yt-fs-tab:  20px;
  --yt-fs-body: 22px;
  --yt-fs-md:   24px;
  --yt-fs-lg:   28px;
  --yt-fs-xl:   32px;
  --yt-gap:     12px;
  --yt-tap:     52px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
