* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  min-width: 320px;
}

/* ========== 移动端响应式 (max-width: 768px) ========== */
@media (max-width: 768px) {
  /* 全局溢出保护 */
  img, video, iframe,
  .proposal-sidebar, .yj-search,
  .leader-photo, .leader-more-card,
  .feature-card, .proposal-item,
  .info-card, .sidebar-item,
  .key-area-item {
    max-width: 100%;
  }

  /* box 通用 */
  .box1 {
    margin-top: 1.25rem;
  }
  .box1, .box2, .box3, .box4 {
    padding: 0.9375rem;
  }
  .box1, .box4 {
    background: none;
    height: auto;
  }

  /* 领导信息 */
  .leader-section {
    flex-direction: column;
  }
  .leader-info {
    width: 100%;
    height: auto;
  }
  .leader-more {
    text-align: left;
    display: block;
    font-size: 1.625rem;
    line-height: 1.6;
    margin-top: 1.5rem;
  }
  .leader-item {
    font-size: 2.125rem;
  }
  .leader-photo {
    width: 100%;
    max-width: 16.875rem;
    height: auto;
    aspect-ratio: 270 / 338;
  }
  .leader-card {
    max-width: 45rem;
  }
  .leader-more-card {
    width: 100%;
    max-width: 21.1875rem;
    height: auto;
    min-height: 10.5rem;
    border-radius: 0.5rem;
    background: transparent;
    font-size: 2.125rem;
  }
  .leader-position {
    text-align: left;
    font-size: 1.625rem;
    line-height: 2.5rem;
    margin-top: 1.5rem;
  }

  /* 公示公告 */
  .notice-section {
    margin-left: 0;
    display: flex;
    max-width: 45rem;
    flex-direction: column-reverse;
  }
  .notice-item {
    flex-direction: column;
    align-items: flex-start;
    border-bottom: 1px solid #e5e5e5;
  }
  .notice-title-text {
    white-space: normal;
    margin-right: 0;
    font-size: 1.875rem;
    line-height: 1.5;
  }
  .notice-date {
    font-size: 1.5rem;
  }

  /* 政策法规 & 建议提案 */
  .policy-proposal-wrapper {
    flex-direction: column;
  }

  /* 政策侧边栏 */
  .policy-sidebar {
    width: 100%;
    flex-direction: row;
  }
  .sidebar-item {
    flex: 1;
    font-size: 2.25rem;
    height: auto;
    min-height: 11.6875rem;
  }
  .sidebar-item.active::before {
    width: 0.5rem;
    height: 3.125rem;
    background: #286ace;
  }
  .sidebar-deco {
    flex: 1;
    background: url(zcfgicon.png) no-repeat -4px top;
    background-size: 100% 100%;
    height: auto;
    min-height: 11.6875rem;
  }

  /* 特色功能 */
  .feature-section {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
    gap: 0.75rem;
    max-width: 45rem;
  }
  .feature-card {
    width: calc(50% - 0.375rem);
    max-width: 21.1875rem;
    height: auto;
    min-height: 10.0625rem;
    background: transparent;
    border: 1px solid #a6d0ff;
  }
  .feature-cion {
    width: 4.125rem;
    height: 4.125rem;
  }
  .feature-title {
    font-size: 1.875rem;
  }

  /* 政策主内容 */
  .policy-main {
    padding: 1rem 0.8438rem 1rem 0.625rem;
  }

  /* 搜索框 */
  .yj-search {
    background: url(yjzzc.png) no-repeat;
    background-size: 100% 100%;
    width: 100%;
    max-width: 100%;  /* 修复：改为100%，避免溢出 */
    height: auto;
    min-height: 7.25rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    max-width: 45rem;
  }
  .policy-list{
    max-width: 45rem;
  }
  .yj-search::before {
    content: "";
    width: 40%;
    flex-shrink: 0;
  }
  .yj-search form {
    width: 56%;
    max-width: 20.9375rem;
    height: auto;
    min-height: 3.2rem;
    border-radius: 2.125rem;
    background: #fff;
    border: 1px solid #9bbae6;
    margin: 0;
    margin-left: auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
  }
  .yj-search form .yjsearchText {
    font-family: "PingFang SC";
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 1.5;
    text-align: left;
    color: #ccc;
    width: 100%;
    padding: 0;
    padding-left: 0.5rem;
    border: none;
    outline: none;
    background: transparent;
    flex: 1;
  }
  .yj-search form .yjsearchText:focus {
    color: #333;
  }
  .yj-search form .yjsmt {
    width: 1.875rem;
    height: 1.875rem;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* 建议提案侧边栏 */
  .proposal-sidebar {
    width: 100%;
    max-width: 100%;  /* 修复：改为100% */
    height: auto;
    min-height: 42rem;
    margin-left: 0;
    background: url(jytabg.png) no-repeat bottom;
    background-size: 100%;
    position: relative;
    padding: 1.5rem 1rem 4rem;
    display: flex;
    flex-direction: column;
  }
  .proposal-sidebar::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(jytabg.png) no-repeat bottom;
    background-size: 100%;
    z-index: 0;
    pointer-events: none;
  }
  .proposal-sidebar > * {
    position: relative;
    z-index: 1;
  }
  .proposal-title {
    font-size: 2.25rem;
    font-weight: 600;
    margin: 1.5rem 0;
    color: #333;
  }
  .proposal-list {
    margin-left: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
  }
  .proposal-item {
    width: 100%;
    margin-left: 0;
    height: auto;
    min-height: 5.625rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 0.5rem;
    text-decoration: none;
    color: #333;
    font-size: 1.875rem;
  }
  .proposal-item span:first-child {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .proposal-item .arrow {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    margin-left: 0.5rem;
    background-size: 100% 100%;
  }

  /* 点击查看按钮 */
  .view-all {
    margin-top: 2rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    z-index: 2;
  }
  .view-all-btn {
    display: inline-block;
    width: 100%;
    max-width: 14.6875rem;
    height: auto;
    min-height: 5rem;
    line-height: 5rem;
    border-radius: 2.5rem;
    background: #fff;
    font-weight: 600;
    font-size: 1.875rem;
    color: #286ace;
    text-align: center;
    text-decoration: none;
    border: 1px solid #286ace;
    position: absolute;
    bottom: 1.25rem;
  }

  /* 信息卡片 */
  .info-section {
    flex-direction: column;
    max-width: 100%;  /* 修复：改为100% */
    margin: 0;
  }
  .info-card {
    width: 100%;
    padding-left: 7.75rem;
    height: auto;
    min-height: 8.9375rem;
    background-size: cover !important;
  }

  /* 重点领域 */
  .key-area-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .key-area-item {
    width: 100%;
    font-size: 1.875rem;
    height: auto;
    min-height: 5.625rem;
    padding: 1.25rem;
    text-align: center;
  }

  /* 列表项装饰去除 */
  .policy-item::before,
  .notice-item::before {
    content: none;
  }

  /* 政策列表项 */
  .item-title {
    flex: 1;
    margin-right: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
    font-weight: 400;
    font-size: 1.875rem;
    line-height: 1.5;
  }
  .policy-item {
    flex-direction: column;
    align-items: flex-start;
    border-bottom: 1px solid #e5e5e5;
  }
  .policy-item span:last-child {
    margin-top: 1rem;
    font-weight: 400;
    font-size: 1.5rem;
  }

  /* 标题样式 */
  .section-title, .notice-title, .leader-title, .key-area-title {
    margin-top: 0.625rem;
    font-size: 2.25rem;
  }
  .leader-name {
    font-size: 2.125rem;
  }
  .leader-photo img {
    width: 100%;
    max-width: 16.875rem;
    height: auto;
    aspect-ratio: 270 / 338;
    object-fit: cover;
  }

  /* 标题装饰线 */
  .notice-title::after, .leader-title::after {
    margin-left: 0.5em;
    width: 3.5rem;
    height: 0.375rem;
    background: #ff8f1f;
  }
  .key-area-title::after {
    margin-left: 6.25rem;
    width: 3.5rem;
    height: 0.375rem;
    background: #ff8f1f;
  }

  /* 边距重置 */
  .policy-proposal-wrapper, .key-area-section {
    margin: 0;
    padding: 0;
  }
  .policy-proposal-wrapper {
    font-weight: 600;
  }
  .proposal-list {
    margin-left: 0;
  }
}