/* ===== 全局样式 ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #1565c0;
  --primary-dark: #0d47a1;
  --primary-light: #1976d2;
  --gold: #c8960c;
  --dark: #0d2547;
  --dark2: #0a1c38;
  --text: #333;
  --text-light: #666;
  --bg: #f4f7fb;
  --white: #fff;
  --border: #e0e8f5;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 32px rgba(21,101,192,0.18);
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 70px 0; }
.section-title {
  text-align: center;
  margin-bottom: 50px;
}
.section-title h2 {
  font-size: 30px;
  color: var(--dark);
  position: relative;
  display: inline-block;
  padding-bottom: 16px;
}
.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 50px; height: 3px;
  background: var(--primary);
  border-radius: 2px;
}
.section-title p { color: var(--text-light); margin-top: 12px; font-size: 15px; }

/* ===== TOP BAR ===== */
.topbar {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  padding: 7px 0;
  border-bottom: 2px solid var(--primary);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar a { color: rgba(255,255,255,0.7); transition: color .2s; }
.topbar a:hover { color: var(--gold); }

/* ===== HEADER ===== */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 16px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 999;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.logo-icon {
  width: 54px; height: 54px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 18px; font-weight: 900;
  box-shadow: 0 4px 12px rgba(21,101,192,0.3);
}
.logo-name { font-size: 20px; color: var(--dark); font-weight: 700; }
.logo-sub { font-size: 11px; color: var(--text-light); letter-spacing: 2px; }

/* NAV */
.main-nav ul { display: flex; gap: 2px; }
.main-nav ul li a {
  display: block;
  padding: 8px 16px;
  font-size: 15px;
  color: var(--text);
  border-radius: 6px;
  transition: all .2s;
  position: relative;
}
.main-nav ul li a:hover,
.main-nav ul li a.active {
  background: var(--primary);
  color: var(--white);
}
.header-phone {
  background: var(--primary);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ===== BANNER / SLIDER ===== */
.banner {
  position: relative;
  overflow: hidden;
  height: 480px;
}
.banner-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transition: opacity .8s;
}
.banner-slide.active { opacity: 1; }
.banner-content { position: relative; z-index: 2; color: var(--white); }
.banner-content .tag {
  display: inline-block;
  background: var(--primary);
  padding: 5px 18px;
  border-radius: 20px;
  font-size: 13px;
  margin-bottom: 20px;
  letter-spacing: 1px;
}
.banner-content h2 {
  font-size: 50px;
  font-weight: 900;
  letter-spacing: 4px;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.banner-content p {
  font-size: 18px;
  opacity: .9;
  margin-bottom: 32px;
}
.banner-btn {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 14px 40px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(21,101,192,0.4);
  transition: all .2s;
}
.banner-btn:hover { background: var(--primary-dark); transform: translateY(-2px); }
.banner-dots {
  position: absolute;
  bottom: 20px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 10;
}
.banner-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all .3s;
}
.banner-dots span.active {
  background: var(--primary);
  width: 28px;
  border-radius: 5px;
}

/* ===== STATS BAR ===== */
.stats-bar { background: var(--white); box-shadow: var(--shadow); }
.stats-bar .container { display: grid; grid-template-columns: repeat(4,1fr); }
.stat-item {
  padding: 28px 20px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-num { font-size: 36px; font-weight: 900; color: var(--primary); line-height: 1; }
.stat-num sup { font-size: 18px; }
.stat-label { font-size: 13px; color: var(--text-light); margin-top: 6px; }

/* ===== NOTICE STRIP ===== */
.notice-strip {
  background: #f0f5ff;
  border-top: 1px solid #c5d8f7;
  border-bottom: 1px solid #c5d8f7;
  padding: 10px 0;
}
.notice-strip .container { display: flex; align-items: center; gap: 16px; }
.notice-label {
  background: var(--primary);
  color: var(--white);
  padding: 3px 12px;
  border-radius: 4px;
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
}
.notice-scroll { overflow: hidden; flex: 1; }
.notice-scroll ul { display: flex; gap: 40px; animation: scroll-x 20s linear infinite; }
.notice-scroll ul li a { font-size: 13px; color: var(--text-light); white-space: nowrap; }
.notice-scroll ul li a:hover { color: var(--primary); }
@keyframes scroll-x {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== INDEX MODULES ===== */
/* 两栏网格 */
.two-col { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }
.three-col { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.four-col { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }

/* 新闻卡片 */
.news-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all .3s;
}
.news-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.news-card-thumb {
  height: 180px;
  background: linear-gradient(135deg, var(--dark), var(--dark2));
  display: flex; align-items: center; justify-content: center;
  font-size: 50px;
  color: rgba(255,255,255,.3);
}
.news-card-body { padding: 20px; }
.news-meta { font-size: 12px; color: var(--text-light); margin-bottom: 8px; display: flex; gap: 12px; }
.news-cat {
  background: #e8f0fe;
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
}
.news-card h3 { font-size: 16px; color: var(--dark); margin-bottom: 10px; line-height: 1.5; }
.news-card p { font-size: 13px; color: var(--text-light); line-height: 1.8; }
.news-card-more {
  display: block;
  margin-top: 14px;
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
}

/* 侧边通知 */
.side-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.side-box-header {
  background: var(--primary);
  color: var(--white);
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.side-box-body { padding: 16px; }
.notice-list li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.notice-list li:last-child { border-bottom: none; }
.notice-list li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
  margin-top: 8px;
  flex-shrink: 0;
}
.notice-list li a { font-size: 14px; color: var(--text); line-height: 1.6; }
.notice-list li a:hover { color: var(--primary); }
.notice-list li .date { font-size: 11px; color: var(--text-light); white-space: nowrap; }

/* 院校卡片 */
.school-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all .3s;
  border-top: 3px solid transparent;
}
.school-card:hover {
  border-top-color: var(--primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}
.school-logo {
  width: 62px; height: 62px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 18px; font-weight: 900;
}
.school-card h4 { font-size: 15px; color: var(--dark); margin-bottom: 6px; }
.school-card .type-badge {
  display: inline-block;
  background: #e8f0fe;
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  margin-bottom: 6px;
}
.school-card p { font-size: 12px; color: var(--text-light); }

/* 特色区块 */
.feature-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: var(--shadow);
  transition: all .3s;
  border-left: 4px solid transparent;
}
.feature-box:hover { border-left-color: var(--primary); box-shadow: var(--shadow-hover); }
.feature-icon { font-size: 40px; margin-bottom: 14px; }
.feature-box h3 { font-size: 18px; color: var(--dark); margin-bottom: 10px; }
.feature-box p { font-size: 14px; color: var(--text-light); line-height: 1.8; }

/* 哲学区块 */
.philosophy-section {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 100%);
  color: var(--white);
  padding: 70px 0;
}
.philosophy-section .section-title h2 { color: var(--white); }
.philosophy-section .section-title h2::after { background: var(--gold); }
.phil-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.phil-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
}
.phil-icon { font-size: 40px; margin-bottom: 14px; }
.phil-label { font-size: 12px; color: rgba(255,255,255,.6); letter-spacing: 3px; margin-bottom: 10px; }
.phil-value { font-size: 17px; color: var(--gold); font-weight: 700; line-height: 1.9; }

/* CTA 区块 */
.cta-section {
  background: var(--primary);
  padding: 50px 0;
  color: var(--white);
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cta-text h2 { font-size: 26px; margin-bottom: 8px; }
.cta-text p { opacity: .85; font-size: 15px; }
.cta-btn {
  background: var(--white);
  color: var(--primary);
  padding: 14px 40px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all .2s;
}
.cta-btn:hover { background: var(--gold); color: var(--white); }

/* ===== FOOTER ===== */
.site-footer { background: var(--dark); color: rgba(255,255,255,.7); }
.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 60px 0 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand h3 { color: var(--white); font-size: 18px; margin-bottom: 14px; }
.footer-brand p { font-size: 13px; line-height: 2; }
.footer-col h4 { color: var(--white); margin-bottom: 18px; font-size: 15px; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 30px; height: 2px; background: var(--primary); }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,.6); transition: color .2s; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-contact li { display: flex; gap: 10px; font-size: 13px; margin-bottom: 12px; align-items: flex-start; }
.footer-contact .ic { flex-shrink: 0; font-size: 15px; margin-top: 1px; }
.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,.4);
}

/* ===== 内页通用 ===== */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 60%, #0a2a6e 100%);
  color: var(--white);
  padding: 50px 0;
  text-align: center;
  border-bottom: 3px solid var(--primary);
}
.page-hero h1 { font-size: 34px; margin-bottom: 10px; }
.page-hero p { opacity: .8; font-size: 15px; }
.breadcrumb { display: flex; gap: 8px; justify-content: center; margin-top: 14px; font-size: 13px; color: rgba(255,255,255,.6); }
.breadcrumb a { color: rgba(255,255,255,.6); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--gold); }

/* 新闻列表页 */
.news-list-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  transition: all .3s;
}
.news-list-item:hover { box-shadow: var(--shadow-hover); transform: translateX(4px); }
.news-list-date {
  min-width: 60px;
  text-align: center;
  background: var(--primary);
  color: var(--white);
  border-radius: 8px;
  padding: 8px 6px;
  flex-shrink: 0;
  align-self: flex-start;
}
.news-list-date .day { font-size: 24px; font-weight: 900; line-height: 1; }
.news-list-date .mon { font-size: 11px; opacity: .8; }
.news-list-content h3 { font-size: 18px; color: var(--dark); margin-bottom: 10px; }
.news-list-content h3 a:hover { color: var(--primary); }
.news-list-content p { font-size: 14px; color: var(--text-light); line-height: 1.8; }

/* 详情页 */
.article-wrap { background: var(--white); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.article-title { font-size: 26px; color: var(--dark); margin-bottom: 16px; }
.article-meta { color: var(--text-light); font-size: 13px; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.article-body { font-size: 15px; line-height: 2; color: var(--text); }

/* 联系页 */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.contact-info-box { background: var(--white); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.contact-item { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-item-icon {
  width: 48px; height: 48px;
  background: #e8f0fe;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.contact-item-text h4 { font-size: 15px; color: var(--dark); margin-bottom: 4px; }
.contact-item-text p { font-size: 14px; color: var(--text-light); }
.contact-form-box { background: var(--white); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; color: var(--text); margin-bottom: 6px; font-weight: 600; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  transition: border .2s;
  font-family: inherit;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.form-group textarea { height: 120px; resize: vertical; }
.btn-submit {
  width: 100%;
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.btn-submit:hover { background: var(--primary-dark); }

/* 分页 */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 30px; }
.pagination a, .pagination span {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 8px;
  font-size: 14px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  transition: all .2s;
}
.pagination a:hover, .pagination .current {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ===== 消息提示 ===== */
.alert { padding: 14px 20px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; }
.alert-success { background: #f0fff4; border: 1px solid #b7ebc8; color: #276749; }
.alert-error { background: #fff5f5; border: 1px solid #feb2b2; color: #c53030; }

/* ===== 响应式 ===== */
/* 汉堡按钮默认隐藏 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 200;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-toggle-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle-active span:nth-child(2) { opacity: 0; }
.nav-toggle-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1024px) {
  .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .topbar { display: none; }
  .header-inner { flex-wrap: nowrap; height: auto; padding: 10px 0; position: relative; }
  .logo-sub { display: none; }
  .logo img { height: 48px !important; }
  .header-phone { display: none; }
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 100;
    border-top: 2px solid var(--primary);
  }
  .main-nav.nav-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 0; }
  .main-nav ul li a {
    display: block;
    padding: 14px 24px;
    font-size: 15px;
    border-radius: 0;
    border-bottom: 1px solid #f0f0f0;
  }
  .main-nav ul li:last-child a { border-bottom: none; }

  /* 通用图片保护 */
  img { max-width: 100%; height: auto; }

  .banner { height: 300px; }
  .banner-content h2 { font-size: 28px; }
  .stats-bar .container { grid-template-columns: repeat(2,1fr); }
  .two-col, .three-col, .four-col, .contact-grid,
  .footer-main, .phil-cards { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; }

  /* 学校简介页 */
  /* 图文介绍：两列变单列，图片固定高度 */
  .about-intro-grid {
    grid-template-columns: 1fr !important;
  }
  .about-intro-grid > div:first-child {
    height: 220px !important;
  }
  /* 校园设施：三列变一列 */
  .facilities-grid {
    grid-template-columns: 1fr !important;
  }

  /* 合作院校页 */
  /* 网络教育院校卡片：两列变单列 */
  .coop-net-grid {
    grid-template-columns: 1fr !important;
  }
  /* 院校卡片内部flex布局在小屏防止logo挤压 */
  .coop-net-grid > div {
    padding: 20px !important;
  }
  /* 学历项目说明：两列变单列，图标色块宽度收窄 */
  .coop-edu-grid {
    grid-template-columns: 1fr !important;
  }
  .coop-edu-grid > div > div:first-child {
    width: 70px !important;
    font-size: 28px !important;
  }
}
