/* ========================================
   机构设置 · 党政办公室
   ======================================== */

.org-page-header .hero-banner {
  display: none;
}

.org-page-header .header-garden-deco,
.org-page-header::after {
  display: none;
}

.org-page-header .logo-mark {
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.org-page-header .nav-item.has-dropdown > a.active {
  color: #fff;
  background: rgba(0, 0, 0, 0.15);
}

.org-page-header .nav-item.has-dropdown > a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background: var(--color-gold);
  display: block;
}

/* 部门首页 */
.po-home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.po-panel {
  background: #fff;
  border: 1px solid #eee5e2;
  border-radius: 4px;
  overflow: hidden;
}

.po-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--color-bg-pink);
  border-bottom: 1px solid #eee5e2;
}

.po-panel-head h3 {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--color-primary);
}

.po-panel-head a {
  font-size: 12px;
  color: #999;
}

.po-panel-head a:hover {
  color: var(--color-primary);
}

.po-panel-body {
  padding: 8px 0;
}

.po-news-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px dashed #eee;
  color: inherit;
  transition: background 0.2s;
}

.po-news-item:last-child {
  border-bottom: none;
}

.po-news-item:hover {
  background: #fafafa;
}

.po-news-item:hover .po-news-title {
  color: var(--color-primary);
}

.po-news-tag {
  flex-shrink: 0;
  padding: 2px 8px;
  font-size: 11px;
  background: rgba(140, 28, 28, 0.08);
  color: var(--color-primary);
  border-radius: 2px;
  margin-top: 2px;
}

.po-news-title {
  font-size: 14px;
  line-height: 1.55;
  color: #444;
  transition: color 0.2s;
}

.po-news-date {
  display: block;
  font-size: 12px;
  color: #bbb;
  margin-top: 4px;
}

.po-notice-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px dashed #eee;
  color: inherit;
}

.po-notice-item:last-child {
  border-bottom: none;
}

.po-notice-item:hover .po-news-title {
  color: var(--color-primary);
}

.po-notice-urgent {
  flex-shrink: 0;
  padding: 2px 6px;
  font-size: 10px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 2px;
}

.po-service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.po-service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 16px;
  background: linear-gradient(180deg, #faf7f5 0%, #fff 100%);
  border: 1px solid #eee5e2;
  border-radius: 4px;
  color: inherit;
  text-align: center;
  transition: all 0.25s;
}

.po-service-card:hover {
  border-color: rgba(140, 28, 28, 0.3);
  box-shadow: 0 6px 20px rgba(140, 28, 28, 0.08);
  transform: translateY(-2px);
}

.po-service-icon {
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.po-service-card span {
  font-size: 14px;
  color: #444;
}

/* 部门简介 */
.po-intro-lead {
  font-size: 15px;
  line-height: 1.9;
  color: #555;
  margin-bottom: 28px;
  padding: 20px;
  background: var(--color-bg-pink);
  border-left: 3px solid var(--color-primary);
  border-radius: 0 4px 4px 0;
}

.po-duty-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.po-duty-card {
  padding: 18px;
  border: 1px solid #eee;
  border-radius: 4px;
}

.po-duty-card h4 {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.po-duty-card p {
  font-size: 13px;
  color: #666;
  line-height: 1.75;
}

.po-info-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 28px;
  font-size: 14px;
}

.po-info-table th,
.po-info-table td {
  padding: 12px 16px;
  border: 1px solid #eee;
  text-align: left;
}

.po-info-table th {
  width: 120px;
  background: var(--color-bg-pink);
  color: #666;
  font-weight: normal;
}

.po-staff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.po-staff-card {
  text-align: center;
  padding: 20px 12px;
  border: 1px solid #eee5e2;
  border-radius: 4px;
  background: #fafafa;
}

.po-staff-card strong {
  display: block;
  font-size: 15px;
  color: #333;
  margin-bottom: 4px;
}

.po-staff-card span {
  display: block;
  font-size: 12px;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.po-staff-card small {
  font-size: 12px;
  color: #999;
}

/* 检索工具栏 */
.po-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}

.po-search-field {
  flex: 1;
  min-width: 160px;
}

.po-search-field label {
  display: block;
  font-size: 12px;
  color: #999;
  margin-bottom: 4px;
}

.po-search-field input,
.po-search-field select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 13px;
  outline: none;
  box-sizing: border-box;
}

.po-search-field input:focus,
.po-search-field select:focus {
  border-color: var(--color-primary);
}

.po-search-keyword {
  flex: 2;
  min-width: 200px;
}

.po-btn {
  padding: 9px 20px;
  font-size: 13px;
  border-radius: 3px;
  cursor: pointer;
  border: none;
}

.po-btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.po-btn-secondary {
  background: #fff;
  color: #666;
  border: 1px solid #ddd;
}

.po-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.po-category-tab {
  padding: 6px 14px;
  font-size: 13px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 20px;
  cursor: pointer;
  color: #666;
  transition: all 0.2s;
}

.po-category-tab:hover,
.po-category-tab.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* 文档列表 */
.po-doc-list {
  border: 1px solid #eee;
  border-radius: 4px;
  overflow: hidden;
}

.po-doc-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
  transition: background 0.2s;
}

.po-doc-item:last-child {
  border-bottom: none;
}

.po-doc-item:hover {
  background: #fafafa;
}

.po-doc-info {
  flex: 1;
  min-width: 0;
}

.po-doc-info h4 {
  font-size: 14px;
  font-weight: normal;
  color: #333;
  margin-bottom: 6px;
}

.po-doc-meta {
  font-size: 12px;
  color: #aaa;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.po-doc-download {
  flex-shrink: 0;
  padding: 6px 14px;
  font-size: 12px;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  border-radius: 3px;
  transition: all 0.2s;
}

.po-doc-download:hover {
  background: var(--color-primary);
  color: #fff;
}

/* 办事指南 */
.po-guide-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.po-guide-card {
  border: 1px solid #eee5e2;
  border-radius: 4px;
  overflow: hidden;
  scroll-margin-top: 24px;
}

.po-guide-card-head {
  padding: 16px 20px;
  background: var(--color-primary);
  color: #fff;
}

.po-guide-card-head h3 {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: normal;
}

.po-guide-card-body {
  padding: 20px;
}

.po-guide-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.po-guide-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #555;
}

.po-guide-step-num {
  width: 24px;
  height: 24px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.po-guide-step-arrow {
  color: #ccc;
  font-size: 12px;
}

.po-guide-section h4 {
  font-size: 14px;
  color: #333;
  margin-bottom: 10px;
}

.po-guide-section ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.po-guide-section li {
  font-size: 13px;
  color: #666;
  line-height: 1.8;
}

.po-form-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.po-form-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  background: var(--color-bg-pink);
  border: 1px solid #eee5e2;
  border-radius: 3px;
  color: var(--color-primary);
  transition: all 0.2s;
}

.po-form-link:hover {
  border-color: var(--color-primary);
}

/* 时间轴 */
.po-timeline-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.po-timeline-toggle button {
  padding: 7px 16px;
  font-size: 13px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 3px;
  cursor: pointer;
  color: #666;
}

.po-timeline-toggle button.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.po-timeline {
  position: relative;
}

.po-timeline.layout-vertical {
  padding-left: 32px;
}

.po-timeline.layout-vertical::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #eee5e2;
}

.po-timeline.layout-horizontal {
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 16px;
}

.po-timeline.layout-horizontal::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 80px;
  height: 2px;
  background: #eee5e2;
}

.po-timeline-item {
  position: relative;
  margin-bottom: 32px;
}

.po-timeline.layout-horizontal .po-timeline-item {
  flex: 0 0 280px;
  margin-bottom: 0;
  padding-top: 0;
}

.po-timeline-dot {
  position: absolute;
  left: -28px;
  top: 4px;
  width: 14px;
  height: 14px;
  background: var(--color-primary);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--color-primary);
}

.po-timeline.layout-horizontal .po-timeline-dot {
  left: 50%;
  top: 73px;
  transform: translateX(-50%);
}

.po-timeline-year {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.po-timeline.layout-horizontal .po-timeline-year {
  text-align: center;
  margin-bottom: 24px;
}

.po-timeline-card {
  background: #fff;
  border: 1px solid #eee5e2;
  border-radius: 4px;
  overflow: hidden;
}

.po-timeline-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.po-timeline-card-body {
  padding: 14px 16px;
}

.po-timeline-card-body h4 {
  font-size: 15px;
  color: #333;
  margin-bottom: 6px;
}

.po-timeline-card-body p {
  font-size: 13px;
  color: #888;
  line-height: 1.65;
}

.po-empty {
  text-align: center;
  padding: 40px;
  color: #999;
  font-size: 14px;
}

@media (max-width: 992px) {
  .po-home-grid {
    grid-template-columns: 1fr;
  }

  .po-service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .po-duty-grid {
    grid-template-columns: 1fr;
  }

  .po-staff-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .po-service-grid {
    grid-template-columns: 1fr;
  }

  .po-staff-grid {
    grid-template-columns: 1fr;
  }

  .po-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .po-guide-steps {
    flex-direction: column;
  }

  .po-guide-step-arrow {
    display: none;
  }
}

/* 文档列表 · 分页 */
.news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #eee;
}

.page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 3px;
  cursor: pointer;
  font-size: 13px;
  color: #666;
  transition: all 0.2s;
}

.page-btn:hover:not(:disabled),
.page-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-info {
  font-size: 13px;
  color: #999;
  margin: 0 8px;
}

.po-doc-btn {
  padding: 6px 12px;
  font-size: 12px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 3px;
  cursor: pointer;
  color: #666;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.po-doc-btn-secondary {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}