/* ========== 全局基础重置 ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background-color: #f5f5f5;
  font-family: "Microsoft Yahei", SimSun, sans-serif;
  color: #333;
  line-height: 1.6;
}
a {
  text-decoration: none;
  color: #333;
}
/* 仅读屏可见（表单 label 无障碍） */
.a11y-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
ul {
  list-style: none;
}
/* 图片自适应 根治图片放大溢出 */
img {
  max-width: 100%;
  height: auto;
  display: block;
}
.site-container {
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 15px;
}

/* ========== 站点公共布局（header/footer） ========== */
.site-topbar {
  height: 40px;
  background: #f3f4f6;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 16px;
  font-size: 14px;
  color: #4b5563;
}
.site-topbar a {
  margin-left: 20px;
  color: #4b5563;
}
.site-topbar a:hover {
  color: #1e3a8a;
}
.site-header {
  background: #fff;
  position: relative;
  z-index: 100;
  overflow: visible;
}
.site-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 12px;
  overflow: visible;
}
.site-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.gov-icon {
  width: 45px;
  height: 45px;
  object-fit: contain;
}
.site-title-text {
  color: #1e3a8a;
  font-size: 24px;
  font-weight: bold;
}
.site-search {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  overflow: visible;
  z-index: 101;
}
.site-search-input {
  border: 1px solid #d1d5db;
  height: 36px;
  padding: 0 12px;
  font-size: 14px;
  width: 192px;
  border-radius: 4px 0 0 4px;
  outline: none;
}
.site-search-btn {
  background: #1e3a8a;
  color: #fff;
  height: 36px;
  padding: 0 16px;
  font-size: 14px;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}
.site-search-result {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  width: 100%;
  min-width: 280px;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  max-height: 320px;
  border-radius: 4px;
  overflow-x: hidden;
  overflow-y: auto;
  z-index: 200;
}
.site-search-result.show {
  display: block;
}
.site-nav {
  background: #1e3a8a;
}
.site-nav-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}
.site-nav-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 10px 15px;
  background: #1e40af;
  color: #fff;
  border: none;
  font-size: 15px;
  cursor: pointer;
  text-align: left;
}
.site-nav-toggle-icon {
  font-size: 18px;
  line-height: 1;
}
.site-nav-inner {
  display: flex;
  flex-wrap: wrap;
  flex: 1;
}
.site-nav a {
  color: #fff;
  padding: 12px 20px;
  font-size: 14px;
}
.site-nav a:hover,
.site-nav a.active {
  background: #1e40af;
  color: #fff;
}
.site-footer {
  background: #1e3a8a;
  border-top: none;
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
  padding: 20px 0;
  margin-top: 20px;
}
.site-footer__copy {
  margin: 0;
}
.site-footer__contact {
  margin: 6px 0 0;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
}
.site-footer__legal {
  margin: 6px 0 0;
  line-height: 1.6;
}
.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 10px;
}
.site-footer__sep {
  color: rgba(255, 255, 255, 0.45);
  user-select: none;
}
.site-footer__legal a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}
.site-footer__legal a:hover {
  color: #fff;
  text-decoration: underline;
}
.site-footer__gongan-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.site-footer__gongan-icon {
  flex-shrink: 0;
}

/* ========== 区块标题：左侧红色竖线 ========== */
.section-title {
  position: relative;
  padding-left: 14px;
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
}
.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background-color: #d92929;
}

/* ========== 轮播模块 ========== */
.home-hero {
  display: flex;
  align-items: stretch;
  gap: 20px;
  padding: 30px 0;
}
.home-slide-wrap {
  flex: 7 1 0;
  min-width: 0;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  height: 320px;
  background: #f3f4f6;
}
.slide-box {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.slide-item {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.slide-item.active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}
.slide-item a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}
.slide-item img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  border-radius: 6px;
}
.slide-caption {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 12px 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
  color: #fff;
  font-size: 16px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 轮播左右按钮 */
.slide-prev, .slide-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(0,0,0,0.3);
  color: #fff;
  border: none;
  font-size: 20px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 2;
}
.slide-prev {
  left: 20px;
}
.slide-next {
  right: 20px;
}
.slide-prev:hover, .slide-next:hover {
  background: rgba(0,0,0,0.6);
}
/* 轮播圆点 */
.slide-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}
.slide-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
}
.slide-dot.active {
  background: #fff;
}
.slide-empty {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #999;
}

/* ========== 新闻面板 + 新闻列表（红色圆点） ========== */
.home-news-panel {
  flex: 5 1 0;
  min-width: 0;
  height: 320px;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  padding: 20px;
  overflow: hidden;
}
.panel-header {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}
.panel-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.panel-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.panel-title {
  font-size: 18px;
  font-weight: bold;
}
.panel-more {
  color: #0066cc;
  font-size: 14px;
}
.news-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}
/* 新闻列表 红色小圆点 */
.news-list li,
.info-list li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0 6px 14px;
  font-size: 14px;
  line-height: 1.5;
  border-bottom: 1px dashed #eee;
}
.news-list li:last-child,
.info-list li:last-child {
  border-bottom: none;
}
.news-list li::before,
.info-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background-color: #d92929;
  border-radius: 50%;
}
.news-list li > a,
.info-list li > a {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.news-list .date,
.info-list .date {
  flex-shrink: 0;
  color: #999;
  font-size: 12px;
  white-space: nowrap;
}
.news-list li.list-empty,
.info-list li.list-empty {
  display: block;
  text-align: center;
  border-bottom: none;
}
.list-empty {
  text-align: center;
  color: #999;
  padding: 20px 0;
}

/* ========== 招生宣传区 ========== */
.home-section {
  margin-bottom: 40px;
}
.home-promo {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border-radius: 6px;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.home-promo-desc {
  margin: 15px 0;
  color: #666;
  max-width: 700px;
}
.home-promo-btns {
  display: flex;
  gap: 15px;
}
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 4px;
  color: #fff;
  font-size: 14px;
}
.btn-primary {
  background-color: #0066cc;
}
.btn-danger {
  background-color: #d92929;
}
.btn-success {
  background-color: #28a745;
}

/* ========== 热门科目卡片：上浮 + 阴影 + 图片缩放 ========== */
.subject-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 768px) {
  .home-hero,
  .home-columns,
  .home-promo {
    flex-direction: column;
  }
  .home-slide-wrap,
  .home-news-panel {
    flex: none;
    width: 100%;
    height: 256px;
  }
  .subject-grid {
    grid-template-columns: 1fr;
  }
  .site-topbar {
    font-size: 12px;
    padding: 0 10px;
  }
  .site-topbar a {
    margin-left: 12px;
  }
  .site-header-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .site-title {
    justify-content: center;
    text-align: center;
  }
  .site-title-text {
    font-size: 18px;
  }
  .site-search {
    width: 100%;
  }
  .site-search-input {
    flex: 1;
    width: auto;
    min-width: 0;
  }
  .site-nav-bar {
    flex-direction: column;
    padding: 0;
  }
  .site-nav-toggle {
    display: flex;
  }
  .site-nav-inner {
    display: none;
    flex-direction: column;
    width: 100%;
  }
  .site-nav-inner.is-open {
    display: flex;
  }
  .site-nav a {
    display: block;
    width: 100%;
    padding: 12px 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
}
.subject-card {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.3s ease;
}
.subject-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.subject-card > img {
  width: 100%;
  transition: transform 0.3s ease;
}
.subject-card:hover > img {
  transform: scale(1.05);
}
.subject-card-body {
  padding: 12px;
}
.subject-card-title {
  font-size: 15px;
  margin-bottom: 6px;
}
.subject-card-meta {
  font-size: 12px;
  color: #999;
}

/* ========== 政策+公告双栏 ========== */
.home-columns {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
}
.home-panel {
  flex: 1;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border-radius: 6px;
  padding: 20px;
}

/* ========== 友情链接 ========== */
.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 15px 0;
}
.link-list a {
  color: #0066cc;
}

/* ========== 页脚（深色政务风格）在 footer.php 对应类 ========== */
.footer {
  background-color: #222831;
  color: #ccc;
  text-align: center;
  padding: 30px 0;
  margin-top: 40px;
}
.footer a {
  color: #99a3b1;
}

/* ========== 内页通用布局 ========== */
.site-title-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
}
.site-title-link:hover {
  color: inherit;
}
.page-main {
  padding: 20px 0 40px;
}
.page-breadcrumb {
  font-size: 14px;
  color: #6b7280;
  padding: 12px 0;
}
.page-breadcrumb a {
  color: #6b7280;
}
.page-breadcrumb a:hover {
  color: #1e3a8a;
}
.page-breadcrumb-sep {
  margin: 0 8px;
  color: #9ca3af;
}
.page-breadcrumb-current {
  color: #1e3a8a;
}
.page-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 24px;
  margin-bottom: 20px;
}
.page-card-title {
  font-size: 18px;
  font-weight: bold;
  color: #1e3a8a;
  border-bottom: 1px solid #eee;
  padding-bottom: 12px;
  margin-bottom: 20px;
}
.article-detail-title {
  font-size: 20px;
  font-weight: bold;
  color: #1e3a8a;
  text-align: center;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
  margin-bottom: 16px;
}
.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #e5e7eb;
}
.article-meta {
  flex: 1 1 280px;
  text-align: left;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.8;
}
.article-meta-sep {
  margin: 0 8px;
  color: #d1d5db;
}
.article-meta a {
  color: #1e3a8a;
  text-decoration: none;
}
.article-meta a:hover {
  text-decoration: underline;
}
.article-share {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #374151;
}
.article-share-label {
  color: #6b7280;
}
.article-share-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 4px;
  line-height: 0;
}
.article-share-icon:hover {
  background: #f0f4ff;
}
.article-share-icon img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.article-share-wx-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  width: 180px;
  padding: 10px 12px 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  text-align: center;
}
.article-share-wx-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: #374151;
  margin-bottom: 8px;
}
.article-share-wx-close {
  border: none;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: #9ca3af;
  padding: 0 2px;
}
.article-share-wx-close:hover {
  color: #374151;
}
.article-share-wx-img {
  display: block;
  margin: 0 auto;
  width: 140px;
  height: 140px;
}
.article-body {
  line-height: 1.8;
  color: #374151;
}
.article-detail .article-body {
  text-align: justify;
  font-size: 16px;
}
.article-detail .article-lead,
.article-detail .article-rest {
  margin: 0 0 1em;
  text-indent: 2em;
}
.article-figure {
  display: block;
  width: 15cm;
  max-width: 100%;
  aspect-ratio: 3 / 2;
  margin: 1.25em auto 1.5em;
  padding: 0;
  box-sizing: border-box;
  background: #f9fafb;
  border-radius: 2px;
  overflow: hidden;
}
.article-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.article-detail .article-back {
  margin-top: 20px;
  text-align: left;
  text-indent: 0;
}
.article-body img {
  max-width: 100%;
  height: auto;
  margin: 12px auto;
  border-radius: 4px;
}
.content-list-item {
  display: flex;
  gap: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: background 0.2s;
}
.content-list-item:hover {
  background: #f9fafb;
}
.content-list-item--text {
  display: block;
  padding: 12px 16px;
}
.content-list-thumb {
  width: 160px;
  min-height: 112px;
  flex-shrink: 0;
}
.content-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.content-list-body {
  flex: 1;
  padding: 12px 16px 12px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.content-list-title {
  font-size: 16px;
  font-weight: 500;
  color: #1f2937;
}
.content-list-title:hover {
  color: #1e3a8a;
}
.content-list-meta {
  font-size: 13px;
  color: #6b7280;
  margin-top: 8px;
}
.content-list-actions {
  text-align: right;
  margin-top: 8px;
}
.row-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed #e5e7eb;
  font-size: 14px;
}
.row-list li:last-child {
  border-bottom: none;
}
.row-list a:hover {
  color: #1e3a8a;
}
.row-list .date {
  color: #9ca3af;
  flex-shrink: 0;
  margin-left: 12px;
}
.btn-sm {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  border-radius: 4px;
  background: #1e3a8a;
  color: #fff;
  border: none;
  cursor: pointer;
}
.btn-sm:hover {
  background: #1e40af;
  color: #fff;
}
.btn-outline {
  display: inline-block;
  padding: 8px 16px;
  font-size: 14px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  color: #374151;
}
.btn-outline:hover {
  background: #f3f4f6;
}
.btn-block {
  display: block;
  width: 100%;
  padding: 10px;
  text-align: center;
  border: none;
  border-radius: 4px;
  background: #1e3a8a;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}
.btn-block:hover {
  background: #1e40af;
  color: #fff;
}
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 100;
  align-items: center;
  justify-content: center;
}
.modal-overlay.is-open {
  display: flex;
}
.modal-box {
  background: #fff;
  width: 320px;
  padding: 24px;
  border-radius: 6px;
  text-align: center;
}
.modal-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}
.search-suggest-empty {
  padding: 12px;
  font-size: 14px;
  color: #6b7280;
}
.site-search-result a.search-suggest-item {
  display: block;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.4;
  color: #374151;
  border-bottom: 1px solid #f3f4f6;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.site-search-result a.search-suggest-item:hover {
  background: #eff6ff;
  color: #1e3a8a;
}
.site-search-result a.search-suggest-item:last-child {
  border-bottom: none;
}
.search-badge {
  flex-shrink: 0;
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  line-height: 1.5;
  border-radius: 3px;
  font-weight: 500;
}
.search-badge--news { background: #dbeafe; color: #1e40af; }
.search-badge--policy { background: #e0e7ff; color: #3730a3; }
.search-badge--notice { background: #fef3c7; color: #b45309; }
.search-badge--subject { background: #fee2e2; color: #b91c1c; }
.search-badge--jxjy { background: #d1fae5; color: #047857; }
.search-page-head .page-card-title {
  margin-bottom: 16px;
}
.search-page-form {
  display: flex;
  gap: 0;
  max-width: 560px;
}
.search-page-input {
  flex: 1;
  height: 42px;
  padding: 0 14px;
  font-size: 15px;
  border: 1px solid #d1d5db;
  border-radius: 4px 0 0 4px;
  outline: none;
}
.search-page-input:focus {
  border-color: #1e3a8a;
  box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.15);
}
.search-page-submit {
  height: 42px;
  padding: 0 24px;
  border-radius: 0 4px 4px 0;
}
.search-page-hint {
  margin: 12px 0 0;
  font-size: 13px;
  color: #6b7280;
}
.search-page-summary {
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  color: #4b5563;
}
.search-page-summary strong {
  color: #1e3a8a;
}
.search-page-summary em {
  font-style: normal;
  color: #111827;
  font-weight: 500;
}
.search-result-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.search-result-item {
  border-bottom: 1px solid #f3f4f6;
}
.search-result-item:last-child {
  border-bottom: none;
}
.search-result-link {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px 16px;
  padding: 16px 12px;
  color: inherit;
  text-decoration: none;
  transition: background 0.15s ease;
}
.search-result-link:hover {
  background: #f8fafc;
}
.search-result-link:hover .search-result-title {
  color: #1e3a8a;
}
.search-result-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.search-result-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}
.search-result-title {
  font-size: 16px;
  font-weight: 500;
  color: #111827;
  line-height: 1.5;
  flex: 1;
  min-width: 0;
}
.search-result-snippet {
  display: block;
  font-size: 13px;
  line-height: 1.6;
  color: #6b7280;
}
.search-result-meta {
  font-size: 13px;
  color: #9ca3af;
  white-space: nowrap;
}
.search-result-arrow {
  font-size: 20px;
  color: #9ca3af;
  line-height: 1;
}
@media (max-width: 640px) {
  .search-result-link {
    grid-template-columns: 1fr;
  }
  .search-result-meta {
    justify-self: start;
  }
  .search-result-arrow {
    display: none;
  }
  .search-page-form {
    max-width: none;
  }
}
.subject-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 768px) {
  .subject-page-grid {
    grid-template-columns: 1fr;
  }
  .content-list-item {
    flex-direction: column;
  }
  .content-list-thumb {
    width: 100%;
    min-height: 160px;
  }
}
.user-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.user-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}
.user-sidebar-title {
  background: #1e3a8a;
  color: #fff;
  text-align: center;
  padding: 12px;
  font-weight: bold;
}
.user-menu a {
  display: block;
  padding: 12px 16px;
  color: #374151;
  border-left: 4px solid transparent;
}
.user-menu a:hover {
  background: #f9fafb;
}
.user-menu a.active {
  background: #eff6ff;
  color: #1e3a8a;
  border-left-color: #1e3a8a;
}
.user-content {
  flex: 1;
  min-width: 0;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 24px;
}
@media (max-width: 768px) {
  .user-layout {
    flex-direction: column;
  }
  .user-sidebar {
    width: 100%;
  }
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: #374151;
}
.form-control {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 14px;
}
.form-hint {
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
}
.form-hint-error {
  color: #b91c1c;
}
.alert {
  padding: 10px 14px;
  border-radius: 4px;
  margin-bottom: 16px;
  font-size: 14px;
}
.alert-success {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}
.alert-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
.login-page {
  max-width: 420px;
  margin: 0 auto;
  padding: 40px 0 60px;
}
.login-box {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.login-box h2 {
  text-align: center;
  color: #1e3a8a;
  margin-bottom: 24px;
  font-size: 20px;
}
.login-tabs {
  display: flex;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  margin-bottom: 24px;
  overflow: hidden;
}
.login-tabs button {
  flex: 1;
  padding: 10px;
  border: none;
  background: #f3f4f6;
  color: #6b7280;
  cursor: pointer;
  font-size: 14px;
}
.login-tabs button.active {
  background: #1e3a8a;
  color: #fff;
}
.is-hidden {
  display: none !important;
}
.text-center-link {
  text-align: center;
  margin-top: 12px;
  font-size: 14px;
}
.text-center-link a {
  color: #1e3a8a;
}
.captcha-group {
  margin-bottom: 16px;
}
.captcha-question {
  margin: 0 0 8px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  font-size: 14px;
  color: #374151;
  line-height: 1.5;
}
.captcha-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.captcha-input {
  flex: 1;
  min-width: 0;
}
.captcha-img {
  flex-shrink: 0;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  cursor: pointer;
  background: #f3f4f6;
}
.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.partner-item {
  text-align: center;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 16px;
}
.partner-item img {
  max-height: 80px;
  margin: 0 auto 10px;
  object-fit: contain;
}
@media (max-width: 768px) {
  .partner-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.contact-info p {
  margin-bottom: 12px;
  line-height: 1.8;
}
.play-course-wrap {
  padding: 20px 0 40px;
}
.play-course-video {
  width: 100%;
  max-width: 100%;
  margin-top: 16px;
  background: #000;
  border-radius: 6px;
  overflow: hidden;
  line-height: 0;
}
.play-course-video video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: min(70vh, 56.25vw);
  object-fit: contain;
  vertical-align: top;
}
@media (max-width: 768px) {
  .play-course-video video {
    max-height: min(50vh, 56.25vw);
  }
}
.signup-gallery img {
  max-width: 100%;
  border-radius: 6px;
  margin: 16px auto;
  box-shadow: 0 0 8px #eee;
}
.article-body .mb-4 {
  margin-bottom: 16px;
}
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 768px) {
  .form-row-2 {
    grid-template-columns: 1fr;
  }
}
.course-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.course-item {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.course-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.course-title {
  padding: 15px;
  text-align: center;
  font-size: 16px;
}
.play-btn {
  display: block;
  width: 120px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  background: #1e3a8a;
  color: #fff;
  border-radius: 4px;
  margin: 10px auto 15px;
}
.play-btn:hover {
  background: #1e40af;
  color: #fff;
}
.video-popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}
.video-popup.is-open {
  display: flex;
}
.video-popup-box {
  width: 80%;
  max-width: 800px;
  position: relative;
}
.video-popup-box video {
  width: 100%;
  border-radius: 8px;
}
.video-popup-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  border: none;
  background: none;
}
