:root {
  --primary-color: #1a5276;
  --secondary-color: #2980b9;
  --accent-color: #f39c12;
  --dark-bg: #2c3e50;
  --light-bg: #f5f5f5;
  --light-text: #ffffff;
  --dark-text: #333333;
  --border-color: #e0e0e0;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: var(--dark-text);
  background-color: var(--light-bg);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* Header Styles */
header {
  background-color: var(--light-text);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px 0;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo h1 {
  color: var(--primary-color);
  margin-right: 10px;
  font-size: 28px;
}

.logo span {
  color: var(--dark-text);
  font-weight: 500;
}

nav ul {
  display: flex;
}

nav ul li {
  margin-left: 25px;
}

nav ul li a {
  color: var(--dark-text);
  font-weight: 500;
  padding: 5px 0;
  position: relative;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--primary-color);
}

nav ul li a.active::after,
nav ul li a:hover::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 24px;
  color: var(--primary-color);
}

/* Page Banner */
.page-banner {
  background-color: var(--primary-color);
  color: var(--light-text);
  padding: 80px 0;
  text-align: center;
  background-image: linear-gradient(rgba(26, 82, 118, 0.8), rgba(26, 82, 118, 0.8)), url('../images/hero-banner.jpg');
  background-size: cover;
  background-position: center;
}

.page-banner h1 {
  font-size: 42px;
  margin-bottom: 15px;
  font-family: 'Playfair Display', serif;
}

.page-banner p {
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.primary-btn {
  background-color: var(--primary-color);
  color: var(--light-text);
}

.primary-btn:hover {
  background-color: var(--secondary-color);
  color: var(--light-text);
}

.secondary-btn {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
  background-color: var(--primary-color);
  color: var(--light-text);
}

.text-btn {
  padding: 0;
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
}

.text-btn i {
  margin-left: 5px;
  transition: var(--transition);
}

.text-btn:hover i {
  transform: translateX(5px);
}

/* Section Styles */
section {
  padding: 80px 0;
}

.section-title {
  font-size: 36px;
  text-align: center;
  margin-bottom: 50px;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 15px;
  font-family: 'Playfair Display', serif;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--accent-color);
}

/* Programs Overview */
.program-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.program-category {
  background-color: var(--light-text);
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

.program-category:hover {
  transform: translateY(-10px);
}

.category-icon {
  width: 80px;
  height: 80px;
  background-color: rgba(26, 82, 118, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.category-icon i {
  font-size: 36px;
  color: var(--primary-color);
}

.program-category h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

/* Program Section */
.program-section {
  background-color: var(--light-bg);
}

.faculty {
  margin-bottom: 50px;
}

.faculty h3 {
  color: var(--primary-color);
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-color);
}

.programs-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.program-card {
  background-color: var(--light-text);
  border-radius: 10px;
  padding: 25px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.program-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.program-card h4 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

.program-details {
  margin: 20px 0;
  padding-left: 20px;
}

.program-details li {
  margin-bottom: 8px;
  position: relative;
}

.program-details li::before {
  content: '•';
  color: var(--accent-color);
  position: absolute;
  left: -15px;
}

.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* Contact Styles */
.contact-info {
  background-color: var(--light-text);
  padding: 60px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.contact-card {
  text-align: center;
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateY(-10px);
}

.contact-card i {
  font-size: 40px;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.contact-card h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

.contact-form-section {
  padding: 80px 0;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-form, .contact-map {
  background-color: var(--light-text);
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.contact-form h2, .contact-map h2 {
  color: var(--primary-color);
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-color);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-family: 'Roboto', sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.map-container {
  height: 450px;
  border-radius: 5px;
  overflow: hidden;
}

/* FAQ Section */
.faq {
  background-color: var(--light-bg);
  padding: 80px 0;
}

.accordion {
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  background-color: var(--light-text);
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.accordion-header {
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-header h3 {
  font-size: 18px;
  color: var(--primary-color);
}

.accordion-icon {
  color: var(--primary-color);
  transition: var(--transition);
}

.accordion-content {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
}

.accordion-item.active .accordion-content {
  padding: 0 20px 20px;
  max-height: 1000px;
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
}

/* Footer Styles */
footer {
  background-color: var(--dark-bg);
  color: var(--light-text);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  color: var(--light-text);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--accent-color);
}

.footer-section p {
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--light-text);
  border-radius: 50%;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--accent-color);
  transform: translateY(-5px);
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: #ccc;
  transition: var(--transition);
}

.footer-section ul li a:hover {
  color: var(--light-text);
  padding-left: 5px;
}

.footer-section i {
  margin-right: 10px;
  color: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  font-size: 14px;
}

/* 轮播图样式 */
.hero-slider {
  position: relative;
  overflow: hidden;
  height: 600px;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--light-text);
  padding: 0 20px;
}

.slide-overlay h1 {
  font-size: 48px;
  margin-bottom: 20px;
  font-family: 'Playfair Display', serif;
}

.slide-overlay p {
  font-size: 20px;
  max-width: 700px;
  margin-bottom: 30px;
}

.slider-controls {
  position: absolute;
  bottom: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 30px;
  z-index: 3;
}

.slider-controls button {
  background: rgba(255, 255, 255, 0.3);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}

.slider-controls button:hover {
  background: rgba(255, 255, 255, 0.5);
}

.hero-buttons {
  position: absolute;
  bottom: 50px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 20px;
  z-index: 3;
}

/* 学术成果卡片样式 */
.achievements-section {
  background-color: var(--light-bg);
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.achievement-card {
  background-color: var(--light-text);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.achievement-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.achievement-image {
  height: 200px;
  overflow: hidden;
}

.achievement-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.achievement-card:hover .achievement-image img {
  transform: scale(1.1);
}

.achievement-content {
  padding: 20px;
}

.achievement-content h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.achievement-content p {
  margin-bottom: 15px;
  color: var(--dark-text);
}

.achievement-meta {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #777;
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
  margin-top: 15px;
}

/* 增强的学生证言样式 */
.testimonials {
  background-color: var(--primary-color);
  color: var(--light-text);
  position: relative;
}

.testimonials .section-title {
  color: var(--light-text);
  text-align: center;
  margin-bottom: 50px;
}

.testimonials-slider {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonial {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: opacity 0.5s ease;
}

.testimonial.active {
  opacity: 1;
  position: relative;
}

.testimonial-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid var(--light-text);
  margin-bottom: 20px;
}

.testimonial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-content {
  margin-bottom: 20px;
}

.testimonial-content p {
  font-size: 18px;
  line-height: 1.8;
  font-style: italic;
}

.testimonial-author h4 {
  font-size: 20px;
  margin-bottom: 5px;
}

.testimonial-author p {
  font-size: 16px;
  opacity: 0.8;
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  gap: 15px;
}

.testimonial-controls button {
  background: rgba(255, 255, 255, 0.3);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}

.testimonial-controls button:hover {
  background: rgba(255, 255, 255, 0.5);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background-color: var(--light-text);
}

/* 校园生活图片展示区样式 */
.campus-life-gallery {
  background-color: var(--light-bg);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.gallery-item {
  position: relative;
  height: 250px;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.gallery-item:hover {
  transform: scale(1.03);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: var(--light-text);
  transform: translateY(100%);
  transition: var(--transition);
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

.gallery-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.gallery-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  position: relative;
  max-width: 80%;
  max-height: 80%;
}

.modal-content img {
  max-width: 100%;
  max-height: 80vh;
  border: 5px solid white;
}

.modal-caption {
  color: white;
  text-align: center;
  margin-top: 15px;
  font-size: 18px;
}

.modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 30px;
  cursor: pointer;
}

.modal-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

.modal-nav button {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  margin: 0 20px;
}

.modal-nav button:hover {
  background: rgba(255, 255, 255, 0.4);
}