@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

:root {
  --primary: #1a6fa8;
  --primary-dark: #0d4d7a;
  --primary-light: #e6f2fb;
  --accent: #2db5a0;
  --accent-light: #e0f7f4;
  --text: #1a2332;
  --text-muted: #5a6a7e;
  --border: #dde5ef;
  --bg: #f4f8fc;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(26, 111, 168, 0.12);
  --shadow-sm: 0 2px 10px rgba(26, 111, 168, 0.08);
  --radius: 12px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  scroll-padding-top: 80px
}

body {
  font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.7;
  width: 100%
}

a {
  text-decoration: none;
  color: inherit;
  transition: color .2s
}

img {
  max-width: 100%;
  height: auto;
  display: block
}

ul {
  list-style: none
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit
}

button {
  cursor: pointer;
  border: none;
  background: none
}

/* ── Icon Image ── */
.icon-img {
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px
}

/* Hide all SVG icons except doctor avatars and team member avatars */
img[src$=".svg"] {
  display: none !important;
}

.doctor-avatar img[src$=".svg"],
.member-avatar img[src$=".svg"] {
  display: block !important;
}

/* ── Topbar ── */
.topbar {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, .85);
  font-size: 13px;
  padding: 6px 0
}

.topbar .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap
}

.topbar a {
  color: rgba(255, 255, 255, .85)
}

.topbar a:hover {
  color: #fff
}

.topbar-item {
  display: flex;
  align-items: center;
  gap: 4px;
  vertical-align: middle
}

.topbar-stars {
  color: #fff;
  letter-spacing: 2px;
  font-size: 14px;
  display: flex;
  align-items: center
}

/* ── Header ── */
header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 12px
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0
}

.logo-text h1 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2
}

.logo-text span {
  font-size: 11px;
  color: var(--text-muted)
}

nav {
  display: flex;
  gap: 2px
}

nav a {
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: all .2s;
  white-space: nowrap
}

nav a:hover,
nav a.active {
  background: var(--primary-light);
  color: var(--primary)
}

.header-tel {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #fff;
  padding: 9px 18px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  transition: background .2s;
  white-space: nowrap;
  flex-shrink: 0
}

.header-tel:hover {
  background: var(--primary-dark)
}

/* ── Mobile Menu ── */
.menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px
}

.menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all .3s;
  border-radius: 2px
}

.menu-btn.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg)
}

.menu-btn.open span:nth-child(2) {
  opacity: 0
}

.menu-btn.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg)
}

/* ── Hero ── */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0d4d7a 0%, #1a6fa8 50%, #2db5a0 100%);
  min-height: 660px;
  display: flex;
  align-items: center
}

.hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  opacity: 0.45;
  width: 100%;
  height: 100%
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center
}

.hero-content {
  color: #fff;
  grid-column: 2
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, .2);
  border: 1px solid rgba(255, 255, 255, .4);
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 13px;
  margin-bottom: 16px
}

.hero-content h2 {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 14px
}

.hero-content p {
  font-size: 15px;
  opacity: .9;
  margin-bottom: 28px
}

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

.btn-primary {
  background: #fff;
  color: var(--primary);
  padding: 12px 26px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 15px;
  transition: all .2s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .15);
  display: inline-block
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2)
}

.btn-outline {
  border: 2px solid rgba(255, 255, 255, .8);
  color: #fff;
  padding: 12px 26px;
  border-radius: 30px;
  font-weight: 500;
  font-size: 15px;
  transition: all .2s;
  display: inline-block
}

.btn-outline:hover {
  background: rgba(255, 255, 255, .15)
}



/* ── Stats ── */
.stats-bar {
  background: var(--primary);
  padding: 32px 20px
}

.stats-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px
}

.stat-item {
  text-align: center;
  color: #fff
}

.stat-num {
  font-size: 32px;
  font-weight: 700;
  line-height: 1
}

.stat-desc {
  font-size: 12px;
  opacity: .8;
  margin-top: 5px
}

/* ── Section ── */
.section {
  padding: 56px 20px
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto
}

.section-header {
  text-align: center;
  margin-bottom: 40px
}

.section-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px
}

.section-subtitle {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 10px;
  max-width: none !important
}

.section-header h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px
}

.section-header p {
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 500;
  margin-top: 14px;
  transition: gap .2s
}

.section-link:hover {
  gap: 10px
}

/* ── Cards Grid ── */
.cards-grid {
  display: grid;
  gap: 20px
}

.cards-grid.col3 {
  grid-template-columns: repeat(3, 1fr)
}

.cards-grid.col4 {
  grid-template-columns: repeat(4, 1fr)
}

.cards-grid.col2 {
  grid-template-columns: repeat(2, 1fr)
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow)
}

/* Dept Card */
.dept-card {
  cursor: pointer;
  background: linear-gradient(135deg, #1e88e5, #1565c0);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  transition: transform .3s, box-shadow .3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1)
}

.dept-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(30, 136, 229, 0.4);
  border-color: rgba(255, 255, 255, 0.3)
}

.dept-card-header {
  padding: 24px;
  text-align: center;
  white-space: nowrap
}

.dept-card-header h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
  white-space: normal
}

.dept-card-header .dept-english {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  font-style: italic;
  white-space: nowrap
}

.dept-card-footer {
  background: #fff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: center
}

.dept-card-footer .hospital-logo {
  width: 60%;
  height: 60%;
}

.dept-card-footer .hospital-name {
  display: none
}

/* Doctor Card */
.doctor-card-link {
  display: block;
  text-decoration: none;
  color: inherit
}

.doctor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 16px
}

.card.doctor-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  overflow: hidden !important;
  height: 240px
}

.card.doctor-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow)
}

.card.doctor-card .doctor-avatar {
  width: 45%;
  max-width: 160px;
  height: 100%;
  flex-shrink: 0;
  overflow: hidden
}

.card.doctor-card .doctor-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.card.doctor-card .doctor-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px;
  min-width: 150px
}

.doctor-info-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 12px
}

.doctor-info-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px
}

.doctor-title {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500
}

.doctor-title::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 14px;
  background: var(--accent);
  margin-right: 8px;
  vertical-align: middle
}

.doctor-intro {
  flex: 1;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7
}

.doctor-intro p {
  margin: 0
}

.doctor-specialty {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5
}

.specialty-label {
  font-weight: 600;
  color: var(--text)
}

.specialty-text {
  color: var(--text-muted)
}

.other-team-section {
  margin-top: 24px;
  padding: 20px;
  background: var(--bg);
  border-radius: var(--radius)
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 16px
}

.team-member {
  display: flex;
  flex-direction: column;
  align-items: center
}

.member-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
  margin-bottom: 8px
}

.member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.member-name {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  text-align: center
}

.member-title {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 2px
}

.tag {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 12px
}

/* News Card */
.news-card {
  cursor: pointer
}

.news-card-cat {
  padding: 14px 18px 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent)
}

.news-card-body {
  padding: 8px 18px 18px
}

.news-card-body h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.5
}

.news-card-body p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted)
}

/* ── Notice ── */
.notice-bar {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 22px;
  font-size: 14px;
  color: var(--primary-dark)
}

/* ── Process Steps ── */
.process-steps {
  display: flex;
  gap: 0;
  overflow: hidden;
  border-radius: var(--radius)
}

.step {
  flex: 1;
  padding: 24px 16px;
  background: var(--white);
  text-align: center;
  position: relative
}

.step::after {
  content: '›';
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: var(--primary);
  z-index: 1
}

.step:last-child::after {
  display: none
}

.step-num {
  width: 38px;
  height: 38px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  margin: 0 auto 10px
}

.step h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px
}

.step p {
  font-size: 12px;
  color: var(--text-muted)
}

/* ── Info Table ── */
.info-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius-sm);
  overflow: hidden
}

.info-table tr {
  border-bottom: 1px solid var(--bg)
}

.info-table tr:last-child {
  border-bottom: none
}

.info-table td {
  padding: 16px 20px;
  font-size: 14px;
  line-height: 1.6;
  vertical-align: top
}

.info-table td:first-child {
  color: var(--text-muted);
  width: 160px;
  background: rgba(0, 0, 0, 0.02);
  font-weight: 500
}

.info-table td:last-child {
  color: var(--text);
  font-weight: 500
}

/* Subject List in Info Table */
.subject-list {
  display: flex;
  flex-direction: column;
  gap: 8px
}

.subject-group {
  color: var(--primary);
  font-weight: 700;
  font-size: 15px;
  margin-top: 4px
}

.subject-group:first-child {
  margin-top: 0
}

.subject-detail {
  color: var(--text-muted);
  font-size: 13px;
  padding-left: 12px;
  border-left: 2px solid var(--border);
  margin-bottom: 4px
}

/* ── Announcement ── */
.announcement {
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  padding: 44px 20px;
  text-align: center
}

.announcement h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px
}

.announcement p {
  opacity: .9;
  margin-bottom: 20px
}

.btn-white {
  background: #fff;
  color: var(--primary);
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 700;
  display: inline-block;
  transition: all .2s
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2)
}

/* ── Footer ── */
footer {
  background: #0a1828;
  color: rgba(255, 255, 255, .8);
  padding: 44px 20px 0
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 36px
}

.footer-logo {
  margin-bottom: 14px
}

.footer-logo-img {
  height: 40px;
  width: auto
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.8;
  opacity: .7
}

.footer-brand .tel {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-top: 12px
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 14px
}

.footer-col ul li {
  margin-bottom: 9px
}

.footer-col ul li a {
  font-size: 13px;
  opacity: .7;
  transition: opacity .2s
}

.footer-col ul li a:hover {
  opacity: 1
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 18px 0;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  opacity: .5;
  flex-wrap: wrap;
  gap: 6px
}

/* ── Page Hero ── */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 40px 20px
}

.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto
}

.breadcrumb {
  font-size: 13px;
  opacity: .7;
  margin-bottom: 10px
}

.breadcrumb a {
  opacity: .8
}

.breadcrumb a:hover {
  opacity: 1
}

.breadcrumb span {
  margin: 0 6px
}

.page-hero h2 {
  font-size: 26px;
  font-weight: 700
}

.page-hero p {
  opacity: .85;
  margin-top: 6px;
  font-size: 14px
}

/* ── List Page ── */
.list-section {
  padding: 40px 20px
}

.list-inner {
  max-width: 1200px;
  margin: 0 auto
}

.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px
}

.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  justify-content: center
}

.filter-btn {
  padding: 7px 18px;
  border-radius: 30px;
  font-size: 13px;
  border: 1.5px solid var(--border);
  background: var(--white);
  cursor: pointer;
  transition: all .2s;
  color: var(--text)
}

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

/* Doctor filter styles */
.filter-zy .card.doctor-card:not([data-cat*="zy"]),
.filter-xy .card.doctor-card:not([data-cat*="xy"]) {
  display: none
}

.filter-all .card.doctor-card {
  display: flex
}

/* ── Detail ── */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px
}

.detail-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  margin-bottom: 20px
}

.detail-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border)
}

.detail-content {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text)
}

.detail-content h4 {
  font-weight: 600;
  margin: 18px 0 8px
}

.detail-content p {
  margin-bottom: 12px
}

.detail-content ul {
  margin: 10px 0 14px 20px
}

.detail-content ul li {
  margin-bottom: 6px;
  list-style: disc
}

.sidebar-tel {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  margin-bottom: 18px
}

.sidebar-tel h4 {
  font-size: 13px;
  opacity: .85;
  margin-bottom: 6px
}

.sidebar-tel .phone {
  font-size: 22px;
  font-weight: 700
}

.sidebar-tel p {
  font-size: 12px;
  opacity: .7;
  margin-top: 4px
}

/* ── News List Card ── */
.news-list-card {
  display: flex;
  gap: 18px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  margin-bottom: 16px;
  transition: transform .2s, box-shadow .2s;
  cursor: pointer
}

.news-list-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow)
}

.news-list-icon {
  font-size: 36px;
  flex-shrink: 0;
  width: 52px;
  text-align: center
}

.news-list-content h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text)
}

.news-list-content p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7
}

.news-list-content .meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px
}

.cat-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 6px
}

/* ── Stats Row ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
  padding: 20px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: var(--radius)
}

.stat-box {
  text-align: center;
  color: #fff
}

.stat-box .stat-num {
  font-size: 32px;
  font-weight: 700
}

.stat-box .stat-label {
  font-size: 13px;
  opacity: .9;
  margin-top: 4px
}

/* ── Paper Card ── */
.paper-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 22px;
  margin-bottom: 16px;
  transition: box-shadow .2s
}

.paper-card:hover {
  box-shadow: var(--shadow)
}

.paper-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px
}

.paper-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  flex: 1
}

.paper-authors {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px
}

.paper-journal {
  font-size: 13px;
  color: var(--primary);
  font-style: italic;
  margin-bottom: 10px
}

.paper-abstract {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 12px
}

.paper-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted)
}

/* ── Alphabet Bar ── */
.alphabet-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 16px;
  background: var(--bg);
  border-radius: var(--radius)
}

.alphabet-title {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500
}

.alphabet-btn {
  padding: 6px 14px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: all .2s
}

.alphabet-btn:hover {
  border-color: var(--primary);
  color: var(--primary)
}

.alphabet-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff
}

/* ── Paper Section ── */
.paper-section {
  margin-bottom: 32px
}

.section-header {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-light)
}

.paper-group {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
  overflow: hidden
}

.group-title {
  padding: 12px 16px;
  background: var(--bg);
  font-weight: 600;
  color: var(--text);
  font-size: 15px;
  border-bottom: 1px solid var(--border)
}

.paper-item {
  padding: 10px 16px;
}

.paper-item:last-child {
  border-bottom: none
}

.paper-item a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  display: block;
  transition: color .2s
}

.paper-item a:hover {
  color: var(--primary)
}

/* ── Responsive: Tablet ── */
@media(max-width:1024px) {
  .cards-grid.col4 {
    grid-template-columns: repeat(2, 1fr)
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr
  }
}

@media(max-width:900px) {
  .cards-grid.col3 {
    grid-template-columns: repeat(2, 1fr)
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .hero-inner {
    grid-template-columns: 1fr
  }

  .hero-content {
    grid-column: auto
  }



  .detail-layout {
    grid-template-columns: 1fr
  }

  .process-steps {
    flex-direction: column;
    gap: 2px
  }

  .step::after {
    display: none
  }
}

/* ── Responsive: Mobile ── */
@media(max-width:640px) {

  /* Topbar */
  .topbar {
    display: block;
    font-size: 11px;
    text-align: center
  }

  .topbar .inner {
    justify-content: center
  }

  .topbar-item {
    justify-content: center
  }

  .topbar-stars {
    display: none !important
  }

  /* Header */
  .header-inner {
    height: 60px;
    padding: 0 12px
  }

  .logo-text h1 {
    font-size: 15px
  }

  .logo-text span {
    display: none
  }

  .logo-icon {
    width: 40px;
    height: 40px;
    font-size: 17px
  }

  nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    padding: 12px;
    z-index: 99;
    flex-direction: column;
    gap: 4px;
    border-top: 1px solid var(--border)
  }

  nav.open {
    display: flex
  }

  nav a {
    padding: 12px 16px;
    font-size: 15px;
    border-radius: var(--radius-sm)
  }

  .menu-btn {
    display: flex
  }

  .header-tel {
    display: none
  }

  /* Hero */
  .hero {
    min-height: auto
  }

  .hero-bg {
    object-position: left
  }

  .hero-inner {
    padding: 81px 16px;
    gap: 20px;
    grid-template-columns: 1fr
  }

  .hero-content {
    grid-column: auto
  }

  .hero-content h2 {
    font-size: 24px
  }

  .hero-content p {
    font-size: 14px
  }

  .hero-btns {
    flex-direction: column;
    gap: 10px
  }

  .btn-primary,
  .btn-outline {
    padding: 11px 22px;
    font-size: 14px;
    text-align: center
  }

  .hero-badge {
    font-size: 12px
  }

  /* Stats */
  .stats-bar {
    padding: 24px 16px
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px
  }

  .stat-num {
    font-size: 26px
  }

  .stat-desc {
    font-size: 11px
  }

  /* Section */
  .section {
    padding: 36px 16px
  }

  .section-tag {
    font-size: 14px;
    padding: 4px 12px;
    margin-bottom: 8px
  }

  .section-subtitle {
    font-size: 22px;
    line-height: 1.3
  }

  .section-header {
    margin-bottom: 28px
  }

  .section-header h2 {
    font-size: 22px
  }

  .section-header p {
    font-size: 13px
  }

  /* Cards */
  .cards-grid.col4,
  .cards-grid.col3,
  .cards-grid.col2 {
    grid-template-columns: 1fr 1fr
  }

  .dept-card-header h3 {
    font-size: 20px
  }

  .dept-card-header .dept-english {
    font-size: 12px
  }

  /* Process */
  .process-steps {
    gap: 8px
  }

  .step {
    padding: 16px 12px
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px
  }

  .footer-col:nth-child(n+3) {
    display: none
  }

  footer {
    padding: 32px 16px 0
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    font-size: 11px
  }

  /* List */
  .list-section {
    padding: 28px 16px
  }

  .filter-bar {
    gap: 6px
  }

  /* Table Mobile */
  .info-table,
  .info-table tbody,
  .info-table tr,
  .info-table td {
    display: block;
    width: 100% !important;
  }

  .info-table td:first-child {
    background: var(--primary-light);
    color: var(--primary);
    padding: 10px 16px;
    font-size: 13px;
  }

  .info-table td:last-child {
    padding: 14px 16px 20px;
  }

  .subject-detail {
    padding-left: 10px;
    font-size: 12px;
  }

  .filter-btn {
    padding: 6px 14px;
    font-size: 12px
  }

  .news-list-card {
    flex-direction: row;
    gap: 12px;
    padding: 16px;
    align-items: center
  }

  .news-list-icon {
    font-size: 28px;
    width: 40px;
    flex-shrink: 0
  }

  .news-list-content h3 {
    font-size: 15px;
    margin-bottom: 4px
  }

  .news-list-content p {
    display: none
  }

  .news-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important
  }

  .news-grid .news-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 12px
  }

  .news-grid .news-card-cat {
    display: none
  }

  .news-grid .news-card-body {
    padding: 0 12px;
    flex: 1
  }

  .news-grid .news-card-body h3 {
    font-size: 15px;
    margin-bottom: 4px
  }

  .news-grid .news-card-body p {
    display: none
  }

  .news-grid .news-meta {
    margin-top: 2px;
    font-size: 11px
  }

  .news-grid .news-meta span:nth-child(2),
  .news-grid .news-meta span:nth-child(3) {
    display: none
  }

  /* Detail */
  .detail-layout {
    padding: 20px 16px;
    gap: 16px
  }

  .detail-card {
    padding: 18px
  }

  /* Page hero */
  .page-hero {
    padding: 28px 16px
  }

  .page-hero h2 {
    font-size: 22px
  }

  /* About grid */
  .about-grid {
    grid-template-columns: 1fr !important
  }

  .honor-grid {
    grid-template-columns: 1fr !important
  }

  .map-layout {
    grid-template-columns: 1fr !important
  }

  /* Doctor profile */
  .doctor-profile {
    flex-direction: column;
    align-items: center;
    text-align: center
  }

  /* Doctor card mobile */
  .card.doctor-card {
    flex-direction: row;
    gap: 12px;
    padding: 12px;
    height: auto
  }

  .card.doctor-card .doctor-avatar {
    width: 80px;
    height: 100px;
    min-height: 100px
  }

  .card.doctor-card .doctor-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0
  }

  .doctor-info-header {
    border-bottom: none;
    padding-bottom: 6px;
    margin-bottom: 6px
  }

  .doctor-info-header h3 {
    font-size: 16px;
    margin-bottom: 2px
  }

  .doctor-title {
    font-size: 12px
  }

  .doctor-title::before {
    width: 2px;
    height: 12px;
    margin-right: 4px
  }

  .doctor-intro {
    font-size: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden
  }

  .cards-grid.col3 {
    grid-template-columns: 1fr
  }
}

/* ── Responsive: Small Mobile ── */
@media(max-width:400px) {
  .cards-grid.col4,
  .cards-grid.col3,
  .cards-grid.col2 {
    grid-template-columns: 1fr
  }

  .hero-content h2 {
    font-size: 20px
  }
}

/* ── Pagination ── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border)
}

.page-btn {
  padding: 10px 22px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text);
  transition: all .2s
}

.page-btn:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary)
}

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

#pageInfo {
  font-size: 14px;
  color: var(--text-muted);
  min-width: 80px;
  text-align: center
}

/* ── Laboratory Page ── */
.lab-tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
  padding: 8px;
  background: var(--bg);
  border-radius: var(--radius);
  width: fit-content;
  margin-left: auto;
  margin-right: auto
}

.lab-tab {
  padding: 12px 32px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all .2s
}

.lab-tab.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 12px rgba(30, 136, 229, 0.3)
}

.lab-tab:hover:not(.active) {
  color: var(--primary)
}

.lab-content {
  min-height: 400px
}

.lab-panel {
  display: block
}

#equipment-panel .cards-grid {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box
}

.equip-card {
  overflow: hidden
}

.equip-img {
  height: 180px;
  overflow: hidden
}

.equip-img img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.equip-body {
  padding: 20px
}

.equip-body h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px
}

.equip-body p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px
}

.equip-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px
}

.equip-tags .tag {
  padding: 4px 12px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  border-radius: 4px
}

.laboratory-content {
  margin: 0 auto
}

.lab-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm)
}

.lab-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--primary-light)
}

.lab-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center
}

.lab-items {
  display: grid;
  gap: 16px
}

.lab-item {
  padding: 20px;
  background: #e6f2ff;
  border-radius: var(--radius-sm)
}

.lab-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px
}

.lab-item-header h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary)
}

.lab-item-badge {
  font-size: 11px;
  padding: 3px 10px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 4px
}

.lab-item-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7
}