/**
 * 页面：zfld.template.html（政府领导）
 */

/* ========== 1200px 以下：容器收窄 ========== */
@media screen and (max-width: 1200px) {
  .zfld-container,
  .bottom-banner {
    width: 100% !important;
    max-width: 1200px;
    padding-left: 12px;
    padding-right: 12px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
  }

  .bottom-banner-right img {
    width: 100%;
    height: auto;
  }
}

/* ========== 1024px 以下：平板 / 移动主布局入口 ========== */
@media screen and (max-width: 1024px) {
  .zfld-container {
    display: block;
    padding: 12px;
  }

  .zfld-left,
  .zfld-right {
    width: 100% !important;
  }

  .zfld-left {
    margin-bottom: 12px;
  }

  .leader-content {
    min-height: 0;
    padding-bottom: 12px;
  }

  .leader-top-box {
    height: auto;
    padding: 16px;
  }

  .leader-img {
    width: 200px;
  }

  .leader-img img,
  #photo li img {
    max-width: 100%;
    height: auto;
  }

  .leader-info {
    min-width: 0;
  }

  .leader-info a {
    display: block;
    line-height: 1.8;
  }

  #photo {
    padding-left: 16px;
    padding-right: 16px;
    margin-top: 16px;
  }

  #photo li {
    width: 33.33%;
    height: auto;
    margin-bottom: 24px;
  }

  #photo li:nth-child(-n+3) {
    margin-bottom: 24px;
  }

  .m-textBox {
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    font-size: 0.875rem;
    line-height: 1.5;
  }

  .zfld-right {
    gap: 12px;
  }

  .zfld-side-header {
    height: 44px;
    padding: 0 12px;
  }

  .zfld-side-title {
    font-size: 0.9375rem;
  }

  .sidebar-content {
    padding: 4px 12px 12px;
  }

  .meeting-item {
    min-height: 44px;
    height: auto;
    padding-top: 8px;
    padding-bottom: 8px;
    font-size: 0.875rem;
    line-height: 1.5;
  }

  .meeting-date {
    width: 56px;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
    text-align: right;
  }

  .bottom-banner {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
  }

  .bottom-banner-left {
    width: 50px;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
  }

  .bottom-banner-left img,
  .bottom-banner-right img {
    max-width: 100%;
    height: auto;
  }
}

/* ========== 768px 以下：手机布局 ========== */
@media screen and (max-width: 768px) {
  html {
    font-size: 16px;
  }

  .zfld-container {
    padding: 8px;
  }

  .zfld-header,
  .zfld-header-center {
    height: 44px;
    line-height: 44px;
  }

  .zfld-header {
    padding-left: 12px;
  }

  .zfld-header .STYLE2,
  .zfld-header-center {
    font-size: 0.9375rem;
  }

  .leader-top-box {
    display: block;
    padding: 12px;
    text-align: center;
  }

  .leader-img {
    width: 100%;
    margin-bottom: 12px;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
  }

  .leader-img a {
    display: block;
    text-align: center;
  }

  .leader-img img {
    width: auto;
    max-width: 160px;
    height: auto;
  }

  .leader-info a {
    display: block;
    font-size: 0.875rem;
    line-height: 1.75;
    text-align: center;
  }

  .leader-info h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1rem;
    line-height: 1.5 !important;
    text-align: center;
  }

  .leader-divider {
    margin-top: 12px;
    margin-bottom: 12px;
  }

  #photo {
    padding-left: 8px;
    padding-right: 8px;
    margin-top: 8px;
  }

  #photo ul {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
  }

  #photo li {
    width: 140px;
    margin-bottom: 16px;
    text-align: center;
    margin-left: 8px;
    margin-right: 8px;
  }

  #photo li:nth-child(-n+3) {
    margin-bottom: 16px;
  }

  #photo li a {
    display: block;
    text-align: center;
  }

  #photo li img {
    width: 120px;
    max-width: 100%;
  }

  .m-textBox {
    font-size: 0.8125rem;
    line-height: 1.5;
    text-align: center;
  }

  .zfld-side-header {
    height: 44px;
  }

  .zfld-side-title {
    font-size: 0.9375rem;
  }

  .zfld-side-more {
    font-size: 0.75rem;
  }

  .sidebar-content {
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 10px;
  }

  .meeting-group {
    margin: 0;
  }

  .meeting-item {
    min-height: 44px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .meeting-title {
    font-size: 0.875rem;
  }

  .meeting-title a {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .meeting-date {
    width: 48px;
    font-size: 0.75rem;
  }

  .meeting-divider {
    margin-top: 12px;
    margin-bottom: 12px;
  }

  .bottom-banner {
    margin-top: 8px;
    margin-bottom: 8px;
    padding: 8px;
  }

  .bottom-banner-left {
    width: 36px;
    margin-right: 8px;
  }
}

/* ========== 480px 以下：小屏手机 ========== */
@media screen and (max-width: 480px) {
  .zfld-container,
  .bottom-banner {
    padding-left: 4px;
    padding-right: 4px;
  }

  .leader-top-box {
    padding-left: 8px;
    padding-right: 8px;
  }

  .leader-img img {
    max-width: 140px;
  }

  #photo li {
    width: 140px;
  }

  #photo li img {
    max-width: 130px;
  }

  #photo li:nth-child(-n+3) {
    margin-bottom: 14px;
  }

  .bottom-banner-left {
    width: 30px;
    margin-right: 6px;
  }
}
