* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: text !important;
  -webkit-user-select: text !important;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f7f8fa;
  color: #333;
  line-height: 1.6;
}

/* 导航 */
nav {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 99;
}
.nav-box {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}
.logo {
  font-size: 20px;
  font-weight: bold;
  color: #4263eb;
}
.nav-menu a {
  margin-left: 22px;
  color: #555;
  text-decoration: none;
  font-size: 15px;
}
.nav-menu a:hover {
  color: #4263eb;
}

/* 轮播图 */
.swiper {
  max-width: 1000px;
  height: 380px;
  margin: 24px auto;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.swiper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.swiper img.active {
  display: block;
  animation: fade 0.8s;
}
@keyframes fade {
  from {opacity: 0.8;}
  to {opacity: 1;}
}

/* 左右箭头 */
.swiper-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  z-index: 2;
  backdrop-filter: blur(4px);
  transition: 0.2s;
}
.swiper-btn:hover {
  background: rgba(255,255,255,0.6);
  color: #333;
}
.prev { left: 20px; }
.next { right: 20px; }

/* 小圆点指示器 */
.dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: 0.2s;
}
.dot.active {
  background: #fff;
  width: 24px;
  border-radius: 5px;
}

/* 内容容器 */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 推荐分类 */
.recommend {
  display: flex;
  gap: 16px;
  margin: 24px 0;
  flex-wrap: wrap;
}
.recommend-item {
  flex: 1;
  min-width: 200px;
  background: #fff;
  border-radius: 12px;
  padding: 22px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.recommend-item h4 {
  margin-bottom: 8px;
  color: #4263eb;
  font-size: 16px;
}
.recommend-item p {
  font-size: 13px;
  color: #777;
}

/* 文章模块 */
.section-title {
  font-size: 18px;
  margin: 30px 0 16px;
  color: #333;
  padding-left: 10px;
  border-left: 4px solid #4263eb;
}
.article-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.article-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: transform 0.25s;
}
.article-card:hover {
  transform: translateY(-6px);
}
.article-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.article-info {
  padding: 18px;
}
.article-title {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-bottom: 8px;
}
.article-desc {
  font-size: 13px;
  color: #888;
  margin-bottom: 10px;
}
.article-meta {
  font-size: 12px;
  color: #bbb;
}

/* 额外内容：博主介绍 */
.author {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  margin: 30px 0;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.author-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
}
.author-info h3 {
  color: #333;
  margin-bottom: 6px;
}
.author-info p {
  font-size: 14px;
  color: #777;
}

/* 底部灰色版权 */
footer {
  background: #eeeeee;
  color: #888;
  text-align: center;
  padding: 30px 20px;
  margin-top: 50px;
  font-size: 14px;
}
footer a {
  color: #888;
  text-decoration: none;
}
footer a:hover {
  color: #4263eb;
}
/* 由页脚内联样式迁移 */
footer p + p {
  margin-top: 8px;
}
footer address {
  margin-top: 8px;
}

/* 移动端 */
@media (max-width: 768px) {
  .article-list { grid-template-columns: 1fr; }
  .swiper { height: 220px; }
  .author { flex-direction: column; text-align: center; }
}

/* ========== 关于页面 ========== */
/* 导航当前页高亮 */
.nav-menu a.active {
  color: #4263eb;
  font-weight: bold;
}

/* 顶部渐变横幅 */
.about-hero, .page-hero {
  margin: 24px 0 0;
  padding: 52px 40px;
  border-radius: 16px;
  background: linear-gradient(135deg, #4263eb 0%, #748ffc 100%);
  color: #fff;
  box-shadow: 0 6px 24px rgba(66,99,235,0.25);
}
.about-hero h1, .page-hero h1 {
  font-size: 30px;
  margin-bottom: 10px;
}
.about-hero p, .page-hero p {
  font-size: 15px;
  opacity: 0.92;
}

/* 简介正文卡片 */
.about-card, .page-card {
  background: #fff;
  border-radius: 12px;
  padding: 30px 32px;
  margin: 24px 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.about-card p, .page-card p {
  font-size: 15px;
  color: #555;
  margin: 0 0 14px;
}
.about-card p:last-child, .page-card p:last-child {
  margin-bottom: 0;
}

/* 办学特色卡片组 */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 16px 0 8px;
}
.feature-item {
  background: #fff;
  border-radius: 12px;
  padding: 26px 18px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: transform 0.25s, box-shadow 0.25s;
}
.feature-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 22px rgba(66,99,235,0.14);
}
.feature-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #4263eb, #748ffc);
  color: #fff;
  font-size: 22px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-item h4 {
  font-size: 16px;
  color: #333;
  margin-bottom: 8px;
}
.feature-item p {
  font-size: 13px;
  color: #777;
  line-height: 1.7;
}

/* 报名咨询区 */
.about-cta, .page-cta {
  margin: 30px 0;
  padding: 34px 24px;
  text-align: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #edf2ff 0%, #ffffff 100%);
  border: 1px solid #dbe4ff;
}
.about-cta h3, .page-cta h3 {
  font-size: 20px;
  color: #333;
  margin-bottom: 8px;
}
.about-cta p, .page-cta p {
  font-size: 14px;
  color: #777;
  margin-bottom: 20px;
}
.cta-phone {
  display: inline-block;
  background: #4263eb;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  padding: 13px 40px;
  border-radius: 999px;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}
.cta-phone:hover {
  background: #3b5bdb;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(66,99,235,0.35);
}

/* 内页移动端 */
@media (max-width: 768px) {
  .about-hero, .page-hero { padding: 40px 24px; }
  .about-hero h1, .page-hero h1 { font-size: 24px; }
  .about-card, .page-card { padding: 24px 20px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .course-grid { grid-template-columns: 1fr; }
  .course-card { flex-direction: column; }
}

/* ========== 联系页面 ========== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0;
}
.contact-card {
  background: #fff;
  border-radius: 12px;
  padding: 34px 24px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: transform 0.25s, box-shadow 0.25s;
}
.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 22px rgba(66,99,235,0.14);
}
.contact-card .feature-icon {
  margin-bottom: 16px;
}
.contact-card h4 {
  font-size: 17px;
  color: #333;
  margin-bottom: 10px;
}
.contact-card .phone-text {
  font-size: 22px;
  font-weight: bold;
  color: #4263eb;
  margin-bottom: 18px;
}
.contact-card .addr-text {
  font-size: 16px;
  color: #555;
  margin-bottom: 18px;
}
.contact-card .cta-phone {
  font-size: 15px;
  padding: 11px 32px;
}

/* ========== 课程页面 ========== */
.course-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 24px 0;
}
.course-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px 26px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: transform 0.25s, box-shadow 0.25s;
}
.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 22px rgba(66,99,235,0.14);
}
.course-badge {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, #4263eb, #748ffc);
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}
.course-body h4 {
  font-size: 17px;
  color: #333;
  margin-bottom: 8px;
}
.course-body p {
  font-size: 14px;
  color: #777;
  line-height: 1.8;
}
.course-tip {
  background: linear-gradient(135deg, #edf2ff 0%, #ffffff 100%);
  border: 1px solid #dbe4ff;
  border-radius: 12px;
  padding: 22px 26px;
  font-size: 15px;
  font-weight: bold;
  color: #4263eb;
  text-align: center;
  margin: 8px 0 0;
}
