/* ========================================================
   涛铂CG学院 - 核心样式库 (清爽、规整、专业教育风格)
   基于 Bootstrap 5 + 深度定制
   ======================================================== */

:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --secondary-color: #0ea5e9;
  --accent-orange: #ff5722;
  --accent-orange-hover: #e64a19;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --card-radius: 12px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 10px 25px rgba(37, 99, 235, 0.12);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

/* ================= 顶栏与导航栏 ================= */
.top-notice-bar {
  background-color: #0f172a;
  color: #94a3b8;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.top-notice-bar a {
  color: #cbd5e1;
  text-decoration: none;
}
.top-notice-bar a:hover {
  color: #ffffff;
}

.site-navbar {
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 1020;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-icon-box {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 22px;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.brand-title {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.5px;
  line-height: 1.2;
}
.brand-sub {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.2px;
}

.nav-link-custom {
  font-size: 16px;
  font-weight: 500;
  color: #334155 !important;
  padding: 8px 18px !important;
  border-radius: 8px;
  transition: all 0.2s ease;
  position: relative;
}
.nav-link-custom:hover {
  color: var(--primary-color) !important;
  background-color: var(--primary-light);
}
.nav-link-custom.active {
  color: var(--primary-color) !important;
  background-color: var(--primary-light);
  font-weight: 600;
}
.nav-link-custom.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 20px;
  right: 20px;
  height: 2px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

/* ================= 首页轮播与视觉横幅 ================= */
.hero-banner-section {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  padding: 50px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero-banner-section::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(37, 99, 235, 0.2);
  border: 1px solid rgba(147, 197, 253, 0.3);
  color: #93c5fd;
  border-radius: 20px;
  font-size: 13px;
  margin-bottom: 16px;
}
.hero-heading {
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.hero-lead {
  font-size: 1.05rem;
  color: #cbd5e1;
  max-width: 640px;
  margin-bottom: 26px;
}

/* 快捷分类导航栏 */
.quick-nav-bar {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  margin-top: -30px;
  position: relative;
  z-index: 10;
  padding: 16px 24px;
}
.quick-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.2s;
}
.quick-nav-item:hover {
  background-color: var(--bg-main);
  transform: translateY(-2px);
}
.quick-nav-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

/* ================= 版块标题栏 (截图风格) ================= */
.section-header-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 8px;
}

.category-tag-title {
  display: inline-flex;
  align-items: center;
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  position: relative;
  padding-left: 28px;
}

.category-tag-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  opacity: 0.85;
}

/* 4个分类的小圆点高亮色彩，与截图对应 */
.tag-character::before { background: #f3d9fa; }
.tag-comic::before { background: #ffe8cc; }
.tag-scene::before { background: #d3f9d8; }
.tag-ui::before { background: #d0ebff; }

.btn-more-link {
  color: #868e96;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}
.btn-more-link:hover {
  color: var(--primary-color);
}

/* ================= 课程卡片 (规整清爽、去人在学、改价格) ================= */
.course-card {
  background: #ffffff;
  border-radius: var(--card-radius);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}
.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: #cbd5e1;
}

.course-cover-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 比例 */
  background-color: #1e293b;
  overflow: hidden;
}

.course-cover-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.course-card:hover .course-cover-img {
  transform: scale(1.05);
}

/* 封面上的讲师与课时信息条 (还原截图半透明黑底样式) */
.course-meta-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
  padding: 16px 10px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
  font-size: 12px;
}

.course-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.course-title {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 38px;
  transition: color 0.2s;
}
.course-card:hover .course-title {
  color: var(--primary-color);
}

/* 价格区域 (替换原先截图红框标注的“多少人在学”) */
.course-price-wrap {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.course-price {
  color: var(--accent-orange);
  font-size: 16px;
  font-weight: 700;
}
.course-price small {
  font-size: 12px;
  font-weight: 500;
  margin-right: 1px;
}
.course-cat-tag {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  background-color: #f1f5f9;
  color: #64748b;
}

/* ================= 课程详情页专属样式 ================= */
.player-container {
  background-color: #0b1120;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  margin-bottom: 24px;
}

.player-screen {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background-color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  color: #ffffff;
  text-align: center;
  padding: 20px;
}

.player-controls {
  background-color: #0f172a;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #cbd5e1;
}

.catalog-sidebar {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.catalog-header {
  font-size: 16px;
  font-weight: 700;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 10px;
  margin-bottom: 14px;
  display: inline-block;
  color: var(--primary-color);
}

.lesson-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 6px;
  background-color: #f8fafc;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 13.5px;
  text-decoration: none;
  color: var(--text-main);
}
.lesson-list-item:hover {
  background-color: var(--primary-light);
  color: var(--primary-color);
}
.lesson-list-item.active {
  background-color: var(--primary-light);
  color: var(--primary-color);
  font-weight: 600;
}

.course-info-panel {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.detail-price-box {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 16px 0;
}

.detail-price-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-orange);
  line-height: 1;
}

.btn-buy-primary {
  background-color: #00c49f;
  background: linear-gradient(135deg, #02b893, #00c49f);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  padding: 10px 32px;
  border-radius: 8px;
  border: none;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(2, 184, 147, 0.3);
}
.btn-buy-primary:hover {
  background: linear-gradient(135deg, #029f7f, #00ab8a);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(2, 184, 147, 0.4);
}

/* 课程介绍区：规整、清爽、无任何VIP多余广告 */
.detail-content-wrap {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.detail-tab-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
  padding-bottom: 8px;
  margin-bottom: 20px;
}

.detail-article h4 {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin-top: 24px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.detail-article h4:first-child {
  margin-top: 0;
}
.detail-article p {
  color: #334155;
  margin-bottom: 14px;
  font-size: 14.5px;
  line-height: 1.7;
}
.detail-article ul, .detail-article ol {
  color: #334155;
  padding-left: 20px;
  margin-bottom: 16px;
  font-size: 14.5px;
}
.detail-article li {
  margin-bottom: 6px;
}

/* ================= 资讯列表与详情 (去插图、去首尾标语) ================= */
.article-item-card {
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  padding: 20px 24px;
  margin-bottom: 14px;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  display: block;
}
.article-item-card:hover {
  transform: translateX(4px);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

.article-list-title {
  font-size: 17px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 8px;
  transition: color 0.2s;
}
.article-item-card:hover .article-list-title {
  color: var(--primary-color);
}

.article-list-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 10px;
}

.article-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12.5px;
  color: var(--text-light);
}

/* 资讯详情页文章排版 */
.article-detail-container {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  max-width: 860px;
  margin: 0 auto;
}

.article-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
  margin-bottom: 30px;
}

.article-main-title {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
  margin-bottom: 12px;
}

.article-clean-meta {
  color: var(--text-muted);
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.article-clean-content {
  color: #334155;
  font-size: 15px;
  line-height: 1.8;
}
.article-clean-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin-top: 32px;
  margin-bottom: 14px;
  padding-left: 10px;
  border-left: 4px solid var(--primary-color);
}
.article-clean-content h3:first-child {
  margin-top: 0;
}
.article-clean-content p {
  margin-bottom: 16px;
}
.article-clean-content strong {
  color: #0f172a;
}
.article-clean-content ul, .article-clean-content ol {
  padding-left: 24px;
  margin-bottom: 18px;
}
.article-clean-content li {
  margin-bottom: 8px;
}

/* 上一篇/下一篇导航栏 (规整利落，无免责声明与多余广告) */
.article-nav-box {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.article-nav-item {
  padding: 14px 18px;
  background-color: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.2s;
  display: block;
}
.article-nav-item:hover {
  background-color: var(--primary-light);
  border-color: var(--primary-color);
  color: var(--primary-color);
}
.article-nav-label {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
}
.article-nav-name {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ================= 问卷表单与关于我们 ================= */
.form-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.form-section-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.contact-icon-box {
  width: 48px;
  height: 48px;
  background-color: var(--primary-light);
  color: var(--primary-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

/* ================= 页脚 ================= */
.site-footer {
  background-color: #0f172a;
  color: #94a3b8;
  font-size: 13.5px;
  padding: 50px 0 24px;
  margin-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-heading {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 16px;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 8px;
}
.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: #38bdf8;
}
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12.5px;
  text-align: center;
  color: #64748b;
}

/* 分页组件规整化 */
.pagination-custom .page-link {
  color: #475569;
  border-color: #e2e8f0;
  padding: 8px 14px;
}
.pagination-custom .page-item.active .page-link {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #ffffff;
}
.course-cover-placeholder{height:100%;display:flex;align-items:center;justify-content:center;color:#fff;background:#445a71}.player-screen #courseCover{width:100%;height:100%;object-fit:cover}.survey-question legend{line-height:1.5}#surveyResult{color:#285e49}#courseSource[hidden],#courseCover[hidden],#positive[hidden],#negative[hidden],#courseDetail[hidden]{display:none!important}
.player-screen #courseCover{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}body[data-page="course-detail"] .catalog-sidebar{height:auto}.course-price{font-size:14px}
@media (min-width:992px){.course-grid-cell{flex:0 0 auto;width:20%}}
