/* ===== 活动卡片 ===== */
.event-card {
    background-color: #fff;
    border: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 4px;
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.event-header h3 {
    color: #1a2a3a;
    font-size: 20px;
    font-weight: 600;
}

.read-more {
    color: #3498db;
    text-decoration: none;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.read-more:hover {
    color: #2980b9;
}

.event-body {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    flex-wrap: wrap;
}

.event-date {
    text-align: center;
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 4px;
    min-width: 100px;
}

.event-date .month {
    font-size: 16px;
    color: #666;
    margin-bottom: 5px;
}

.event-date .day {
    font-size: 32px;
    font-weight: bold;
    color: #3498db;
}

.event-info h4 {
    font-size: 18px;
    color: #1a2a3a;
    line-height: 1.4;
    margin-bottom: 15px;
}

.event-info p {
    font-size: 15px;
    color: #666;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-info i {
    color: #3498db;
    width: 16px;
    text-align: center;
}

/* ===== 通用内容区 ===== */
.banner {
    height: 200px;
    text-align: center;
    padding-top: 70px;
    border-bottom: 3px dashed #eee;
}

.banner h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.banner p {
    font-size: 16px;
    opacity: 0.9;
}

.section {
    padding: 50px;
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
}

.section h2 {
    margin-bottom: 20px;
    color: #1a2a3a;
    font-size: 24px;
    border-left: 4px solid #3498db;
    padding-left: 15px;
}

.section p {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 15px;
}

/* ===== 新闻列表 ===== */
.news-list {
    list-style: none;
    border-top: 1px solid #eee;
}

.news-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-item a {
    color: #333;
    text-decoration: none;
}

.news-item a:hover {
    color: #3498db;
}

.news-date {
    color: #999;
    font-size: 14px;
}

/* ===== 师资列表 ===== */
.teacher-list {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 20px;
    justify-content: center;
}

.teacher-item {
    width: 220px;
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.teacher-item img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    background: #f5f5f5;
    margin-bottom: 12px;
}

.teacher-item h3 {
    color: #1a2a3a;
    margin-bottom: 5px;
}

.teacher-item p {
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
}

/* ===== 招生卡片 ===== */
.admission-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

/* ===== 课程分区（迁移自学术新闻的卡片语言） ===== */
.course-section {
    padding-bottom: 36px;
}

.course-card {
    margin-top: 24px;
}

.course-list {
    border-top: none;
}

.course-item {
    gap: 18px;
    align-items: center;
    padding: 18px 0;
}

.course-item-main {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.course-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f5efe7 0%, #ece3d6 100%);
    color: #1a2a3a;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.course-item a {
    display: inline-block;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    color: #1a2a3a;
}

.course-item-desc {
    margin: 6px 0 0;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.course-item-action {
    flex-shrink: 0;
    padding: 10px 16px;
    border-radius: 999px;
    background: #f3efe8;
    color: #1a2a3a;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.course-item-action:hover {
    background: #1a2a3a;
    color: #fff;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .course-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .course-item-main {
        width: 100%;
    }

    .course-item-action {
        align-self: stretch;
        text-align: center;
    }
}



/* ====================== 新版功能按钮样式 ====================== */
/* 主模块标题 */
.section-main-title {
  text-align: center;
  color: #2c3e50;
  margin: 35px 0 25px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 1px;
}

/* 子模块容器 */
.sub-module {
  margin-bottom: 30px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0,0.04);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* 子模块标题 */
.sub-module-title {
  color: #34495e;
  font-size: 18px;
  margin-bottom: 18px;
  font-weight: 500;
}

/* 按钮组布局：居中、间距舒适不挤压 */
.btn-group {
  display: flex;
  gap: 30px;
  justify-content: center;
  align-items: center;
}

/* 按钮基础样式 + 动画准备 */
.blue-btn {
  padding: 14px 26px;
  text-align: center;
  background: #3069ed;
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 800;
  border: none;
  cursor: pointer;

  /* 固定标准宽度，不乱跑 */
  width: 170px;

  /* ========== 核心交互过渡（必须有） ========== */
  transition: all 0.3s ease;
}

/* ========== 悬浮交互动画 ========== */
.blue-btn:hover {
  background: #0E42D2;
  transform: translateY(-3px); /* 上浮 */
  box-shadow: 0 8px 18px rgba(22, 93, 255, 0.35); /* 发光阴影放大 */
  color: #fff;
}

/* ========== 点击按压交互动画 ========== */
.blue-btn:active {
  transform: translateY(0px) scale(0.97); /* 按下收缩回弹 */
  box-shadow: 0 3px 8px rgba(22, 93, 255, 0.2);
}

/* 手机适配 */
@media (max-width: 576px) {
  .btn-group {
    flex-direction: column;
    gap: 18px;
  }
}
/* ////////////////////////////////////////////////////////////////////// */

/* 安全红线样式（用于主页插入的强制安全提示） */
.safety-card {
    background: #fff7f7;
    border: 1px solid #f5c2c2;
    padding: 18px;
    border-radius: 10px;
    max-width: 900px;
    margin: 20px auto 30px;
}
.safety-card .sub-module-title {
    color: #b02a37;
    margin-bottom: 12px;
}
.safety-card .safety-body ul {
    color: #4b5563;
    margin-left: 20px;
    line-height: 1.8;
}
.safety-card .safety-video { margin-top: 14px; }

/* ===== 新正文分区（分层布局 + 动画） ===== */
.feature-section {
    width: min(1180px, calc(100% - 32px));
    margin: 28px auto;
    padding: 28px 22px;
    border-radius: 18px;
    border: 1px solid rgba(140, 160, 186, 0.26);
    position: relative;
    overflow: hidden;
}

.feature-section[data-theme="light"] {
    background:
        linear-gradient(155deg, rgba(251, 247, 241, 0.98) 0%, rgba(242, 236, 227, 0.94) 100%);
    box-shadow: 0 14px 34px rgba(74, 57, 44, 0.08);
}

.feature-section[data-theme="deep"] {
    background:
        radial-gradient(circle at 82% 12%, rgba(255, 255, 255, 0.56) 0, rgba(255, 255, 255, 0) 46%),
        linear-gradient(160deg, #f0e8dc 0%, #e3d6c7 48%, #d5c5b1 100%);
    border-color: rgba(74, 57, 44, 0.14);
    box-shadow: 0 18px 40px rgba(74, 57, 44, 0.12);
}

.section-head {
    margin-bottom: 22px;
}

.section-eyebrow {
    margin: 0 0 8px;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #8a6f5c;
    font-weight: 700;
}

.feature-section[data-theme="deep"] .section-eyebrow {
    color: #8a6f5c;
}

.feature-section .section-main-title {
    text-align: left;
    margin: 0;
    font-size: clamp(24px, 3.2vw, 34px);
    letter-spacing: 0.5px;
}

.feature-section[data-theme="deep"] .section-main-title,
.feature-section[data-theme="deep"] .section-desc,
.feature-section[data-theme="deep"] .sub-module-title,
.feature-section[data-theme="deep"] .feature-index {
    color: #1f1a17;
}

.section-desc {
    margin: 10px 0 0;
    max-width: 760px;
    color: #4b607a;
    line-height: 1.75;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
}

.feature-card {
    grid-column: span 6;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(152, 180, 210, 0.25);
    border-radius: 16px;
    padding: 18px 18px 16px;
    min-height: 128px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

/* 友情链接区的第一条（扩散模型教学演示）独占一整行。
   其余卡片仍是 span 6（一行两张）；≤992px 时本来就全是 span 12，不受影响。 */
#linksSection .feature-card:first-child {
    grid-column: span 12;
}

.feature-section[data-theme="deep"] .feature-card {
    background: rgba(255, 255, 255, 0.56);
    border-color: rgba(74, 57, 44, 0.12);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(20, 45, 78, 0.16);
    border-color: rgba(91, 146, 206, 0.45);
}

.feature-card-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.feature-card-text {
    display: grid;
    gap: 6px;
}

.feature-icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
    font-size: 18px;
    color: #165DFF;
    background: linear-gradient(135deg, rgba(22, 93, 255, 0.10), rgba(72, 202, 228, 0.18));
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-card-desc {
    margin: 12px 0 0;
    font-size: 13px;
    color: #4b607a;
    line-height: 1.6;
}

.feature-index {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #8a6f5c;
}

.feature-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.feature-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: #1f1a17;
    background: linear-gradient(135deg, #f4ede4 0%, #e8dccc 100%);
    border: 1px solid rgba(74, 57, 44, 0.16);
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.feature-btn:hover {
    transform: translateY(-1px);
    filter: saturate(1.08);
    box-shadow: 0 6px 14px rgba(74, 57, 44, 0.18);
}

.feature-section[data-theme="deep"] .feature-btn {
    color: #1f1a17;
    background: linear-gradient(135deg, #f5eee6 0%, #e7d9c8 100%);
    border-color: rgba(74, 57, 44, 0.16);
}

.feature-placeholder {
    font-size: 14px;
    color: #7a8ca4;
}

/* 入场动画（默认可见，滚动时附加过渡效果；避免初始透明导致内容无法显示） */
.reveal-section,
.reveal-item {
    opacity: 1;
    transform: translateY(0);
}

.reveal-section.is-visible,
.reveal-item.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-item.is-visible {
    transition-delay: var(--delay, 0ms);
}

@media (max-width: 992px) {
    .feature-card {
        grid-column: span 12;
    }
}

@media (max-width: 768px) {
    .feature-section {
        width: calc(100% - 26px);
        padding: 24px 16px;
        border-radius: 18px;
    }
}