/* 基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f5f7fa;
}

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

.reg_status_normal{
  font-size: 1rem;
}

.reg_status_small{
  font-size: 0.9rem;
}

.reg_status_bold{
  font-weight: bold;
}

.reg_status_waiting{
  color: #FFCC00;
}

.reg_status_doing{
  color: #FF3B30;
}

.reg_status_finish{
  color: #8E8E93;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* 顶部导航 */
.navbar {
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
  padding: 0 1rem;
}

.navbar-logo a {
  font-size: 1.5rem;
  font-weight: bold;
  color: #667eea;
}

.navbar-menu {
  display: flex;
  gap: 2rem;
}

.navbar-menu a {
  color: #333;
  font-size: 1rem;
  transition: color 0.3s;
  padding: 0.5rem 0;
}

.navbar-menu a:hover,
.navbar-menu a.active {
  color: #667eea;
}

.navbar-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* 主内容区域 */
.main-content {
  min-height: calc(100vh - 200px);
}

/* Banner 区域 */
.banner {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.banner-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.banner-content p {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.banner-subtitle {
  opacity: 0.9;
  margin-bottom: 2rem !important;
}

.banner-btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: #fff;
  color: #667eea;
  border-radius: 4px;
  font-weight: bold;
  transition: transform 0.3s;
}

.banner-btn:hover {
  transform: translateY(-2px);
}

/* 招考动态区域 */
.exam-dynamic {
  padding: 3rem 0;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #333;
}

.exam-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-columns: 1fr;
  width: 100%;
  align-items: stretch;
  justify-items: stretch;
  overflow: hidden;
  gap: 1.5rem;
}

.exam-card {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.exam-card-title {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #667eea;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.exam-card-title a {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.exam-list {
  list-style: none;
  flex: 1;
}

.exam-list li {
  padding: 0.5rem 0;
  border-bottom: 1px dashed #eee;
}

.exam-list li:last-child {

}

.exam-list li .reg_status_waiting,
.exam-list li .reg_status_doing,
.exam-list li .reg_status_finish {
  margin-right: 0.6rem;
}

.exam-link {
  color: #333;
  display: block;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.exam-link:hover {
  color: #667eea;
}

.exam-date,.exam-region {
  font-size: 0.9rem;
  color: #666;
}

.exam-card-more {
  margin-top: auto;
  margin-top: 1rem;
  text-align: right;
}

.exam-card-more a {
  color: #667eea;
  font-size: 0.9rem;
}

/* 列表页 */
.exam-list-page {
  padding: 2rem 0;
}

.page-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #333;
}

.filter-bar {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.filter-bar select {
  padding: 0.5rem 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.exam-list {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.exam-list-item {
  padding: 1.5rem;
  border-bottom: 1px solid #eee;
}

.exam-list-item:last-child {
  border-bottom: none;
}

.exam-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.exam-item-title {
  font-size: 1.2rem;
  flex: 1;
}

.exam-item-title a:hover {
  color: #667eea;
}

.exam-item-badge {
  background: #667eea;
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

.exam-item-meta {
  margin-bottom: 0;
  color: #666;
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.exam-item-meta span {
  margin-right: 0;
}

.exam-item-excerpt {
  color: #666;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.exam-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-detail {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: #667eea;
  color: #fff;
  border-radius: 4px;
}

.item-date {
  color: #999;
  font-size: 0.85rem;
}

/* 分页 */
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  background: #fff;
  margin-top: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pagination-info {
  color: #666;
  font-size: 0.9rem;
}

.pagination-buttons {
  display: flex;
  gap: 0.5rem;
}

/* 隐藏滚动条但保留滚动功能 */
.pagination-buttons::-webkit-scrollbar {
  height: 2px;
}

.pagination-buttons::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 1px;
}

.pagination-buttons::-webkit-scrollbar-track {
  background: transparent;
}

.page-number,
.btn-prev,
.btn-next {
  padding: 0.5rem 0.875rem;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  color: #333;
  background: #fff;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.page-number {
  min-width: 2.5rem;
  text-align: center;
}

.page-number:hover {
  border-color: #667eea;
  color: #667eea;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}

.page-number.active {
  background: rgb(102, 126, 234);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.btn-prev,
.btn-next {
  font-weight: 500;
}

.btn-prev:hover:not(.disabled),
.btn-next:hover:not(.disabled) {
  border-color: #667eea;
  color: #667eea;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}

.btn-prev.disabled,
.btn-next.disabled {
  color: #ccc;
  background: #f5f5f5;
  border-color: #e0e0e0;
  cursor: not-allowed;
  pointer-events: none;
}

.page-ellipsis {
  padding: 0.5rem 0.25rem;
  color: #999;
  user-select: none;
}

/* SEO 隐藏链接 - 视觉不可见但爬虫可抓取 */
.seo-links {
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
}

.seo-links a {
  color: #667eea;
  font-size: 0.9rem;
}

/* 移动端响应式（仅小屏手机） */
@media (max-width: 480px) {
  .pagination {
    overflow: hidden;
    padding: 1.5rem;
  }

  /* 移动端表格优化 */
  .content-body table {
    font-size: 0.85rem;
  }

  .content-body table td,
  .content-body table th {
    padding: 0.4rem 0.2rem;
    max-width: 200px;
  }

  .page-number,
  .btn-prev,
  .btn-next,
  .page-ellipsis {
    min-width: 2rem !important;
  }
}

/* 所有按钮统一样式 */
.page-number,
.btn-prev,
.btn-next,
.page-ellipsis {
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  padding: 0.35rem 0.45rem !important;
  font-size: 0.75rem !important;
  text-align: center !important;
  border-radius: 4px !important;
}

/* 省略号特殊处理 */
.page-ellipsis {
  min-width: 1rem !important;
  padding: 0.35rem 0.1rem !important;
  border: none !important;
  background: transparent !important;
}

/* 详情页 */
.exam-detail {
  padding: 2rem 0;
}

.exam-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.exam-nav .breadcrumb {
  color: #666;
}

.exam-nav .breadcrumb a {
  color: #667eea;
}

.article-header {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.article-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #333;
}

.article-meta {
  display: flex;
  gap: 1.5rem;
  color: #666;
}

/* 时间线 */
.timeline-section {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.timeline-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #333;
}

.timeline {
  display: grid;
  gap: 1.5rem;
}

.timeline-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: #f5f7fa;
  border-radius: 8px;
}

.timeline-icon {
  font-size: 2rem;
}

.timeline-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.timeline-content p {
  color: #666;
}

/* 公告原文 */
.article-content {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.article-content img {
    /* 核心：最大宽度不超过容器，高度自动适配（保持比例） */
    max-width: 100%;
    /* 高度随宽度自动缩放，防止图片变形 */
    height: auto;
    /* 可选：小图片居中显示，提升视觉效果 */
    display: block;
    margin: 0 auto;
    /* 可选：避免图片紧贴文本，增加间距 */
    margin-top: 8px;
    margin-bottom: 8px;
    /* 可选：图片边框/圆角，美化样式 */
    border-radius: 4px;
    border: none;
}

.content-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #333;
}

.content-body {
  line-height: 2;
  color: #333;
  overflow-x: hidden;
}

/* 仅针对我们处理后的标准表格生效 */
.content-body table.standard-table {
  max-width: 100%;
  width: 100%;
  border-collapse: collapse;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 1rem;
}

.content-body table.standard-table td,
.content-body table.standard-table th {
  word-break: break-word;
  max-width: 300px;
  white-space: normal;
  padding: 10px;
  text-align: center;
  vertical-align: middle;
  border: 1px solid #e0e0e0;
}

/* 页脚 */
.footer {
  background: #333;
  color: #fff;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
}

.footer-brand {
  text-align: left;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #667eea;
  margin-bottom: 0.4rem;
}

.footer-slogan {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.2rem;
  margin: 0;
}

.footer-wechat {
  text-align: center;
}

.footer-wechat h4 {
  display: none;
}

.footer-wechat img {
  width: 100px;
  height: 100px;
  border-radius: 6px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

.footer-wechat p {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.75rem;
  margin: 0.4rem 0 0;
}

.footer-bottom {
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  padding: 0.5rem 0;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.8rem;
  margin: 0;
  line-height: 1.3;
}

/* 详情页 - 公众号引导卡片 */
.wechat-cta {
  background: #fff;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.wechat-cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem;
}

.wechat-cta-text h3 {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 1rem;
}

.wechat-cta-text ul {
  list-style: none;
  padding: 0;
}

.wechat-cta-text ul li {
  color: #666;
  font-size: 1rem;
  line-height: 2;
}

.wechat-cta-qr, .footer-wechat {
  text-align: center;
  flex-shrink: 0;
  margin-left: 2rem;
}

.wechat-cta-qr img, .footer-wechat img {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  object-fit: cover;
}

.wechat-cta-qr p, .footer-wechat p {
  color: #999;
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

/* 详情页 - 相关考试推荐 */
.related-exams {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.related-title {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 1.5rem;
}

.related-list {
  list-style: none;
  padding: 0;
}

.related-list li {
  padding: 0.6rem 0;
  border-bottom: 1px dashed #f0f0f0;
}

.related-list li:first-child {
  padding-top:0;
}

.related-list li:last-child {
  border-bottom: none;
}

.related-list li a {
  color: #333;
  font-size: 1rem;
  transition: color 0.2s;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.25rem;
}

.related-list li span{
  margin-right: 0.6rem;
}

.related-list li a:hover {
  color: #667eea;
}

.related-pager {
  display: flex;
  border-top: 1px solid #eee;
  padding-top: 1.2rem;
}

.related-prev,
.related-next {
  width: 50%;
  min-width: 0;
}

.related-prev {
  padding-right: 1rem;
}

.related-next {
  padding-left: 1rem;
  text-align: left;
}

.related-prev span,
.related-next span {
  color: #999;
  font-size: 1rem;
}

.related-prev a,
.related-next a {
  color: #333;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0.3rem;
  transition: color 0.2s;
  max-width: 100%;
  display: inline-block;
}

.related-prev a:hover,
.related-next a:hover {
  color: #667eea;
}