/* 全局样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #1a5fb4;
  --primary-dark: #144a8c;
  --primary-light: #4a8fe7;
  --accent-color: #f59e0b;
  --text-color: #333;
  --text-light: #666;
  --text-lighter: #999;
  --bg-color: #fff;
  --bg-gray: #f5f7fa;
  --border-color: #e5e7eb;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s ease;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background: var(--bg-color);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 顶部信息栏 */
.top-bar {
  background: var(--primary-dark);
  color: #fff;
  font-size: 13px;
  padding: 8px 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-links a {
  color: #fff;
  opacity: 0.9;
}

.top-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.top-links .divider {
  margin: 0 10px;
  opacity: 0.5;
}

/* 主导航 */
.header {
  background: #fff;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo img {
  width: 50px;
  height: 50px;
  border-radius: 4px;
}

.logo-text h1 {
  font-size: 20px;
  color: var(--primary-color);
  font-weight: 700;
}

.logo-text p {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 2px;
}

.main-nav ul {
  display: flex;
  gap: 5px;
}

.main-nav > ul > li {
  position: relative;
}

.main-nav > ul > li > a {
  display: block;
  padding: 10px 15px;
  font-size: 15px;
  color: var(--text-color);
  border-radius: 4px;
}

.main-nav > ul > li > a:hover,
.main-nav > ul > li > a.active {
  background: var(--primary-color);
  color: #fff;
}

/* 下拉菜单 */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 150px;
  box-shadow: var(--shadow-hover);
  border-radius: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  display: block;
  padding: 10px 15px;
  font-size: 14px;
  color: var(--text-color);
  border-bottom: 1px solid var(--border-color);
}

.dropdown li:last-child a {
  border-bottom: none;
}

.dropdown li a:hover {
  background: var(--bg-gray);
  color: var(--primary-color);
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-btn span {
  width: 25px;
  height: 2px;
  background: var(--text-color);
  transition: var(--transition);
}

/* Banner轮播 */
.banner {
  position: relative;
  height: 500px;
  overflow: hidden;
}

.banner-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.banner-item.active {
  opacity: 1;
}

.banner-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-content h2 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 15px;
  letter-spacing: 2px;
}

.banner-content p {
  font-size: 20px;
  opacity: 0.9;
}

.banner-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: #fff;
  transform: scale(1.2);
}

/* 快捷服务 */
.quick-links {
  padding: 60px 0;
  background: var(--bg-gray);
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 32px;
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 10px;
}

.section-header p {
  color: var(--text-light);
  font-size: 16px;
}

.divider {
  width: 60px;
  height: 3px;
  background: var(--accent-color);
  margin: 15px auto 0;
  border-radius: 2px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.quick-item {
  background: #fff;
  padding: 30px 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.quick-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.quick-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quick-icon svg {
  width: 30px;
  height: 30px;
  color: #fff;
}

.quick-item h3 {
  font-size: 18px;
  color: var(--text-color);
  margin-bottom: 8px;
}

.quick-item p {
  font-size: 13px;
  color: var(--text-lighter);
}

/* 新闻公告 */
.news-section {
  padding: 60px 0;
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.news-block {
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 25px;
}

.block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--primary-color);
  margin-bottom: 20px;
}

.block-header h2 {
  font-size: 20px;
  color: var(--text-color);
}

.more {
  font-size: 14px;
  color: var(--text-light);
}

.more:hover {
  color: var(--primary-color);
}

/* 新闻列表 */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-item {
  display: flex;
  gap: 15px;
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--border-color);
}

.news-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.news-date {
  min-width: 60px;
  text-align: center;
  padding: 8px;
  background: var(--bg-gray);
  border-radius: 4px;
}

.news-date .day {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
}

.news-date .month {
  display: block;
  font-size: 12px;
  color: var(--text-lighter);
  margin-top: 5px;
}

.news-content h3 {
  font-size: 16px;
  margin-bottom: 8px;
  line-height: 1.5;
}

.news-content h3 a:hover {
  color: var(--primary-color);
}

.news-content p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 通知公告列表 */
.notice-list {
  display: flex;
  flex-direction: column;
}

.notice-item {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  gap: 10px;
}

.notice-item:last-child {
  border-bottom: none;
}

.notice-tag {
  padding: 2px 8px;
  font-size: 12px;
  border-radius: 2px;
  background: var(--bg-gray);
  color: var(--text-light);
  white-space: nowrap;
}

.notice-tag.important {
  background: #fee;
  color: #c00;
}

.notice-item a {
  flex: 1;
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notice-item a:hover {
  color: var(--primary-color);
}

.notice-date {
  font-size: 13px;
  color: var(--text-lighter);
  white-space: nowrap;
}

/* 教工风采 */
.teachers-section {
  padding: 60px 0;
  background: var(--bg-gray);
}

.teachers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.teacher-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.teacher-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.teacher-image {
  height: 250px;
  overflow: hidden;
}

.teacher-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.teacher-card:hover .teacher-image img {
  transform: scale(1.05);
}

.teacher-info {
  padding: 20px;
  text-align: center;
}

.teacher-info h3 {
  font-size: 20px;
  color: var(--text-color);
  margin-bottom: 8px;
}

.teacher-title {
  font-size: 14px;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.teacher-desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 12px;
}

.teacher-tags {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.teacher-tags span {
  padding: 3px 10px;
  font-size: 12px;
  background: var(--bg-gray);
  color: var(--text-light);
  border-radius: 12px;
}

.view-more {
  text-align: center;
  margin-top: 40px;
}

.btn-primary {
  display: inline-block;
  padding: 12px 40px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 25px;
  font-size: 16px;
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 95, 180, 0.3);
}

/* 统计数据 */
.stats-section {
  padding: 60px 0;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item {
  padding: 20px;
}

.stat-number {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 16px;
  opacity: 0.9;
}

/* 底部 */
.footer {
  background: #1f2937;
  color: #d1d5db;
  padding: 50px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #374151;
}

.footer-col h3 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
}

.footer-col p {
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.8;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 14px;
  color: #d1d5db;
}

.footer-col ul li a:hover {
  color: var(--primary-light);
}

.qrcode {
  text-align: center;
}

.qrcode img {
  width: 120px;
  height: 120px;
  border-radius: 4px;
  margin: 0 auto 10px;
}

.qrcode p {
  font-size: 13px;
  text-align: center;
}

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  font-size: 13px;
  color: #9ca3af;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .quick-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .teachers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: var(--shadow-hover);
    padding: 20px;
  }
  
  .main-nav.active {
    display: block;
  }
  
  .main-nav ul {
    flex-direction: column;
  }
  
  .main-nav > ul > li > a {
    padding: 12px 15px;
    border-radius: 0;
    border-bottom: 1px solid var(--border-color);
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  .banner {
    height: 400px;
  }
  
  .banner-content h2 {
    font-size: 32px;
  }
  
  .news-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .banner-content h2 {
    font-size: 28px;
  }
  
  .banner-content p {
    font-size: 16px;
  }
  
  .stat-number {
    font-size: 36px;
  }
}

@media (max-width: 576px) {
  .top-bar .container {
    flex-direction: column;
    gap: 5px;
  }
  
  .banner {
    height: 300px;
  }
  
  .banner-content h2 {
    font-size: 24px;
  }
  
  .quick-grid {
    grid-template-columns: 1fr;
  }
  
  .teachers-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}