/* ══════════════════════════════════════
   页面通用样式 pages.css
   ══════════════════════════════════════ */

/* 页面头部导航 */
.page-header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo img {
  height: 45px;
  width: auto;
  display: block;
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e63a1e;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  color: #e63a1e;
}

.nav-menu {
  display: flex;
  gap: 36px;
  flex: 1;
  align-items: center;
}

.nav-menu a {
  color: #333;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: color .2s;
  white-space: nowrap;
  position: relative;
  padding: 4px 0;
  line-height: 1.5;
}

.nav-menu a:hover {
  color: #e63a1e;
}

.nav-menu a.active {
  color: #e63a1e;
  font-weight: 600;
}

.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: -28px;
  left: 0;
  right: 0;
  height: 3px;
  background: #e63a1e;
}

.nav-menu a.special-btn {
  background: linear-gradient(135deg, #ff6b6b 0%, #e63a1e 100%);
  color: #fff;
  padding: 10px 24px;
  border-radius: 20px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(230, 58, 30, 0.3);
}

.nav-menu a.special-btn:hover {
  background: linear-gradient(135deg, #ff5252 0%, #d32f1a 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(230, 58, 30, 0.4);
}

.nav-menu a.special-btn::after {
  display: none;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.search-box {
  position: relative;
  width: 260px;
}

.search-input {
  width: 100%;
  height: 40px;
  padding: 0 45px 0 18px;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  font-size: 14px;
  outline: none;
  transition: all .2s;
  background: #f8f9fa;
}

.search-input:focus {
  border-color: #e63a1e;
  background: #fff;
  box-shadow: 0 2px 8px rgba(230, 58, 30, 0.1);
}

.search-input::placeholder {
  color: #999;
}

.search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 16px;
  border-radius: 50%;
  transition: all .2s;
}

.search-btn:hover {
  color: #e63a1e;
  background: rgba(230, 58, 30, 0.08);
}

/* 用户菜单 */
.user-menu {
  position: relative;
  margin-left: 12px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 6px;
  border-radius: 24px;
  cursor: pointer;
  transition: background .2s;
  user-select: none;
}

.user-info:hover {
  background: #f8f9fa;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e0e0e0;
  transition: border-color .2s;
}

.user-info:hover .user-avatar {
  border-color: #e63a1e;
}

.user-name {
  font-size: 15px;
  font-weight: 500;
  color: #333;
  white-space: nowrap;
}

.dropdown-arrow {
  font-size: 10px;
  color: #999;
  transition: transform .2s, color .2s;
}

.user-menu:hover .dropdown-arrow {
  transform: rotate(180deg);
  color: #e63a1e;
}

/* 用户下拉菜单 */
.user-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 280px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  padding: 0;
  z-index: 1000;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}

.user-menu:hover .user-dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* 下拉菜单头部 */
.dropdown-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 20px 20px;
  border-bottom: 1px solid #f0f0f0;
}

.dropdown-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #e63a1e;
  margin-bottom: 12px;
}

.dropdown-username {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

/* 操作按钮区域 */
.dropdown-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 20px;
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  background: #e63a1e;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  transition: all .2s;
  box-shadow: 0 2px 6px rgba(230, 58, 30, 0.2);
}

.action-btn:hover {
  background: #d32f1a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(230, 58, 30, 0.3);
}

/* 底部退出区域 */
.dropdown-footer {
  padding: 16px 20px;
  border-top: 1px solid #f0f0f0;
  text-align: center;
}

.logout-link {
  display: inline-block;
  color: #999;
  text-decoration: none;
  font-size: 14px;
  transition: color .2s;
}

.logout-link:hover {
  color: #e63a1e;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: background .2s, color .2s;
}

.dropdown-item:hover {
  background: #f8f9fa;
  color: #e63a1e;
}

.dropdown-item .item-icon {
  font-size: 18px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.dropdown-divider {
  height: 1px;
  background: #e0e0e0;
  margin: 8px 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.brand-logo img {
  width: 32px;
  height: 32px;
}

/* 页面标题横幅 */
.page-banner {
  background: linear-gradient(135deg, #1830ac 0%, #4267e0 100%);
  padding: 60px 20px;
  text-align: center;
  color: #fff;
}

.page-banner h1 {
  font-size: 42px;
  margin: 0 0 12px;
  font-weight: 700;
}

.page-banner p {
  font-size: 18px;
  margin: 0;
  opacity: 0.9;
}

/* 页脚 */
.page-footer {
  background: #2a2a2a;
  color: #999;
  text-align: center;
  padding: 40px 20px;
  margin-top: 80px;
}

.page-footer p {
  margin: 0;
}

/* 站点底部扩展样式 */
.site-footer {
  background: #1a1d1f;
  color: #b8b8b8;
  margin-top: auto;
}

.site-footer .footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px 28px;
}

.site-footer .footer-cols {
  display: flex;
  gap: 36px;
  align-items: flex-start;
  margin-bottom: 36px;
  justify-content: space-between;
}

.site-footer .footer-col {
  flex: 0 0 180px;
  min-width: 140px;
}
.site-footer .footer-col:nth-child(5) {
  flex: 0 0 340px; /* QR 列较宽 */
}

.site-footer .footer-col:last-child {
  flex: 1.5;
}

.site-footer h4 {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 20px;
  position: relative;
  padding-bottom: 12px;
}

.site-footer h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background: #e63a1e;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer ul li {
  margin: 10px 0;
  line-height: 1.6;
}

.site-footer a {
  color: #b8b8b8;
  text-decoration: none;
  font-size: 14px;
  transition: color .3s;
}

.site-footer a:hover {
  color: #e63a1e;
}

.footer-qr {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.footer-qr .qr-item {
  text-align: center;
  font-size: 12px;
  color: #b8b8b8;
  line-height: 1.5;
}

.footer-qr img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  margin-bottom: 8px;
  border: 2px solid rgba(255,255,255,0.06);
  background: #fff;
}

.footer-contact {
  font-size: 14px;
  color: #b8b8b8;
  line-height: 1.8;
}

.footer-contact .phone {
  font-size: 24px;
  color: #e63a1e;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.site-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-footer .badges {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 0;
}

.site-footer .badges img {
  height: 44px;
  opacity: 0.9;
  transition: opacity .3s, transform .15s;
}

.site-footer .badges img:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.site-footer .copyright {
  font-size: 12px;
  color: #9aa0a6;
  line-height: 1.6;
  text-align: right;
}

@media (max-width: 900px) {
  .site-footer .footer-cols {
    flex-direction: column;
    gap: 30px;
  }
  .footer-qr {
    justify-content: flex-start;
  }
  .site-footer .footer-inner {
    padding: 40px 20px 20px;
  }
}

/* ══════════════════════════════════════
   资讯列表页
   ══════════════════════════════════════ */

/* 面包屑导航 */
.breadcrumb-container {
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
}

.breadcrumb {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 20px;
  font-size: 14px;
  color: #666;
}

.breadcrumb a {
  color: #666;
  text-decoration: none;
  transition: color .2s;
}

.breadcrumb a:hover {
  color: #e63a1e;
}

.breadcrumb .separator {
  margin: 0 8px;
  color: #999;
}

.breadcrumb .current {
  color: #e63a1e;
  font-weight: 600;
}

.news-list-container {
  max-width: 1400px;
  margin: 40px auto;
  padding: 0 20px;
  display: flex;
  gap: 30px;
}

.news-main {
  flex: 1;
  min-width: 0;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.news-item {
  display: flex;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: transform .3s, box-shadow .3s;
}

.news-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.news-cover {
  position: relative;
  width: 280px;
  height: 180px;
  flex-shrink: 0;
  overflow: hidden;
}

.news-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.news-item:hover .news-cover img {
  transform: scale(1.05);
}

.news-content {
  flex: 1;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
}

.news-title {
  font-size: 18px;
  font-weight: 600;
  color: #222;
  margin: 0 0 12px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0 0 auto;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-meta {
  display: flex;
  gap: 20px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
  font-size: 13px;
  color: #999;
}

.news-category {
  color: #e63a1e;
  font-weight: 600;
}

/* 右侧边栏 */
.news-sidebar {
  width: 320px;
  flex-shrink: 0;
}

.sidebar-section {
  background: #fff;
  border-radius: 8px;
  padding: 16px; /* 更紧凑的内边距 */
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.sidebar-title {
  font-size: 16px;
  font-weight: 700;
  color: #222;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}

/* 报考指南网格 */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.guide-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  background: #f8f9fa;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
  font-size: 13px;
  transition: all .2s;
}

.guide-item:hover {
  background: #e63a1e;
  color: #fff;
  transform: translateY(-2px);
}

.guide-icon {
  font-size: 24px;
}

/* 资料下载列表 */
.download-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.download-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 6px;
  transition: background .2s;
}

.download-item:hover {
  background: #f0f0f0;
}

.download-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.download-info {
  flex: 1;
  min-width: 0;
}

.download-name {
  font-size: 13px;
  color: #333;
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.download-btn {
  padding: 6px 16px;
  background: #e63a1e;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: background .2s;
  flex-shrink: 0;
}

.download-btn:hover {
  background: #d32f1a;
}

/* 阅读排行 */
.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ranking-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  text-decoration: none;
  color: #333;
  border-radius: 4px;
  transition: background .2s;
}

.ranking-item:hover {
  background: #f8f9fa;
}

.ranking-num {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ddd;
  color: #666;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.ranking-num.rank-1 {
  background: #ff6b6b;
  color: #fff;
}

.ranking-num.rank-2 {
  background: #ffa502;
  color: #fff;
}

.ranking-num.rank-3 {
  background: #4ecdc4;
  color: #fff;
}

.ranking-title {
  font-size: 14px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 60px;
}

.page-btn {
  padding: 10px 24px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  transition: all .2s;
}

.page-btn:hover:not(:disabled) {
  background: #1830ac;
  color: #fff;
  border-color: #1830ac;
}

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

.page-info {
  color: #666;
}

/* ══════════════════════════════════════
   资讯详情页
   ══════════════════════════════════════ */

/* 顶部广告横幅 */
.top-banner {
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  margin: 20px 0; /* 上下间隔 */
}

.top-banner img {
  width: 100%;
  max-width: 1400px; /* 版心宽度 */
  height: 140px; /* 指定高度 */
  object-fit: cover; /* 保持裁切填充 */
  display: block;
  padding: 0 20px;
}

.article-container-wrapper {
  max-width: 1400px;
  margin: 40px auto;
  padding: 0 20px;
  display: flex;
  gap: 30px;
}

.article-container {
  flex: 1;
  min-width: 0;
  background: #fff;
  border-radius: 8px;
  padding: 40px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.article-header {
  padding-bottom: 24px;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 30px;
}

.article-title {
  font-size: 28px;
  font-weight: 700;
  color: #222;
  margin: 0 0 16px;
  line-height: 1.4;
}

.article-meta {
  display: flex;
  gap: 24px;
  color: #999;
  font-size: 14px;
}

.article-banner {
  margin: 30px 0;
  border-radius: 8px;
  overflow: hidden;
}

.article-banner img {
  width: 100%;
  display: block;
}

.article-body {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

.article-body p {
  margin: 16px 0;
}

.article-body h2 {
  font-size: 24px;
  margin: 40px 0 20px;
  color: #222;
  font-weight: 700;
}

.article-body h3 {
  font-size: 20px;
  margin: 30px 0 16px;
  color: #333;
  font-weight: 600;
}

.article-body h4 {
  font-size: 18px;
  margin: 24px 0 12px;
  color: #444;
  font-weight: 600;
}

.article-body img {
  max-width: 100%;
  border-radius: 8px;
  margin: 20px 0;
}

/* 文章底部说明与排行 */
.article-footer-meta {
  margin-top: 20px;
}

.article-disclaimer {
  background: #f3f4f5;
  border-radius: 6px;
  padding: 12px 14px;
  color: #777;
  font-size: 13px;
  margin-bottom: 14px;
}

.article-nav {
  margin-bottom: 18px;
}

.prev-link {
  color: #e63a1e;
  text-decoration: none;
  font-weight: 600;
}

.prev-link:hover { text-decoration: underline; }

.reading-ranking {
  background: #fff;
  border-radius: 8px;
  padding: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.reading-ranking .sidebar-title {
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}

.reading-ranking .ranking-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.reading-ranking .ranking-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #333;
  padding: 8px 6px;
  border-radius: 6px;
  transition: background .12s;
}

.reading-ranking .ranking-item:hover { background: #f8f8f8; }

.reading-ranking .ranking-num {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1830ac;
  color: #fff;
  border-radius: 6px;
  font-weight: 700;
}

.reading-ranking .ranking-num.rank-2 { background: #1f58d8; }
.reading-ranking .ranking-num.rank-3 { background: #3b7bff; }

.reading-ranking .ranking-title {
  font-size: 14px;
  color: #333;
}

.article-body strong {
  color: #222;
  font-weight: 600;
}

/* 右侧边栏 */
.article-sidebar {
  width: 320px;
  flex-shrink: 0;
}

/* 公开课卡片 */
.openclass-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}
.openclass-card img {
  width: 100%;
  height: 140px; /* 统一卡片封面高度 */
  object-fit: cover;
  display: block;
}

.openclass-info {
  padding: 16px;
}

.openclass-info h4 {
  font-size: 16px;
  font-weight: 600;
  color: #222;
  margin: 0 0 12px;
  line-height: 1.4;
}

.openclass-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  color: #666;
}

.openclass-meta .price {
  color: #e63a1e;
  font-weight: 600;
}

.btn-more {
  width: 100%;
  padding: 10px;
  background: #e63a1e;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background .2s;
}

.btn-more:hover {
  background: #d32f1a;
}

/* 试听课程 */
.trial-section {
  padding: 0;
  overflow: hidden;
}

.trial-section img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: transform .3s;
}

.trial-section img:hover {
  transform: scale(1.02);
}

/* 报考指南 - 详情页版本 */
.guide-grid-detail {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 改为四列图标布局 */
  gap: 12px;
}

.guide-item-detail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
  background: transparent;
  text-decoration: none;
  color: #333;
  font-size: 12px;
  transition: transform .12s;
}

.guide-item-detail:hover {
  transform: translateY(-4px);
}

.guide-icon-detail {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #1830ac;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.guide-item-detail span {
  font-size: 12px;
  color: #333;
}

/* 资料下载 - 详情页版本 */
.download-list-detail {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.download-item-detail {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 6px;
  transition: background .2s;
}

.download-item-detail:hover {
  background: #f0f0f0;
}

.download-icon-detail {
  font-size: 20px;
  flex-shrink: 0;
}

.download-name-detail {
  flex: 1;
  font-size: 12px;
  color: #333;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.download-btn-detail {
  padding: 4px 12px;
  background: #e63a1e;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: background .2s;
  flex-shrink: 0;
}

.download-btn-detail:hover {
  background: #d32f1a;
}

/* 课程推荐 */
.course-recommend {
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

.course-recommend img {
  width: 100%;
  display: block;
  transition: transform .3s;
}

.course-recommend:hover img {
  transform: scale(1.02);
}

/* 侧栏课程轮播样式 */
.course-carousel {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}

.carousel-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity .5s ease;
  pointer-events: none; /* 非激活幻灯片不拦截事件 */
  z-index: 0;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 40px;
  border-radius: 6px;
  background: rgba(0,0,0,0.45);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  z-index: 3; /* 确保箭头在最上层可点击 */
}

.carousel-prev { left: 8px; }
.carousel-next { right: 8px; }

.carousel-btn:hover { background: rgba(0,0,0,0.6); }

/* ══════════════════════════════════════
   课程列表页
   ══════════════════════════════════════ */

.filter-bar {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 20px 0;
}

.filter-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.filter-item {
  display: flex;
  align-items: center;
  gap: 20px;
}

.filter-label {
  font-size: 16px;
  color: #666;
  white-space: nowrap;
}

.filter-options {
  display: flex;
  gap: 12px;
}

.filter-btn {
  padding: 8px 24px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 20px;
  cursor: pointer;
  transition: all .2s;
  font-size: 14px;
}

.filter-btn:hover {
  border-color: #1830ac;
  color: #1830ac;
}

.filter-btn.active {
  background: #1830ac;
  color: #fff;
  border-color: #1830ac;
}

.course-list-container {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.course-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform .3s, box-shadow .3s;
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
}

.course-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 270/180;
  overflow: hidden;
}

.course-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.course-card:hover .course-cover img {
  transform: scale(1.04);
}

.course-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 12px;
  background: rgba(24, 48, 172, 0.9);
  color: #fff;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.course-info {
  padding: 18px;
}

.course-title {
  font-size: 18px;
  font-weight: 600;
  color: #222;
  margin: 0 0 10px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.course-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.course-price {
  color: #e63a1e;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.course-price .price-symbol {
  font-size: 16px;
  font-weight: 700;
}

.course-price .price-num {
  font-size: 26px;
  font-weight: 700;
  font-family: 'DIN Alternate', sans-serif;
}

.course-students {
  font-size: 13px;
  color: #999;
}

/* ══════════════════════════════════════
   课程详情页
   ══════════════════════════════════════ */

.course-detail-header {
  background: linear-gradient(135deg, #1830ac 0%, #4267e0 100%);
  padding: 60px 20px;
}

.course-detail-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 60px;
  align-items: center;
}

.course-detail-left {
  flex: 1;
  color: #fff;
}

.course-tag-large {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
}

.course-detail-title {
  font-size: 42px;
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.3;
}

.course-detail-desc {
  font-size: 18px;
  line-height: 1.6;
  opacity: 0.9;
  margin: 0 0 30px;
}

.course-stats {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
}

.stat-item {
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.course-price-box {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.price-label {
  font-size: 16px;
}

.price-large {
  font-size: 48px;
  font-weight: 700;
  font-family: 'DIN Alternate', sans-serif;
}

.price-large .symbol {
  font-size: 28px;
}

.btn-enroll {
  padding: 14px 40px;
  background: #ff6b6b;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
  margin-left: auto;
}

.btn-enroll:hover {
  background: #ff5252;
}

.course-detail-right {
  width: 480px;
  flex-shrink: 0;
}

.course-detail-right img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.course-detail-body {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.course-tabs {
  display: flex;
  gap: 40px;
  border-bottom: 2px solid #eee;
  margin-bottom: 40px;
}

.tab-btn {
  padding: 16px 0;
  background: none;
  border: none;
  font-size: 18px;
  color: #666;
  cursor: pointer;
  position: relative;
  transition: color .2s;
}

.tab-btn:hover {
  color: #1830ac;
}

.tab-btn.active {
  color: #1830ac;
  font-weight: 600;
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: #1830ac;
}

.tab-panel h3 {
  font-size: 24px;
  margin: 0 0 30px;
  color: #222;
}

.tab-panel p {
  font-size: 16px;
  line-height: 1.8;
  color: #666;
  margin: 16px 0;
}

.outline-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.outline-item {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 24px;
}

.chapter-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.chapter-num {
  padding: 4px 12px;
  background: #1830ac;
  color: #fff;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
}

.chapter-name {
  font-size: 18px;
  font-weight: 600;
  color: #222;
}

.lesson-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lesson-list li {
  padding: 10px 0;
  padding-left: 24px;
  position: relative;
  color: #666;
  font-size: 15px;
}

.lesson-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #1830ac;
}

.teacher-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.teacher-card {
  display: flex;
  gap: 30px;
  padding: 30px;
  background: #f8f9fa;
  border-radius: 12px;
}

.teacher-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
}

.teacher-info {
  flex: 1;
}

.teacher-info h4 {
  font-size: 22px;
  margin: 0 0 8px;
  color: #222;
}

.teacher-title {
  font-size: 16px;
  color: #1830ac;
  margin: 0 0 12px;
  font-weight: 600;
}

.teacher-desc {
  font-size: 15px;
  line-height: 1.6;
  color: #666;
  margin: 0;
}

/* ══════════════════════════════════════
   师资列表页
   ══════════════════════════════════════ */

.teacher-list-container {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.teacher-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.teacher-card-item {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform .3s, box-shadow .3s;
}

.teacher-card-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
}

.teacher-photo-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
}

.teacher-photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform .4s;
}

.teacher-card-item:hover .teacher-photo-wrapper img {
  transform: scale(1.05);
}

.teacher-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(24, 48, 172, 0.9) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity .3s;
}

.teacher-card-item:hover .teacher-overlay {
  opacity: 1;
}

.view-detail {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 10px 24px;
  border: 2px solid #fff;
  border-radius: 20px;
  transition: all .2s;
}

.teacher-card-item:hover .view-detail {
  background: #fff;
  color: #1830ac;
}

.teacher-card-info {
  padding: 20px;
}

.teacher-card-name {
  font-size: 22px;
  font-weight: 700;
  color: #222;
  margin: 0 0 8px;
}

.teacher-card-title {
  font-size: 14px;
  color: #1830ac;
  margin: 0 0 12px;
  font-weight: 600;
}

.teacher-card-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.subject-tag {
  padding: 4px 10px;
  background: rgba(24, 48, 172, 0.1);
  color: #1830ac;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.teacher-card-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.teacher-card-stats {
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

.teacher-card-stats .stat {
  font-size: 13px;
  color: #999;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ══════════════════════════════════════
   师资详情页
   ══════════════════════════════════════ */

.teacher-detail-header {
  background: linear-gradient(135deg, #1830ac 0%, #4267e0 100%);
  padding: 60px 20px;
}

.teacher-detail-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 60px;
  align-items: center;
}

.teacher-detail-photo {
  width: 320px;
  flex-shrink: 0;
}

.teacher-detail-photo img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.teacher-detail-info {
  flex: 1;
  color: #fff;
}

.teacher-detail-name {
  font-size: 42px;
  font-weight: 700;
  margin: 0 0 12px;
}

.teacher-detail-title {
  font-size: 20px;
  margin: 0 0 24px;
  opacity: 0.9;
}

.teacher-detail-tags {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.subject-tag-large {
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  font-size: 16px;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.teacher-detail-stats {
  display: flex;
  gap: 40px;
}

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.stat-num {
  font-size: 36px;
  font-weight: 700;
  font-family: 'DIN Alternate', sans-serif;
}

.stat-label {
  font-size: 14px;
  opacity: 0.8;
}

.teacher-detail-body {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.teacher-tabs {
  display: flex;
  gap: 40px;
  border-bottom: 2px solid #eee;
  margin-bottom: 40px;
}

.intro-content {
  font-size: 16px;
  line-height: 1.8;
  color: #666;
}

.intro-content p {
  margin: 16px 0;
}

.education-list,
.qualification-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
}

.education-list li,
.qualification-list li {
  padding: 12px 0;
  padding-left: 24px;
  position: relative;
  color: #666;
  font-size: 15px;
  line-height: 1.6;
}

.education-list li::before,
.qualification-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #1830ac;
  font-weight: 700;
}

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.achievement-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  transition: transform .3s;
}

.achievement-card:hover {
  transform: translateY(-4px);
}

.achievement-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.achievement-card h4 {
  font-size: 18px;
  margin: 0 0 8px;
  color: #222;
}

.achievement-card p {
  font-size: 14px;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

.publication-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.publication-list li {
  padding: 16px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.pub-title {
  font-size: 16px;
  color: #222;
  font-weight: 600;
}

.pub-info {
  font-size: 14px;
  color: #999;
}

.course-list-simple {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.course-item-simple {
  display: flex;
  gap: 20px;
  background: #f8f9fa;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .3s, box-shadow .3s;
}

.course-item-simple:hover {
  transform: translateX(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.course-item-simple img {
  width: 200px;
  height: 140px;
  object-fit: cover;
  flex-shrink: 0;
}

.course-item-info {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.course-item-info h4 {
  font-size: 20px;
  margin: 0 0 10px;
  color: #222;
}

.course-item-info p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0 0 auto;
}

.course-item-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e0e0e0;
}

.course-item-meta .price {
  font-size: 24px;
  font-weight: 700;
  color: #e63a1e;
  font-family: 'DIN Alternate', sans-serif;
}

.course-item-meta .students {
  font-size: 13px;
  color: #999;
}

.review-summary {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  margin-bottom: 40px;
}

.rating-big {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.rating-num {
  font-size: 64px;
  font-weight: 700;
  color: #1830ac;
  font-family: 'DIN Alternate', sans-serif;
}

.rating-stars {
  font-size: 24px;
  letter-spacing: 4px;
}

.rating-count {
  font-size: 14px;
  color: #999;
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.review-item {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 24px;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.reviewer-name {
  font-size: 16px;
  font-weight: 600;
  color: #222;
}

.review-rating {
  color: #ffa502;
  font-size: 14px;
  font-weight: 600;
}

.review-date {
  font-size: 13px;
  color: #999;
  margin-left: auto;
}

.review-content {
  font-size: 15px;
  line-height: 1.8;
  color: #666;
  margin: 0;
}
