main.content-page {
  background: linear-gradient(rgba(28,59,127,0.12), rgba(28,59,127,0.12) 16px, transparent 16px);
  padding-top: 1.5rem;
}
/* classes missing from econ unocss.css */
.px-16px{padding-left:16px;padding-right:16px;}
.py-20{padding-top:5rem;padding-bottom:5rem;}
.max-w-380{max-width:95rem;}
.min-w-62{min-width:15.5rem;}
.px-20px{padding-left:20px;padding-right:20px;}
.mb-3{margin-bottom:0.75rem;}
.font-bold{font-weight:700;}
.text-base{font-size:1rem;line-height:1.5rem;}
.underline{text-decoration-line:underline;}
.underline-offset-3{text-underline-offset:3px;}
.border-hex-1c3b7f{border-color:#1c3b7f;}
.text-hex-1c3b7f{color:#1c3b7f;}
.text-hex-6e7783{color:#6e7783;}
@media (min-width: 768px) {
  .md\:px-8{padding-left:2rem;padding-right:2rem;}
}

/* breadcrumb */
p.location,
.location {
  color: #6e7783;
  font-size: 0.875rem;
}
p.location a,
.location a,
.location .breadcrumb-item a {
  color: #1c3b7f;
  text-decoration: underline;
  text-underline-offset: 3px;
}
p.location a:hover,
.location a:hover,
.location .breadcrumb-item a:hover {
  color: #a71836;
}
.location .container {
  padding: 0;
}
.location .row {
  margin: 0;
  align-items: center;
}
.location ol.breadcrumb {
  margin: 0;
  padding: 0;
  background: transparent;
  flex-wrap: wrap;
}
.location .breadcrumb-item + .breadcrumb-item::before {
  color: #6e7783;
}
.location .breadcrumb-item.active {
  color: #6e7783;
}
.location .pull-right {
  font-size: 0.8rem;
}

/* sitemap */
.sitemap ul.tree {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.sitemap ul.tree > li {
  margin-bottom: 0;
}
.sitemap ul.tree > li > a {
  display: block;
  padding: 0.5rem 0.75rem;
  background-color: #1c3b7f;
  color: #fff !important;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none !important;
  margin-bottom: 0.5rem;
}
/* 隱藏數字前綴 (component 輸出 "1最新消息" 格式) */
.sitemap ul.tree > li > a {
  counter-reset: none;
}
.sitemap ul.tree > li > a:hover {
  background-color: #a71836;
}
.sitemap ul.tree > li > ul {
  list-style: none;
  padding-left: 0.75rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 3px solid #1c3b7f;
}
.sitemap ul.tree > li > ul > li > a {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  color: #1c3b7f !important;
  font-size: 0.9rem;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(28,59,127,0.15);
  width: 100%;
}
.sitemap ul.tree > li > ul > li > a:hover {
  color: #a71836 !important;
  background-color: rgba(28,59,127,0.05);
}
.sitemap ul.tree > li > ul > li > ul {
  list-style: none;
  padding-left: 1rem;
  margin: 0;
}
.sitemap ul.tree > li > ul > li > ul > li > a {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  color: #6e7783 !important;
  font-size: 0.85rem;
  text-decoration: none !important;
}
.sitemap ul.tree > li > ul > li > ul > li > a:hover {
  color: #a71836 !important;
}

/* sidebar */
main .sidebar-econ {
  display: grid;
  padding: 0.5rem 0 0.5rem 1rem;
  color: #1c3b7f;
  font-size: 0.875rem;
}
main .sidebar-econ .sidebar-title {
  margin-bottom: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
}
main .sidebar-econ a {
  display: block;
  padding: 0.5rem;
  border-bottom: 1px solid rgba(28,59,127,0.2);
  color: #1c3b7f;
  text-decoration: none;
}
main .sidebar-econ a:hover,
main .sidebar-econ a.active {
  font-weight: 700;
  color: #a71836;
}
/* teacher list */
.teacher-list { padding: 0.5rem 0; }
.teacher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}
.teacher-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #d4d4d4;
  text-decoration: none !important;
  color: inherit;
  transition: border-color 0.2s;
  cursor: pointer;
}
.teacher-card:hover { border-color: #1c3b7f; }
.teacher-avatar {
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: #f0f3f8;
}
.teacher-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.teacher-avatar-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: #aab4c0;
}
.teacher-avatar-placeholder.large svg { width: 80px; height: 80px; }
.teacher-info {
  padding: 0.75rem;
  background: #1c3b7f;
  color: #fff !important;
  flex: 1;
}
.teacher-info p { color: #fff !important; }
.teacher-name { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.2rem; }
.teacher-title { font-size: 0.8rem; opacity: 0.85; margin-bottom: 0.4rem; }
.teacher-edu, .teacher-skill {
  font-size: 0.75rem; opacity: 0.75;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}
.teacher-nav { margin-top: 1.5rem; }

/* teacher detail */
.teacher-detail { padding: 0.5rem 0; }
.teacher-detail-header {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #1c3b7f;
}
.teacher-detail-avatar {
  flex-shrink: 0;
  width: 150px;
}
.teacher-detail-avatar img { width: 100%; display: block; }
.teacher-detail-basic { flex: 1; }
.teacher-detail-name {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1c3b7f;
  margin-bottom: 0.25rem;
}
.teacher-detail-title {
  font-size: 1rem;
  color: #6e7783;
  margin-bottom: 1rem;
}
.teacher-detail-row {
  font-size: 0.875rem;
  margin-bottom: 0.4rem;
  color: #333;
}
.teacher-detail-row .label {
  display: inline-block;
  min-width: 5rem;
  color: #1c3b7f;
  font-weight: 600;
  margin-right: 0.5rem;
}
.teacher-detail-row a { color: #1c3b7f; text-decoration: underline; }
.teacher-detail-section {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(28,59,127,0.15);
}
.teacher-detail-section p:last-child { margin-bottom: 0; }
.teacher-detail-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1c3b7f;
  margin-bottom: 0.75rem;
  padding-left: 0.75rem;
  border-left: 4px solid #1c3b7f;
}
.teacher-link {
  display: inline-block;
  margin: 0.25rem 0.5rem 0.25rem 0;
  padding: 0.25rem 0.75rem;
  border: 1px solid #1c3b7f;
  color: #1c3b7f !important;
  font-size: 0.875rem;
  text-decoration: none !important;
}
.teacher-link:hover { background: #1c3b7f; color: #fff !important; }

/* dept member / assistant list */
.member-list { padding: 0.5rem 0; }
.member-grid { display: grid; gap: 1rem; }
.member-card {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid #d4d4d4;
  border-left: 4px solid #1c3b7f;
}
.member-avatar {
  flex-shrink: 0;
  width: 80px;
  height: 100px;
  overflow: hidden;
  background: #f0f3f8;
}
.member-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.member-avatar-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center; color: #aab4c0;
}
.member-info { flex: 1; }
.member-name { font-size: 1.1rem; font-weight: 700; color: #1c3b7f; margin-bottom: 0.15rem; }
.member-title { font-size: 0.85rem; color: #6e7783; margin-bottom: 0.5rem; }
.member-rows { display: grid; gap: 0.25rem; }
.member-row { display: flex; gap: 0.5rem; font-size: 0.85rem; color: #333; align-items: baseline; }
.member-row p { margin: 0; }
.member-row .label { flex-shrink: 0; min-width: 4.5rem; color: #1c3b7f; font-weight: 600; }
.member-row a { color: #1c3b7f; text-decoration: underline; }
.member-row a:hover { color: #a71836; }

/* news list */
.content-list { padding: 0.5rem 0; }
.content-nav { margin-bottom: 1rem; }
.content-items { border-top: 2px solid #1c3b7f; }
.content-item {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.6rem 0.25rem;
  border-bottom: 1px solid rgba(28,59,127,0.12);
  text-decoration: none !important;
  color: inherit;
}
.content-item:hover { background: rgba(28,59,127,0.04); }
.content-item-meta {
  display: flex; gap: 0.4rem; align-items: center;
  flex-shrink: 0;
}
.content-date { font-size: 0.78rem; color: #6e7783; white-space: nowrap; }
.content-category {
  font-size: 0.7rem; color: #fff;
  background: #1c3b7f; padding: 0.05rem 0.4rem;
  white-space: nowrap;
}
.content-title { font-size: 0.92rem; color: #1c3b7f !important; line-height: 1.5; margin: 0; }
.content-item:hover .content-title { color: #a71836 !important; }

/* news detail */
.content-detail { padding: 0.5rem 0; }
.content-detail-title {
  font-size: 1.4rem; font-weight: 700; color: #1c3b7f;
  margin-bottom: 0.5rem; line-height: 1.4;
}
.content-copy-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.78rem;
  color: #1c3b7f !important;
  text-decoration: none !important;
  border: 1px solid #1c3b7f;
  padding: 0.1rem 0.5rem;
  margin-left: 0.5rem;
}
.content-copy-link:hover { background: #1c3b7f; color: #fff !important; }
.content-detail-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem; color: #6e7783;
  margin-bottom: 1.5rem; padding-bottom: 0.75rem;
  border-bottom: 2px solid #1c3b7f;
}
.content-detail-meta span { margin-right: 0.75rem; }
.content-detail-images { margin-bottom: 1.5rem; }
.content-detail-images img { max-width: 100%; margin-bottom: 0.5rem; }
.content-detail-body { font-size: 0.95rem; line-height: 1.8; margin-bottom: 1.5rem; }
.content-detail-attachments { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid rgba(28,59,127,0.15); }
.content-attach-title { font-weight: 700; color: #1c3b7f; margin-bottom: 0.5rem; }

/* 移除 sidebar 外層灰框，改用左側藍色邊線 */
main .border-hex-d0c9c9 {
  --bs-border-color: transparent;
  border: none !important;
  border-left: 3px solid #1c3b7f !important;
  padding: 0 0 0 0.25rem !important;
}
main .border-hex-6e778326 {
  --bs-border-color: rgba(110,119,131,0.149);
}
/* sidebar 與內容區間距 */
@media (min-width: 768px) {
  main .md\:flex { gap: 2.5rem; }
}

/* component list pagination */
main.content-page .pagination {
  display: flex; flex-wrap: wrap; gap: 0.25rem;
  list-style: none; padding: 0; margin: 0.5rem 0;
}
main.content-page .pagination li a,
main.content-page .pagination li span {
  display: inline-block; padding: 0.25rem 0.6rem;
  border: 1px solid rgba(28,59,127,0.3);
  color: #1c3b7f; text-decoration: none; font-size: 0.85rem;
}
main.content-page .pagination li.active span,
main.content-page .pagination li a:hover {
  background: #1c3b7f; color: #fff; border-color: #1c3b7f;
}
.content-item-actions {
  display: flex; gap: 0.5rem; margin-top: 0.25rem; flex-shrink: 0;
}
.content-item-actions a {
  font-size: 0.78rem; color: #1c3b7f;
  border: 1px solid rgba(28,59,127,0.4);
  padding: 0.1rem 0.5rem; text-decoration: none;
}
.content-item-actions a:hover { background: #1c3b7f; color: #fff; }
