/* ============================================================
   YSU SECURITY DEPARTMENT - SECONDARY PAGES STYLES (subpage.css)
   ============================================================ */

/* ── 1. Subpage Hero / Banner Header ── */
.subpage-hero {
  position: relative;
  width: 100%;
  height: 50vh;
  min-height: 360px;
  max-height: 540px;
  background-image: url('../images/nybanner.jpg');
  background-position: center bottom;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
  box-sizing: border-box;
  padding: 100px 0 0 0;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.subpage-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 17, 40, 0.45) 0%, rgba(20, 33, 61, 0.25) 50%, rgba(10, 17, 40, 0.45) 100%);
  pointer-events: none;
}

.subpage-hero-bg-element {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 550px;
  height: 100%;
  background-image: url('../images/element_2.png');
  background-position: center right;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.15;
  pointer-events: none;
}

.subpage-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  width: 100%;
  height: 100%;
  padding-bottom: 0;
}

.subpage-hero-header-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding-bottom: 20px;
}

/* 主标题 */
.subpage-header-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 1px;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  line-height: 1.2;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

/* 面包屑导航 Breadcrumb：右侧触底，底边与 subpage_hero 底部 100% 精准齐平 */
.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 8px 18px;
  border-radius: 12px 12px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.breadcrumb-nav a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-nav a:hover {
  color: var(--accent, #e8a020);
}

.breadcrumb-sep {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
}

.breadcrumb-active {
  color: var(--accent, #e8a020);
  font-weight: 600;
}

.subpage-header-title-badge {
  display: inline-block;
  width: 6px;
  height: 36px;
  background: var(--accent, #e8a020);
  border-radius: 3px;
}

.subpage-header-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 780px;
  line-height: 1.7;
}

/* ── 2. Subpage Main Container & Sidebar Layout ── */
.subpage-body {
  padding: 60px 0 90px 0;
  background: #f8fafc;
  min-height: 600px;
}

.subpage-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

/* 侧边导航 Sidebar Nav (燕大蓝高端渐变卡片) */
.subpage-sidebar {
  position: -webkit-sticky;
  position: sticky;
  top: 125px;
  align-self: start;
  background: linear-gradient(145deg, #0d122b 0%, #1f296a 50%, #141a47 100%);
  border-radius: 16px;
  padding: 26px 22px;
  box-shadow: 0 12px 36px rgba(31, 41, 106, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 3px solid var(--accent, #e8a020);
  z-index: 10;
}

.sidebar-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--accent, #e8a020);
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.5px;
}

.sidebar-title a,
.sidebar-title span {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 兼容博达原生 MenuAction 未附带 class 的 ul/li 列表兜底 */
.subpage-sidebar ul:not(.sidebar-submenu) {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.subpage-sidebar ul:not(.sidebar-submenu) > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
  font-size: 1.0625rem;
  text-decoration: none;
  transition: all 0.3s ease;
  background: transparent;
}

.subpage-sidebar ul:not(.sidebar-submenu) > li > a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding-left: 24px;
}

.subpage-sidebar ul:not(.sidebar-submenu) > li.active > a,
.subpage-sidebar ul:not(.sidebar-submenu) > li.selected > a,
.subpage-sidebar ul:not(.sidebar-submenu) > li.current > a,
.subpage-sidebar ul:not(.sidebar-submenu) > li > a.active,
.subpage-sidebar ul:not(.sidebar-submenu) > li > a.selected,
.subpage-sidebar ul:not(.sidebar-submenu) > li > a.current {
  background: var(--accent, #e8a020);
  color: #141a47;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(232, 160, 32, 0.35);
}

.sidebar-menu-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
  font-size: 1.0625rem;
  text-decoration: none;
  transition: all 0.3s ease;
  background: transparent;
}

.sidebar-menu-item a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding-left: 24px;
}

.sidebar-menu-item.active>a {
  background: var(--accent, #e8a020);
  color: #141a47;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(232, 160, 32, 0.35);
}

.sidebar-menu-item.active>a:hover {
  padding-left: 20px;
}

/* ── 侧边栏二级与三级层级子菜单规范 ── */
.sidebar-menu-item.has-submenu {
  display: flex;
  flex-direction: column;
}

.sidebar-parent-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-radius: 8px;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
  background: rgba(255, 255, 255, 0.07);
  border-left: 3px solid rgba(255, 255, 255, 0.35);
  user-select: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-parent-label:hover {
  background: rgba(255, 255, 255, 0.14);
}

.sidebar-parent-label:active {
  transform: scale(0.99);
}

/* 用户自定义 parent-active 纯视觉美化样式（仅用于修饰一级导航标题外观，不参与控制菜单折叠与展开） */
.sidebar-menu-item.has-submenu.parent-active > .sidebar-parent-label {
  background: rgba(232, 160, 32, 0.15);
  color: var(--accent, #e8a020);
  border-left-color: var(--accent, #e8a020);
}

/* 高亮激活状态：悬浮展开、点击展开(.open)、或内部包含 .active 激活项 */
.subpage-sidebar .sidebar-menu-item.has-submenu:hover:not(.is-collapsed) > .sidebar-parent-label,
.subpage-sidebar .sidebar-menu-item.has-submenu.open > .sidebar-parent-label,
.subpage-sidebar .sidebar-menu-item.has-submenu.active .sidebar-parent-label,
.subpage-sidebar .sidebar-menu-item.has-submenu:not(.is-collapsed):has(.active) > .sidebar-parent-label,
.subpage-sidebar .sidebar-menu-item.has-submenu:not(.is-collapsed):has(.selected) > .sidebar-parent-label,
.subpage-sidebar .sidebar-menu-item.has-submenu:not(.is-collapsed):has(.current) > .sidebar-parent-label,
.sidebar-menu-item.has-submenu:hover:not(.is-collapsed) > .sidebar-parent-label,
.sidebar-menu-item.has-submenu.open > .sidebar-parent-label,
.sidebar-menu-item.has-submenu.active .sidebar-parent-label,
.sidebar-menu-item.has-submenu:not(.is-collapsed):has(.active) > .sidebar-parent-label,
.sidebar-menu-item.has-submenu:not(.is-collapsed):has(.selected) > .sidebar-parent-label,
.sidebar-menu-item.has-submenu:not(.is-collapsed):has(.current) > .sidebar-parent-label {
  background: rgba(232, 160, 32, 0.18);
  color: var(--accent, #e8a020);
  border-left-color: var(--accent, #e8a020);
}

.sidebar-parent-label .sub-arrow {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  display: inline-block;
  line-height: 1;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.25s ease;
}

/* 箭头旋转：仅当悬浮展开、点击展开(.open)、或内部含 .active 激活子项时旋转（不依赖 parent-active） */
.subpage-sidebar .sidebar-menu-item.has-submenu:hover:not(.is-collapsed) > .sidebar-parent-label .sub-arrow,
.subpage-sidebar .sidebar-menu-item.has-submenu.open > .sidebar-parent-label .sub-arrow,
.subpage-sidebar .sidebar-menu-item.has-submenu.active .sidebar-parent-label .sub-arrow,
.subpage-sidebar .sidebar-menu-item.has-submenu:not(.is-collapsed):has(.active) > .sidebar-parent-label .sub-arrow,
.subpage-sidebar .sidebar-menu-item.has-submenu:not(.is-collapsed):has(.selected) > .sidebar-parent-label .sub-arrow,
.subpage-sidebar .sidebar-menu-item.has-submenu:not(.is-collapsed):has(.current) > .sidebar-parent-label .sub-arrow,
.sidebar-menu-item.has-submenu:hover:not(.is-collapsed) > .sidebar-parent-label .sub-arrow,
.sidebar-menu-item.has-submenu.open > .sidebar-parent-label .sub-arrow,
.sidebar-menu-item.has-submenu.active .sidebar-parent-label .sub-arrow,
.sidebar-menu-item.has-submenu:not(.is-collapsed):has(.active) > .sidebar-parent-label .sub-arrow,
.sidebar-menu-item.has-submenu:not(.is-collapsed):has(.selected) > .sidebar-parent-label .sub-arrow,
.sidebar-menu-item.has-submenu:not(.is-collapsed):has(.current) > .sidebar-parent-label .sub-arrow {
  color: var(--accent, #e8a020);
  transform: rotate(180deg);
}

/* 二级子菜单：默认收起，仅在鼠标悬停、点击展开(.open)、或含 .active 激活子项时展开（完全去除 parent-active） */
.sidebar-submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 2px solid rgba(255, 255, 255, 0.15);
  display: none;
  flex-direction: column;
  gap: 5px;
}

.subpage-sidebar .sidebar-menu-item.has-submenu:hover:not(.is-collapsed) > .sidebar-submenu,
.subpage-sidebar .sidebar-menu-item.has-submenu.open > .sidebar-submenu,
.subpage-sidebar .sidebar-menu-item.has-submenu.active > .sidebar-submenu,
.subpage-sidebar .sidebar-menu-item.has-submenu:not(.is-collapsed):has(.active) > .sidebar-submenu,
.subpage-sidebar .sidebar-menu-item.has-submenu:not(.is-collapsed):has(.selected) > .sidebar-submenu,
.subpage-sidebar .sidebar-menu-item.has-submenu:not(.is-collapsed):has(.current) > .sidebar-submenu,
.sidebar-menu-item.has-submenu:hover:not(.is-collapsed) > .sidebar-submenu,
.sidebar-menu-item.has-submenu.open > .sidebar-submenu,
.sidebar-menu-item.has-submenu.active > .sidebar-submenu,
.sidebar-menu-item.has-submenu:not(.is-collapsed):has(.active) > .sidebar-submenu,
.sidebar-menu-item.has-submenu:not(.is-collapsed):has(.selected) > .sidebar-submenu,
.sidebar-menu-item.has-submenu:not(.is-collapsed):has(.current) > .sidebar-submenu {
  display: flex !important;
  padding: 6px 0 6px 10px;
  margin: 4px 0 2px 12px;
  animation: sidebarSubmenuFadeIn 0.22s ease-out;
}

@keyframes sidebarSubmenuFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sidebar-sub-item a {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px !important;
  border-radius: 6px !important;
  font-size: 0.9375rem !important;
  font-weight: 500 !important;
  color: rgba(255, 255, 255, 0.82) !important;
  text-decoration: none;
  background: transparent !important;
  box-shadow: none !important;
  transition: all 0.2s ease !important;
}

.sidebar-sub-item a:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.12) !important;
  padding-left: 18px !important;
}

.sidebar-sub-item.active a,
.sidebar-sub-item.selected a,
.sidebar-sub-item.current a,
.sidebar-sub-item a.active,
.sidebar-sub-item a.selected,
.sidebar-sub-item a.current {
  color: #141a47 !important;
  background: var(--accent, #e8a020) !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 12px rgba(232, 160, 32, 0.35) !important;
}

.sidebar-contact-card {
  margin-top: 28px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
}

.sidebar-contact-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-contact-card-phone {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent, #e8a020);
  text-decoration: none;
  display: block;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.sidebar-contact-card-sub {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
}

/* 主内容面板 Content Panel */
.subpage-content {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(31, 41, 106, 0.05);
  border: 1px solid rgba(226, 232, 240, 0.8);
  min-width: 0;
  box-sizing: border-box;
}

.content-section {
  margin-bottom: 50px;
}

.content-section:last-child {
  margin-bottom: 0;
}

.section-head-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark, #141a47);
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--accent, #e8a020);
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ── 3. 机构职能 (functions.html) 特有样式 ── */
/* 职责核心卡片 Grid */
.duties-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.duty-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.duty-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary, #1f296a);
  transition: width 0.3s ease;
}

.duty-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(31, 41, 106, 0.1);
  background: #ffffff;
  border-color: rgba(31, 41, 106, 0.2);
}

.duty-card:hover::before {
  width: 6px;
  background: var(--accent, #e8a020);
}

.duty-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(31, 41, 106, 0.08);
  color: var(--primary, #1f296a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.duty-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark, #141a47);
  margin-bottom: 10px;
}

.duty-card-desc {
  font-size: 0.90625rem;
  color: #64748b;
  line-height: 1.7;
}

/* 内部科室 Card Accordion / Tabs */
.dept-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dept-item-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  transition: all 0.3s ease;
}

.dept-item-card:hover {
  border-color: rgba(31, 41, 106, 0.25);
  box-shadow: 0 8px 24px rgba(31, 41, 106, 0.06);
}

.dept-header {
  padding: 20px 24px;
  background: #f8fafc;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.dept-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dept-badge {
  background: var(--primary, #1f296a);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
}

.dept-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark, #141a47);
}

.dept-phone-link {
  font-size: 0.90625rem;
  font-weight: 600;
  color: var(--accent, #e8a020);
  text-decoration: none;
  background: rgba(232, 160, 32, 0.1);
  padding: 6px 14px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.dept-phone-link:hover {
  background: var(--accent, #e8a020);
  color: #ffffff;
}

.dept-body {
  padding: 24px;
  line-height: 1.8;
  color: #475569;
  font-size: 0.9375rem;
  border-top: 1px solid #f1f5f9;
}

.dept-duties-list {
  padding-left: 20px;
  margin: 12px 0 0 0;
}

.dept-duties-list li {
  margin-bottom: 8px;
}

/* 组织架构图 Org Chart */
.org-chart-wrapper {
  background: #f8fafc;
  border-radius: 14px;
  padding: 30px;
  border: 1px dashed #cbd5e1;
  text-align: center;
}

.org-tree {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.org-node-top {
  background: linear-gradient(135deg, #141a47 0%, #1f296a 100%);
  color: #ffffff;
  padding: 16px 36px;
  border-radius: 12px;
  font-size: 1.15rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(31, 41, 106, 0.2);
}

.org-line-v {
  width: 2px;
  height: 24px;
  background: #cbd5e1;
}

.org-branches {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  width: 100%;
}

.org-node-child {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e293b;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

/* ── 4. 联系我们 (contact.html) 特有样式 ── */
/* 紧急联系热线大卡片 */
.emergency-banner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.emergency-card {
  background: linear-gradient(135deg, #ffffff 0%, #fff1f2 100%);
  border: 1px solid #fecdd3;
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(225, 29, 72, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.emergency-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(225, 29, 72, 0.12);
  border-color: #fda4af;
}

.emergency-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.emergency-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #9f1239;
  margin-bottom: 8px;
}

.emergency-number {
  font-size: 1.65rem;
  font-weight: 800;
  color: #e11d48;
  text-decoration: none;
  display: block;
  letter-spacing: 1px;
}

.emergency-desc {
  font-size: 0.8rem;
  color: #9d174d;
  margin-top: 6px;
  opacity: 0.8;
}

/* 联系方式全量表格/网格卡片 */
.contact-table-wrapper {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.contact-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9375rem;
}

.contact-table th {
  background: #f8fafc;
  color: var(--primary-dark, #141a47);
  font-weight: 700;
  padding: 16px 20px;
  border-bottom: 2px solid #e2e8f0;
}

.contact-table td {
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}

.contact-table tr:hover td {
  background: #f8fafc;
}

.contact-tel-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary, #1f296a);
  font-weight: 700;
  text-decoration: none;
  background: rgba(31, 41, 106, 0.06);
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.contact-tel-btn:hover {
  background: var(--primary, #1f296a);
  color: #ffffff;
}

/* 反馈表单 Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #f8fafc;
  padding: 32px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.90625rem;
  font-weight: 600;
  color: #1e293b;
}

.form-label span {
  color: #e11d48;
  margin-left: 4px;
}

.form-input,
.form-select,
.form-textarea {
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 0.9375rem;
  color: #0f172a;
  background: #ffffff;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary, #1f296a);
  box-shadow: 0 0 0 3px rgba(31, 41, 106, 0.12);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit-btn {
  background: linear-gradient(135deg, #141a47 0%, #1f296a 100%);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 32px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(31, 41, 106, 0.2);
  align-self: flex-start;
}

.form-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(31, 41, 106, 0.3);
  background: linear-gradient(135deg, #1f296a 0%, #2b3a8c 100%);
}

/* ── 5. 博达列表页与正文页 (list.html & detail.html) 专属样式 ── */
.boda-article-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* 新闻动态图文列表卡片 (包含缩略图、标题、日期、摘要、属性) */
.boda-article-card-thumb {
  display: flex;
  align-items: stretch;
  gap: 24px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.boda-article-card-thumb:hover {
  transform: translateY(-3px);
  border-color: rgba(31, 41, 106, 0.25);
  box-shadow: 0 12px 32px rgba(31, 41, 106, 0.1);
}

.article-thumb-wrapper {
  position: relative;
  width: 230px;
  min-width: 230px;
  height: 145px;
  border-radius: 12px;
  overflow: hidden;
  background: #f1f5f9;
  flex-shrink: 0;
}

.article-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.boda-article-card-thumb:hover .article-thumb-img {
  transform: scale(1.08);
}

.article-category-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  color: var(--accent, #e8a020);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.article-main-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  min-width: 0;
}

.article-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 8px 0;
}

.article-title a {
  color: var(--primary-dark, #141a47);
  text-decoration: none;
  transition: color 0.3s ease;
}

.article-title a:hover {
  color: var(--accent-dark, #c48010);
}

.article-date-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.8125rem;
  color: #64748b;
  margin-bottom: 8px;
}

.article-date-row span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-summary {
  font-size: 0.90625rem;
  color: #475569;
  line-height: 1.6;
  margin: 0 0 12px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
  font-size: 0.8125rem;
  color: #94a3b8;
}

.article-readmore-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary, #1f296a);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.article-readmore-btn:hover {
  color: var(--accent, #e8a020);
  transform: translateX(4px);
}

/* 通知公告纯文字+左侧组合日期列表卡片 (.boda-notice-card) */
.boda-notice-card {
  display: flex;
  align-items: stretch;
  gap: 22px;
  padding: 22px 24px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.boda-notice-card:hover {
  transform: translateY(-3px);
  border-color: rgba(31, 41, 106, 0.25);
  box-shadow: 0 12px 32px rgba(31, 41, 106, 0.1);
}

.article-date-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  width: 90px;
  padding: 12px 10px;
  background: linear-gradient(145deg, #f8fafc 0%, #edf2f7 100%);
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  text-align: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.boda-notice-card:hover .article-date-box {
  background: linear-gradient(145deg, #141a47 0%, #1f296a 100%);
  border-color: #141a47;
}

.article-day {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--primary, #1f296a);
  line-height: 1;
  transition: color 0.3s ease;
}

.boda-notice-card:hover .article-day {
  color: var(--accent, #e8a020);
}

.article-month {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  margin-top: 6px;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.boda-notice-card:hover .article-month {
  color: rgba(255, 255, 255, 0.85);
}

/* 经典高密度行列表 (.boda-notice-dense-list & .boda-notice-dense-row) */
.boda-notice-dense-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.boda-notice-dense-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: all 0.25s ease;
  text-decoration: none;
}

.boda-notice-dense-row:hover {
  transform: translateX(4px);
  border-color: rgba(31, 41, 106, 0.3);
  box-shadow: 0 6px 20px rgba(31, 41, 106, 0.08);
  background: #ffffff;
}

.notice-dense-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.notice-dense-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary, #1f296a);
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.boda-notice-dense-row:hover .notice-dense-date {
  background: var(--primary, #1f296a);
  border-color: var(--primary, #1f296a);
  color: var(--accent, #e8a020);
}

.notice-dense-title {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text, #0f172a);
  line-height: 1.6;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s ease;
}

.boda-notice-dense-row:hover .notice-dense-title {
  color: var(--accent-dark, #c48010);
}

.notice-dense-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary, #1f296a);
  background: #f8fafc;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.notice-dense-link .arrow {
  transition: transform 0.3s ease;
}

.boda-notice-dense-row:hover .notice-dense-link {
  background: var(--accent, #e8a020);
  color: #141a47;
  border-color: var(--accent, #e8a020);
  box-shadow: 0 4px 14px rgba(232, 160, 32, 0.3);
}

.boda-notice-dense-row:hover .notice-dense-link .arrow {
  transform: translateX(3px);
}

/* 通用标准行列表 (标题左对齐，日期右对齐 - .boda-common-list & .boda-common-row) */
.boda-common-list {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  padding: 8px 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.boda-common-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 12px;
  border-bottom: 1px dashed #e2e8f0;
  text-decoration: none;
  transition: all 0.25s ease;
  border-radius: 8px;
}

.boda-common-row:last-child {
  border-bottom: none;
}

.boda-common-row:hover {
  background: #f8fafc;
  padding-left: 18px;
}

.common-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.common-row-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-dark, #c48010);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.boda-common-row:hover .common-row-bullet {
  transform: scale(1.4);
  background: var(--primary, #1f296a);
}

.common-row-title {
  font-size: 1.0625rem;
  font-weight: 500;
  color: #1e293b;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.25s ease;
  line-height: 1.5;
}

.boda-common-row:hover .common-row-title {
  color: var(--primary, #1f296a);
  font-weight: 600;
}

.common-row-date {
  font-size: 0.875rem;
  color: #94a3b8;
  font-family: inherit;
  flex-shrink: 0;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.boda-common-row:hover .common-row-date {
  color: #64748b;
}

/* 致敬校园守护者 - 2列大图卡片矩阵 (.boda-photo-grid & .boda-photo-card) */
.boda-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.boda-photo-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  transition: all 0.35s ease;
  text-decoration: none;
}

.boda-photo-card:hover {
  transform: translateY(-6px);
  border-color: rgba(31, 41, 106, 0.25);
  box-shadow: 0 16px 36px rgba(31, 41, 106, 0.12);
}

.photo-card-imgbox {
  position: relative;
  width: 100%;
  height: 230px;
  overflow: hidden;
  background: #0f172a;
}

.photo-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.boda-photo-card:hover .photo-card-img {
  transform: scale(1.08);
}

.photo-card-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(31, 41, 106, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--accent, #e8a020);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(232, 160, 32, 0.4);
  z-index: 2;
}

.photo-card-body {
  display: flex;
  flex-direction: column;
  padding: 20px 22px;
  flex: 1;
}

.photo-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.45;
  margin: 0 0 10px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s ease;
}

.boda-photo-card:hover .photo-card-title {
  color: var(--primary, #1f296a);
}

.photo-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.8125rem;
  color: #64748b;
  margin-bottom: 12px;
}

.photo-card-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.photo-card-desc {
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.6;
  margin: 0 0 16px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.photo-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px dashed #e2e8f0;
  margin-top: auto;
}

.photo-card-views {
  font-size: 0.8125rem;
  color: #94a3b8;
}

.photo-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary, #1f296a);
  transition: all 0.3s ease;
}

.boda-photo-card:hover .photo-card-btn {
  color: var(--accent-dark, #c48010);
  transform: translateX(4px);
}

/* 分页器 */
.boda-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
  font-size: 0.9rem;
}

.boda-pagination a,
.boda-pagination span {
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: #475569;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  transition: all 0.3s ease;
}

.boda-pagination .page-current {
  background: var(--primary, #1f296a);
  color: #ffffff;
  border-color: var(--primary, #1f296a);
  font-weight: 700;
}

.boda-pagination a:hover {
  border-color: var(--primary, #1f296a);
  color: var(--primary, #1f296a);
}

.page-total {
  border: none !important;
  background: transparent !important;
  color: #94a3b8 !important;
}

/* 正文页细节 */
.detail-header {
  text-align: center;
  padding-bottom: 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid #e2e8f0;
}

.detail-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-dark, #141a47);
  line-height: 1.4;
  margin-bottom: 16px;
}

.detail-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.875rem;
  color: #64748b;
}

.detail-print-btn {
  cursor: pointer;
  color: var(--primary, #1f296a);
  font-weight: 600;
  transition: opacity 0.3s ease;
}

.detail-print-btn:hover {
  opacity: 0.7;
}

.detail-body {
  font-size: 1rem;
  line-height: 1.95;
  color: #334155;
}

/* ── 6. 博达站群通用文章与富文本表格自动高质感渲染 (.boda-page-content & .boda-article-detail) ── */
.boda-page-content,
.boda-article-detail {
  font-size: 1rem;
  line-height: 1.9;
  color: #334155;
  width: 100%;
  box-sizing: border-box;
}

/* 标题自动渲染 */
.boda-page-content h1,
.boda-article-detail h1,
.boda-page-content h2,
.boda-article-detail h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-dark, #141a47);
  margin: 32px 0 16px 0;
  padding-left: 12px;
  border-left: 4px solid var(--accent, #e8a020);
  line-height: 1.4;
}

.boda-page-content h1:first-child,
.boda-article-detail h1:first-child,
.boda-page-content h2:first-child,
.boda-article-detail h2:first-child {
  margin-top: 0;
}

.boda-page-content h3,
.boda-article-detail h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary, #1f296a);
  margin: 24px 0 12px 0;
}

.boda-page-content p,
.boda-article-detail p,
.boda-article-detail .v_news_content p,
.boda-article-detail [id^="vsb_content"] p {
  margin-bottom: 16px;
  text-align: justify;
  line-height: 1.9;
}

/* 表格响应式包裹容器（防撑爆） */
.table-responsive-wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 24px 0;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.table-responsive-wrapper > table {
  margin: 0 !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* 用户编辑器插入的标准 HTML 表格 (自动美化提升) */
.boda-page-content table,
.boda-article-detail table,
.boda-article-detail .v_news_content table,
.boda-article-detail [id^="vsb_content"] table {
  width: 100% !important;
  max-width: 100% !important;
  border-collapse: collapse !important;
  margin: 24px 0 !important;
  font-size: 0.9375rem !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  border: 1px solid #cbd5e1 !important;
}

.boda-page-content table th,
.boda-page-content table td,
.boda-article-detail table th,
.boda-article-detail table td,
.boda-article-detail .v_news_content table th,
.boda-article-detail .v_news_content table td,
.boda-article-detail [id^="vsb_content"] table th,
.boda-article-detail [id^="vsb_content"] table td {
  padding: 14px 18px !important;
  border: 1px solid #cbd5e1 !important;
  vertical-align: middle !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
}

.boda-page-content table th,
.boda-page-content table thead tr td,
.boda-article-detail table th,
.boda-article-detail table thead tr td,
.boda-article-detail .v_news_content table th,
.boda-article-detail .v_news_content table thead tr td,
.boda-article-detail [id^="vsb_content"] table th,
.boda-article-detail [id^="vsb_content"] table thead tr td {
  background: linear-gradient(135deg, #141a47 0%, #1f296a 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  text-align: center !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.boda-page-content table td,
.boda-article-detail table td,
.boda-article-detail .v_news_content table td,
.boda-article-detail [id^="vsb_content"] table td {
  color: #334155 !important;
}

.boda-page-content table tbody tr:nth-child(even),
.boda-article-detail table tbody tr:nth-child(even),
.boda-article-detail .v_news_content table tbody tr:nth-child(even),
.boda-article-detail [id^="vsb_content"] table tbody tr:nth-child(even) {
  background-color: #f8fafc !important;
}

.boda-page-content table tbody tr:hover,
.boda-article-detail table tbody tr:hover,
.boda-article-detail .v_news_content table tbody tr:hover,
.boda-article-detail [id^="vsb_content"] table tbody tr:hover {
  background-color: #f1f5f9 !important;
}

.boda-page-content table a,
.boda-article-detail table a,
.boda-article-detail .v_news_content table a,
.boda-article-detail [id^="vsb_content"] table a {
  color: var(--primary, #1f296a);
  font-weight: 700;
  text-decoration: none;
}

.boda-page-content table a:hover,
.boda-article-detail table a:hover,
.boda-article-detail .v_news_content table a:hover,
.boda-article-detail [id^="vsb_content"] table a:hover {
  color: var(--accent, #e8a020);
  text-decoration: underline;
}

/* 列表渲染 */
.boda-page-content ul,
.boda-page-content ol,
.boda-article-detail ul,
.boda-article-detail ol,
.boda-article-detail .v_news_content ul,
.boda-article-detail .v_news_content ol,
.boda-article-detail [id^="vsb_content"] ul,
.boda-article-detail [id^="vsb_content"] ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.boda-page-content li,
.boda-article-detail li,
.boda-article-detail .v_news_content li,
.boda-article-detail [id^="vsb_content"] li {
  margin-bottom: 8px;
}

/* 紧急求助/重点强调提示框 (可直接通过富文本 blockquote 或 div 引用) */
.boda-emergency-box,
.boda-page-content blockquote {
  background: linear-gradient(135deg, #ffffff 0%, #fff1f2 100%);
  border: 1px solid #fecdd3;
  border-left: 5px solid #e11d48;
  padding: 20px 24px;
  border-radius: 12px;
  margin: 24px 0;
  color: #9f1239;
}

/* ── 7. 文章正文附件卡片样式 (全站统一高质感渲染) ── */
.detail-attachment-box {
  margin: 18px 0 !important;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 18px 24px;
  border-radius: 14px;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  text-indent: 0 !important; /* 彻底清除段落首行缩进影响，解决向右偏移 */
  margin-left: 0 !important;
  margin-right: 0 !important;
  text-align: left !important;
  clear: both;
}

.detail-attachment-box:hover {
  border-color: rgba(31, 41, 106, 0.22);
  box-shadow: 0 6px 20px rgba(31, 41, 106, 0.06);
  transform: translateY(-2px);
}

.detail-attachment-box *,
.detail-attachment-box div,
.detail-attachment-box span,
.detail-attachment-box a,
.detail-attachment-box p {
  text-indent: 0 !important; /* 内部所有元素首行缩进彻底归零 */
  box-sizing: border-box;
}

.detail-attachment-box .attachment-left-group {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 1;
}

.detail-attachment-box .attachment-icon-wrapper {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 50px;
}

.detail-attachment-box .attachment-icon-wrapper svg {
  display: block;
  width: 34px;
  height: 42px;
}

.detail-attachment-box .attachment-info-group {
  min-width: 0;
  flex: 1;
}

.detail-attachment-box .attachment-title {
  font-weight: 700;
  color: #1e293b;
  font-size: 1.0625rem;
  line-height: 1.45;
  word-break: break-all;
}

.detail-attachment-box .attachment-meta {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 6px;
  line-height: 1.4;
}

.detail-attachment-box .attachment-download-btn {
  background: var(--primary, #1f296a);
  color: #ffffff !important;
  padding: 9px 22px;
  border-radius: 8px;
  font-size: 0.90625rem;
  text-decoration: none;
  font-weight: 600;
  flex-shrink: 0;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(31, 41, 106, 0.15);
  transition: all 0.25s ease;
}

.detail-attachment-box .attachment-download-btn:hover {
  background: var(--primary-light, #2b398f) !important;
  box-shadow: 0 4px 12px rgba(31, 41, 106, 0.25) !important;
  transform: translateY(-1px);
}