:root {
  --primary: #009bb0;
  --primary-dark: #007c90;
  --primary-soft: #e7f8fa;
  --warm: #fff8ef;
  --ink: #17333a;
  --muted: #6a7f86;
  --line: rgba(0, 155, 176, 0.16);
  --card: rgba(255, 255, 255, 0.78);
  --shadow: 0 24px 70px rgba(0, 112, 128, 0.16);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
}

/* 强制保留滚动条空间，避免首页(fixed)和其他页面(sticky)因滚动条导致导航栏水平偏移 */
html {
  scrollbar-gutter: stable;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(0, 155, 176, 0.16), transparent 34rem),
    radial-gradient(circle at top right, rgba(255, 202, 138, 0.22), transparent 28rem),
    linear-gradient(180deg, #f8feff 0%, #ffffff 46%, #f7fbfb 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(1180px, calc(100% - 32px));
  margin: 0px auto 0;
  padding: 12px 14px 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(22px);
  box-shadow: 0 16px 45px rgba(26, 112, 124, 0.12);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: white;
  font-weight: 800;
  border-radius: 15px;
  box-shadow: 0 12px 24px rgba(0, 155, 176, 0.28);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
}

.site-nav {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 4px;
}

.nav-item {
  position: relative;
  padding-bottom: 18px;
  margin-bottom: -18px;
}

.site-nav a,
.nav-item > a {
  display: inline-flex;
  white-space: nowrap;
  padding: 10px 12px;
  color: #3f5960;
  border-radius: 999px;
  font-size: 14px;
  transition: 0.2s ease;
}

.site-nav a:hover,
.nav-item:hover > a,
.site-nav a.active {
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.submenu {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  z-index: 30;
  display: grid;
  min-width: 180px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* 增加可点击的 hover 桥接区域 */
.nav-item::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 18px;
  z-index: 29;
}

.submenu a {
  justify-content: flex-start;
  border-radius: 14px;
}

.nav-item:hover .submenu,
.nav-item:focus-within .submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-cta,
.btn.primary {
  color: white;
  background: linear-gradient(135deg, var(--primary), #26bfa5);
  box-shadow: 0 14px 30px rgba(0, 155, 176, 0.24);
}

.btn.ghost {
  color: var(--primary-dark);
  background: white;
  border: 1px solid var(--line);
}

.btn.outline {
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 155, 176, 0.28);
  box-shadow: 0 12px 26px rgba(0, 112, 128, 0.08);
}

.header-cta:hover,
.btn:hover {
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0;
}

.section.is-panel {
  padding: 58px 42px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(255, 248, 239, 0.9), rgba(231, 248, 250, 0.72));
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  align-items: center;
  min-height: calc(100vh - 80px);
  gap: 42px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 8px 14px;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
  border-radius: 999px;
  background: var(--primary-soft);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h3 {
  font-size: 22px;
}

p {
  color: var(--muted);
  line-height: 1.8;
}

.hero-copy p {
  max-width: 640px;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-metrics span {
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.7);
}

.hero-metrics b {
  display: block;
  color: var(--primary-dark);
  font-size: 24px;
}

.hero-panel {
  position: relative;
  display: grid;
  min-height: 500px;
  place-items: center;
  border-radius: 46px;
  background:
    linear-gradient(145deg, rgba(0, 155, 176, 0.92), rgba(58, 199, 164, 0.78)),
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.32), transparent 17rem);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-panel::before,
.hero-panel::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.hero-panel::before {
  width: 240px;
  height: 240px;
  left: -70px;
  top: 50px;
}

.hero-panel::after {
  width: 360px;
  height: 360px;
  right: -120px;
  bottom: -90px;
}

.glass-card,
.soft-card,
.column-card,
.contact-card {
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: var(--radius-xl);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.schedule-card {
  position: relative;
  z-index: 1;
  width: min(390px, calc(100% - 42px));
  padding: 30px;
  color: white;
  background: rgba(255, 255, 255, 0.22);
}

.tag {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.quick-grid a {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.2);
}

.floating-card {
  position: absolute;
  right: 28px;
  bottom: 38px;
  z-index: 2;
  padding: 18px 22px;
  border-radius: 22px;
  color: var(--ink);
  background: #fffaf2;
  box-shadow: 0 18px 50px rgba(0, 70, 80, 0.18);
}

.floating-card span,
.floating-card strong {
  display: block;
}

.section-head {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.quick-service {
  padding-top: 24px;
}

.service-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.service-strip a,
.soft-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.service-strip a:hover,
.soft-card:hover,
.department-card:hover,
.doctor-card:hover,
.news-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 155, 176, 0.38);
  box-shadow: var(--shadow);
}

.service-strip span {
  display: block;
  color: var(--primary);
  font-weight: 900;
}

.about-grid,
.service-cards,
.card-grid,
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.tinted {
  width: 100%;
  max-width: none;
  padding-inline: max(16px, calc((100% - 1180px) / 2));
  background:
    radial-gradient(circle at 80% 0%, rgba(255, 202, 138, 0.18), transparent 30rem),
    linear-gradient(180deg, rgba(231, 248, 250, 0.76), rgba(255, 255, 255, 0.88));
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

input,
select,
textarea {
  width: 100%;
  padding: 15px 17px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 18px;
  outline: 0;
  background: rgba(255, 255, 255, 0.86);
}

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

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 155, 176, 0.12);
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pills button {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--primary-dark);
  cursor: pointer;
  background: white;
}

.pills button.active {
  color: white;
  border-color: transparent;
  background: var(--primary);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 24px;
}

.filter-btn {
  position: relative;
  min-width: 104px;
  padding: 12px 20px;
  border: 1px solid rgba(0, 155, 176, 0.22);
  border-radius: 999px;
  color: var(--primary-dark);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 26px rgba(0, 112, 128, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.filter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 112, 128, 0.14);
}

.filter-btn.active {
  color: white;
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary), #3cc7a4);
  box-shadow: 0 16px 34px rgba(0, 155, 176, 0.24);
}

.department-card,
.doctor-card,
.news-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.88);
  transition: 0.22s ease;
}

.department-icon,
.avatar {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin-bottom: 18px;
  color: white;
  font-size: 23px;
  font-weight: 900;
  border-radius: 21px;
  background: linear-gradient(135deg, var(--primary), #58cfb5);
}

.department-meta,
.doctor-meta,
.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

.department-meta span,
.doctor-meta span,
.news-meta span {
  display: inline-flex;
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
}

.news-rich-card {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  padding: 0;
}

/* ── 岗位列表 ── */
.job-card-row {
  padding: 24px 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}

.job-card-info h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.job-card-dept {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.job-card-tags {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.job-card-tags span {
  font-size: 12px;
  padding: 3px 10px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 999px;
}

/* ── 人才福利图文卡片 ── */
.benefit-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 1000px;
  margin: 0 auto;
}

.benefit-media-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 42px rgba(0, 44, 52, 0.06);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.benefit-media-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 58px rgba(0, 44, 52, 0.1);
}

.benefit-media-card img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 10px 24px rgba(0, 112, 128, 0.12);
}

.benefit-media-card h3 {
  margin-bottom: 6px;
  font-size: 18px;
}

.benefit-media-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

/* ── 岗位详情 ── */
.job-detail-hero {
  min-height: auto;
  padding: 44px 0 22px;
}

.job-detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

.job-detail-main {
  background: white;
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow);
}

.job-detail-section {
  margin-bottom: 28px;
}

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

.job-detail-section h3 {
  font-size: 18px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.job-detail-section ul {
  padding-left: 20px;
  color: #2d3436;
  line-height: 1.9;
}

.job-detail-section li {
  margin-bottom: 6px;
}

.job-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.job-side-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow);
}

.job-side-card h3 {
  font-size: 16px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.job-side-card p {
  font-size: 14px;
  margin-bottom: 10px;
  color: var(--muted);
}

.job-side-card p strong {
  color: var(--ink);
}

.job-hr-card .job-hr-qr {
  margin-top: 14px;
  text-align: center;
}

.job-hr-card .job-hr-qr img {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-lg);
  display: block;
  margin: 0 auto 8px;
  box-shadow: var(--shadow);
}

.job-hr-card .job-hr-qr span {
  font-size: 13px;
  color: var(--muted);
}

/* ── HR 联系信息 ── */
.hr-contact-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 28px;
  max-width: 1000px;
  margin: 0 auto;
  align-items: start;
}

.hr-contact-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow);
}

.hr-contact-card h3 {
  font-size: 18px;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.hr-contact-item {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
}

.hr-contact-item:last-child {
  margin-bottom: 0;
}

.hr-contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}

.hr-contact-label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 2px;
}

.hr-contact-value {
  font-size: 15px;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.5;
}

.hr-contact-qr .hr-contact-card {
  padding: 24px;
}

/* ── 联系我们信息卡片 ── */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 920px;
  margin: 0 auto;
}

.contact-info-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px 18px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.contact-info-icon {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 22px;
  background: var(--primary-soft);
  font-size: 26px;
}

.contact-info-card h3 {
  margin-bottom: 0;
  font-size: 18px;
}

.contact-info-card p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
  word-break: normal;
}

.news-list {
  display: grid;
  gap: 22px;
}

.news-card-image {
  display: block;
  overflow: hidden;
  min-height: 210px;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  transition: transform 0.35s ease;
}

.news-rich-card:hover .news-card-image img {
  transform: scale(1.06);
}

.news-rich-body {
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.news-rich-body h3 a {
  color: var(--ink);
  transition: color 0.2s;
}

.news-rich-body h3 a:hover,
.news-more:hover {
  color: var(--primary-dark);
}

.news-more {
  margin-top: auto;
  padding-top: 18px;
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 800;
}

.article-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.78fr);
  align-items: center;
  gap: 34px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 28px;
}

.article-detail-title {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.article-detail-title h1 {
  margin: 16px 0;
  font-size: clamp(30px, 4.6vw, 58px);
  line-height: 1.08;
}

.article-byline {
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
}

.article-cover {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.article-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
  align-items: start;
}

.article-content {
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.article-content p {
  color: #40585f;
  font-size: 17px;
  line-height: 2.05;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.article-tags span {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.article-sidebar {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 110px;
}

.article-side-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.article-side-card h3 {
  margin-bottom: 16px;
}

.article-side-card a {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}

.article-side-card a:first-of-type {
  border-top: 0;
}

.article-side-card b {
  color: var(--primary);
}

.related-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.related-news-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.related-news-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.related-news-card div {
  padding: 18px;
}

.related-news-card span {
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
}

.related-news-card h3 {
  margin: 8px 0;
  font-size: 18px;
}

.article-pager {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.article-pager a {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.88);
}

.article-pager a:last-child {
  text-align: right;
}

.article-pager a.disabled {
  color: var(--muted);
  pointer-events: none;
  opacity: 0.62;
}

.doctor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* ── 党建动态列表 ── */
.party-article-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
}

.party-article-item {
  min-height: 190px;
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  border-left: 4px solid #c0392b;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.party-article-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 44, 52, 0.08);
}

.party-article-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}

.party-article-category {
  font-size: 12px;
  font-weight: 600;
  color: #c0392b;
  background: rgba(192, 57, 43, 0.08);
  padding: 2px 10px;
  border-radius: 20px;
}

.party-article-date {
  font-size: 13px;
  color: var(--muted);
}

.party-article-item h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.party-article-item h3 a {
  color: var(--ink);
}

.party-article-item h3 a:hover {
  color: var(--primary-dark);
}

.party-article-item p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.pager {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.pager button {
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(0, 155, 176, 0.22);
  border-radius: 999px;
  color: var(--primary-dark);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 20px rgba(0, 112, 128, 0.08);
  transition: transform 0.2s, background 0.2s, color 0.2s;
}

.pager button:hover:not(:disabled),
.pager button.active {
  color: white;
  background: var(--primary);
  transform: translateY(-1px);
}

.pager button:disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.55;
}

/* ── 党建详情页 ── */
.party-detail-hero {
  padding: 56px 0 40px;
  background: linear-gradient(180deg, rgba(192, 57, 43, 0.06) 0%, transparent 100%);
}

.party-detail-title {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  padding: 0 20px;
}

.party-detail-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--muted);
}

.party-detail-meta span:first-child {
  color: #c0392b;
  font-weight: 600;
  background: rgba(192, 57, 43, 0.08);
  padding: 2px 12px;
  border-radius: 20px;
}

.party-detail-title h1 {
  font-size: clamp(22px, 3.5vw, 34px);
  line-height: 1.3;
}

.party-detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 36px;
  align-items: start;
}

.party-detail-content {
  background: white;
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow);
}

.party-detail-content p {
  margin-bottom: 18px;
  line-height: 1.9;
  color: #2d3436;
}

.article-content img,
.party-detail-content img {
  max-width: 100%;
  display: block;
  margin: 22px auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.article-content figure,
.party-detail-content figure {
  margin: 24px 0;
}

.article-content figcaption,
.party-detail-content figcaption {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin-top: 8px;
}

.article-content blockquote,
.party-detail-content blockquote {
  margin: 22px 0;
  padding: 14px 20px;
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--primary-soft);
  color: #35555d;
}

.party-detail-source {
  margin: 28px 0 18px;
  padding: 20px 24px;
  background: var(--warm);
  border-radius: var(--radius-lg);
  border-left: 3px solid #c0392b;
}

.party-detail-source p {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--muted);
}

.party-detail-source p:last-child {
  margin-bottom: 0;
}

.party-detail-source a {
  color: var(--primary-dark);
  word-break: break-all;
}

.party-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.doctor-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.doctor-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

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

.doctor-intro {
  font-size: 14px;
}

.doctor-toolbar {
  display: grid;
  grid-template-columns: 180px minmax(260px, 420px);
  justify-content: center;
  gap: 14px;
  margin: 0 auto 30px;
}

.doctor-select {
  width: 180px;
  min-height: 46px;
  padding: 0 42px 0 16px;
  border: 1px solid rgba(0, 155, 176, 0.22);
  border-radius: 999px;
  color: var(--primary-dark);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 26px rgba(0, 112, 128, 0.08);
}

.appointment-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 980px;
  margin: 0 auto;
}

.appointment-step {
  padding: 20px 18px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
}

.appointment-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  border-radius: 16px;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), #3cc7a4);
}

.appointment-step strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.appointment-step p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

.smart-section {
  width: 100%;
  max-width: none;
  padding-inline: max(16px, calc((100% - 1180px) / 2));
  color: white;
  background:
    radial-gradient(circle at 30% 0%, rgba(255, 255, 255, 0.2), transparent 22rem),
    linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.smart-section .eyebrow {
  color: white;
  background: rgba(255, 255, 255, 0.16);
}

.smart-section p,
.smart-section h2 {
  color: white;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.timeline span {
  padding: 24px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.12);
}

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

.column-card,
.contact-card {
  padding: 36px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 248, 239, 0.82));
}

.form-section {
  width: 100%;
  max-width: none;
  padding-inline: max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(180deg, #fff, var(--warm));
}

form {
  display: grid;
  gap: 13px;
  padding: 28px;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: white;
}

.faq-item button {
  width: 100%;
  padding: 20px;
  border: 0;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  background: transparent;
}

.faq-item p {
  display: none;
  padding: 0 20px 20px;
}

.faq-item.open p {
  display: block;
}

.contact-section {
  padding-top: 40px;
}

.contact-card {
  min-height: 300px;
  background:
    linear-gradient(135deg, rgba(0, 155, 176, 0.92), rgba(38, 191, 165, 0.82)),
    radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.35), transparent 18rem);
}

.contact-card,
.contact-card p {
  color: white;
}

.contact-card .eyebrow {
  color: white;
  background: rgba(255, 255, 255, 0.18);
}

.site-footer {
  width: 100%;
  margin: 80px 0 0;
  padding: 44px 0 24px;
  color: rgba(255, 255, 255, 0.72);
  text-align: left;
  background: #12343b;
}

.department-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.department-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

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

.department-card h3 a {
  color: var(--ink);
  transition: color 0.2s;
}

.department-card h3 a:hover {
  color: var(--primary-dark);
}

.department-card .department-more {
  margin-top: auto;
  padding-top: 18px;
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 800;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.08fr 1.15fr 1.22fr;
  align-items: start;
  gap: 52px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.footer-about {
  display: grid;
  gap: 14px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-size: 18px;
  font-weight: 700;
}

.footer-desc {
  max-width: 440px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

.footer-links-wrap h3,
.footer-contact h3 {
  margin: 0 0 16px;
  color: white;
  font-size: 16px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(96px, 1fr));
  gap: 11px 22px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  transition: color 0.2s, transform 0.2s;
}

.footer-links a:hover {
  color: white;
  transform: translateX(3px);
}

.footer-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  align-items: start;
  gap: 18px;
}

.footer-contact p {
  margin: 0 0 9px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

.footer-qr {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.footer-qr img {
  width: 108px;
  height: 108px;
  padding: 6px;
  border-radius: 18px;
  background: white;
}

.footer-qr span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
}

.footer-copy {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  text-align: center;
}

.site-footer p[style] {
  margin: 0;
  color: rgba(255, 255, 255, 0.68) !important;
}

.mobile-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 18;
  display: grid;
  gap: 10px;
}

.mobile-float a {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: white;
  font-size: 13px;
  font-weight: 800;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--primary), #35c1aa);
  box-shadow: 0 14px 34px rgba(0, 155, 176, 0.28);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 30;
  max-width: min(420px, calc(100% - 32px));
  padding: 14px 18px;
  color: white;
  border-radius: 999px;
  background: rgba(23, 51, 58, 0.92);
  transform: translate(-50%, 140%);
  transition: transform 0.25s ease;
}

.toast.show {
  transform: translate(-50%, 0);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.8fr);
  align-items: center;
  gap: 36px;
  min-height: 420px;
  padding-top: 76px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(28px, 4vw, 48px);
}

.page-hero-image,
.soft-card img,
.guide-layout img {
  display: block;
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.page-hero-image {
  aspect-ratio: 1.55;
  object-fit: cover;
}

/* ── 子页面精简简介区 ── */
.subpage-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 20px;
  border-bottom: 1px solid var(--line);
}

.subpage-hero h1 {
  font-size: clamp(22px, 3vw, 32px);
  margin-bottom: 6px;
}

.subpage-hero p {
  max-width: 520px;
  font-size: 15px;
  line-height: 1.7;
}

.subpage-hero .subpage-hero-image {
  width: 260px;
  aspect-ratio: 1.6;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.subpage-hero .subpage-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .subpage-hero {
    padding-top: 20px;
  }

  .subpage-hero .subpage-hero-image {
    width: 100%;
    max-width: 320px;
  }
}

.about-overview {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 42px;
}

.about-gallery {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: repeat(2, 180px);
  gap: 16px;
}

.about-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.about-gallery img:first-child {
  grid-row: span 2;
}

.about-copy {
  padding: 12px 0;
}

.about-copy p {
  font-size: 16px;
  line-height: 1.9;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 26px;
}

.about-stat {
  padding: 18px 14px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
}

.about-stat b {
  display: block;
  color: var(--primary-dark);
  font-size: 28px;
  line-height: 1.1;
}

.about-stat span {
  color: var(--muted);
  font-size: 13px;
}

.about-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.about-timeline::before {
  content: "";
  position: absolute;
  left: 7%;
  right: 7%;
  top: 28px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 155, 176, 0.52), transparent);
}

.about-time-item {
  position: relative;
  z-index: 1;
  padding: 0 10px;
  text-align: center;
}

.about-time-item::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  margin: 20px auto 18px;
  border: 5px solid #fff;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 8px 18px rgba(0, 155, 176, 0.24);
}

.about-time-item h3 {
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.about-time-item p {
  font-size: 14px;
  line-height: 1.7;
}

.honor-tile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  --radius-xl: 10px;
}

.honor-tile {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  transform-origin: center;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.honor-tile:hover {
  z-index: 2;
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 32px 90px rgba(0, 70, 80, 0.24);
}

.honor-tile img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.honor-tile:hover img {
  transform: scale(1.08);
}

.honor-tile div {
  padding: 18px 20px 20px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
}

.honor-tile h3 {
  margin-bottom: 6px;
  font-size: 18px;
  color: var(--ink);
}

.honor-tile p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.dept-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
  gap: 34px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 24px;
}

.dept-detail-card {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.dept-detail-card h1 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4.5vw, 56px);
}

.dept-detail-cover {
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.dept-detail-cover img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}

.dept-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.dept-info-grid span {
  padding: 16px;
  border-radius: 20px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 700;
}

.dept-info-grid small {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-weight: 500;
}

.dept-feature-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: stretch;
}

.dept-feature-list {
  display: grid;
  gap: 14px;
}

.dept-feature-list article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
}

.dept-equipment-grid,
.dept-style-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.dept-photo-tile {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: white;
  box-shadow: var(--shadow);
}

.dept-photo-tile img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.32s ease;
}

.dept-photo-tile:hover img {
  transform: scale(1.06);
}

.dept-photo-tile div {
  padding: 16px 18px 18px;
}

.dept-photo-tile h3 {
  margin-bottom: 6px;
  font-size: 18px;
}

.dept-photo-tile p {
  margin: 0;
  font-size: 14px;
}

/* 面包屑导航 */
.breadcrumb {
  max-width: 1180px;
  margin: 24px auto 0;
  padding: 0 28px;
  font-size: 14px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover {
  color: var(--primary);
}
.breadcrumb .current {
  color: var(--ink);
  font-weight: 600;
}

/* 科室风采纯图片相册 */
.dept-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}
.dept-gallery-item {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.dept-gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,44,52,0.12);
}
.dept-gallery-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.dept-gallery-item:hover img {
  transform: scale(1.04);
}
@media (max-width: 768px) {
  .dept-gallery-grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
    gap: 16px;
  }
  .breadcrumb {
    padding: 0 20px;
  }
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.content-grid .soft-card {
  padding: 18px;
}

.content-grid .soft-card img {
  margin-bottom: 22px;
  aspect-ratio: 1.72;
  object-fit: cover;
}

.guide-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 24px;
}

.inner-tinted {
  border-radius: 46px;
  max-width: 1180px;
  margin-bottom: 60px;
  padding-inline: 28px;
}

.admin-dashboard {
  padding-top: 30px;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.admin-tabs button {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--primary-dark);
  cursor: pointer;
  background: white;
}

.admin-tabs button.active {
  color: white;
  border-color: transparent;
  background: var(--primary);
}

.admin-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.admin-stats article {
  padding: 24px;
  border-radius: 24px;
  background: var(--primary-soft);
}

.admin-stats b {
  display: block;
  color: var(--primary-dark);
  font-size: 36px;
}

.admin-note {
  margin: 22px 0 0;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.admin-form {
  box-shadow: none;
}

@media (max-width: 1024px) {
  .site-header {
    align-items: flex-start;
    border-radius: 28px;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
    margin-left: auto;
  }

  .site-nav,
  .header-cta {
    display: none;
  }

  .site-header.open {
    flex-wrap: wrap;
  }

  .site-header.open .site-nav {
    display: flex;
    flex-direction: column;
    width: 100%;
    order: 3;
    gap: 0;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0,80,90,0.1);
  }

  .site-header.open .site-nav .nav-item {
    padding-bottom: 0;
    margin-bottom: 0;
    width: 100%;
  }

  .site-header.open .site-nav .nav-item > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 15px;
  }

  .site-header.open .site-nav .nav-item > a::after {
    content: "";
    width: 6px;
    height: 6px;
    border-right: 1.5px solid var(--muted);
    border-bottom: 1.5px solid var(--muted);
    transform: rotate(-45deg);
    flex-shrink: 0;
    margin-left: 8px;
    transition: transform 0.2s;
  }

  .site-header.open .site-nav .nav-item.open > a::after {
    transform: rotate(45deg);
  }

  .submenu {
    position: static;
    width: 100%;
    margin: 0;
    padding: 8px 16px;
    opacity: 1;
    pointer-events: auto;
    transform: none !important;
    box-shadow: none;
    background: var(--primary-soft);
    border-radius: 12px;
    display: none;
    transition: none !important;
    left: auto;
    top: auto;
    min-width: 0;
  }

  .nav-item.submenu-open .submenu {
    display: block;
  }

  /* 移动端禁用桌面版 hover 效果，避免干扰 */
  .nav-item:hover .submenu,
  .nav-item:focus-within .submenu {
    opacity: 1;
    pointer-events: auto;
    transform: none !important;
  }

  .nav-item > a::after {
    content: "";
    width: 6px;
    height: 6px;
    border-right: 1.5px solid var(--muted);
    border-bottom: 1.5px solid var(--muted);
    transform: rotate(-45deg);
    flex-shrink: 0;
    margin-left: 8px;
    transition: transform 0.2s ease;
  }

  .nav-item.submenu-open > a::after {
    transform: rotate(45deg);
  }

  /* 移动端子菜单链接去掉默认箭头 */
  .site-header.open .site-nav .submenu a::after {
    content: none;
  }

  .submenu a {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
  }

  .site-header.open .header-cta {
    display: inline-flex;
    order: 4;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 54px;
  }

  .hero-panel {
    min-height: 420px;
  }

  .service-strip,
  .about-grid,
  .service-cards,
  .card-grid,
  .doctor-grid,
  .news-grid,
  .about-overview {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .dept-detail-hero,
  .dept-feature-layout,
  .article-detail-hero,
  .article-detail-layout {
    grid-template-columns: 1fr;
  }

  .dept-info-grid,
  .dept-equipment-grid,
  .dept-style-grid,
  .appointment-steps,
  .related-news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-sidebar {
    position: static;
  }

  .about-timeline {
    grid-template-columns: repeat(3, 1fr);
  }

  .timeline {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-hero,
  .guide-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .admin-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 680px) {
  .section {
    width: min(100% - 24px, 1180px);
    padding: 64px 0;
  }

  .site-header {
    width: calc(100% - 20px);
    top: 10px;
  }

  h1 {
    font-size: clamp(42px, 15vw, 64px);
  }

  .hero {
    min-height: auto;
    gap: 24px;
  }

  .hero-panel {
    min-height: 360px;
    border-radius: 32px;
  }

  .hero-metrics,
  .hero-actions,
  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .service-strip,
  .about-grid,
  .service-cards,
  .card-grid,
  .doctor-grid,
  .news-grid,
  .content-grid,
  .about-overview,
  .about-gallery,
  .about-stats,
  .about-timeline,
  .honor-tile-grid,
  .dept-info-grid,
  .dept-equipment-grid,
  .dept-style-grid,
  .appointment-steps,
  .doctor-toolbar,
  .news-rich-card,
  .related-news-grid,
  .article-pager,
  .columns,
  .form-grid,
  .timeline,
  .admin-stats,
  .party-detail-layout,
  .job-detail-layout,
  .hr-contact-layout,
  .benefit-media-grid,
  .contact-info-grid {
    grid-template-columns: 1fr;
  }

  .party-detail-content,
  .job-detail-main {
    padding: 24px;
  }

  .job-card-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .benefit-media-card {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .benefit-media-card img {
    width: 78px;
    height: 78px;
    border-radius: 20px;
  }

  .section.is-panel {
    padding: 44px 20px;
  }

  .dept-detail-card {
    padding: 24px;
  }

  .doctor-select {
    width: 100%;
  }

  .about-timeline::before {
    display: none;
  }

  .quick-grid {
    grid-template-columns: 1fr;
  }

  .floating-card {
    right: 18px;
    bottom: 18px;
    left: 18px;
  }

  .mobile-float {
    left: 12px;
    right: 12px;
    grid-template-columns: repeat(3, 1fr);
  }

  .mobile-float a {
    width: auto;
    height: 52px;
    border-radius: 18px;
  }
}


/* 首页门户概览样式 */
.home-page {
  background:
    radial-gradient(circle at 12% 8%, rgba(0,155,176,.14), transparent 30rem),
    radial-gradient(circle at 88% 12%, rgba(255,202,138,.18), transparent 28rem),
    linear-gradient(180deg, #f8feff 0%, #fff 42%, #f7fbfb 100%);
}

/* 首页 header 统一使用 sticky 定位，与其他页面保持一致，避免 fixed 与 sticky 居中参考系不同导致导航栏水平偏移 */
.home-page .site-header {
  z-index: 50;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 18px 48px rgba(0, 44, 52, 0.14);
}

.home-banner {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 80px);
  padding: 80px 0 40px;
}

.home-banner-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(0,155,176,.08), transparent 45%),
    radial-gradient(circle at 70% 35%, rgba(0,155,176,.12), transparent 26rem);
  pointer-events: none;
}

.home-banner-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .86fr);
  align-items: center;
  gap: 48px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.home-banner h1 {
  max-width: 780px;
  margin: 18px 0 20px;
  font-size: clamp(44px, 7vw, 88px);
  line-height: .98;
  letter-spacing: -.06em;
}

.home-banner-copy > p {
  max-width: 650px;
  font-size: 18px;
  color: var(--muted);
}

.home-banner-visual {
  position: relative;
}

.home-banner-visual img {
  display: block;
  width: 100%;
  border-radius: 48px;
  box-shadow: var(--shadow);
}

.home-float-card {
  position: absolute;
  left: 28px;
  bottom: 28px;
  padding: 18px 22px;
  border-radius: 24px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 18px 48px rgba(0,80,90,.16);
}

.home-float-card strong,
.home-float-card span {
  display: block;
}

.home-float-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.home-banner-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.home-banner-stats span {
  min-width: 140px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.74);
}

.home-banner-stats b {
  display: block;
  color: var(--primary-dark);
  font-size: 26px;
}

.home-quick {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  width: min(1180px, calc(100% - 32px));
  margin: -20px auto 20px;
  position: relative;
  z-index: 2;
}

.home-quick a {
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 16px 42px rgba(0,112,128,.08);
  transition: .22s ease;
}

.home-quick a:hover,
.home-dept-card:hover,
.home-service-card:hover,
.home-contact-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.home-quick span {
  display: block;
  color: var(--primary);
  font-weight: 900;
}

.home-quick strong,
.home-quick small {
  display: block;
}

.home-quick small {
  margin-top: 4px;
  color: var(--muted);
}

.home-section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.home-section-head h2 {
  margin: 14px 0;
}

.home-about-grid,
.home-doctor-layout,
.home-news-layout,
.home-party-card {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 28px;
  align-items: center;
}

.home-about-image img,
.home-doctor-feature img,
.home-news-main img,
.home-party-card img {
  display: block;
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.home-about-content,
.home-doctor-feature,
.home-news-main,
.home-party-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,.86);
  box-shadow: 0 18px 48px rgba(0,112,128,.08);
}

.home-about-content p,
.home-doctor-feature p,
.home-news-main p,
.home-party-card p {
  color: var(--muted);
}

.home-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 22px 0;
}

.home-mini-stats span {
  padding: 14px;
  border-radius: 20px;
  background: var(--primary-soft);
  color: var(--muted);
  font-size: 13px;
}

.home-mini-stats b {
  display: block;
  color: var(--primary-dark);
  font-size: 20px;
}

.home-more {
  display: inline-flex;
  margin-top: 6px;
  color: var(--primary-dark);
  font-weight: 800;
}

.home-departments,
.home-services,
.home-party {
  width: 100%;
  max-width: none;
  padding-inline: max(16px, calc((100% - 1180px) / 2));
}

.home-departments {
  background: linear-gradient(180deg, rgba(231,248,250,.72), rgba(255,255,255,.94));
}

.home-dept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.home-dept-card {
  position: relative;
  min-height: 260px;
  padding: 24px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: 0 16px 42px rgba(0,112,128,.08);
  transition: .22s ease;
}

.home-dept-card img {
  position: absolute;
  right: -30px;
  bottom: -40px;
  width: 76%;
  opacity: .34;
}

.home-dept-card span,
.home-dept-card strong {
  position: relative;
  display: block;
}

.home-dept-card span {
  color: var(--primary);
  font-weight: 900;
}

.home-dept-card strong {
  max-width: 240px;
  margin-top: 14px;
  font-size: 24px;
  line-height: 1.25;
}

.home-section-action {
  margin-top: 28px;
  text-align: center;
}

.home-doctor-feature {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
}

.home-doctor-tags {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.home-doctor-tags a {
  padding: 30px;
  border-radius: 28px;
  color: var(--primary-dark);
  font-size: 20px;
  font-weight: 900;
  background: var(--primary-soft);
  transition: .22s ease;
}

.home-doctor-tags a:hover {
  transform: translateY(-4px);
  background: #d9f5f8;
}

.home-service-grid,
.home-contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.home-service-card,
.home-contact-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(0,112,128,.08);
  transition: .22s ease;
}

.home-service-card i {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 18px;
  background: var(--primary-soft);
  font-style: normal;
  font-size: 24px;
}

.home-service-card strong,
.home-service-card span,
.home-contact-card strong,
.home-contact-card span {
  display: block;
}

.home-service-card span,
.home-contact-card span {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.7;
}

.home-news-main span,
.news-tag {
  display: inline-flex;
  width: fit-content;
  margin-top: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-size: 13px;
  font-weight: 800;
}

.home-news-list {
  display: grid;
  gap: 14px;
}

.home-news-list .news-card {
  padding: 22px;
}

.home-party-card {
  grid-template-columns: 1fr .85fr;
  background:
    linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,244,236,.92));
}

.home-contact-card strong {
  color: var(--primary-dark);
}

@media (max-width: 1024px) {
  .home-banner-inner,
  .home-about-grid,
  .home-doctor-layout,
  .home-news-layout,
  .home-party-card,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    gap: 32px;
  }

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

@media (max-width: 680px) {
  .home-banner {
    padding-top: 56px;
  }

  .home-banner-inner,
  .home-quick,
  .home-dept-grid,
  .home-service-grid,
  .home-contact-grid,
  .home-doctor-tags,
  .home-mini-stats,
  .home-doctor-feature {
    grid-template-columns: 1fr;
  }

  .footer-contact {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-banner-visual img {
    border-radius: 32px;
  }

  .home-float-card {
    position: static;
    margin-top: 14px;
  }
}

/* 首页医院动态：左侧头条 + 右侧三条，上下对齐 */
.home-page .home-news-layout {
  align-items: stretch;
}

#homeNewsLeft,
#homeNewsRight {
  border-radius: 28px;
  overflow: hidden;
  background: var(--card);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.home-page .home-news-main {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.home-page .home-news-main img {
  height: 250px;
  object-fit: cover;
  object-position: center center;
}

.home-page .home-news-list {
  grid-template-rows: repeat(2, 1fr);
  height: 100%;
}

.home-page .home-news-list .news-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px;
  border-radius: 24px;
}

.home-page .home-news-list .news-card:nth-child(n + 4) {
  display: none;
}

/* 调试：确保新闻卡片可见 */
.home-news-list .news-card {
  min-height: 80px;
  opacity: 1 !important;
  transform: none !important;
}

.home-contact-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 22px;
  align-items: stretch;
}

.home-contact-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.home-contact-layout .home-contact-grid {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 1024px) {
  .home-contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .home-page .home-news-main img {
    height: 210px;
  }

  .home-page .home-news-list {
    grid-template-rows: none;
  }
}

.home-page .site-header .brand strong,
.home-page .site-header .site-nav a {
  color: var(--ink);
}

.home-page .site-header .brand small {
  color: rgba(23, 51, 58, 0.72);
}

.home-page .site-header .site-nav a:hover,
.home-page .site-header .nav-item:hover > a,
.home-page .site-header .site-nav a.active {
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.home-page .site-header .header-cta {
  color: white;
  background: rgba(0, 155, 176, 0.78);
  box-shadow: 0 14px 30px rgba(0, 44, 52, 0.18);
}

/* 首页二级菜单文字在白色背景上看不见，单独覆盖为深色 */
.home-page .site-header .submenu a {
  color: #3f5960;
}

.home-page .site-header .submenu a:hover {
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.home-page .home-banner {
  min-height: 100vh;
  margin-top: -80px;
  padding: 0;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(8, 44, 52, 0.72) 0%, rgba(8, 44, 52, 0.48) 38%, rgba(8, 44, 52, 0.12) 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 80, 92, 0.18)),
    url("/assets/images/home-banner-photo.jpg") center center / cover no-repeat;
}

.home-page .home-banner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 220px;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(248, 254, 255, 0) 0%,
    rgba(248, 254, 255, 0.28) 36%,
    rgba(248, 254, 255, 0.78) 72%,
    #f8feff 100%
  );
}

.home-page .home-banner-bg {
  display: none;
}

.home-page .home-banner-inner {
  position: relative;
  z-index: 1;
  display: block;
  width: min(1180px, calc(100% - 32px));
  padding-top: 112px;
}

.home-page .home-banner-copy {
  max-width: 640px;
  padding: 34px 36px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 70px rgba(0, 36, 42, 0.22);
}

.home-page .home-banner .eyebrow {
  color: white;
  background: rgba(255, 255, 255, 0.18);
}

.home-page .home-banner h1 {
  max-width: 620px;
  margin: 18px 0 16px;
  color: white;
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.home-page .home-banner-copy > p {
  max-width: 600px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
  line-height: 1.85;
}

.home-page .home-banner .btn.ghost {
  color: white;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.36);
}

.home-page .home-banner-visual {
  display: none;
}

.home-page .home-banner-stats span {
  color: rgba(255, 255, 255, 0.84);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.14);
}

.home-page .home-banner-stats b {
  color: white;
  font-size: 22px;
}

.home-page .home-quick {
  margin-top: -54px;
  position: relative;
  z-index: 2;
}

@media (max-width: 680px) {
  .home-page .site-header {
    top: 10px;
  }

  .home-page .home-banner {
    min-height: 92vh;
    background-position: 58% center;
  }

  .home-page .home-banner-inner {
    padding-top: 78px;
  }

  .home-page .home-banner-copy {
    padding: 26px 22px;
    border-radius: 28px;
  }

  .home-page .home-banner h1 {
    font-size: clamp(24px, 8vw, 36px);
  }

  .home-page .home-banner-copy > p {
    font-size: 15px;
  }

  .home-page .home-quick {
    margin-top: 18px;
  }
}
