/* ===========================================
   pages.css — 各页面特定样式
   =========================================== */

/* =========================================
   首页 - front-page
   ========================================= */

/* Hero 区 - 使用整张 banner 图（已包含完整设计） */
.hero {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--c-text-white);
  margin-top: calc(-1 * var(--header-h));
  padding-top: var(--header-h);
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.35) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-carousel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.hero-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.hero-slide {
  flex: 0 0 100%;
  height: 100%;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  color: var(--c-text-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--tr-fast), opacity var(--tr-fast);
}

.hero-nav:hover {
  background: rgba(255, 255, 255, 0.35);
}

.hero-prev {
  left: var(--container-pad);
}

.hero-next {
  right: var(--container-pad);
}

.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: background var(--tr-fast), transform var(--tr-fast);
}

.hero-dots button.active {
  background: var(--c-text-white);
  transform: scale(1.2);
}

.hero-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  width: 100%;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.hero-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-actions .btn {
  background: var(--c-text-white);
  color: var(--c-primary);
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  border-radius: 24px;
  padding: 14px 40px;
  font-size: var(--fs-base);
}

.hero-actions .btn:hover {
  background: var(--c-primary);
  color: var(--c-text-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.hero-actions .btn-outline-white {
  background: transparent;
  color: var(--c-text-white);
  border: 1.5px solid var(--c-text-white);
  box-shadow: none;
}

.hero-actions .btn-outline-white:hover {
  background: var(--c-text-white);
  color: var(--c-primary);
}

/* 课程班型版块（首页） */
.section-courses {
  background: var(--c-bg-light);
  padding: var(--sp-12) 0 var(--sp-20);
}

/* 标题：中间蓝条 + 两侧淡灰细线 */
.section-courses .section-title {
  position: relative;
}

/* 使用 .line 结构，隐藏全局 h2::after 默认条 */
.section-courses .section-title h2::after {
  display: none;
}



/* 中间蓝色线 */

.line{
    width:160px;
    height:7px;
    background:#2868ff;
    border-radius:10px;
    margin:25px auto;
    position:relative;
}



/*
  左右渐变延伸线
*/

.section-courses .section-title .line::before,
.section-courses .section-title .line::after{

    content:"";

    position:absolute;

    top:50%;

    width:260px;

    height:1px;

    transform:translateY(-50%);

}



/* 左侧 */


.section-courses .section-title .line::before{

    right:100%;

    background:linear-gradient(
        to left,
        rgba(40,104,255,.35),
        rgba(40,104,255,0)
    );

}



/* 右侧 */

.section-courses .section-title .line::after{
    left:100%;
    background:linear-gradient(
        to right,
        rgba(40,104,255,.35),
        rgba(40,104,255,0)
    );

}


.section-courses .section-title p {
  color: #2B66FF;
  font-size: 14px;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
  margin-bottom: var(--sp-10);
}

/* 名师团队版块（首页） */
.section-teachers {
  padding: var(--sp-20) 0;
  background: var(--c-bg-light);
}

.section-teachers .section-title {
  text-align: center;
  margin-bottom: var(--sp-12);
}

.section-teachers .section-title h2::after,
.section-teachers .section-title::before {
  display: none;
}

.section-teachers .section-title .line {
  width: 160px;
  height: 7px;
  background: #2868ff;
  border-radius: 10px;
  margin: 25px auto;
  position: relative;
}

.section-teachers .section-title .line::before,
.section-teachers .section-title .line::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 260px;
  height: 1px;
  transform: translateY(-50%);
}

.section-teachers .section-title .line::before {
  right: 100%;
  background: linear-gradient(
    to left,
    rgba(40, 104, 255, 0.35),
    rgba(40, 104, 255, 0)
  );
}

.section-teachers .section-title .line::after {
  left: 100%;
  background: linear-gradient(
    to right,
    rgba(40, 104, 255, 0.35),
    rgba(40, 104, 255, 0)
  );
}

.section-teachers .section-title p {
  color: #2B66FF;
  font-size: 14px;
}

.teachers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
  margin-bottom: var(--sp-10);
}

.section-service {
  padding: var(--sp-20) 0;
  background: var(--c-text-white);
}

.section-service .header {
  width: 100%;
  text-align: center;
  margin: 0 0 var(--sp-12);
}

.section-service .header h1 {
  font-size: 48px;
  font-weight: 700;
  color: #222;
}

.section-service .line {
  width: 160px;
  height: 7px;
  background: #2868ff;
  border-radius: 10px;
  margin: 25px auto;
  position: relative;
}

.section-service .line::before,
.section-service .line::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 260px;
  height: 1px;
  transform: translateY(-50%);
}

.section-service .line::before {
  right: 100%;
  background: linear-gradient(
    to left,
    rgba(40, 104, 255, 0.35),
    rgba(40, 104, 255, 0)
  );
}

.section-service .line::after {
  left: 100%;
  background: linear-gradient(
    to right,
    rgba(40, 104, 255, 0.35),
    rgba(40, 104, 255, 0)
  );
}

.section-service .header p {
  font-size: 14px;
  color: #4b7de8;
  margin-top: 10px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--sp-6);
  margin-bottom: var(--sp-10);
}

.service-grid > .service-card {
  grid-column: span 2;
}

.service-grid > .service-card.service-large {
  grid-column: span 3;
}

/* 为什么选择文都版块 */
.section-advantage {
  padding: 88px 0 92px;
  background: url('../img/banners/about-group.png') center/cover no-repeat;
  color: var(--c-text-white);
  position: relative;
  overflow: hidden;
}

.section-advantage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 77, 210, 0.92) 0%, rgba(17, 57, 190, 0.95) 100%);
  pointer-events: none;
}

.section-advantage .container {
  position: relative;
  z-index: 1;
}

.section-advantage .section-title h2 {
  color: var(--c-text-white);
}

.section-advantage .section-title h2::after {
  background: #fff;
  height: 5px;
  width: 120px;
}

.section-advantage .section-title p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 54px;
}

/* 考研资讯版块 */
.section-news {
  padding: var(--sp-20) 0;
  background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
}

.section-news .section-title h2 {
  color: var(--c-text);
}

.section-news .section-title h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--c-primary);
  margin: 12px auto 0;
}

.section-news .section-title p {
  color: var(--c-primary);
  font-size: var(--fs-base);
}

.news-list {
  max-width: 960px;
  margin: 0 auto var(--sp-10);
}

/* 考研资讯 - 网格布局（首页用） */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto var(--sp-10);
}

.news-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: 24px;
  background: var(--c-text-white);
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: box-shadow var(--tr-base), transform var(--tr-base);
  text-decoration: none;
}

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

.news-card-title {
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-excerpt {
  font-size: var(--fs-base);
  color: var(--c-text-light);
  line-height: 1.6;
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-link {
  font-size: var(--fs-base);
  color: var(--c-primary);
  font-weight: 500;
}

.news-card:hover .news-card-link {
  text-decoration: underline;
}

/* 校区环境版块 */
.section-campus {
  padding: var(--sp-20) 0;
  background: var(--c-bg-light);
}

.campus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  margin-bottom: var(--sp-10);
}

/* 联系我们版块（首页） */
.section-contact {
  padding: var(--sp-20) 0;
  background: var(--c-text-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-6);
  max-width: 960px;
  margin: 0 auto;
}

/* =========================================
   课程班型页
   ========================================= */
.courses-page {
  padding: var(--sp-12) 0 var(--sp-20);
  background: var(--c-bg-light);
}

/* =========================================
   名师团队页
   ========================================= */
.teachers-page {
  padding: var(--sp-12) 0 var(--sp-20);
  background: var(--c-bg-light);
}

.teachers-page .teachers-grid {
  grid-template-columns: repeat(4, 1fr);
}

/* =========================================
   教学服务页
   ========================================= */
.service-page {
  padding: var(--sp-12) 0 var(--sp-20);
  background: var(--c-text-white);
}

.service-page .service-grid {
  grid-template-columns: repeat(6, 1fr);
  max-width: none;
}

.service-page .service-grid > .service-card {
  grid-column: span 2;
}

.service-page .service-grid > .service-card.service-large {
  grid-column: span 3;
}

/* =========================================
   考研资讯列表页
   ========================================= */
.news-page {
  padding: var(--sp-12) 0 var(--sp-20);
  background: var(--c-text-white);
}

.news-page .news-list {
  max-width: 960px;
  margin: 0 auto;
}

/* =========================================
   资讯详情页
   ========================================= */
.news-detail-page {
  padding: var(--sp-12) 0 var(--sp-20);
  background: var(--c-text-white);
}

.news-detail-container {
  max-width: 800px;
  margin: 0 auto;
}

.news-detail-title {
  font-size: var(--fs-3xl);
  color: var(--c-text);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: var(--sp-4);
}

.news-detail-meta {
  font-size: var(--fs-sm);
  color: var(--c-text-tertiary);
  margin-bottom: var(--sp-8);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid var(--c-border-light);
}

.news-detail-summary {
  font-size: var(--fs-md);
  color: var(--c-text-secondary);
  line-height: 1.8;
  margin-bottom: var(--sp-8);
  padding: var(--sp-4) var(--sp-6);
  background: var(--c-primary-light);
  border-radius: var(--r-md);
  border-left: 3px solid var(--c-primary);
}

.news-detail-content {
  font-size: var(--fs-base);
  color: var(--c-text);
  line-height: 1.9;
}

.news-detail-content p {
  margin-bottom: var(--sp-5);
}

.news-detail-content h3 {
  font-size: var(--fs-lg);
  color: var(--c-text);
  font-weight: 700;
  margin: var(--sp-8) 0 var(--sp-4);
}

.news-detail-content img {
  border-radius: var(--r-md);
  margin: var(--sp-6) 0;
  width: 100%;
}

/* =========================================
   校区环境页
   ========================================= */
.campus-page {
  padding: var(--sp-12) 0 var(--sp-20);
  background: var(--c-bg-light);
}

.campus-page .campus-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* =========================================
   关于我们页
   ========================================= */
.about-page {
  padding: var(--sp-12) 0 var(--sp-20);
  background: var(--c-text-white);
}

.about-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: center;
  margin-bottom: var(--sp-16);
}

.about-block.reverse {
  direction: rtl;
}

.about-block.reverse > * {
  direction: ltr;
}

.about-block h2 {
  font-size: var(--fs-2xl);
  color: var(--c-text);
  font-weight: 700;
  margin-bottom: var(--sp-4);
  position: relative;
  padding-left: var(--sp-4);
}

.about-block h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: var(--c-primary);
  border-radius: var(--r-full);
}

.about-block p {
  font-size: var(--fs-base);
  color: var(--c-text-secondary);
  line-height: 1.9;
}

.about-image {
  width: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--c-primary-light);
  aspect-ratio: 4 / 3;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-stats {
  background: var(--c-bg-light);
  padding: var(--sp-12) 0;
  margin-bottom: var(--sp-16);
}

.about-biz {
  margin-top: var(--sp-8);
}

.about-biz .biz-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
  margin-top: var(--sp-8);
}

/* =========================================
   联系我们页
   ========================================= */
.contact-page {
  padding: var(--sp-12) 0 var(--sp-20);
  background: var(--c-bg-light);
}

.contact-page .contact-grid {
  max-width: 1080px;
  margin: 0 auto;
}

/* =========================================
   通用页头标题
   ========================================= */
.page-header {
  text-align: center;
  margin-bottom: var(--sp-12);
}

.page-header h1 {
  font-size: var(--fs-3xl);
  color: var(--c-text);
  font-weight: 700;
  margin-bottom: var(--sp-3);
}

.page-header p {
  color: var(--c-text-secondary);
  font-size: var(--fs-base);
}
