:root {
  --primary-color: #2563eb;
  --secondary-color: #0ea5e9;
  --accent-color: #f97316;
  --text-color: #1e293b;
  --light-bg: #f8fafc;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
  color: white;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: background 0.3s ease;
}

.main-header.transparent {
  background: transparent;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo {
  width: 50px;
  height: 50px;
  border-radius: 8px;
}

.header-title {
  display: flex;
  flex-direction: column;
}

.school-name {
  font-size: 20px;
  font-weight: bold;
  color: white;
}

.school-english {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-btn {
  display: inline-block;
  padding: 12px 30px;
  color: white;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 6px;
  background: transparent;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 150px;
  background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
  backdrop-filter: blur(3px);
  border-radius: 6px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  margin-top: 0;
  padding-top: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-dropdown:hover .nav-dropdown-content {
  display: block;
}

.nav-dropdown-content a {
  display: block;
  padding: 12px 20px;
  color: white;
  text-decoration: none;
  transition: background 0.3s ease;
}

.nav-dropdown-content a:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.nav-dropdown-content a.active {
  background: rgba(255, 255, 255, 0.25);
  color: white;
}

.nav-btn.dropdown-toggle::after,
.dropdown-toggle::after {
  display: none !important;
  content: none !important;
}

@media (max-width: 768px) {
  .main-header {
    flex-direction: column;
    gap: 10px;
    padding: 12px 15px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
  }
  
  .header-left {
    gap: 10px;
  }
  
  .logo {
    width: 45px;
    height: 45px;
  }
  
  .school-name {
    font-size: 18px;
  }
  
  .school-english {
    font-size: 11px;
  }
  
  .header-right {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  
  .nav-btn {
    padding: 8px 16px;
    font-size: 13px;
  }
  
  .nav-dropdown {
    position: relative;
  }
  
  .nav-dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 140px;
    margin-top: 5px;
    z-index: 1001;
  }
  
  .nav-dropdown-content a {
    padding: 10px 15px;
    font-size: 13px;
  }
}

.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  background: url('/images/shouye/shouye1.jpg') center/cover no-repeat;
  color: white;
  overflow: hidden;
  animation: heroZoom 20s ease-in-out infinite alternate;
  width: 100%;
  max-width: 100vw;
}

@keyframes heroZoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.15);
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.4) 0%, rgba(45, 90, 135, 0.3) 100%);
  display: flex;
  z-index: 1;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 80px;
}

.hero-content {
  z-index: 1;
}

.hero-title {
  font-size: 56px;
  font-weight: bold;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle {
  font-size: 20px;
  margin-bottom: 15px;
  letter-spacing: 3px;
}

.hero-motto {
  font-size: 24px;
  margin-bottom: 40px;
  font-weight: 500;
}

.hero-btn {
  display: inline-block;
  padding: 15px 40px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.hero-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 1;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  width: 30px;
  border-radius: 6px;
  background: white;
}

.page-banner {
  position: relative;
  height: 300px;
  background: url('/images/xuexiaogaikuo/dingbubeijing.jpg') center/cover no-repeat;
  margin-top: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.7) 0%, rgba(45, 90, 135, 0.5) 100%);
}

.page-banner-overlay {
  text-align: center;
  color: white;
  position: relative;
  z-index: 1;
}

.page-banner-overlay h1 {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 15px;
}

.page-banner-overlay p {
  font-size: 18px;
  opacity: 0.9;
}

.nav-btn.active {
  background: rgba(255, 255, 255, 0.2);
}

section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 8px;
  color: var(--text-color);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-title::before,
.section-title::after {
  content: '';
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  margin: 0 20px;
}

.section-subtitle {
  text-align: center;
  font-size: 16px;
  color: #868e96;
  letter-spacing: 4px;
  margin-bottom: 40px;
  text-transform: uppercase;
  font-weight: 500;
}

.section-desc {
  text-align: center;
  color: #64748b;
  margin-bottom: 50px;
}

/* 标题浮现动画 */
.section-title,
.section-desc {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section-title.visible,
.section-desc.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-desc {
  transition-delay: 0.2s;
}

.about-section {
  background: white;
}

.about-content {
  display: flex;
  flex-direction: row;
  gap: 0;
  margin-bottom: 30px;
}

.about-image-wrapper {
  flex: 1;
  position: relative;
  overflow: hidden;
  border-radius: 16px 0 0 16px;
  max-width: 50%;
}

.about-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.about-image-wrapper:hover .about-image {
  transform: scale(1.05);
}

.about-text {
  flex: 1;
  padding: 20px;
  background: linear-gradient(135deg, #e8eff5 0%, #d4e0ed 100%);
  border-radius: 0 16px 16px 0;
  color: white;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
}

.lead {
  font-size: 18px;
  margin-bottom: 20px;
  opacity: 0.95;
}

.about-text p {
  margin-bottom: 15px;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
  }
  
  .about-image-wrapper {
    max-width: 100%;
  }
}

.school-stats {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-radius: 12px;
  padding: 30px;
  color: white;
}

.stat-item {
  text-align: center;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item:last-child {
  border-bottom: none;
}

.stat-number {
  display: block;
  font-size: 36px;
  font-weight: bold;
}

.stat-label {
  font-size: 14px;
  opacity: 0.9;
}

.philosophy-section {
  background: #fafbfc;
}

.philosophy-card {
  background: white;
  border-radius: 16px;
  padding: 40px;
  height: 100%;
  border: 1px solid #f0f2f5;
  transition: all 0.3s ease;
}

.philosophy-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

.philosophy-card h3 {
  color: #1a1a2e;
  margin-bottom: 28px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.philosophy-card ul {
  list-style: none;
  padding: 0;
}

.philosophy-card li {
  padding: 14px 0;
  color: #4a5568;
  font-size: 15px;
  line-height: 1.6;
  border-bottom: 1px solid #f7fafc;
  transition: all 0.2s ease;
}

.philosophy-card li:last-child {
  border-bottom: none;
}

.philosophy-card li:hover {
  color: var(--primary-color);
  padding-left: 8px;
}

.philosophy-card li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--primary-color);
  border-radius: 50%;
  margin-right: 12px;
  vertical-align: middle;
  opacity: 0.6;
}

.three-centers {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.center-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px;
  background: #f8fafc;
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.center-item:hover {
  background: white;
  border-color: #e2e8f0;
  transform: translateX(4px);
}

.center-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eff6ff;
  border-radius: 10px;
  color: var(--primary-color);
  flex-shrink: 0;
}

.center-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.center-name {
  font-weight: 600;
  color: #1a1a2e;
  font-size: 16px;
  flex-grow: 1;
}

.center-desc {
  color: #718096;
  font-weight: 500;
  font-size: 14px;
}

.honors-section {
  background: #fafbfc;
}

.honor-item {
  background: white;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  margin-bottom: 24px;
  border: 1px solid #f0f2f5;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.honor-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
  border-color: #e2e8f0;
}

.honor-icon {
  color: var(--primary-color);
  flex-shrink: 0;
}

.honor-item span {
  color: #4a5568;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
}

.vitality-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.vitality-section .section-title {
  color: white;
}

.vitality-section .section-desc {
  color: white;
}

.vitality-main-card {
  background: white;
  border-radius: 24px;
  padding: 48px;
  display: flex;
  gap: 48px;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12);
  margin-bottom: 32px;
}

.vitality-main-card.reverse {
  flex-direction: row-reverse;
}

.vitality-images-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  flex-shrink: 0;
  background: #f8fafc;
  padding: 24px;
  border-radius: 16px;
}

.grid-image {
  width: 220px;
  height: 180px;
  object-fit: cover;
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.grid-image:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.vitality-text-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.vitality-text-section h3 {
  margin-bottom: 20px;
  font-size: 32px;
  font-weight: 700;
  color: #000;
}

.vitality-text-section p {
  font-size: 18px;
  color: #64748b;
  line-height: 1.8;
}

.charm-section {
  background: var(--light-bg);
}

.charm-card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.charm-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.charm-number {
  display: block;
  font-size: 48px;
  font-weight: bold;
  color: var(--accent-color);
  opacity: 0.2;
  position: absolute;
  top: 10px;
  right: 10px;
}

.charm-card h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
  position: relative;
}

.clubs-section {
  background: white;
}

.club-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.club-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.club-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: #f5f5f5;
}

.club-card-horizontal {
  display: flex;
  align-items: stretch;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.club-card-horizontal:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.club-card-horizontal-img {
  flex: 1;
  width: 33.33%;
  height: 250px;
  object-fit: cover;
  background: #f5f5f5;
}

.club-card-horizontal-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  text-align: center;
}

.club-card-horizontal-content h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

.club-card-horizontal-content p {
  color: #64748b;
  margin: 0;
}

@media (max-width: 768px) {
  .club-card-horizontal {
    flex-direction: column;
  }
  
  .club-card-horizontal-img {
    width: 100%;
    height: 180px;
  }
}

.club-card h3 {
  padding: 20px 20px 10px;
  color: var(--primary-color);
}

.club-card p {
  padding: 0 20px 20px;
  color: #64748b;
}

.admission-section {
  background: var(--light-bg);
}

.admission-info {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.admission-info h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
}

.admission-list {
  list-style: none;
  padding: 0;
}

.admission-list li {
  padding: 10px 0;
  border-bottom: 1px solid #e2e8f0;
}

.admission-list li:last-child {
  border-bottom: none;
}

.admission-form {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.admission-form .form-group {
  margin-bottom: 20px;
}

.admission-form label {
  font-weight: 500;
  color: var(--text-color);
}

.footer-section {
  background: var(--text-color);
  color: white;
  padding: 30px 0;
  height: 220px;
}

.footer-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-left: 0;
  padding-top: 10px;
}

.footer-left {
  display: flex;
  align-items: center;
}

.footer-logo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  margin-right: 30px;
  margin-left: -15px;
  border-radius: 16px;
}

.footer-info {
  flex: 1;
}

.footer-section h4 {
  margin-bottom: 20px;
}

.footer-right {
  display: flex;
  align-items: center;
}

.footer-photos {
  display: flex;
  gap: 25px;
}

.footer-photo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-photo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 16px;
}

.footer-photo-label {
  margin-top: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
}

.footer-bottom {
  margin-top: 0;
  padding-top: 5px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

#visitsCount {
  color: var(--accent-color);
  font-weight: bold;
}

@media (max-width: 768px) {
  html, body {
    width: 100%;
    overflow-x: hidden;
  }
  
  .hero-section {
    height: auto;
    min-height: 400px;
    width: 100vw;
    max-width: 100%;
  }
  
  .hero-title {
    font-size: 28px;
  }
  
  .hero-subtitle {
    font-size: 14px;
  }
  
  .hero-motto {
    font-size: 18px;
  }
  
  .hero-btn {
    padding: 12px 30px;
    font-size: 14px;
  }
  
  .hero-img.secondary {
    display: none;
  }
  
  .section-title {
    font-size: 24px;
  }
  
  .section-title::before,
  .section-title::after {
    width: 40px;
    margin: 0 10px;
  }
  
  .school-stats {
    margin-top: 30px;
  }
  
  .page-banner {
    height: 200px;
    margin-top: 120px;
  }
  
  .page-banner-overlay h1 {
    font-size: 32px;
  }
  
  .page-banner-overlay p {
    font-size: 14px;
  }
  
  section {
    padding: 40px 0;
  }
  
  .footer-section {
    height: auto;
    padding: 20px 0;
  }
  
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }
  
  .footer-left {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .footer-logo {
    margin: 0 !important;
  }
  
  .footer-right {
    margin-top: 15px;
  }
  
  .footer-photos {
    gap: 15px;
  }
  
  .footer-photo {
    width: 80px;
    height: 80px;
  }
  
  .footer-photo-label {
    font-size: 12px;
  }
  
  .vitality-main-card {
    flex-direction: column !important;
    padding: 20px;
    gap: 20px;
  }
  
  .vitality-images-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 15px;
  }
  
  .grid-image {
    width: 100%;
    height: 120px;
  }
  
  .vitality-text-section h3 {
    font-size: 20px;
  }
  
  .vitality-text-section p {
    font-size: 14px;
  }
  
  .admission-section .row {
    flex-direction: column;
    gap: 20px;
  }
  
  .admission-info,
  .admission-form {
    padding: 20px;
  }
  
  .charm-card {
    padding: 20px;
  }
  
  .club-card-horizontal-content {
    padding: 15px;
  }
  
  .about-content {
    flex-direction: column;
  }
  
  .about-image-wrapper {
    max-width: 100%;
    border-radius: 16px 16px 0 0;
  }
  
  .about-text {
    border-radius: 0 0 16px 16px;
    padding: 15px;
  }
  
  .lead {
    font-size: 16px;
  }
  
  .stat-item {
    padding: 15px 0;
  }
  
  .stat-number {
    font-size: 28px;
  }
  
  .philosophy-card {
    padding: 25px;
  }
  
  .philosophy-card h3 {
    font-size: 18px;
    margin-bottom: 20px;
  }
  
  .philosophy-card li {
    font-size: 14px;
    padding: 10px 0;
  }
  
  .center-item {
    padding: 15px;
  }
  
  .center-name {
    font-size: 14px;
  }
  
  .center-desc {
    font-size: 12px;
  }
  
  .honor-item {
    padding: 15px;
    margin-bottom: 15px;
  }
  
  .honor-item span {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .main-header {
    padding: 10px 15px;
  }
  
  .logo {
    width: 40px;
    height: 40px;
  }
  
  .school-name {
    font-size: 16px;
  }
  
  .school-english {
    font-size: 10px;
  }
  
  .nav-btn {
    padding: 8px 15px;
    font-size: 13px;
  }
  
  .hero-title {
    font-size: 24px;
  }
  
  .hero-subtitle {
    font-size: 12px;
  }
  
  .hero-motto {
    font-size: 16px;
  }
  
  .section-title {
    font-size: 20px;
  }
  
  .vitality-images-grid {
    grid-template-columns: 1fr;
  }
  
  .grid-image {
    height: 150px;
  }
  
  .footer-photos {
    flex-direction: column;
    gap: 10px;
  }
  
  .footer-photo-item {
    flex-direction: row;
    gap: 10px;
  }
}