/* 学校官网主样式表 */

:root {
  --primary-color: #0056b3;
  --secondary-color: #f8f9fa;
  --accent-color: #ffc107;
  --text-color: #333;
  --light-text: #fff;
  --border-color: #dee2e6;
  --footer-bg: #343a40;
  --success-color: #28a745;
  --info-color: #17a2b8;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #f5f5f5;
}

/* 通用容器 */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* 头部样式 */
header {
  background-color: var(--primary-color);
  background-image: linear-gradient(135deg, var(--primary-color), #003b7a);
  color: var(--light-text);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 45px;
  margin-right: 10px;
  transition: all 0.3s ease;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo h1 {
  font-size: 1.8rem;
  font-weight: bold;
}

/* 导航栏 */
nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  color: var(--light-text);
  text-decoration: none;
  font-size: 1.1rem;
  padding: 5px 10px;
  border-radius: 4px;
  transition: background-color 0.3s;
}

nav ul li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

nav ul li a.active {
  background-color: rgba(255, 255, 255, 0.2);
}

/* 移动端菜单按钮 */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.menu-toggle span {
  height: 3px;
  width: 100%;
  background-color: var(--light-text);
  border-radius: 3px;
}

/* 横幅区域 */
.banner {
  background-color: var(--secondary-color);
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/school-banner.jpg');
  background-size: cover;
  background-position: center;
  color: var(--light-text);
  text-align: center;
  padding: 100px 20px;
}

.banner h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.banner p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 30px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--primary-color);
  color: var(--light-text);
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn:hover {
  background-color: #004494;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 特色区域 */
.features {
  padding: 60px 0;
  background-color: var(--secondary-color);
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
  font-size: 2rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-img {
  height: 200px;
  overflow: hidden;
}

.feature-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.feature-card:hover .feature-img img {
  transform: scale(1.05);
}

.feature-content {
  padding: 20px;
}

.feature-content h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 1.4rem;
}

.feature-content p {
  color: var(--text-color);
  margin-bottom: 15px;
}

/* 新闻区域 */
.news {
  padding: 60px 0;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.news-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.news-img {
  height: 200px;
  overflow: hidden;
}

.news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-content {
  padding: 20px;
}

.news-date {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.news-content h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.news-content p {
  margin-bottom: 15px;
}

.read-more {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  transition: color 0.3s;
}

.read-more:hover {
  color: #004494;
}

/* 关于我们区域 */
.about {
  padding: 60px 0;
  background-color: var(--secondary-color);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-text h2 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 2rem;
}

.about-text p {
  margin-bottom: 15px;
  line-height: 1.8;
}

.about-img img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 页脚 */
footer {
  background-color: var(--footer-bg);
  background-image: linear-gradient(to bottom, #2c3136, var(--footer-bg));
  color: var(--light-text);
  padding: 50px 0 20px;
  box-shadow: inset 0 5px 15px rgba(0, 0, 0, 0.3);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-logo img {
  width: 80px;
  height: auto;
  margin-bottom: 10px;
}

.footer-column h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--accent-color);
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-column ul li a:hover {
  color: var(--light-text);
}

.contact-info p {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.contact-info i {
  margin-right: 10px;
  color: var(--accent-color);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--light-text);
  border-radius: 50%;
  transition: background-color 0.3s, transform 0.3s;
}

.social-links a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: #aaa;
}

.tech-support {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #888;
  text-align: center;
  display: block;
  padding: 5px 0;
}

.tech-support a {
  color: #6c9bcf;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 2px 5px;
  border-radius: 3px;
  font-weight: 500;
}

.tech-support a:hover {
  color: #ffffff;
  text-decoration: none;
  background-color: #6c9bcf;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 响应式设计 */
@media (max-width: 992px) {
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .about-img {
    order: -1;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  
  nav ul {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    flex-direction: column;
    padding: 20px 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }
  
  nav ul.show {
    display: flex;
  }
  
  nav ul li {
    margin: 0;
    text-align: center;
  }
  
  nav ul li a {
    display: block;
    padding: 12px;
  }
  
  .banner h2 {
    font-size: 2rem;
  }
  
  .banner p {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .logo h1 {
    font-size: 1.3rem;
  }
  
  .logo img {
    height: 35px;
  }
  
  .banner {
    padding: 50px 15px;
  }
  
  .container {
    padding: 0 10px;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .banner h2 {
    font-size: 1.8rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
}

/* 内页样式 */
.page-header {
  background-color: var(--primary-color);
  color: var(--light-text);
  padding: 40px 0;
  text-align: center;
}

.page-header h2 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  list-style: none;
}

.breadcrumb li {
  margin: 0 5px;
}

.breadcrumb li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.breadcrumb li a:hover {
  color: var(--light-text);
}

.breadcrumb li.active {
  color: var(--accent-color);
}

.page-content {
  padding: 60px 0;
}

/* 教师团队样式 */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.team-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.team-card:hover {
  transform: translateY(-5px);
}

.team-img {
  height: 250px;
  overflow: hidden;
}

.team-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-info {
  padding: 20px;
}

.team-info h3 {
  color: var(--primary-color);
  margin-bottom: 5px;
  font-size: 1.3rem;
}

.team-info p.position {
  color: #666;
  font-style: italic;
  margin-bottom: 10px;
}

.team-info p.description {
  font-size: 0.9rem;
  color: var(--text-color);
}

/* 联系我们页面样式 */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info-box {
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-info-item {
  display: flex;
  margin-bottom: 20px;
}

.contact-info-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-right: 15px;
}

.contact-info-item .content h4 {
  margin-bottom: 5px;
  color: var(--primary-color);
}

.contact-form {
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: var(--text-color);
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-control:focus {
  border-color: var(--primary-color);
  outline: none;
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.map-container {
  margin-top: 40px;
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* 校园生活页面样式 */
.campus-life-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.campus-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.campus-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.campus-img {
  height: 200px;
  overflow: hidden;
}

.campus-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.campus-card:hover .campus-img img {
  transform: scale(1.05);
}

.campus-content {
  padding: 20px;
}

.campus-content h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.campus-content p {
  margin-bottom: 15px;
  color: var(--text-color);
}

/* 招生信息页面样式 */
.admission-content {
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.admission-section {
  margin-bottom: 40px;
}

.admission-section h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.5rem;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
}

.admission-section p {
  margin-bottom: 15px;
  line-height: 1.8;
}

.admission-section ul {
  margin-left: 20px;
  margin-bottom: 15px;
}

.admission-section ul li {
  margin-bottom: 10px;
}

.admission-cta {
  background-color: var(--secondary-color);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  margin-top: 40px;
}

.admission-cta h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.admission-cta p {
  margin-bottom: 20px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* 动画效果 */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-20px); }
  60% { transform: translateY(-10px); }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease forwards;
}

.animate-slide-left {
  animation: slideInLeft 0.8s ease forwards;
}

.animate-slide-right {
  animation: slideInRight 0.8s ease forwards;
}

.animate-zoom-in {
  animation: zoomIn 0.8s ease forwards;
}

.animate-bounce {
  animation: bounce 2s ease infinite;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-400 {
  animation-delay: 0.4s;
}

.delay-600 {
  animation-delay: 0.6s;
}

.delay-800 {
  animation-delay: 0.8s;
}

/* 响应式设计增强 */
@media (max-width: 992px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .news-grid,
  .campus-life-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .about-content {
    order: 2;
  }
  
  .about-img {
    order: 1;
  }
}

@media (max-width: 480px) {
  .news-grid,
  .campus-life-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .section-padding {
    padding: 40px 0;
  }
  
  .logo h1 {
    font-size: 1.2rem;
  }
  
  .logo img {
    height: 30px;
  }
}

/* 工具类 */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: var(--primary-color); }
.text-accent { color: var(--accent-color); }
.bg-primary { background-color: var(--primary-color); }
.bg-secondary { background-color: var(--secondary-color); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }
.py-1 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-4 { padding-top: 2rem; padding-bottom: 2rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }
.px-1 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2 { padding-left: 1rem; padding-right: 1rem; }
.px-3 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-4 { padding-left: 2rem; padding-right: 2rem; }
.px-5 { padding-left: 3rem; padding-right: 3rem; }