/* 自定义样式 - Enhanced Color Scheme */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --light-color: #ecf0f1;
  --dark-color: #2c3e50;
  --success-color: #2ecc71;
  --warning-color: #f39c12;
  --info-color: #1abc9c;
  --text-color: #333333;
  --text-light: #7f8c8d;
  --border-color: #dee2e6;
  --shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
  --transition: all 0.3s ease;
}

body {
  font-family: "Microsoft YaHei", Arial, sans-serif;
  font-size: 1.1rem; /* Reduced slightly for better readability */
  line-height: 1.7;
  color: var(--text-color);
  background-color: #f8f9fa;
  text-indent: 2em;
}

/* Enhanced Navbar Styles */
.navbar {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), #3a6ea5) !important;
  box-shadow: var(--shadow-lg);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 1020;
}

.navbar-brand {
  color: #ffffff !important;
  font-weight: 700;
  font-size: 1.7rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-brand img {
  border-radius: 8px;
  transition: var(--transition);
  max-height: 50px;
}

.navbar-brand img:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  font-size: 1.1rem;
  padding: 0.6rem 1.1rem;
  border-radius: 0.5rem;
  transition: var(--transition);
  margin: 0 0.3rem;
  position: relative;
}

.navbar-nav .nav-link:hover {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
  color: #ffffff !important;
  background-color: rgba(0, 0, 0, 0.25);
  font-weight: 600;
}

/* Dropdown menu enhancement */
.dropdown-menu {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0;
}

.dropdown-item {
  color: var(--dark-color);
  padding: 0.6rem 1.5rem;
  transition: var(--transition);
}

.dropdown-item:hover {
  background-color: var(--secondary-color);
  color: white;
}

.dropdown-item.active {
  background-color: var(--primary-color);
  color: white;
}

.dropdown-menu {
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.dropdown-item {
  color: #212529;
  padding: 0.5rem 1.5rem;
}

.dropdown-item:hover {
  background-color: #e9ecef;
  color: #0d6efd;
}

/* Navigation pills styling */
.nav-pills .nav-link {
  border-radius: 0.75rem;
  margin: 0 0.3rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: var(--transition);
  background-color: var(--light-color);
  color: var(--dark-color);
}

.nav-pills .nav-link:hover {
  background-color: var(--secondary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.nav-pills .nav-link.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  box-shadow: var(--shadow-md);
}

/* Tab content styling */
.tab-content {
  background-color: white;
  border: none;
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  position: relative;
  overflow: hidden;
}

.tab-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

/* Table styling improvements */
.table {
  margin-bottom: 1.5rem;
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  background-color: white;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.table th {
  background: linear-gradient(to bottom, #f1f3f5, #e9ecef);
  font-weight: 700;
  vertical-align: middle;
  padding: 0.9rem;
  color: var(--dark-color);
  border: none;
  position: relative;
}

.table th:first-child {
  border-top-left-radius: 0.5rem;
}

.table th:last-child {
  border-top-right-radius: 0.5rem;
}

.table td {
  vertical-align: middle;
  padding: 0.9rem;
  border-top: 1px solid var(--border-color);
  transition: var(--transition);
}

.table td:first-child {
  font-weight: 600;
  color: var(--primary-color);
}

.table tr:hover td {
  background-color: rgba(52, 152, 219, 0.05);
  transform: scale(1.01);
}

.table-bordered {
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  overflow: hidden;
}

.table-bordered th,
.table-bordered td {
  border: 1px solid var(--border-color);
}

/* Improved image styling */
.img-fluid {
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  max-width: 100%;
  height: auto;
}

/* Specific image styling */
img[alt="公司形象图"],
img[alt="企业理念图"],
img[alt="央视关注图片"],
img[alt="发展历程图片"],
img[alt="咨询服务图片"],
img[alt="培训服务图片"],
#contact img {
  margin: 1rem 0;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

img[alt="公司形象图"]:hover,
img[alt="企业理念图"]:hover,
img[alt="央视关注图片"]:hover,
img[alt="发展历程图片"]:hover,
img[alt="咨询服务图片"]:hover,
img[alt="培训服务图片"]:hover,
#contact img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary-color);
}

/* Enhanced typography */
h2, h3, h4, h5 {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 0.8rem;
}

h3 {
  border-bottom: 3px solid var(--secondary-color);
  padding-bottom: 0.8rem;
  margin-bottom: 1.8rem;
}

h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
  border-radius: 2px;
}

/* Video styling */
video {
  border-radius: 0.75rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

video:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

/* Enhanced section styling */
.section-intro {
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: 0.75rem;
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--secondary-color);
}

/* Team member cards */
.team-member {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary-color);
}

.team-member h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.team-member p {
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.team-member ul {
  padding-left: 1.2rem;
  margin-bottom: 0;
}

.team-member ul li {
  margin-bottom: 0.3rem;
}

/* Contact section styling */
.contact-info {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.contact-info p {
  margin-bottom: 0.7rem;
}

.contact-qr-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.contact-qr-card {
  background: white;
  border-radius: 0.75rem;
  padding: 1rem;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  flex: 1;
  min-width: 180px;
  border: 1px solid var(--border-color);
}

.contact-qr-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary-color);
}

.contact-qr-card img {
  max-height: 200px;
  width: auto;
  margin-bottom: 0.8rem;
  border-radius: 0.5rem;
}

/* Footer styling */
footer {
  margin-top: 3rem;
  padding: 2rem 0 1.5rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-light);
  font-size: 0.95rem;
  background: linear-gradient(145deg, #f8f9fa, #e9ecef);
}

/* Responsive table adjustments */
.table-responsive {
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
}

/* 响应式调整 */
@media (max-width: 992px) {
  .nav-pills .nav-link {
    padding: 0.6rem;
    font-size: 1rem;
    margin: 0.2rem;
  }

  .tab-content {
    padding: 1.2rem;
  }

  h3 {
    font-size: 1.6rem;
  }

  body {
    font-size: 1rem;
    padding: 0 10px;
  }

  .navbar-brand {
    font-size: 1.4rem;
  }

  .navbar-nav .nav-link {
    padding: 0.5rem 0.8rem;
    font-size: 1rem;
  }

  .contact-qr-cards {
    flex-direction: column;
  }

  .contact-qr-card {
    width: 100%;
  }

  .partners-container {
    padding: 10px 0;
  }

  .partner-logo {
    min-width: 120px;
    padding: 10px;
    margin-right: 15px;
  }

  .partner-logo img {
    max-height: 60px;
  }

  .table th,
  .table td {
    padding: 0.6rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .nav-pills .nav-link {
    padding: 0.5rem 0.8rem;
    font-size: 0.95rem;
    margin: 0.15rem;
  }

  .tab-content {
    padding: 1rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  body {
    font-size: 0.95rem;
    padding: 0 5px;
  }

  .navbar-brand {
    font-size: 1.3rem;
  }

  .navbar-nav .nav-link {
    padding: 0.4rem 0.6rem;
    font-size: 0.95rem;
  }

  .contact-qr-card {
    min-width: 250px;
  }

  .partners-container {
    padding: 8px 0;
  }

  .partner-logo {
    min-width: 100px;
    padding: 8px;
    margin-right: 12px;
  }

  .partner-logo img {
    max-height: 50px;
  }

  .table th,
  .table td {
    padding: 0.5rem;
    font-size: 0.85rem;
  }

  .table-responsive {
    font-size: 0.8rem;
  }

  .team-member {
    padding: 1rem;
  }

  .section-intro {
    padding: 1rem;
  }
}

@media (max-width: 576px) {
  .nav-pills .nav-link {
    padding: 0.45rem 0.7rem;
    font-size: 0.9rem;
    margin: 0.1rem;
  }

  .tab-content {
    padding: 0.8rem;
  }

  h3 {
    font-size: 1.4rem;
  }

  body {
    font-size: 0.9rem;
  }

  .navbar-brand {
    font-size: 1.2rem;
  }

  .navbar-brand img {
    max-height: 40px;
  }

  .navbar-nav .nav-link {
    padding: 0.4rem 0.5rem;
    font-size: 0.9rem;
  }

  .contact-qr-card {
    min-width: 200px;
    padding: 0.8rem;
  }

  .contact-qr-card img {
    max-height: 150px;
  }

  .partners-container {
    padding: 5px 0;
  }

  .partner-logo {
    min-width: 80px;
    padding: 5px;
    margin-right: 10px;
  }

  .partner-logo img {
    max-height: 40px;
  }

  #contact .col-md-3 img {
    height: 150px !important;
  }

  .table th,
  .table td {
    padding: 0.4rem;
    font-size: 0.8rem;
  }

  .table-responsive {
    font-size: 0.75rem;
  }

  .team-member {
    padding: 0.8rem;
  }

  .section-intro {
    padding: 0.8rem;
  }

  .video-container {
    margin-bottom: 1rem;
  }
}

/* Extra small devices (phones, 320px and up) */
@media (max-width: 320px) {
  body {
    font-size: 0.85rem;
  }

  .navbar-brand {
    font-size: 1.1rem;
  }

  .navbar-brand img {
    max-height: 35px;
  }

  .tab-content {
    padding: 0.6rem;
  }

  h3 {
    font-size: 1.3rem;
  }
}


/* Enhanced Partners section with auto-scrolling */
.partners-section {
  margin-top: 40px;
  padding: 30px 0;
  overflow: hidden;
  background: linear-gradient(145deg, #f8f9fa, #e9ecef);
  border-radius: 0.75rem;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
}

.partners-container {
  overflow: hidden;
  white-space: nowrap;
  box-sizing: border-box;
  padding: 15px 0;
}

.partners-track {
  display: inline-block;
  animation: scroll 60s linear infinite;
  white-space: nowrap;
  width: 200%;
}

.partners-track:hover {
  animation-play-state: paused;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

.partner-logo {
  display: inline-block;
  padding: 15px;
  text-align: center;
  min-width: 150px;
  margin-right: 25px;
  vertical-align: top;
  transition: var(--transition);
}

.partner-logo:hover {
  transform: scale(1.1);
}

.partner-logo img {
  max-height: 80px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 0.5rem;
  padding: 8px;
  background: white;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.partner-logo img:hover {
  box-shadow: var(--shadow-md);
  transform: scale(1.05);
}

/* Contact section images alignment */
#contact .col-md-3 {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#contact .col-md-3 img {
  height: 200px !important;
  width: auto;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  margin-bottom: 10px;
}

/* Additional animations and transitions */

/* Fade-in animation for content sections */
.tab-pane {
  animation: fadeIn 0.5s ease-in;
}

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

/* Hover animations for all content sections */
.tab-content > div {
  transition: var(--transition);
}

/* Pulse animation for important elements */
.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(52, 152, 219, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 152, 219, 0); }
}

/* Bounce animation for interactive elements */
.bounce {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
  40% {transform: translateY(-10px);}
  60% {transform: translateY(-5px);}
}

/* Slide in animations for various elements */
.slide-in-left {
  animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
  animation: slideInRight 0.8s ease-out;
}

@keyframes slideInLeft {
  from { transform: translateX(-50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
  from { transform: translateX(50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Glow effect for navigation items */
.navbar-nav .nav-link:hover::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 10%;
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
  animation: glow 1.5s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}