a{text-decoration: none;}

/* 机构设置 div 网格（由 table 改造） */
.org-structure {
  max-width: 1000px;
  margin: 0 auto;
  font-family: SimSun, "宋体";
}

.org-title {
  margin: 18px 0 15px 0;
  text-align: center;
  font-size: 25px;
  font-weight: 700;
  color: #1f5781;
  line-height: 1.4;
}

.org-grid {
  border: 1px solid #1f5781;
  background: #fff;
}

.org-row {
  display: grid;
  grid-template-columns: 250px 180px 180px 180px;
  border-bottom: 1px solid #1f5781;
  align-items: stretch;
}

.org-row:last-child {
  border-bottom: 0;
}

.org-cell {
  padding: 12px 10px;
  border-right: 1px solid #1f5781;
  text-align: center;
  font-size: 16px;
  line-height: 1.6;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.org-cell:last-child {
  border-right: 0;
}

.org-row-head .org-cell {
  font-weight: 700;
  font-size: 17px;
}

/* 支部机构 div 网格（6 列） */
.branch-structure {
  max-width: 1000px;
  margin: 0 auto;
  font-family: SimSun, "宋体";
}
.branch-title {
  margin: 18px 0 15px 0;
  text-align: center;
  font-size: 25px;
  font-weight: 700;
  color: #1f5781;
  line-height: 1.4;
}
.branch-grid {
  border: 1px solid #1f5781;
  background: #fff;
}

.branch-row {
  display: grid;
  grid-template-columns: 1.5fr repeat(5, minmax(0, 1fr));
  border-bottom: 1px solid #1f5781;
  align-items: stretch;
}

.branch-row:last-child {
  border-bottom: 0;
}

.branch-cell {
  padding: 10px 8px;
  border-right: 1px solid #1f5781;
  text-align: center;
  font-size: 16px;
  line-height: 1.5;
  color: #000;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.branch-cell:last-child {
  border-right: 0;
}

.branch-row-head .branch-cell {
  font-weight: 700;
  font-size: 17px;
}

@media (max-width: 768px) {
  .org-structure {
    max-width: 100%;
    padding: 0 8px;
  }

  .org-title {
    font-size: 20px;
    margin: 12px 0;
  }

  .org-grid {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .org-row {
    min-width: 700px;
    grid-template-columns: 220px 160px 160px 160px;
  }

  .org-cell {
    font-size: 14px;
    padding: 10px 8px;
    line-height: 1.5;
  }

  .org-row-head .org-cell {
    font-size: 15px;
  }

  .branch-structure {
    max-width: 100%;
    padding: 0 8px;
  }

  .branch-grid {
    border: 0;
    background: transparent;
  }

  .branch-row {
    grid-template-columns: 1fr;
    border: 1px solid #1f5781;
    margin-bottom: 10px;
    background: #fff;
  }

  .branch-row-head {
    display: none;
  }

  .branch-cell {
    border-right: 0;
    border-top: 1px solid #1f5781;
    text-align: left;
    font-size: 14px;
    padding: 8px 10px;
  }

  .branch-row .branch-cell:first-child {
    border-top: 0;
    font-weight: 700;
    text-align: center;
    background: #f6f9fd;
  }

  .branch-row .branch-cell:not(:first-child)::before {
    content: attr(data-label) "：";
    font-weight: 700;
    color: #1f5781;
  }
}

/* 新增 div 样式 */
.leader-section {
  margin: 34px 0;
  background: #fff;
  padding: 0;
  font-family: "Microsoft YaHei", "微软雅黑", SimSun, "宋体";
  }

.section-title {
  font-size: 25px;
  font-weight: bold;
  color: #1f5781;
  text-align: center;
  margin: 18px 0 15px 0;
  padding-bottom: 14px;
  border-bottom: 1px solid #dbe3ea;
  letter-spacing: 0.5px;
  line-height: 1.4;
  border-bottom: 0;
  padding-bottom: 0;}

 
/* 现任党政领导两列布局 */
.leader-table,.duties-table {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 ;
  border: 1px solid #1f5781;
  border-radius: 0;  
  background: #fff;}

.leader-role,
.leader-persons {
  padding: 10px;
  font-size: 15px;
  line-height: 1.6;
  display: flex;
  font-family:  "宋体";
  align-items: center;}
 
.leader-role {
  color: #000;  
  border-right: 1px solid #1f5781; 
  text-align: right;
  justify-content: center;}

.leader-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: stretch;
  border-bottom: 1px solid #1f5781;}

.leader-row:last-child {
  border-bottom: 0;}

.leader-persons {
  color: #000;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));}

.leader-persons .leader-name,
.leader-persons .leader-link {
  display: block;
  padding: 2px 0;
  text-align: center;}


.leader-link {
  color: #000;
  text-decoration: none;
  font-family: "宋体";
}


/* 党政领导分工情况 */
.duty-link {
  color: #000;
  text-decoration: none;}

.duty-link:visited,
.duty-link:active,
.duty-link:focus {
  color: #000;
  text-decoration: none;}

.duty-link:hover {
  color: #000;
  text-decoration: none;}

.duties-table {
  overflow: hidden;}


.duty-section {
  display: grid;
  grid-template-columns: 180px 180px minmax(0, 1fr);
  border-bottom: 1px solid #1f5781;
  min-width: 0;
  align-items: stretch;}

.duty-section:last-child {
  border-bottom: 0;}

.duty-header {
  display: contents;}

.duty-name {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  font-size: 15px;
  color: #000;
  border-right: 1px solid #1f5781;
  font-family:  "宋体";
  text-align: center;}

.duty-position {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  font-size: 16px;
  color: #000;
  border-right: 1px solid #1f5781;  
  line-height: 1.6;
  text-align: center;
  font-family:  "宋体";
  white-space: normal;}

.duty-content {
  list-style: none;
  margin: 0;
  padding: 4px 4px;
  font-size: 16px;
  color: #000;
  line-height: 1.6;
  text-align: left;
  font-family:  "宋体";
  align-self: center;
  }

.duty-content li {
  margin: 2px 0;
  padding-left: 0;}

.update-time {
  text-align: right;
  padding: 16px 20px 6px 20px;
  font-size: 16px;
  color: #000;
  max-width: 1000px;
  font-family:  "宋体";
  margin: 0 auto;
  letter-spacing: 0.2px;}

/* 响应式设计 */
@media (max-width: 768px) {
  .leader-section {
    margin: 22px 0;}

  .section-title {
    font-size: 18px;
    margin: 12px 0 14px;
    letter-spacing: 0;}

  .leader-table,
  .duties-table {
    padding: 0;
    border: 1px solid #1f5781;
    border-radius: 0;
    background: #fff;
    max-width: 100%;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;}

  .leader-row {
    grid-template-columns: 108px minmax(0, 1fr);
    
    border-bottom: 1px solid #1f5781;
    border-radius: 0;
    margin-bottom: 0;
    overflow: visible;
    background: #fff;
    box-shadow: none;}

  .leader-role,
  .leader-persons {
    padding: 0px;
    font-size: 11px;}

  .leader-role {
    background: #fff;
    border-right: 1px solid #1f5781;
    border-bottom: 0;
    justify-content: center;}
 
  .leader-persons {
    grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
    row-gap: 0;
    column-gap: 12px;}

  .leader-persons .leader-name,
  .leader-persons .leader-link {
    padding: 2px 0;
    border-radius: 0;
    background: transparent;
    text-align: center;
  }


  .duty-section {
    grid-template-columns: 82px 98px minmax(0, 1fr);
   
    border: 0;
    border-bottom: 1px solid #1f5781;
    border-radius: 0;
    margin-bottom: 0;
    overflow: visible;
    background: #fff;
    box-shadow: none;}

  .duty-name {
    padding: 0px;
    border-right: 1px solid #1f5781;
    border-bottom: 0;
    background: #fff;
    font-size: 11px;
    font-family:  "宋体";}

  .duty-position {
    padding: 12px;
    border-right: 1px solid #1f5781;
    justify-content: center;
    font-size: 11px;
    font-family:  "宋体";}

  .duty-content {
    font-size: 12px;
    padding: 8px 6px;
    line-height: 1.6;
    }

  .leader-role,
  .leader-persons,
  .duty-name,
  .duty-position,
  .duty-content {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .duty-content::before {
    content: none;}
}

@media (max-width: 480px) {
  .section-title {
    font-size: 17px;}

  .leader-row {
    grid-template-columns: 120px minmax(0, 1fr);
    padding:0px;}

  .leader-persons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 0;
    }

  .duties-head,
  .duty-section {
    grid-template-columns: 74px 86px minmax(0, 1fr);

    }
   .duty-content {
    font-size: 12px;
    padding: 8px 6px;
    line-height: 1.6;
    }
  .update-time {
    font-size: 11px;
    padding: 10px}

  .org-title {
    font-size: 18px;
  }

  .org-grid {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .org-row {
    min-width: 0;
    grid-template-columns: 1.2fr 0.8fr 1fr 1fr;
  }

  .org-cell {
    font-size: 13px;
    padding: 8px 6px;
  }

  .org-row-head .org-cell {
    font-size: 14px;
  }
}